Panels and S7-400H en
Panels and S7-400H en
https://support.industry.siemens.com/cs/ww/de/96837136
Warranty and Liability
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 will be excluded. Such an exclusion will 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
Siemens AG 2015 All rights reserved
Security Siemens provides products and solutions with industrial security functions that
informa- support the secure operation of plants, solutions, machines, equipment and/or
tion 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.
Table of Contents
Warranty and Liability ................................................................................................. 2
1 Task ..................................................................................................................... 4
2 Solutions ............................................................................................................ 5
2.1 Connecting redundant panels .............................................................. 5
2.2 Connecting a script-capable panel with a “software solution”
with two H CPUs .................................................................................. 6
2.3 Connecting a non-script-capable panel with a “software
solution” with two H CPUs .................................................................... 7
2.4 Comparing the solutions....................................................................... 8
3 Software Solution with Scripts ......................................................................... 9
3.1 Components used ................................................................................ 9
3.2 Mode of operation ................................................................................ 9
3.3 Configuration ...................................................................................... 11
3.3.1 STEP 7 configuration ......................................................................... 11
3.3.2 WinCC configuration .......................................................................... 12
3.4 Example scenarios ............................................................................. 15
4 Software Solution without Scripts ................................................................. 17
4.1 Components used .............................................................................. 17
4.2 Mode of operation .............................................................................. 17
4.3 Configuration ...................................................................................... 18
Siemens AG 2015 All rights reserved
1 Task
Introduction
You would like to connect SIMATIC HMI Panel with a SIMATIC H station.
2 Solutions
2.1 Connecting redundant panels
Connect a panel to each H CPU.
Figure 2-1
Siemens AG 2015 All rights reserved
A precise description of this solution can be found in chapter Software Solution with
Scripts.
PROFINET IE
Siemens AG 2015 All rights reserved
Software components
Table 3-2
Component No. Article number Note
STEP 7 V5.5 + SP4 1 6ES7810-4CC10-0YA5
Siemens AG 2015 All rights reserved
Connection_lost
In the event of a complete disconnection, there is no fast trigger available on the
panel for the execution of scripts.
In order to be able to detect and display a total failure, the scheduler is used with a
cycle of one minute. The script (connection_lost) used in the scheduler includes the
following functions:
1. Fault marking:
The connection status tag is set to 5 for both connections. If both connections
are active, the access that is every minute, will have no effect. 5 corresponds
to connection status “OK”.
2. Deactivating:
If the connection status tags of the two connections are 5 or higher, they will be
set to 100. 100 corresponds to connection status “deactivated”.
“connection_lost” is written in the connection memory of the data connection.
Status of the connection status tags:
Table 3-4
Values Status
0 Initialization, waiting for the first trigger
1 to 5 OK
6 to 10 Faulty
11 to 20 Failed
100 Deactivated
3.3 Configuration
3.3.1 STEP 7 configuration
Table 3-5
No. Action
1. Configure your H system as usual with STEP7 V5.x
2. Open the properties of the H CPU.
3. Enable the clock memory in the “Cycle/Clock Memory” tab and enter the desired
memory byte.
In the example the memory byte 0 is used.
Siemens AG 2015 All rights reserved
To connect the operator panel to the H CPU, the proxy PLC is used in WinCC (TIA
Portal). This is why no further steps are required in the STEP 7 project.
Prerequisite for the use of the proxy PLC is a consistent STEP 7 V5.x project. More
detailed information on the use of the proxy PLC can be found in entry \3\.
Table 3-6
No. Action
4. Open the WinCC (TIA Portal) project with the comfort panel which you would like
to connect to the H CPU.
5. Add a new device from the “device proxy” type.
Siemens AG 2015 All rights reserved
6. Right click the proxy PLC and select “Initialize device proxy”.
No. Action
8. Open the network view and create an HMI connection between the operator
panel and the proxy PLC.
No. Action
10. Create two further connections “PLC_1” and “PLC_2”.
Set the connection settings (IP address, racks and slot number) of the two H
CPUs.
Siemens AG 2015 All rights reserved
11. Open the “96837136_Panel_H-PLC_library” global library that you can download
from the download page of this entry.
https://support.industry.siemens.com/cs/ww/de/96837136
12. Drag the “H-System_Connection” tag table and the VB scripts via drag & drop
into your project.
13. Open the “H-System_Connection” tag table.
Change the addresses of the tags “trigger_PLC1”, “trigger_PLC2” and
“Clock_memory” if you do not wish to use the clock memory as memory byte 0.
No. Action
15. Open the “connection_PLC2” script.
Change the address parameters of the “PLC_Changer_12” connection in line 40
and line 54 to the address parameters of your “PLC2”.
Scenario 1
The PLC_1 connection fails due to an error.
• The trigger can no longer be read through this connection
• The “connection_PLC1” script is not executed.
Siemens AG 2015 All rights reserved
Scenario 2
The connection PLC_2 also fails due to an error, therefore the “connection_PLC2”
script can no longer be executed.
The “connection_lost” script is executed once every minute by the scheduler.
Both connection status tags are set to 5 in the first cycle.
• con_state_PLC1 = 5
• con_state_PLC2 = 5
Both connection status tags are set to 100 in the second cycle. The connection
memory is set to “connection_lost”.
• con_state_PLC1 = 100
• con_state_PLC2 = 100
• connected_to = connection_lost
The connection is totally disconnected.
Software components
Table 4-2
Component No. Article number Note
STEP 7 V5.5 + SP4 1 6ES7810-4CC10-0YA5
WinCC Comfort V13 SP1 1 6AV2101-0AA03-0AA5 As of WinCC Basic
V13 SP1
Siemens AG 2015 All rights reserved
Note Please note that no switchover takes place for this solution in the event of
communication errors.
4.3 Configuration
4.3.1 STEP 7 configuration
The FB523 function block allows the output of the modes “RUN/STOP” and of the
status “Master/Reserve” of an H system.
Table 4-3
No. Action
1. Download the library from the link \4\ and add it to your project as described in
the entry.
2. Define tags for the outputs “R0_MSTR” and “R1_MSTR” (in this example:
DB1.DBX4.0 and DB1.DBX5.0)
To connect the operator panel to the H CPU, the proxy PLC is used in WinCC (TIA
Portal). This is why no further steps are required in the STEP 7 project.
Prerequisite for the use of the proxy PLC is a consistent STEP 7 V5.x project. More
detailed information on the use of the proxy PLC can be found in entry \3\.
Table 4-4
No. Action
1. Open the WinCC (TIA Portal) project with the operator panel that you would like
to connect to the H CPU.
2. Add a new device from the “device proxy” type.
No. Action
3. Right click the proxy PLC and select “Initialize device proxy”.
No. Action
6. Open the “Connections” editor and rename the created connection to
“PLC_Changer_12”.
Siemens AG 2015 All rights reserved
No. Action
8. Open an HMI tag table and add the following tags.
10. In addition, configure the “SetTag” system function on the “On exceeding” event
of the two tags. Describe the “connected_PLC” tag with the name of the
respective controller.
PLC_1 is master
The operator panel evaluates the upper limit value of the “DB1.DBB4” tag (limit
value: 0). If the “DB1.DBX4.0” bit is set, the limit value is exceeded and the
“ChangeConnection” function is executed.
The connection changes from the specified connection of the “PLC_Changer_12”
to the configured connection parameters of the “PLC_1”.
The connection to the PLC_1 is established.
PLC_2 is master
Siemens AG 2015 All rights reserved
The operator panel evaluates the upper limit value of the “DB1.DBB5” tag (limit
value: 0). If the “DB1.DBX5.0” bit is set, the limit value is exceeded and the
“ChangeConnection” function is executed.
The connection changes from the specified connection of the “PLC_Changer_12”
to the configured connection parameters of the “PLC_2”.
The connection to the PLC_2 is established.
Note You can switch the master CPU manually to STOP mode in order to test the
function.
5 References
Table 5-1
Topic Title
\1\ Siemens Industry http://support.automation.siemens.com
Online Support
\2\ Download page of the https://support.industry.siemens.com/cs/ww/de/96837136
entry
\3\ Combined configuration http://support.automation.siemens.com/WW/view/en/73502293
with WinCC (TIA Portal)
and STEP 7 V5.x
\4\ How do you read out http://support.automation.siemens.com/WW/view/en/19537149
the operating state and
status of an H system?
6 History
Table 6-1
Version Date Modifications
Siemens AG 2015 All rights reserved