Você está na página 1de 44

Application Description 07/2015

Measuring and Visualizing


Energy Data
Visualizing the Energy Data (Part 3/3)

https://support.industry.siemens.com/cs/ww/en/view/86299299
Warranty and Liability

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

deficiency or breach of a condition which goes to the root of the contract


(wesentliche Vertragspflichten). The compensation for damages due to a breach
of a fundamental contractual obligation is, 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 in the burden of proof to your disadvantage.
Any form of duplication or distribution of these Application Examples or excerpts
hereof is prohibited without the expressed consent of Siemens Industry Sector.

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.

Measuring and Visualizing Energy Data


Entry ID:86299299, V2.1, 07/2015 2
Table of contents

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

5.3 Connecting the visualization............................................................... 29


5.4 Visualizing further measuring points .................................................. 30
6 Visualizing the Energy Data using WinCC V7 .............................................. 32
6.1 Description of the core functionality ................................................... 32
6.2 Configuring the visualization .............................................................. 35
6.3 Connecting the visualization............................................................... 37
7 Operation of the Application .......................................................................... 41
7.1 Operating the demo application for WinCC V7 .................................. 41
7.2 Operating the demo application for SIMATIC HMI Basic Panels
and SIMATIC HMI Comfort Panels .................................................... 42
7.2.1 Operating the demo application for SIMATIC HMI Basic Panels ....... 42
7.2.2 Operating the demo application for SIMATIC HMI Comfort
Panels................................................................................................. 43
8 Links & Literature ............................................................................................ 44
9 History............................................................................................................... 44

Measuring and Visualizing Energy Data


Entry ID:86299299, V2.1, 07/2015 3
Preface

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

demo application is described.


Part 3 Visualizing the Energy Data This document mainly discusses the
configuration of the visualization. Operating
the supplied faceplates and demo
applications is also explained in this
document.

Measuring and Visualizing Energy Data


Entry ID:86299299, V2.1, 07/2015 4
1 Task

1 Task
Introduction
The visualization of energy data is performed in the energy management process
as a second step after the energy data acquisition.

Overview of the automation task


The figure below provides an overview of the automation task.
Figure 1-1

Measuring Visualizing Analyzing Managing

Transparency of your Acquisition and Analyzing and


Comprehensive
consumption representation of monitoring the
energy management
energy energy
Copyright Siemens AG 2015 All rights reserved

Description of the automation task


In order to make the recorded energy data available to the operator or energy
manager, the data needs to be visualized in a meaningful and clear representation.
Irrespective of the operating device or PC system, it is helpful if the operation of the
visualization is uniform and consistent.
Only a good visualization can reach the staff and create awareness for the energy
efficiency of the plant.

Measuring and Visualizing Energy Data


Entry ID:86299299, V2.1, 07/2015 5
2 Solution

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.

Measuring and Visualizing Energy Data


Entry ID:86299299, V2.1, 07/2015 6
3 Visualization of Energy Data using SIMATIC HMI Basic Panels
3.1 Description of the core functionality

3 Visualization of Energy Data using


SIMATIC HMI Basic Panels
3.1 Description of the core functionality
Overview and description of the user interface
Figure 3-1
Copyright Siemens AG 2015 All rights reserved

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)

Operating the user interface


The Update button is used for updating the displayed measured values.
When the auto update is performed via the control program, PLC Auto Update
appears and the Update button is deactivated.

Measuring and Visualizing Energy Data


Entry ID:86299299, V2.1, 07/2015 7
3 Visualization of Energy Data using SIMATIC HMI Basic Panels
3.2 Configuring the visualization

3.2 Configuring the visualization


Procedure
Please perform the following steps in order to configure the faceplate.

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

3. Select the Energy_Data_1 entry and


use drag&drop to move the entry into the
Screens folder of the target device (e.g.:
KTP600 Basic)

4. Select the PLC_Tags_1 entry and


move the entry into the HMI-tags
folder of the target device via
drag&drop.

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.

Measuring and Visualizing Energy Data


Entry ID:86299299, V2.1, 07/2015 8
3 Visualization of Energy Data using SIMATIC HMI Basic Panels
3.3 Connecting the visualization

3.3 Connecting the visualization


