Euchner
Euchner
Integration of MGB2 Modular into TIA Portal V13/V14/V15 EN
From V1.5.6
Application MGB2
Integration of MGB2 Modular into TIA Portal V13/V14/V15
Contents
1. About this document.............................................................................................. 3
1.1. Version...........................................................................................................................................3
1.2. Scope.............................................................................................................................................3
1.3. Target group...................................................................................................................................3
1.4. Supplementary documents...............................................................................................................3
1.5. Notice.............................................................................................................................................3
2. Components/modules used................................................................................... 4
2.1. EUCHNER.......................................................................................................................................4
2.1.1. Items included in the MGB2 Modular set...........................................................................4
2.2. Others............................................................................................................................................4
2.3. Software.........................................................................................................................................5
3. Functional description............................................................................................ 5
10. Using the TIA Portal library (from TIA V14 SP1).................................................... 14
10.1. Retrieving the library......................................................................................................................14
10.2. Using the UDTs for the MGB2 Modular....................................................................................15
2 (Application) AP000232-01-06/18
Application MGB2
Integration of MGB2 Modular into TIA Portal V13/V14/V15
1.2. Scope
The purpose of this document is the integration and configuration of the MGB2 Modular into SIEMENS TIA Portal version
V13, version V14 and version V15.
Int
er
ne
Safety Information and
t
Information sheet with important safety information
Maintenance (2500232)
Operating instructions for
the modules connected Device-specific information for the related module and the submodules installed. www
Int
and their submodules
er
ne
t
Possibly enclosed data
Item-specific information about deviations or additions
sheets
1.5. Notice
This application is based on the MGB2 Modular operating instructions. Please refer to the operating instructions for the
technical details and other information.
EN
AP000232-01-06/18 (Application) 3
Application MGB2
Integration of MGB2 Modular into TIA Portal V13/V14/V15
2. Components/modules used
2.1. EUCHNER
Description Order number / item number
156386
156387
156388
156389
156390
156391
Modular bus module MBM 156310 / MBM-PN-S3-MLI-3B-156310 - -
156312 / MBM-PN-S4-MLI-3B-156312 - - - -
156392 / MGB2-L2-MLI-U-Y0000-BJ-156392 - - - -
156394 / MGB2-H-BA1A3-L-156394 - - -
Tip: More information and downloads about the aforementioned EUCHNER products can be found at www.euchner.com.
Simply enter the order number in the search box.
2.2. Others
Description Order number / item number
4 (Application) AP000232-01-06/18
Application MGB2
Integration of MGB2 Modular into TIA Portal V13/V14/V15
2.3. Software
Description Version
3. Functional description
The MGB2-L1HB-PN-.. is a guard locking device in accordance with EN ISO 14119 according to the closed-circuit current
principle, the MGB2-L2HB-PN-.. is a guard locking device in accordance with EN ISO 14119 according to the open-circuit
current principle. In this example, all safety functions are processed via the PROFIsafe protocol. The MGB2 Modular is con-
nected to a SIMATIC S7-1215 FC PLC from Siemens via the bus module.
EN
AP000232-01-06/18 (Application) 5
Application MGB2
Integration of MGB2 Modular into TIA Portal V13/V14/V15
4.2. Output
PROFINET Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
1st byte BM.ACK_G - - - - - - -
NOTE!
While PROFINET data are always incorporated by bytes, for PROFIsafe the data are always incorporated
by individual bits. For this reason, the module PROFIsafe 2 Bytes was used for this application example
and offers a sufficiently large safe memory area for the bits: LM.FI_SK, LM.FI_UK and SM.FI_ES.
6 (Application) AP000232-01-06/18
Application MGB2
Integration of MGB2 Modular into TIA Portal V13/V14/V15
2. Select the source path for the GSD file and install it.
EN
AP000232-01-06/18 (Application) 7
Application MGB2
Integration of MGB2 Modular into TIA Portal V13/V14/V15
8 (Application) AP000232-01-06/18
Application MGB2
Integration of MGB2 Modular into TIA Portal V13/V14/V15
EN
AP000232-01-06/18 (Application) 9
Application MGB2
Integration of MGB2 Modular into TIA Portal V13/V14/V15
10 (Application) AP000232-01-06/18
Application MGB2
Integration of MGB2 Modular into TIA Portal V13/V14/V15
2. Set the PROFIsafe address (F_Dest_Add) on the bus module MBM using the DIP switches. The PROFIsafe address must
be set to the value configured.
Switch Description
The DIP switch setting is as follows for F_Dest_Add 12 configured in TIA Portal:
Switch A9 A8 A7 A6 A5 A4 A3 A2 A1 A0
DIP switch position MBM off off off off off off on on off off
Significance 29 28 27 26 25 24 23 22 21 20
ATTENTION!
ÌÌThe PROFIsafe address set on the MBM and the address configured in TIA Portal must match.
ÌÌThe PROFIsafe address set using the DIP switches is only applied after restarting the MBM.
EN
AP000232-01-06/18 (Application) 11
Application MGB2
Integration of MGB2 Modular into TIA Portal V13/V14/V15
NOTE!
ÌÌOnly modules with extended diagnostics are configured in the application example. It is possible to
configure the modules and submodules with basic diagnostics.
ÌÌYou will find the list of parameters that can be set for modules and submodules in the operating
instructions for the bus module.
ÌÌThe module MBM DIAGNOSE EXTENDED is automatically inserted in slot 2. It can be replaced with
the module MBM DIAGNOSE BASIC.
12 (Application) AP000232-01-06/18
Application MGB2
Integration of MGB2 Modular into TIA Portal V13/V14/V15
2. Use Update list to display all devices of the same type. Compare the MAC address on the type label with the MAC ad-
dress of the subscriber available in the network and assign the PROFINET name to the MAC address using Assign name.
EN
TIP: As an alternative to the MAC address comparison, you can see from the Flash LED whether you have selected the
correct subscriber.
AP000232-01-06/18 (Application) 13
Application MGB2
Integration of MGB2 Modular into TIA Portal V13/V14/V15
10. Using the TIA Portal library (from TIA V14 SP1)
In the library you will find the templates for the hardware configuration of MGB2 Modular sets as well as UDTs (PLC data
types) to make the configuration of the MGB easier.
Open the page with the MGB2 applications in the download area at www.euchner.com and download the library for the
MGB2 Modular.
TIP: If the library has already been retrieved, select Open library... to add the library to the project.
14 (Application) AP000232-01-06/18
Application MGB2
Integration of MGB2 Modular into TIA Portal V13/V14/V15
1. Open the library and copy the required UDTs to the folder PLC data types in the project navigation.
2. Then the UDTs are assigned to the input and output areas in a PLC tag table.
Example tag declaration:
ÌÌAssign tag names
ÌÌSelect UDT as data type
ÌÌSelect addressing for the hardware configuration
Name Data type Address
MGB2.Safety.Input 156386_sUDT.Input I10.0
MGB2.Safety.Output 156386_sUDT.Output Q10.0
MGB2.Input 156386_UDT_Extended.Input I20.0
MGB2.Output 156386_UDT.Output Q20.0 EN
Table 2: Assigning I/O addresses
AP000232-01-06/18 (Application) 15
Application MGB2
Integration of MGB2 Modular into TIA Portal V13/V14/V15
IMPORTANT!
For the UDTs in the MGB2 Modular set, the addressing of the input and output areas for the modules/
submodules must be contiguous (e.g. IB20...26, QB20...22) because otherwise the structural assign-
ment will not match the input/output signals. If the addressing is not contiguous, you can also use the
UDTs for the modules and submodules separately. Simply copy them from the folder 01_MGB2-UDTs in
the library to the folder PLC data types and assign the corresponding module I/O area in the tag table.
16 (Application) AP000232-01-06/18
Application MGB2
Integration of MGB2 Modular into TIA Portal V13/V14/V15
NOTICE
There must be at least one call for an MBM safety bit in the safe part of the program to prevent the
device from being passivated!
EN
AP000232-01-06/18 (Application) 17
Application MGB2
Integration of MGB2 Modular into TIA Portal V13/V14/V15
In the following figure, on the occurrence of passivation the MBM is consciously reintegrated using the Start_reintegration input.
Sequence: if, e.g. a communication error has occurred between the PLC and the MBM, the MBM is passivated. As soon as
the error has been rectified, the passivation of the MBM is indicated using the POWER/FC LED (flashes) and the bit ACK_REQ
is set (=TRUE). When the non-safe input "Start_reintegration (I411.0)" = TRUE on the ET200SP, the condition becomes valid
and the MBM is reintegrated using the output ACK_REI.
18 (Application) AP000232-01-06/18
Application MGB2
Integration of MGB2 Modular into TIA Portal V13/V14/V15
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 passiva-
tion 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 elimination of faults requires a user acknowledgment with a positive edge at the ACK_REI tag of the F-I/O DB:
• After every communication error
• After F-I/O or channel faults only with parameter assignment "Channel failure acknowledge = Manually" 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 acknowledgment, 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 automatical-
ly generated signal is not permitted. (S011)
EN
Figure 18: Global reintegration
AP000232-01-06/18 (Application) 19
Application MGB2
Integration of MGB2 Modular into TIA Portal V13/V14/V15
NOTICE
An acknowledgment via the ACK_GL instruction is only possible if the tag ACK_REI of the F-I/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.
20 (Application) AP000232-01-06/18
Application MGB2
Integration of MGB2 Modular into TIA Portal V13/V14/V15
This document is intended for a design engineer who possesses the requisite knowledge in safety engineering and knows
the applicable standards, e.g. through training for qualification as a safety engineer. Only with the appropriate qualification
is it possible to integrate the example provided into a complete safety chain.
The example represents only part of a complete safety chain and does not fulfill any safety function on its own. In order
to fulfill a safety function, the energy switch-off function for the danger zone and the software within the safety evaluation
must also be considered, for example.
The applications provided are only examples for solving certain safety tasks for protecting safety doors. The examples
cannot be comprehensive due to the application-dependent and individual protection goals within a machine/installation.
According to the Machinery Directive 2006/42/EC, the design engineer of a machine or installation has the obligation to
perform a risk assessment and take measures to reduce the risk. While doing this, the engineer must comply with the
applicable national and international safety standards. Standards generally represent the current state-of-the-art. There-
fore, the design engineer should continuously inform himself about changes in the standards and adapt his considerations
to them. Relevant standards include EN ISO 13849 and EN 62061. This application must be regarded only as assistance
for the considerations about safety measures.
The design engineer of a machine/installation has the obligation to assess the safety technology him/herself. The exam-
ples must not be used for an assessment, because only a small excerpt of a complete safety function was considered in
terms of safety engineering here.
In order to be able to use the safety switch applications correctly on safety doors, it is indispensable to observe the
standards EN ISO 13849-1, EN ISO 14119 and all relevant C-standards for the respective machine type. Under no cir-
cumstances does this document replace the engineer’s own risk assessment, and it cannot serve as the basis for a fault
assessment.
In particular in relation to a fault exclusion, it must be noted that a fault can only be excluded by the machine’s or instal-
lation’s design engineer and this action requires justification. A general fault exclusion is not possible. More information
about fault exclusion can be found in EN ISO 13849-2.
Changes to products or within assemblies from third-party suppliers used in this example can lead to the function no
longer being ensured or the safety assessment having to be adapted. In any event, the information in the operating in-
structions on the part of EUCHNER, as well as on the part of third-party suppliers, must be used as the basis before this
application is integrated into an overall safety function. If contradictions should arise between the operating instructions
and this document, please contact us directly.
All brand names and company names stated are the property of the related manufacturer. They are used only for the
clear identification of compatible peripheral devices and operating environments in relation to our products.
EN
AP000232-01-06/18 (Application) 21
Euchner GmbH + Co. KG
Kohlhammerstraße 16
D-70771 Leinfelden-Echterdingen
[email protected]
www.euchner.com
Edition:
AP000232-01-06/18
Title:
Application MGB2
Integration of MGB2 into TIA Portal V13/V14/V15
Copyright:
© EUCHNER GmbH + Co. KG, 06/2018