Escolar Documentos
Profissional Documentos
Cultura Documentos
https://support.industry.siemens.com/cs/ww/en/view/86299299
Warranty and Liability
Note The Application Examples are not binding and do not claim to be complete with
regard to configuration, equipment or any contingencies. The Application
Examples do not represent customer-specific solutions. They are only intended
to provide support for typical applications. You are responsible for the correct
operation of the described products. These Application Examples do not relieve
you of the responsibility of safely and professionally using, installing, operating
and servicing equipment. 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 and without prior notice. If there are any
deviations between the recommendations provided in this Application Example
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 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
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.industry.siemens.com.
Table of contents
Warranty and Liability ................................................................................................. 2
Preface .......................................................................................................................... 4
1 Task ..................................................................................................................... 5
2 Solution............................................................................................................... 6
3 Visualization of Energy Data using SIMATIC HMI Basic Panels ................... 7
3.1 Description of the core functionality ..................................................... 7
3.2 Configuring the visualization ................................................................ 8
3.3 Connecting the visualization................................................................. 9
3.4 Visualizing further measuring points .................................................. 10
4 Visualization of Energy Data using SIMATIC HMI Basic Panels (2nd
Generation) ....................................................................................................... 11
4.1 Description of the core functionality ................................................... 11
4.2 Configuring the visualization .............................................................. 15
4.3 Connecting the visualization............................................................... 19
4.4 Visualizing further measuring points .................................................. 20
5 Visualization of Energy Data using SIMATIC HMI Comfort Panels ............ 21
5.1 Description of the core functionality ................................................... 21
5.2 Configuring the visualization .............................................................. 25
Siemens AG 2015 All rights reserved
Preface
Objective of this application
In this application, you learn about the basics of energy data acquisition as well as
the setup of an integrated and logic measuring concept.
The application example is divided into three topic areas.
Documentation is available for each topic area.
The following table shows what topics are described in the respective document.
The document you are currently reading is written in bold letters.
Table 0-1
Document Content
Part 1 Basic Knowledge In this document you learn about the basic
setup of a measuring system for energy
data with SIMATIC components.
Part 2 Programming the Data Acquisition This document mainly discusses
programming the PLC for connecting it to
the visualization.
Furthermore, commissioning the supplied
Copyright Siemens AG 2015 All rights reserved
1 Task
Introduction
The visualization of energy data is performed in the energy management process
as a second step after the energy data acquisition.
2 Solution
Schematic layout
The figure below shows a schematic overview of the most important components of
the solution:
Figure 2-1
Management level
Control level
Data flow
Basic Comfort Runtime
Advanced WinCC V7
Panel Panel
Copyright Siemens AG 2015 All rights reserved
Field level
Advantages
This application offers the following advantages:
uniform visualization of energy data
simple and fast configuration through preprogrammed faceplates
uniform control program for all operating systems
further processing of data with higher-level systems
Scope
This document does not include a description of
programming the energy data acquisition with SIMATIC S7 control components
programming and commissioning SIMATIC S7, SIRIUS and SIMOCODE
components
Assumed knowledge
Basic knowledge of SIMATIC WinCC V7, SIMATIC WinCC (TIA Portal), SIMATIC
Basic Panels, SIMATIC Comfort Panels and SIMATIC S7 control components is
required.
The above figure shows the user interface of the visualization for SIMATIC HMI
Basic Panels.
The faceplate only consists of one screen and displays the following values for the
L1, L2 and L3 phases:
Voltage (PH-PH)
Voltage (PH-N)
Current
Active power
Power factor (Cos Phi)
Table 3-1
N Instruction Note
o.
1. Select the Libraries task card in the TIA
Portal.
2. Open the E2M Energy Data
Monitoring library and navigate to the
Master Copies > HMI > Basic Panel >
Measuring Point 1 folder via the library
tree and open it.
Copyright Siemens AG 2015 All rights reserved
The visualization has now been configured in your device and can be called up by
any screen of the project.
Note Steps 1-4 of Table 3-1 need to be performed for each measuring point to be
visualized.
Note In order to successfully perform this step, the complete control program must
already have been programmed as described in document Part 2
Programming the Data Acquisition.
Procedure
Table 3-2
No. Instruction Note
1. Go to the HMI tags folder and double-
click to open the PLC-Tags_1 tag
table.
The tags are now connected with the control program and the visualization can be
transferred to the operator panel.
Table 3-3
No. Instruction Note
1. If all of the three preconfigured
measuring points from the library have
already been configured, open the PLC
Tags_1 tag table in your project.
4. Now add the process tag from the This ensures that all tags remain
library into the project which you have connected to the correct objects without
renamed in the previous steps. adjusting them manually.
The above figure shows the user interface of the visualization for SIMATIC HMI
Basic Panels (2nd generation).
The visualization can represent the following values for the L1, L2 and L3 phases
as well as a total or average value:
Voltage (PH-PH)
Voltage (PH-N)
Current
Active power
Apparent power
Reactive power
Energy (counter)
Frequency
Power factor (Cos Phi)
Further values (user-defined values)
Figure 4-2
Copyright Siemens AG 2015 All rights reserved
Figure 4-3
Copyright Siemens AG 2015 All rights reserved
The Reset (3) button enables resetting the values represented in Min and Max.
If the Energy screen is open, the energy counters are reset.
The time of the last reset of the values can be read on the right side next to the
Reset button.
The measured values can be updated once via the Update button (4).
If the Auto Update function is activated via the PLC program code, the button is
disabled and PLC Auto Update is shown.
Figure 4-4
Error display
If while reading the measured data an error occurs between the measuring device
and the controller, a message for the operator is displayed at the operator panel.
Figure 4-5
Note For diagnosing the error, you can use the error code at the Error_Location or
Error_Code output of the driver block.
A description of the error codes is available in the document.
Part 2 Programming the Data Acquisition.
Copyright Siemens AG 2015 All rights reserved
Note In order to successfully perform all of these steps, the control program must
already be complete as described in document Part 2 Programming the Data
Acquisition.
Table 4-1
No. Instruction Note
1. Create a new project in TIA Portal or
open an existing project.
2. If no control panel has been configured
yet, add a new HMI control panel (e.g.
KTP900 Basic).
3. Add an HMI connection between the
Basic Panel and the S7 controller.
Copyright Siemens AG 2015 All rights reserved
Procedure
Please perform the following steps in order to configure the visualization.
Table 4-2
No. Instruction Note
1. Select the Libraries task card in the
TIA Portal.
2. Open the E2M Energy Data
Monitoring library and navigate to the
Master Copies > HMI > Basic Panel
(2nd Generation) > Measuring Point 1
folder via the library tree and open it.
All required objects are now configured in your device and can be used.
Note Steps 2-5 of Table 4-2 need to be performed for each measuring point to be
visualized.
It is therefore sensible to group the screens, scripts and tag tables per measuring
point in the project tree.
Figure 4-6
Copyright Siemens AG 2015 All rights reserved
Table 4-5
No. Instruction Note
1. Go to the HMI tags folder and double-
click to open the PLC-Tags_1 tag
table.
Note The tags of tag table Internal Tags need not be connected with the control tag.
Table 4-6
No. Instruction Note
1. If all of the three preconfigured
measuring points from the library have
already been configured, open the PLC
tags tag table and Internal tags of one
of the configured measuring points in
your project.
4. Now add the process tag from the This ensures that all tags remain
library into the project which you have connected to the correct objects without
renamed in the previous steps. adjusting them manually.
The above figure shows the user interface of the visualization for SIMATIC HMI
Comfort Panels.
The visualization can represent the following values for the L1, L2 and L3 phases
as well as a total or average value:
Voltage (PH-PH)
Voltage (PH-N)
Current
Active power
Apparent power
Reactive power
Energy (counter)
Frequency
Power factor (Cos Phi)
Further values (user-defined values)
If a measuring device does not supply all of the measured values that can be
displayed, or if it is a 1-phase measurement, the unused parts of the visualization
are grayed, as shown in the screenshot below.
Figure 5-2
Copyright Siemens AG 2015 All rights reserved
This dynamics of the visualization is achieved by bit masks which the driver block
of the respective measuring device transfers to the visualization.
For more information, please refer to the documentation Part 2 Programming the
Data Acquisition.
Figure 5-3
Copyright Siemens AG 2015 All rights reserved
The Reset (3) button enables resetting the values represented in Min and Max.
If the Energy screen is open, the energy counters are reset.
The time of the last reset of the values can be read on the right side next to the
Reset button.
The Auto Update OFF/ON (4) button is used for activating the automatic update
of the measured values (button pressed). Pressing the button again disables this
function.
If the Auto Update function is activated via the PLC program code, the button is
disabled and PLC Auto Update is shown.
Figure 5-4
If the automatic update of data is disabled, use the Update (5) button to perform a
manual update of the measured values once.
Note When toggling between the screens of the various measured variables, the
values are automatically updated once.
This visualization can also be used for the visualization of energy data on PC
systems with SIMATIC WinCC Runtime Advanced V13.
Error display
If while reading the measured data an error occurs between the measuring device
and the controller, a message for the operator is displayed at the operator panel.
Figure 5-5
Copyright Siemens AG 2015 All rights reserved
Note For diagnosing the error, you can use the error code at the Error_Location or
Error_Code output of the driver block.
A description of the error codes is available in the document.
Part 2 Programming the Data Acquisition.
Note In order to successfully perform all of these steps, the control program must
already be complete as described in document Part 2 Programming the Data
Acquisition.
Table 5-1
No. Instruction Note
1. Create a new project in TIA Portal or
open an existing project.
2. If no control panel has been configured
yet, add a new HMI control panel (e.g.
TP900 Comfort).
3. Add an HMI connection between the
Comfort panel and the S7 controller.
Copyright Siemens AG 2015 All rights reserved
Procedure
Please perform the following steps in order to configure the visualization.
Table 5-2
No. Instruction Note
1. Select the Libraries task card in the
TIA Portal.
2. Open the E2M - Energy Data
Monitoring library and navigate to the
Master Copies > HMI > Comfort Panel
> Measuring Point 1 folder via the
library tree and open it.
All required objects are now configured in your device and can be used.
Note Steps 3-6 of Table 5-2 need to be performed for each measuring point to be
visualized.
It is therefore sensible to group the screens, scripts and tag tables per measuring
point in the project tree.
Figure 5-6
Copyright Siemens AG 2015 All rights reserved
Table 5-5
No. Instruction Note
1. Go to the HMI tags folder and double-
click to open the PLC-Tags_1 tag
table.
Note The tags of tag table Internal Tags need not be connected with the control tag.
Table 5-6
No. Instruction Note
1. If all of the three preconfigured
measuring points from the library have
already been configured, open the PLC
tags tag table and Internal tags of one
of the configured measuring points in
your project.
Copyright Siemens AG 2015 All rights reserved
6. Now add the process tag from the This ensures that all tags remain
library into the project which you have connected to the correct objects without
renamed in the previous steps. adjusting them manually.
The above figure shows the user interface of the visualization for WinCC V7.
The visualization can represent the following values for the L1, L2 and L3 phases
as well as a total or average value:
Voltage (PH-PH)
Voltage (PH-N)
Current
Active power
Apparent power
Reactive power
Energy (counter)
Frequency
Power factor (Cos Phi)
Further values (user-defined values)
If a measuring device does not supply all of the measured values that can be
displayed, the unused parts are grayed.
This dynamics of the visualization is achieved by bit masks which the driver block
of the respective measuring device transfers to the visualization.
For more information, please refer to the documentation Part 2 Programming the
Data Acquisition.
Figure 6-2
Copyright Siemens AG 2015 All rights reserved
The Reset (3) button enables resetting the values represented in Min and Max.
If the Energy screen is open, the energy counters are reset.
The time of the last reset is displayed at Last Reset.
An automatic update of the measured values can be realized via the Auto
checkbox (4).
If the Auto Update function is activated via the PLC program code, the checkmark
at this checkbox cannot be removed.
Note During the updating of values, an SFB call of the PLC is assigned.
Therefore, you need to ensure that the maximum number of simultaneous SFB
calls is not exceeded.
If the automatic update of data is disabled, use the Update (5) button to perform a
manual update of the measured values.
The Loop view of the faceplate is opened by pressing the button (6).
Error display
If while reading the measured data an error occurs between the measuring device
and the controller, a message for the operator is displayed at the operator panel.
Figure 6-3
Copyright Siemens AG 2015 All rights reserved
Note In order to use these faceplates, it is mandatory to use the Basic Process
Control option in the project to which the faceplates shall be integrated.
Table 6-1
No. Instruction Note
1. Download the
86299299_E2M_Classic.zip file.
2. Unzip the file with a respective program
(e.g. 7zip).
3. Go to the WinCC-Files folder of the
previously unzipped files.
4. Copy all files from the
FACEPLATE_LIB folder into the
Copyright Siemens AG 2015 All rights reserved
Procedure
Please perform the following steps in order to configure the visualization.
Note Ensure that your WinCC project does not use the WinCC Classic design.
This design might cause display problems in runtime.
Table 6-2
No. Instruction Note
1. Open the @Template_E2M.pdl screen
in the Graphics Designer.
Note In order to successfully perform all of these steps, the control program must
already be complete as described in document Part 2 Programming the Data
Acquisition.
Table 6-3
No. Instruction Note
1. In the Simatic Manager you select the
WinCC station on which the energy data
shall be visualized.
2. In the context menu, you select the
Compile option.
Copyright Siemens AG 2015 All rights reserved
Procedure
Perform the following steps to connect the visualization with the data block of the
controller.
Copyright Siemens AG 2015 All rights reserved
Table 6-4
No. Instruction Note
1. Select the faceplate copied in
Chapter 5.2 into your screen.
Table 7-2
No. Action Remark
1. Start Runtime on the operator panel.
2. Tap on one of both product graphics.
Copyright Siemens AG 2015 All rights reserved
7.2.2 Operating the demo application for SIMATIC HMI Comfort Panels
Table 7-3
No. Action Remark
1. Start Runtime on the operator panel.
2. Tap on one of both product graphics.
9 History
Siemens AG 2015 All rights reserved
Table 9-1
Version Date Modifications
V1.0 02/2014 First version
V1.1 07/2014 SIRIUS control devices added.
Updating to TIA Portal V13
V2.0 10/2014 SIRIUS 3RW44 added.
Visualization for Basic panels (2nd generation) added.
Various changes and bug fixes
V2.1 07/2015 3VA molded case circuit breakers added.
Updating to TIA Portal V13 SP1.