Perform the following steps to connect the visualization with the data block of the
controller.

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.

Note: if the preconfigured name of the


Copyright Siemens AG 2015 All rights reserved

HMI connection and the data block


differs from the actually configured
name, the connection and the PLC tag
in the tag table are shaded in red.
2. If necessary, adjust the name of the
HMI connection and adopt it for all tags
in this tag table.
3. If necessary, adjust the name of the
data block which supplies the values for
the visualization from the controller.

Note: the Search & Replace function


helps saving a lot of time here.

The tags are now connected with the control program and the visualization can be
transferred to the operator panel.

Measuring and Visualizing Energy Data


Entry ID:86299299, V2.1, 07/2015 9
3 Visualization of Energy Data using SIMATIC HMI Basic Panels
3.4 Visualizing further measuring points

3.4 Visualizing further measuring points


General
As a standard you find three preconfigured measuring points in the library.
If further measuring points shall be visualized, various steps need to be performed
in order to start them up correctly.
Please perform the following steps in order to configure further measuring points.

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.

2. Change tag name for all tags which are


Copyright Siemens AG 2015 All rights reserved

part of the measuring point.


All of the locations where this tag is
used are then automatically updated.

You can, for example, replace the *_1


suffix at the end of each tag of
measuring point 1 with *_01.

Note: using the Search & Replace


function considerably facilitates work
here.
3. Also perform the previous step for the
Energy_Data_1 screen of the
respective measuring point.

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.

Measuring and Visualizing Energy Data


Entry ID:86299299, V2.1, 07/2015 10
4 Visualization of Energy Data using SIMATIC HMI Basic Panels (2nd Generation)
4.1 Description of the core functionality

4 Visualization of Energy Data using


SIMATIC HMI Basic Panels (2nd
Generation)
4.1 Description of the core functionality
Overview and description of the user interface
Figure 4-1
Copyright Siemens AG 2015 All rights reserved

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)

If it is a 1-phase measurement, the unused parts of the visualization are grayed, as


shown in the screenshot below.

Measuring and Visualizing Energy Data


Entry ID:86299299, V2.1, 07/2015 11
4 Visualization of Energy Data using SIMATIC HMI Basic Panels (2nd Generation)
4.1 Description of the core functionality

Figure 4-2
Copyright Siemens AG 2015 All rights reserved

Operating the user interface


The navigation bar in the bottom screen section (1) enables navigating between
the measured values.
The drop-down list in the upper screen section (2) enables toggling between the
following views:
Standard (representation of values)
Unit (overview screen for setting the units)

Measuring and Visualizing Energy Data


Entry ID:86299299, V2.1, 07/2015 12
4 Visualization of Energy Data using SIMATIC HMI Basic Panels (2nd Generation)
4.1 Description of the core functionality

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

Note During the update of the values, an SFB call is assigned.


Please note the maximum number of simultaneous SFB calls of your PLC.

Measuring and Visualizing Energy Data


Entry ID:86299299, V2.1, 07/2015 13
4 Visualization of Energy Data using SIMATIC HMI Basic Panels (2nd Generation)
4.1 Description of the core functionality

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

Measuring and Visualizing Energy Data


Entry ID:86299299, V2.1, 07/2015 14
4 Visualization of Energy Data using SIMATIC HMI Basic Panels (2nd Generation)
4.2 Configuring the visualization

4.2 Configuring the visualization


Preparation
Please perform the following steps for preparing the visualization:

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.

Measuring and Visualizing Energy Data


Entry ID:86299299, V2.1, 07/2015 15
4 Visualization of Energy Data using SIMATIC HMI Basic Panels (2nd Generation)
4.2 Configuring the visualization

No. Instruction Note


3. Select the Copy of 2 HMI Tag Tables
entry and use drag&drop to move the
entry into the HMI-tags folder of the
target device (e.g.: KTP900 Basic)

4. The configuration was optimized for


KTP900 Basic, however, it can be
adjusted to almost any display size.

Therefore, check prior to copying


whether the Fit to screen option has
been activated in Options > Settings >
Visualization > Resize screen of the
Copyright Siemens AG 2015 All rights reserved

TIA Portal settings.

