Académique Documents
Professionnel Documents
Culture Documents
Legal information
Use of application examples
Application examples illustrate the solution of automation tasks through an interaction of several
components in the form of text, graphics and/or software modules. The application examples are
a free service by Siemens AG and/or a subsidiary of Siemens AG (“Siemens”). They are non-
binding and make no claim to completeness or functionality regarding configuration and
equipment. The application examples merely offer help with typical tasks; they do not constitute
customer-specific solutions. You yourself are responsible for the proper and safe operation of the
products in accordance with applicable regulations and must also check the function of the
respective application example and customize it for your system.
Siemens grants you the non-exclusive, non-sublicensable and non-transferable right to have the
application examples used by technically trained personnel. Any change to the application
examples is your responsibility. Sharing the application examples with third parties or copying the
application examples or excerpts thereof is permitted only in combination with your own products.
The application examples are not required to undergo the customary tests and quality inspections
of a chargeable product; they may have functional and performance defects as well as errors. It is
your responsibility to use them in such a manner that any malfunctions that may occur do not
result in property damage or injury to persons.
Disclaimer of liability
Siemens shall not assume any liability, for any legal reason whatsoever, including, without
limitation, liability for the usability, availability, completeness and freedom from defects of the
application examples as well as for related information, configuration and performance data and
any damage caused thereby. This shall not apply in cases of mandatory liability, for example
under the German Product Liability Act, or in cases of intent, gross negligence, or culpable loss of
life, bodily injury or damage to health, non-compliance with a guarantee, fraudulent
non-disclosure of a defect, or culpable breach of material contractual obligations. Claims for
damages arising from a breach of material contractual obligations shall however be limited to the
Siemens AG 2018 All rights reserved
foreseeable damage typical of the type of agreement, unless liability arises from intent or gross
negligence or is based on loss of life, bodily injury or damage to health. The foregoing provisions
do not imply any change in the burden of proof to your detriment. You shall indemnify Siemens
against existing or future claims of third parties in this connection except where Siemens is
mandatorily liable.
By using the application examples you acknowledge that Siemens cannot be held liable for any
damage beyond the liability provisions described.
Other information
Siemens reserves the right to make changes to the application examples at any time without
notice. In case of discrepancies between the suggestions in the application examples and other
Siemens publications such as catalogs, the content of the other documentation shall have
precedence.
The Siemens terms of use (https://support.industry.siemens.com) shall also apply.
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 customer’s exposure to cyber
threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed
at: https://www.siemens.com/industrialsecurity.
S7 EE Monitor
Entry ID: 109753230, V2.0, 10/2018 2
Table of contents
Table of contents
Legal information ......................................................................................................... 2
1 Introduction ........................................................................................................ 4
1.1 Overview............................................................................................... 4
1.2 Principle of operation............................................................................ 4
1.2.1 Blocks ................................................................................................... 4
1.2.2 Visualization of energy data ................................................................. 7
1.3 Components used ................................................................................ 8
1.4 Providing data ...................................................................................... 8
2 Engineering PLC .............................................................................................. 10
2.1 Hardware setup (example) ................................................................. 10
2.2 Project Planning ................................................................................. 11
2.2.1 Requirements ..................................................................................... 11
2.2.2 Handling the library ............................................................................ 11
2.2.3 Configuring the data block " EnS_EEm_OEM" .................................. 15
2.2.4 "EnS_EEm_ComEnMPRO" communication block............................. 17
2.2.5 Configuration in the data block ........................................................... 18
2.3 Troubleshooting .................................................................................. 22
3 Engineering HMI .............................................................................................. 23
3.1 Procedure ........................................................................................... 23
3.2 Visualization of "EE@Industry Profile" ............................................... 29
Siemens AG 2018 All rights reserved
S7 EE Monitor
Entry ID: 109753230, V2.0, 10/2018 3
1 Introduction
1 Introduction
1.1 Overview
Energy efficiency plays an important role in today's world. Using the S7 energy
efficiency monitor (S7 EE-monitor for short), you can record and analyze the
consumption of the media used (compressed air, electrical energy or heating gas)
by your machine with a SIMATIC controller. The S7 EE-monitor calculates the
average power and actual value, the distribution of energy and the requirements of
the media used per produced piece good for each machine state.
This enables you to detect potential for savings and to improve processes. By
saving resources, you can save money and protect the environment.
This application example shows you how to set up the S7 energy efficiency monitor
and display the evaluation on an HMI device.
1.2.1 Blocks
The following blocks are provided in the SIMATIC Energy Suite V15 for recording
energy efficiency:
"EnS_EEm_Calc"
"Ens_EEm_Report"
The blocks are available in the TIA Portal under "Instructions:"
Figure 1-1 Energy Efficiency Blocks
S7 EE Monitor
Entry ID: 109753230, V2.0, 10/2018 4
1 Introduction
Machine manufacturers can integrate this function into their machines to automate
the generation of the energy and media requirements as an acceptance form in
SIMATIC HMI and Excel.
Note The blocks can be integrated preliminarily into the program without a license.
"EnS_EEm_Calc"
The block records the energy and media requirements for the energetic modes
"off", "standby", "powering up", "operational" and "working".
Functions:
Record typical power consumption as reference values for the energetic states.
Record energy and media requirements for each mode.
Calculate energy performance indicators (EnPI).
The operation as well as the individual functions of the "S7 EE-Monitor" are
explained in chapter 5.
Power ranges:
The block calculates the energy requirement and average power of the respective
mode as well as the total energy requirement for up to eight operating modes. A
Siemens AG 2018 All rights reserved
Note Additional information on the energetic states of a production machine and the
energy performance indicators can be found in chapter 7.
"EnS_EEm_Report"
By request, the "EnS_EEm_Report" block creates a log file with the average power
values as a CSV file. The file is saved on the SIMATIC memory card of the
controller.
You can use the "EnS_EEm_report.xlsx" (Figure 1-2) measurement log to evaluate
the .csv file and create a measurement log that complies with the technical rules of
VDMA 34179.
Note To use the blocks, you need the following license. See chapter 1.3.
S7 EE Monitor
Entry ID: 109753230, V2.0, 10/2018 5
1 Introduction
"EnS_EEm_ComEnMPRO"
The block establishes communication with the "Energy Manager PRO". In this way,
the processed energy data can be archived higher in the "Energy Manager Pro".
Chapter 2.2.4 explains the functionality and the engineering.
Siemens AG 2018 All rights reserved
Figure 1-3
S7 EE Monitor
Entry ID: 109753230, V2.0, 10/2018 6
1 Introduction
To see how to configure visualization on your HMI device, please refer to chapter
2.2.4.
S7 EE Monitor
Entry ID: 109753230, V2.0, 10/2018 7
1 Introduction
The following components are provided on the entry page for this application
example:
Table 1-2
Components File name Note
Example project 109753230_S7EEmVisu_V15.zip Example project to test
the S7 EE-monitor
Library 109753230_LS7EEmVisu_V15.zip The library includes the
visualization
Documentation 109753230_S7EE-Monitor_Doc_de.pdf This documentation
Excel template 109753230_S7EEm_EnergyReport.xlsm Template for creating
"Report" the energy efficiency
report
S7 EE Monitor
Entry ID: 109753230, V2.0, 10/2018 8
1 Introduction
S7 EE Monitor
Entry ID: 109753230, V2.0, 10/2018 9
2 Engineering PLC
2 Engineering PLC
2.1 Hardware setup (example)
The example system consists of various devices that can output and store energy
values. By using an AI Energy Meter 480V, it is possible to measure energy
consumption through distributed I/Os.
This application example makes use of the following process tags:
Table 2-1
No. Process tag Medium
CoolingWater
Siemens AG 2018 All rights reserved
ElectricalEnergy CompressedAir
SpeedAxis
In this example, the system has a total of 4 process tags. The measured data of
the process tags 2-4 is provided in form of a data block. In this application
example, the data is collected in the data block "EnS_EEm_OEM".
The individual process tags are assigned random values for demonstration
purposes.
The consumption of used media should be evaluated and the energy efficiency
displayed. A 9-inch "SIMATIC Comfort Panel" is used for the visualization.
In a "SIMATIC S7 CPU 1512", the "S7 EE-Monitor" will collect the required data
and transfer it to the SIMATIC Panel. Energy efficiency is displayed via the "S7 EE-
Monitor" visualization.
This chapter describes how you have to parameterize the controller in order to
commission and configure the "S7 EE-monitor".
S7 EE Monitor
Entry ID: 109753230, V2.0, 10/2018 10
2 Engineering PLC
The energy data can, for example, be taken from energy objects from the "Energy
Suite". However, the "SIMATIC Energy Suite" is not a prerequisite for using the "S7
EE-monitor".
2.2.1 Requirements
Using the supplied library, you can import the visualization into your existing
WinCC HMI device. Follow these steps:
1. Download the library from the article page.
https://support.industry.siemens.com/cs/ww/en/view/109753230
2. Open the library "LS7EEmVisu_V15" in the TIA Portal.
3. Copy the control program from the "Copy templates> S7EE-Monitor> 01_PLC"
folder to the "Program blocks" folder of your controller using drag & drop.
Figure 2-2
S7 EE Monitor
Entry ID: 109753230, V2.0, 10/2018 11
2 Engineering PLC
Figure 2-3
S7 EE Monitor
Entry ID: 109753230, V2.0, 10/2018 12
2 Engineering PLC
S7 EE Monitor
Entry ID: 109753230, V2.0, 10/2018 13
2 Engineering PLC
Note:
The states can be freely defined
(Location:
"EnS_EEm_OEM>static>statConfigMachine>
eStateName)"
Note The blocks for calculating as well as generating the report can be found directly
in the "S7 instructions" in the TIA Portal as of TIA Portal Version V15.
Siemens AG 2018 All rights reserved
The blocks are already included in the FB "EnS_EEm_OEM" and do not have to
be added additionally.
S7 EE Monitor
Entry ID: 109753230, V2.0, 10/2018 14
2 Engineering PLC
2
Siemens AG 2018 All rights reserved
2. Enter the information of your machine and the 20 digit license key. (Item 1)
3. In the eStateName array (item 2), default values are preset for the states. To
change these, assign different values for the individual states in the DB.
For information on the energetic states according to "VDMA", please refer to
chapter 7.2.
S7 EE Monitor
Entry ID: 109753230, V2.0, 10/2018 15
2 Engineering PLC
More information about the tags is provided in the comments field or in the TIA
Portal help.
inputType (int) 1 1 1 1
inputType – values
1: Energy counter value
2: Power value
S7 EE Monitor
Entry ID: 109753230, V2.0, 10/2018 16
2 Engineering PLC
The "S7 EE-monitor" allows you to pass certain counter values and additional
information regularly to an Energy Manager Pro server via the
"EnS_EEm_ComEnMPRO" block.
The block is "know-how protected".
Requirements
In the control program, the block "EnS_EEm_ComEnMPRO" must be accessed
with an instance DB "EnS_EEm_ComEnMPRO_DB" in a cyclic OB (OB30) and
interconnected as follows:
Figure 2-7
Siemens AG 2018 All rights reserved
The block on the line-side, has the same parameters as the "EnS_EEm_Calc"
block. In addition, it has two parameters required for communication and data
transmission.
S7 EE Monitor
Entry ID: 109753230, V2.0, 10/2018 17
2 Engineering PLC
1
Siemens AG 2018 All rights reserved
1. Under "localPort", select the port address used on the S7-CPU for the
connection in the valid value range from 1 to 49151 (16#BFFF), preferably
3000.
2. Under "remotePort", select the port address used on the EnMPRO server for
the connection in the valid value range from 1 to 49151, preferably 3000.
3. Enter the hardware ID of the local interface under "interfaceID", e.g. for a CPU
S7-1500 64 when connected via port X1.
Note: The hardware interface can be seen in the properties of the CPU under
system constants. It differs depending on the port used.
4. Under "connectionID", set the connection reference on the S7-CPU in the valid
value range from 1 to 4095.
Note: Several connections on an S7-CPU must receive different values.
S7 EE Monitor
Entry ID: 109753230, V2.0, 10/2018 18
2 Engineering PLC
By default, all process tag data is transferred to the "Energy Manager Pro".
If you want to restrict the data to be transferred, change the value of the
"comStateEnable" tag as follows:
Figure 2-8 "comStateEnable" assignment
measOperation[m].energyCounter [0]
measOperation[m].energyCounter [8]
measOperation[m].energyCounterTotal
S7 EE Monitor
Entry ID: 109753230, V2.0, 10/2018 19
2 Engineering PLC
Activate communication
You can use the "enableCommunication" tag to enable or disable the block.
By default, the block is active.
Figure 2-10
S7 EE Monitor
Entry ID: 109753230, V2.0, 10/2018 20
2 Engineering PLC
S7 EE Monitor
Entry ID: 109753230, V2.0, 10/2018 21
2 Engineering PLC
2.3 Troubleshooting
1. No test can be performed in the HMI.
Verify that you have entered a valid license key and an "overflow".
Check the configuration of the process tags in the "OEM" DB. Possible cause:
"inputType" or "Type1Counter" are not defined.
Siemens AG 2018 All rights reserved
S7 EE Monitor
Entry ID: 109753230, V2.0, 10/2018 22
3 Engineering HMI
3 Engineering HMI
The prerequisite for using the visualization is a fully configured controller according
to chapter 2.
With the ready-made visualization, you can make use of all the functions of the S7
EE-monitor. The visualization for the HMI device can be found in the library
"LS7EEmVisu".
Requirements
The "S7 EE-monitor" is already configured on a "SIMATIC S7-1500" or
"SIMATIC S7-1200" controller.
A "SIMATIC TP900 Comfort Panel" has been configured.
An HMI connection to the controller has been configured.
Note The "HMI Template Suite" must be used as template for the HMI device. If this
template is not used, more custom design customization is needed.
You can download the template for your HMI at the following link:
https://support.industry.siemens.com/cs/ww/en/view/91174767
Siemens AG 2018 All rights reserved
3.1 Procedure
The visualization is zipped into a library so you can easily integrate it into a project
of your choice.
1. Download the library from the entry page.
https://support.industry.siemens.com/cs/ww/en/view/109753230
2. Open your project in the TIA Portal.
3. Open the library "LS7EEmVisu" with the TIA Portal.
The library contains a folder for controller elements and a folder for the HMI.
Open the folder "Copy templates> S7EE-Monitor> 02_HMI".
S7 EE Monitor
Entry ID: 109753230, V2.0, 10/2018 23
3 Engineering HMI
4. Copy the objects contained in the "02_HMI" folder to the appropriate position in
your HMI device using drag & drop.
Note: For standardization reasons, some sub-folders may be empty. You do
not have to copy these.
Figure 3-2
Siemens AG 2018 All rights reserved
1
3
1
4
2
S7 EE Monitor
Entry ID: 109753230, V2.0, 10/2018 24
3 Engineering HMI
5. To start the tool, copy the button labeled "btnEEm" to any HMI screen.
This button opens the overview page of the tool ("11_EEmOverview").
If you have multiple tools or applications, you can use the "90_ToolsOverview"
summary page. This is in the folder "01_Screens" in the library.
6. Open the "EEmMandatory" table with the tag editor.
7. Click on the "..." button in the "Connection" column and select your connection
to CPU 1512.
8. Do this for all HMI tags in this table.
Siemens AG 2018 All rights reserved
S7 EE Monitor
Entry ID: 109753230, V2.0, 10/2018 25
3 Engineering HMI
10. Start the simulation or load the project onto your HMI device.
11. Click the button to start the "S7 EE-monitor".
Figure 3-4
Siemens AG 2018 All rights reserved
S7 EE Monitor
Entry ID: 109753230, V2.0, 10/2018 26
3 Engineering HMI
Figure 3-5
S7 EE Monitor
Entry ID: 109753230, V2.0, 10/2018 27
3 Engineering HMI
S7 EE Monitor
Entry ID: 109753230, V2.0, 10/2018 28
3 Engineering HMI
Figure 3-8
Copy the element "15_EnergyEEIndustry" as well as the tag table "LiveData" into
your HMI device.
S7 EE Monitor
Entry ID: 109753230, V2.0, 10/2018 29
3 Engineering HMI
4. After you parameterize a valid connection, the data is displayed in the runtime
in the HMI screen "15_EnergyEEIndustry". You can use the visualization.
Siemens AG 2018 All rights reserved
S7 EE Monitor
Entry ID: 109753230, V2.0, 10/2018 30
4 Example project
4 Example project
To test the application example, you can commission the sample project. The
displayed values for the process tags are simulated for the demonstration.
Figure 4-1
Siemens AG 2018 All rights reserved
8. You can now operate the "S7 EE-monitor". Energy data is simulated for the
process tags.
The simulation selects random values for the individual process tags. At the
same time, the produced quantity is counted up and automatically changed
between the individual machine states.
Note: All blocks required for the simulation can be found in the controller in the
folder "Program blocks> Simulation". If you no longer need the simulation,
delete the folder "Simulation".
S7 EE Monitor
Entry ID: 109753230, V2.0, 10/2018 31
5 Operation
5 Operation
To evaluate the energy efficiency you need a valid reference measurement as well
as a load measurement. If both measurements are available, you can use this data
to determine the energy efficiency of your machine. You also get the opportunity to
create an energy efficiency log.
S7 EE Monitor
Entry ID: 109753230, V2.0, 10/2018 32
5 Operation
Note Values are only displayed after the measurement has been completed. While the
measurement is running, the status bar is colored green.
Note Once you have run both measurement types, you can evaluate and analyze the
data.
Start with the reference measurement and then carry out the actual
measurement.
In this HMI screen, you can evaluate the energy efficiency and access the
configuration for efficiency:
S7 EE Monitor
Entry ID: 109753230, V2.0, 10/2018 33
5 Operation
Click on the "Configuration" button to define the "productive energy" and the
efficiency
Figure 5-2 Screen "13_EEMEnPI"
In this screen, you can set which states should be taken into account when
Siemens AG 2018 All rights reserved
2. In the "EnPI" tab, you can select the states that are taken into account when
calculating the "EnPI" value.
3. Click the "Confirm" button to save the new settings.
S7 EE Monitor
Entry ID: 109753230, V2.0, 10/2018 34
5 Operation
Note If you accept a new setting, the existing EnPI calculation will be reset. The old
EnPI values will be lost in the process.
4. In the "Target EnPI" tab, you specify an efficiency specification for each
individual process tag.
Figure 5-6
S7 EE Monitor
Entry ID: 109753230, V2.0, 10/2018 35
5 Operation
The efficiency display ranges from 90% (green) to 140% (red) of the setpoint. The
display is linear. A bar corresponds to a jump of 10%.
In the left selection list, you can select a process tag (item 1).
In the lower area you can see the reference and actual values from the last
measurement. (Item 2).
The percentage deviation is shown in the bar chart for each process tag. (Item
3).
S7 EE Monitor
Entry ID: 109753230, V2.0, 10/2018 36
5 Operation
Use the HMI screen "15_EnergyEEIndustry" to visualize the energy data from the
EE@Industry profile. Switch between the energy values with the tabs.
In "In-Screen Navigation", click on the respective tabs to display the energy or
power values.
Figure 5-9
Siemens AG 2018 All rights reserved
S7 EE Monitor
Entry ID: 109753230, V2.0, 10/2018 37
6 Energy efficiency reports
6.1 Requirements
Engineering of the PLC
In the control program, the "EnS_EEm_Report" block must be accessed and
interconnected in a cyclic OB (100ms).
The block on the line-side, has the same parameters as the "EnS_EEm_Calc" block.
S7 EE Monitor
Entry ID: 109753230, V2.0, 10/2018 38
6 Energy efficiency reports
Procedure
1. Click on "Test" in the main navigation of the tool.
2. Click the field button on the right side of the screen.
3. Click on the "Create .CSV report" function.
Figure 6-3
Siemens AG 2018 All rights reserved
The name of the CSV file consists of the configured machine name and the
date.
4. Copy the CSV file from the "SIMATIC memory card" to your computer, e.g. via
the web server of the controller:
5. To start the web server open a web browser and enter the IP address of your
controller (e.g. http://192.168.0.1) in the address field.
S7 EE Monitor
Entry ID: 109753230, V2.0, 10/2018 39
6 Energy efficiency reports
Note The Excel template is tested for the Microsoft version 2010.
S7 EE Monitor
Entry ID: 109753230, V2.0, 10/2018 40
6 Energy efficiency reports
Figure 6-5
4. In the dialog box, select the saved CSV file with the energy data and click the
"Open" button.
5. The data is imported and is now available in the "csvData" spreadsheet.
6. The log is automatically supplied with the saved data from the "csvData" Excel
spreadsheet.
Note If you use the Excel template without macro function, you must perform the
aforementioned functions yourself and add the data from the CSV file to the
"csvData" spreadsheet, starting from cell "A1".
Siemens AG 2018 All rights reserved
Result:
The first spreadsheet shows the content of the data read.
The table extends automatically depending on the imported data record. The report
can now be printed or saved.
Note Do not delete any rows or columns from the "csvData" spreadsheet because the
Excel document might no longer function properly.
S7 EE Monitor
Entry ID: 109753230, V2.0, 10/2018 41
7 Useful information
7 Useful information
7.1 Energy efficiency factor
The EnPI (energy performance indicator) factor indicates the energy required to
produce a particular product.
Table 7-1
Medium Consumption Quantity EnPI
Electricity [kWh] 17500 kWh 15000 1.17 kWh / unit
Water 49500 l 15000 3.30 l / unit
[l]
Gas 850 m³ 15000 0.06 m³ / unit
m³
Note The recalculation of the EnPI values is only performed when the piece count is
changed.
S7 EE Monitor
Entry ID: 109753230, V2.0, 10/2018 42
7 Useful information
The technical rule also specifies which energy and media values have to be
recorded and what has to be observed during the measurements.
The raw data and energy key figures can be individually displayed in the Energy
Siemens AG 2018 All rights reserved
S7 EE Monitor
Entry ID: 109753230, V2.0, 10/2018 43
8 Appendix
8 Appendix
8.1 Service and Support
Industry Online Support
Do you have any questions or need assistance?
Siemens Industry Online Support offers round the clock access to our entire
service and support know-how and portfolio.
The Industry Online Support is the central address for information about our
products, solutions and services.
Product information, manuals, downloads, FAQs, application examples and videos
– all information is accessible with just a few mouse clicks:
https://support.industry.siemens.com
Technical Support
The Technical Support of Siemens Industry provides you fast and competent
support regarding all technical queries with numerous tailor-made offers
– ranging from basic support to individual support contracts. Please send queries
to Technical Support via Web form:
www.siemens.com/industry/supportrequest
Siemens AG 2018 All rights reserved
Service offer
Our range of services includes the following:
Plant data services
Spare parts services
Repair services
On-site and maintenance services
Retrofitting and modernization services
Service programs and contracts
You can find detailed information on our range of services in the service catalog
web page:
https://support.industry.siemens.com/cs/sc
S7 EE Monitor
Entry ID: 109753230, V2.0, 10/2018 44
8 Appendix
S7 EE Monitor
Entry ID: 109753230, V2.0, 10/2018 45