5. Select the Copy of 11 Screens entry of


the library and use drag&drop to move
the entry into the Screens folder of the
target device.

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.

Measuring and Visualizing Energy Data


Entry ID:86299299, V2.1, 07/2015 16
4 Visualization of Energy Data using SIMATIC HMI Basic Panels (2nd Generation)
4.2 Configuring the visualization

Calling the visualization


Table 4-3
No. Instruction Note
1. Add a new screen to the project or go to
a screen from where the visualization of
energy data shall be called.
2. Add a new object to this screen or go to
its object whose event shall call the
visualization of energy data.
3. At an event of this object you configure
the ActivateScreen function

4. Define one of the previously added


screens as screen name for this
function (e.g. U_PH_PH_1).
Copyright Siemens AG 2015 All rights reserved

Close the visualization


Table 4-4
No. Instruction Note
1. Open the screen template Energy Data
Monitoring_1 in the project tree at
Screen management > Templates.

2. Select the invisible Close button


3. Select any screen for the Screen
name (e.g. Main) of the configured
ActivateScreen event.

Visualizing user-defined measured values


For user-defined measured values which are not intended in the standard
visualization, there is the Additional values screen.
In this screen, up to 12 further values can be visualized.
Since it cannot be predicted which units these values are based on, these units
must be directly configured in the AddValues screen.
Dynamic switch-over of the unit is not intended for this measured value.

Measuring and Visualizing Energy Data


Entry ID:86299299, V2.1, 07/2015 17
4 Visualization of Energy Data using SIMATIC HMI Basic Panels (2nd Generation)
4.2 Configuring the visualization

Figure 4-6
Copyright Siemens AG 2015 All rights reserved

Measuring and Visualizing Energy Data


Entry ID:86299299, V2.1, 07/2015 18
4 Visualization of Energy Data using SIMATIC HMI Basic Panels (2nd Generation)
4.3 Connecting the visualization

4.3 Connecting the visualization


Procedure
Perform the following steps to connect the visualization with the data block of the
controller.

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: if the preconfigured name of the


HMI connection and the data block
differs from the actually configured
name, the connection and the PLC tag
in the tag table are shaded in red.
2. If necessary, adjust the name of the
HMI connection and adopt it for all tags
in this tag table.
Copyright Siemens AG 2015 All rights reserved

3. If necessary, adjust the name of the


data block which supplies the values for
the visualization from the controller.

Note: the Search & Replace function


helps saving a lot of time here.

Note The tags of tag table Internal Tags need not be connected with the control tag.

Measuring and Visualizing Energy Data


Entry ID:86299299, V2.1, 07/2015 19
4 Visualization of Energy Data using SIMATIC HMI Basic Panels (2nd Generation)
4.4 Visualizing further measuring points

4.4 Visualizing further measuring points


As a standard you find three preconfigured measuring points in the library.
If further measuring points shall be visualized, various steps need to be performed
in order to start them up correctly.
Please perform the following steps in order to configure further measuring points.

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.

2. Change tag name for all tags which are


part of the measuring point.
Copyright Siemens AG 2015 All rights reserved

All of the locations where this tag is


used are then automatically updated.

You can, for example, replace the *_1


suffix at the end of each tag of
measuring point 1 with *_01.

Note: using the Search & Replace


function considerably facilitates work
here.
3. Also perform the previous step for all
screens and screen templates of this
measuring point.

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 procedure for adding a new


measuring point is described from
Chapter 4.2 on.

Measuring and Visualizing Energy Data


Entry ID:86299299, V2.1, 07/2015 20
5 Visualization of Energy Data using SIMATIC HMI Comfort Panels
5.1 Description of the core functionality

5 Visualization of Energy Data using


SIMATIC HMI Comfort Panels
5.1 Description of the core functionality
Overview and description of the user interface
Figure 5-1
Copyright Siemens AG 2015 All rights reserved

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.

Measuring and Visualizing Energy Data


Entry ID:86299299, V2.1, 07/2015 21
5 Visualization of Energy Data using SIMATIC HMI Comfort Panels
5.1 Description of the core functionality

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.

Operating the user interface


The navigation bar in the bottom screen section (1) enables navigating between
the measured values.
The drop-down list in the upper screen section (2) enables toggling between the
following views:
Standard (representation of values with gauges)
Trend (representation of values in a trend display)
Unit (overview screen for setting the units)

Measuring and Visualizing Energy Data


Entry ID:86299299, V2.1, 07/2015 22
5 Visualization of Energy Data using SIMATIC HMI Comfort Panels
5.1 Description of the core functionality

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

Note During the update of the values, an SFB call is assigned.


Please note the maximum number of simultaneous SFB calls of your PLC.

Measuring and Visualizing Energy Data


Entry ID:86299299, V2.1, 07/2015 23
5 Visualization of Energy Data using SIMATIC HMI Comfort Panels
5.1 Description of the core functionality

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.

Measuring and Visualizing Energy Data


Entry ID:86299299, V2.1, 07/2015 24
5 Visualization of Energy Data using SIMATIC HMI Comfort Panels
5.2 Configuring the visualization

5.2 Configuring the visualization


Preparation
Please perform the following steps for preparing the visualization:

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.

Measuring and Visualizing Energy Data


Entry ID:86299299, V2.1, 07/2015 25
5 Visualization of Energy Data using SIMATIC HMI Comfort Panels
5.2 Configuring the visualization

No. Instruction Note


3. Select the Copy of 2 HMI Tag Tables
entry and use drag&drop to move the
entry into the HMI-tags folder of the
target device (e.g.: TP900 Comfort)

4. Select the Copy of 10 VB scripts entry


of the library and use drag&drop to
move the entry into the VB scripts
folder of the target device.
Copyright Siemens AG 2015 All rights reserved

5. The configuration was optimized for


TP900 Comfort, however, it can be
adjusted to almost any display size.

Therefore, check prior to copying


whether the Fit to screen option has
been activated in Options > Settings >
Visualization > Resize screen of the
TIA Portal settings.

6. Select the Copy of 19 Screens entry of


the library and use drag&drop to move
the entry into the Screens folder of the
target device.

Note: when changing the screen name


after copying into the project, you need
to also enter this change in the
ChangeView_1 script.

All required objects are now configured in your device and can be used.

Measuring and Visualizing Energy Data


Entry ID:86299299, V2.1, 07/2015 26
5 Visualization of Energy Data using SIMATIC HMI Comfort Panels
5.2 Configuring the visualization

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.

Calling the visualization


Table 5-3
No. Instruction Note
1. Add a new screen to the project or go to
a screen from where the visualization of
energy data shall be called.
2. Add a new object to this screen or go to
its object whose event shall call the
visualization of energy data.
3. At an event of this object you configure
the ActivateScreen function
Copyright Siemens AG 2015 All rights reserved

4. Define one of the previously added


screens as screen name for this
function (e.g. U_PH_PH_1).

Close the visualization


Table 5-4
No. Instruction Note
1. Open the screen template Energy Data
Monitoring_1 in the project tree at
Screen management > Templates.

2. Select the invisible Close button


3. Select any screen for the Screen
name (e.g. Main) of the configured
ActivateScreen event.

Measuring and Visualizing Energy Data


Entry ID:86299299, V2.1, 07/2015 27
5 Visualization of Energy Data using SIMATIC HMI Comfort Panels
5.2 Configuring the visualization

Visualizing user-defined measured values


For user-defined measured values which are not intended in the standard
visualization, there is the Additional values screen.
In this screen, up to 12 further values can be visualized.
Since it cannot be predicted which units these values are based on, these units
must be directly configured in the AddValues screen.
Dynamic switch-over of the unit is not intended for this measured value.

Figure 5-6
Copyright Siemens AG 2015 All rights reserved

Measuring and Visualizing Energy Data


Entry ID:86299299, V2.1, 07/2015 28
5 Visualization of Energy Data using SIMATIC HMI Comfort Panels
5.3 Connecting the visualization

5.3 Connecting the visualization


Procedure
Perform the following steps to connect the visualization with the data block of the
controller.

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: if the preconfigured name of the


HMI connection and the data block
differs from the actually configured
name, the connection and the PLC tag
in the tag table are shaded in red.
2. If necessary, adjust the name of the
HMI connection and adopt it for all tags
in this tag table.
Copyright Siemens AG 2015 All rights reserved

3. If necessary, adjust the name of the


data block which supplies the values for
the visualization from the controller.

Note: the Search & Replace function


helps saving a lot of time here.

Note The tags of tag table Internal Tags need not be connected with the control tag.

Measuring and Visualizing Energy Data


Entry ID:86299299, V2.1, 07/2015 29
5 Visualization of Energy Data using SIMATIC HMI Comfort Panels
5.4 Visualizing further measuring points

5.4 Visualizing further measuring points


General
As a standard you find three preconfigured measuring points in the library.
If further measuring points shall be visualized, various steps need to be performed
in order to start them up correctly.
Please perform the following steps in order to configure further measuring points.

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

2. Change tag name for all tags which are


part of the measuring point.
All of the locations where this tag is
used are then automatically updated.

You can, for example, replace the *_1


suffix at the end of each tag of
measuring point 1 with *_01.

Note: using the Search & Replace


function considerably facilitates work
here.
3. Also perform the previous step for all
screens, scripts and screen templates
of this measuring point.

4. Open the ChangeView VB script,


which is part of this measuring point,
and adjust the screen name according
to the changes in the previous step.

Measuring and Visualizing Energy Data


Entry ID:86299299, V2.1, 07/2015 30
5 Visualization of Energy Data using SIMATIC HMI Comfort Panels
5.4 Visualizing further measuring points

No. Instruction Note


5. Open the ResetValues VB script,
which is part of this measuring point,
and adjust the screen name according
to the changes in the previous step.

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 procedure for adding a new


measuring point is described from
Chapter 5.2 on.
Copyright Siemens AG 2015 All rights reserved

Measuring and Visualizing Energy Data


Entry ID:86299299, V2.1, 07/2015 31
6 Visualizing the Energy Data using WinCC V7
6.1 Description of the core functionality

6 Visualizing the Energy Data using


WinCC V7
6.1 Description of the core functionality
Overview and description of the user interface
Figure 6-1
Copyright Siemens AG 2015 All rights reserved

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.

Measuring and Visualizing Energy Data


Entry ID:86299299, V2.1, 07/2015 32
6 Visualizing the Energy Data using WinCC V7
6.1 Description of the core functionality

Operating the user interface


The navigation bar in the bottom screen section (1) enables navigating between
the measured values.
The drop-down list in the upper screen section (2) enables toggling between the
following views:
Standard (representation of values with gauges)
Trend (representation of values in a trend display)
Unit (overview screen for setting the units)

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.

Measuring and Visualizing Energy Data


Entry ID:86299299, V2.1, 07/2015 33
6 Visualizing the Energy Data using WinCC V7
6.1 Description of the core functionality

Figure 6-3
Copyright Siemens AG 2015 All rights reserved

Measuring and Visualizing Energy Data


Entry ID:86299299, V2.1, 07/2015 34
6 Visualizing the Energy Data using WinCC V7
6.2 Configuring the visualization

6.2 Configuring the visualization


Preparation
Perform the following steps in order to copy the required data into your project.

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

GraCs folder of your WinCC project.


5. Copy all files from the FCT_LIB folder
into the aplib folder in the installation
directory of WinCC.
6. Open the WinCC project into which the
application code shall be integrated.
7. Open the Global Script Editor and
regenerate all header files

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.

Measuring and Visualizing Energy Data


Entry ID:86299299, V2.1, 07/2015 35
6 Visualizing the Energy Data using WinCC V7
6.2 Configuring the visualization

Table 6-2
No. Instruction Note
1. Open the @Template_E2M.pdl screen
in the Graphics Designer.

2. Mark a suitable object in the screen and


select the Copy option via the context
menu.

3. Add the previously copied object into a


Copyright Siemens AG 2015 All rights reserved

screen of your choice.

Measuring and Visualizing Energy Data


Entry ID:86299299, V2.1, 07/2015 36
6 Visualizing the Energy Data using WinCC V7
6.3 Connecting the visualization

6.3 Connecting the visualization


Preparation
Please perform the following steps for preparing the connection of the visualization
to the process tags:

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

3. The wizard for the OS compilation


opens.
Click the Next button to acknowledge.

4. Check whether your settings match


those in the right-hand screenshot and
continue by pressing the Next button.

Measuring and Visualizing Energy Data


Entry ID:86299299, V2.1, 07/2015 37
6 Visualizing the Energy Data using WinCC V7
6.3 Connecting the visualization

No. Instruction Note


5. Start the OS compilation by pressing
the Compile button.

6. Wait until the compilation was


completed and the right-hand window
appears.
Confirm this message by clicking the
OK button.

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.

2. Open the Dynamic Wizard and go to the


Standard Dynamics tab.

Measuring and Visualizing Energy Data


Entry ID:86299299, V2.1, 07/2015 38
6 Visualizing the Energy Data using WinCC V7
6.3 Connecting the visualization

No. Instruction Note


3. Select the Connect picture block to tag
structure function in the Dynamic
Wizard and double-click to acknowledge
the selection.

4. The Dynamic Wizard opens a new


window.
Continue by pressing the Next button.
Copyright Siemens AG 2015 All rights reserved

5. Then click on the button.

6. The dialog for selecting the PLC tags


opens.

Measuring and Visualizing Energy Data


Entry ID:86299299, V2.1, 07/2015 39
6 Visualizing the Energy Data using WinCC V7
6.3 Connecting the visualization

No. Instruction Note


7. Navigate to the List of all structure
instances via the tree structure in the
left window pane.

8. Then select a structure instance in the


right window pane and acknowledge the
selection by pressing OK.
Copyright Siemens AG 2015 All rights reserved

9. The wizard finally shows the selected


structure.
Click the Next button to continue.

10. Close the Dynamics dialog by pressing


the Finish button.

11. The faceplate is now connected with the


data structure.

Measuring and Visualizing Energy Data


Entry ID:86299299, V2.1, 07/2015 40
7 Operation of the Application
7.1 Operating the demo application for WinCC V7

7 Operation of the Application


7.1 Operating the demo application for WinCC V7
Table 7-1
No. Action Remark
1. Start WinCC Runtime.
The right-hand start screen appears.

2. The miniature view of the faceplate already


displays three important energy values of the
measuring point.
Copyright Siemens AG 2015 All rights reserved

3. Click on the miniature view of the faceplate to


open the instance.

4. Press the X button to close the instance of


the faceplate again.

Measuring and Visualizing Energy Data


Entry ID:86299299, V2.1, 07/2015 41
7 Operation of the Application
7.2 Operating the demo application for SIMATIC HMI Basic Panels and SIMATIC HMI Comfort
Panels

7.2 Operating the demo application for SIMATIC HMI Basic


Panels and SIMATIC HMI Comfort Panels
7.2.1 Operating the demo application for SIMATIC HMI Basic Panels

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

3. The visualization of the energy data is opened.

4. Use the Update button to update the values.

5. Press the X button to close the visualization


of energy data.

Measuring and Visualizing Energy Data


Entry ID:86299299, V2.1, 07/2015 42
7 Operation of the Application
7.2 Operating the demo application for SIMATIC HMI Basic Panels and SIMATIC HMI Comfort
Panels

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.

3. The visualization of the energy data is opened.


Copyright Siemens AG 2015 All rights reserved

4. Use the Update button to update the values


once.
Alternatively, you can activate the continuous
update of the data.

5. Press the X button to close the visualization


of energy data.

Measuring and Visualizing Energy Data


Entry ID:86299299, V2.1, 07/2015 43
8 Links & Literature

8 Links & Literature


This list is by no means complete and only presents a selection of suitable
information.
Table 8-1
Topic Title
\1\ Link to this https://support.industry.siemens.com/cs/ww/en/view/86299299
document
\2\ Siemens Industry http://support.industry.siemens.com
Online Support
\3\ Energy www.siemens.de/simatic/energy-management
management with
SIMATIC
\4\ Energy https://support.industry.siemens.com/cs/de/en/view/68043160
management in
the Industry
Online Support
\5\ SIMATIC HMI in https://support.industry.siemens.com/cs/de/en/view/93907092
the Industry
Online Support

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.

Measuring and Visualizing Energy Data


Entry ID:86299299, V2.1, 07/2015 44

Você também pode gostar