Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning...

100
Service & Support Answers for industry. Cover sheet SIMATIC powerrate WinCC V3.0 SP1 SIMATIC powerrate WinCC Getting Started Manual FAQ October 2010

Transcript of Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning...

Page 1: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

Service & Support

Answers for industry.

Cover sheet

SIMATIC powerrate WinCC V3.0 SP1

SIMATIC powerrate WinCC Getting Started Manual

FAQ October 2010

Page 2: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

Introduction

2 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

Introduction

SIMATIC WinCC powerrate

SIMATIC powerrate WinCC, the WinCC premium add-on, provides for transparency in energy consumption from supply to consumer. Energy data is continuously captured, archived and processed. A precise view of the usage profile and detailed information about the costs permit you to detect energy-saving potential, configure efficient power supply and thus lower the costs for energy. This transparency enables you to optimize energy usage with full integration in the WinCC environment. System-tested, certified components provide the necessary security in the TIA environment, as always with an extension option.

Advantages

• Efficient process configuration and optimization of energy efficiency by identifying power-intensive user devices and processes and comparing usage profiles and costs.

• Lower operating costs through enhanced transparency of energy flows. • Greater awareness of energy costs through user-specific, batch-related

assignment of costs. • Keeping to contractually agreed power limits and thus avoidance of higher

power supply costs and penalties. • Secure application ensured by certified system components that comply with

Totally Integrated Automation.

Page 3: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

Contents

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 3

Contents Introduction .................................................................................................................. 2 1 Preparation and Installation ............................................................................. 5

1.1 Hardware Requirements ...................................................................... 5 1.2 Software Requirements........................................................................ 5 1.2.1 STEP 7 Installation............................................................................... 5 1.2.2 WinCC Installation................................................................................ 5 1.2.3 SIMATIC powerrate WinCC ................................................................. 6

2 Information on the SIMATIC powerrate Library.............................................. 7 2.1 Overview .............................................................................................. 7 2.1.1 Overview of the blocks for S7-400 ....................................................... 7 2.1.2 Overview of the blocks for S7-300 ....................................................... 8 2.1.3 User-defined data types ....................................................................... 8 2.1.4 Changing the Block Numbers .............................................................. 9

3 Getting Started................................................................................................. 10 4 Welcome ........................................................................................................... 11 5 Creating a Project in the SIMATIC Manager.................................................. 13

5.1 Creating a STEP 7 Project ................................................................. 13 6 Copying the Blocks from the SIMATIC powerrate Library .......................... 20

6.1 Overview ............................................................................................ 20 6.2 Copying Blocks................................................................................... 20 6.3 Program Structure for S7-300 ............................................................ 21 6.4 General Settings................................................................................. 22 6.4.1 Language for Display Devices ........................................................... 22 6.4.2 Time Zone .......................................................................................... 22

7 Loading the Blocks.......................................................................................... 23 7.1 Downloading into the Controller ......................................................... 23 7.2 Downloading into the PC Station ....................................................... 23

8 Compiling the OS............................................................................................. 25 9 OS Project Editor ............................................................................................. 26 10 Configuring the Process Screen.................................................................... 27 11 Configuring the Measuring Point with PR3_SUM ........................................ 28

11.1 Description of the PR3_SUM Block ................................................... 28 11.2 Configuring the PR3_SUM Block ....................................................... 31 11.3 Configuring the Block Icons for PR3_SUM ........................................ 32 11.4 Configuring Tag Logging.................................................................... 33 11.5 Correlation between the Block Icon and the S7 Block

PR3_SUM .......................................................................................... 41 11.6 Using Faceplates................................................................................ 42

12 Configuring the General Switch with PR3_SWITCH .................................... 43 12.1 Connection between the Block Icon and the S7 Block

PR3_SWITCH .................................................................................... 44 12.2 Using Faceplates................................................................................ 45

13 Configuring PAC3200 / PAC4200 with PR3_PAC ......................................... 46

Page 4: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

Contents

4 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

13.1 Connection between the Block Icon and the S7 Block PR3_PAC ........................................................................................... 47

13.2 Using Faceplates................................................................................ 48 14 Batch-related Acquisition of Energy Data with PR3_SUMC........................ 49

14.1 Description ......................................................................................... 49 14.2 Configuring the PR3_SUMC Block .................................................... 49 14.3 Assigning Parameters in WinCC........................................................ 52 14.4 Simulation of a Batch ......................................................................... 55

15 Configuring the Load Management with PR3_LMGM_10............................ 58 15.1 General Information on Configuring ................................................... 59 15.2 Configuring the Total Energy Consumption / Total Supply ................ 59 15.3 Configuring the Consumers ............................................................... 60 15.4 Example of Load Management Commissioning ................................ 65 15.4.1 PR3_LMGM_10 block parameters..................................................... 65 15.4.2 Assigning Parameters in WinCC........................................................ 67 15.4.3 Configuring the LMGM Block Icon ..................................................... 71 15.5 Commissioning the Load Management Using a Faceplate ............... 73 15.5.1 Overview ............................................................................................ 73 15.5.2 Changing the Values in the "Parameters" View................................. 73 15.5.3 Changing the Values in the "Tariffs" View.......................................... 74 15.5.4 Changing the Values in the "Edit List of Priorities" View.................... 75 15.5.5 Changing the Values in the "List of Priorities" View........................... 76 15.5.6 Testing the Load Management .......................................................... 77 15.6 Uploading the Data Block for LMGM from the Controller................... 78

16 Configuring the powerrate Report ................................................................. 79 16.1 Calling the powerrate Report ............................................................. 79 16.2 Configuring the powerrate Report ...................................................... 80 16.2.1 Adding Reports Exporting Archived Measured Values ................. 81 16.2.2 Adding Reports Cost Centers........................................................ 85 16.2.3 Adding Reports Duration Curve Report......................................... 88 16.2.4 Adding Reports Batch Value Export .............................................. 90 16.2.5 Adding Reports Batch Report (sorted according to time).............. 92 16.2.6 Adding Reports Counter Values .................................................... 94 16.2.7 Adding Reports Virtual Measuring Points...................................... 97 16.2.8 Adding Reports Automatic Execution ............................................ 99

Page 5: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

1 Preparation and Installation

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 5

1 Preparation and Installation

1.1 Hardware Requirements

The requirements for WinCC and STEP 7 are transferable. More information on compatibility is available at the link below.

http://support.automation.siemens.com/WW/view/de/21927773

1.2 Software Requirements

1.2.1 STEP 7 Installation

The version of STEP 7 depends on the version of WinCC. The possible optional editors CFC, SFC and SCL for STEP 7 are not needed with SIMATIC powerrate WinCC. More information on compatibility is available at the link below.

http://support.automation.siemens.com/WW/view/de/21927773

Important The WinCC project must be integrated in the STEP 7 project in order to be able to use the "Compile OS" function.

1.2.2 WinCC Installation

To be able to work with SIMATIC powerrate V3.0 SP1 you must install the versions below with the WinCC blocks AS-OS Engineering, Basic Process Control and User Archives.

• WinCC V6.2 SP2/ SP3

• WinCC V7.0 SP1

The WinCC blocks are not selected by default during the installation. You must select as shown below to have the WinCC blocks installed.

Important WinCC/User Archives must be installed for archiving/logging the load management configuration and batch-related energy data.

Version V3.0 SP1 includes a license for SIMATIC WinCC/User Archives in the SIMATIC powerrate Engineering package.

Page 6: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

1 Preparation and Installation

6 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

1.2.3 SIMATIC powerrate WinCC

Start the installation by inserting the CD in the CD-ROM drive of your PG/PC and running the "setup.exe" program. Follow the instructions of the installation procedure. Please also refer to the notes in the readme file. You can select three blocks for the installation.

• SIMATIC WinCC powerrate (AS) library for SIMATIC WinCC powerrate with AS blocks

• SIMATIC WinCC powerrate (OS) WinCC faceplates and C subroutines

• SIMATIC WinCC powerrate (Reports) SIMATIC powerrate report and online help

IMPORTANT

To be able to use SIMATIC powerrate Report you must have Excel 2003 or 2007 installed on your PG/PC.

Page 7: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

2 Information on the SIMATIC powerrate Library

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 7

2 Information on the SIMATIC powerrate Library

2.1 Overview

The library is copied to the same drive on which the STEP 7 Basis software is installed.

For example: Guide: <Drive>:\SIEMENS\Step7\s7libs\powerrate

2.1.1 Overview of the blocks for S7-400

Page 8: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

2 Information on the SIMATIC powerrate Library

8 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

2.1.2 Overview of the blocks for S7-300

2.1.3 User-defined data types

IMPORTANT

Blocks with the prefix PRE are for use in S7-400; blocks with the prefix PR3 are for use in S7-300. There is no difference between the functions of blocks S7-400 and S7-300.

You cannot change the numbers of the UDT blocks.

You can change the numbers of the blocks that are not used internally in the SIMATIC Manager.

Page 9: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

2 Information on the SIMATIC powerrate Library

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 9

2.1.4 Changing the Block Numbers

Proceed as follows to change the numbers of the internally used blocks PRE_BR, PRE_BS, PRE_CALC,

PR3_CALC and PR3_FIFO_IO.

– Copy the library into an S7 project.

– Select the block container and call "Re-wire" in the pop-up menu.

– In the dialog that opens you enter the values for "Old operand" and "New operand" and run "Re-wire". An error message is displayed indicating that you cannot re-wire a block. You can ignore this message.

– Check the changed block number in the "Calls" tab of the block's object properties.

– Update the block number in the symbol table.

Page 10: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

3 Getting Started

10 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

3 Getting Started

This Getting Started gives you a brief and precise explanation of SIMATIC powerrate WinCC. It does not contain any comprehensive lists of all the possible functions, but it does contain all the information required to use the main functions.

Page 11: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

4 Welcome

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 11

4 Welcome

Welcome to SIMATIC powerrate WinCC Getting Started

Getting Started uses a sample project to demonstrate how easy it is to work with SIMATIC powerrate WinCC. You will about 4 hours to work your way through all the sections of this documentation and to acquire fundamental knowledge of SIMATIC powerrate for the WinCC configuration. A large part of the documentation is based on figures illustrating the various configuration steps.

The figure above gives you a good overview of the functions of the powerrate function blocks.

The PRE_SUM / PR3_SUM block is used to acquire and process the energy values, and it is the interface of the OS. Various signal types are supported. You select them in the input parameter "INP_SEL".

INP_SEL= 0 counting pulse

INP_SEL= 1 integer counter value

INP_SEL= 2 analog counter value

INP_SEL= 3 energy value* calculated with calculation function

For each PRE_SUM / PR3_SUM block you can produce a current prognosis and average / periodic energy value.

* See calculation algorithms included in the PRE_CALC / PR3_CALC block.

The PRE_SYNC / PR3_SYNC block acts as a clock for synchronizing the PRE_SUM / PR3_SUM power acquisition block and other powerrate blocks. The SYNC_OUT clock is triggered by an external synchronization signal (EXT_SYNC) or the internal CPU clock.

Page 12: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

4 Welcome

12 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

The PRE_FIFO_DATA / PR3_FIFO_DATA block serves as a buffer for the measured values to be archived that the PRE_SUM / PR3_SUM function block supplies.

The PRE_AR_DATA / PR3_AR_DATA function block contains the data interface for the archive data to be sent and calls the PRE_AR_SND / PR3_AR_SND block that sends the archive data to WinCC.

Page 13: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

5 Creating a Project in the SIMATIC Manager

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 13

5 Creating a Project in the SIMATIC Manager

Introduction

This chapter contains information about STEP 7 and a description of how to create a project in the SIMATIC Manager. The project is the basis for configuring a user interface in WinCC. In the project you can create and process all the objects you need for operating and monitoring the process.

5.1 Creating a STEP 7 Project

Requirements

• The SIMATIC Manager must be installed.

• WinCC must be installed with the WinCC components AS-OS Engineering, BPC and User Archives.

Procedure

1. Open the SIMATIC Manager and select "New Project/Library".

Page 14: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

5 Creating a Project in the SIMATIC Manager

14 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

2. Enter the "Name" (1) and "Storage location (path)" (2) for the project and quit the dialog with "OK" (3).

3. Insert a "SIMATIC 300 Station" (1) and open the "Hardware" configuration (2).

Page 15: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

5 Creating a Project in the SIMATIC Manager

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 15

4. Insert a "Rack" (1), a "Power supply" (2) and a "CPU" (3). Save and compile the current configuration.

IMPORTANT

Define an IP address for the PN-IO interface, for example: 192.168.219.10. Create a network, for example: "Ethernet (1)" and connect the interface to this network.

Page 16: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

5 Creating a Project in the SIMATIC Manager

16 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

5. Insert a PC station.

6. After inserting the PC station you must change the default name to your PG/PC name (for example: HMI) (1). Open the "Configuration" (2).

Page 17: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

5 Creating a Project in the SIMATIC Manager

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 17

7. Insert an "IE General" (1) and a "WinCC Appl." (2), save and compile the current configuration.

8. Start the "NetPro" editor (1) and select "Insert New Connection" (2).

IMPORTANT

Adapt the IP address of your PC and connect the IE General card to the "Ethernet (1)" subnetwork.

Page 18: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

5 Creating a Project in the SIMATIC Manager

18 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

9. Create a new S7 connection. Check the settings of the S7 connections in the "Connection Path" and quit the dialog with "OK".

Page 19: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

5 Creating a Project in the SIMATIC Manager

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 19

10. Save and compile (2) the configuration.

Result

You have created a project called "DEMO_V3_SP1".

IMPORTANT

You will need the Partner ID (1) later on in the configuration.

Page 20: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

6 Copying the Blocks from the SIMATIC powerrate Library

20 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

6 Copying the Blocks from the SIMATIC powerrate Library

6.1 Overview

The library is divided into one program folder for S7-300 and one program folder for S7-400. They each contain a default block and a simple program that can be used as a template.

The sample programs for S7-300 and S7-400 have the same structure. Below we describe the sample programs for S7-300. More details are available in the SIMATIC powerrate Programming and Operating Manual.

6.2 Copying Blocks

Copy all the S7-300 blocks and the "LMGM STL source" from the SIMATIC powerrate library into your project. The existing messages are assigned new numbers when copied.

Page 21: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

6 Copying the Blocks from the SIMATIC powerrate Library

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 21

6.3 Program Structure for S7-300

The sample blocks and program interrelationships are shown below. A detailed description of all the SIMATIC powerrate function blocks is available in the SIMATIC powerrate Programming and Operating Manual.

Page 22: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

6 Copying the Blocks from the SIMATIC powerrate Library

22 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

6.4 General Settings

6.4.1 Language for Display Devices

In order to have different text languages displayed correctly in WinCC Runtime you must insert the languages required in the SIMATIC Manager.

In the "Add/Delete Language, Set Default Language" dialog box you can set the languages into which you want to translate the user text.

IMPORTANT

In the SIMATIC Manager English (US) is set as the default language. powerrate messages are configured in German and English. In order to avoid problems when creating AS-OS you must ensure that English (US) and German (Germany) are inserted under "Installed Languages in Project".

6.4.2 Time Zone

Set the CPU time to UTC and ensure that the time is synchronized throughout the system.

Page 23: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

7 Loading the Blocks

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 23

7 Loading the Blocks

7.1 Downloading into the Controller

Select the station and download the configuration into the controller.

7.2 Downloading into the PC Station

Because of the "Named Connections" you must also download the configuration into the PC station. Proceed as follows.

1. Select the PC station and right-click to open the pop-up menu. Select "PLC > Configure…" in the pop-up menu.

Page 24: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

7 Loading the Blocks

24 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

IMPORTANT

The name of the PC station must be same as the name of your computer.

Tip: The key combination "Windows Logo + Pause" opens the Computer Properties window.

2. Then load the configuration into the PC station.

Page 25: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

8 Compiling the OS

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 25

8 Compiling the OS Compile the OS.

Note In the OS Compilation Wizard select the "Named Connection" and not the "TCP/IP" connection.

Page 26: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

9 OS Project Editor

26 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

9 OS Project Editor Start WinCC and run the OS project editor.

IMPORTANT

If you are working in an integrated environment, it is important to run the OS project editor at least once because of the differences in the message classes between STEP 7 and WinCC. Running the project editor matches up the message classes.

Page 27: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

10 Configuring the Process Screen

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 27

10 Configuring the Process Screen All powerrate faceplates are in the "@Template_pre.pdl" picture.

IMPORTANT

There are different faceplates for S7-400 and S7-300. Make sure that you have chosen the right faceplates for your AS.

Page 28: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

11 Configuring the Measuring Point with PR3_SUM

28 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

11 Configuring the Measuring Point with PR3_SUM

11.1 Description of the PR3_SUM Block

The PR3_SUM block is for acquiring and processing the power data and is the interface to the OS.

The INP_SEL inputs are for interconnecting pulses or counter values (integers or floating point), for example.

The SYNC_PER inputs are for configuring the synchronization period. The synchronization period is configured at the REQ_PER input in the PR3_SYNC block. The SYNC_PER output of PR3_SYNC is connected to the SYNC_PER input of PR3_SUM.

The mean power value and energy usage value over a specific period of time (900 sec, for example) are output at the PR3_SUM outputs.

Page 29: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

11 Configuring the Measuring Point with PR3_SUM

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 29

PRE_SUM – Important Inputs

IMPORTANT

The energy value is measured with the values 0, 1 and 2 at the "INP_SEL" input.

A power value is measured with the value 3 at the "INP_SEL" input.

PRE_SUM – Important Outputs

0 = Count pulse 1 = Integer counter 2 = Floating-point counter 3 = For calculation

Page 30: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

11 Configuring the Measuring Point with PR3_SUM

30 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

PRE Blocks PRE_SUM with Calculation Function

The PR3_CALC block is called internally by the PR3_SUM block. The connection between PR3_SUM and PR3_CALC is shown below.

Calculation Algorithm

The PR3_CALC function includes calculation algorithms that are used for forming measured values for the PR3_SUM function block.

The algorithms below are implemented.

Note The PR3_CALC function is available as a source in the library and the user can extend it with additional calculations.

It is not permitted to change the interface of the function!

INPUTSOUTPUTS

Directly Connected Calculated

Page 31: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

11 Configuring the Measuring Point with PR3_SUM

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 31

Table 11-1

Function

CALC_FN

Algorithm

0 OUT = P0 + P1 * IN1 + P2 * IN2 + P3 * IN3

1 Calculation of the quantity of heat for liquids OUT = P0*IN1*P1*IN2 P0 = speci. heat capacity c, P1 = density ρ IN1 = flow rate V IN2 = temperature difference ΔT

11.2 Configuring the PR3_SUM Block

Call PR3_SUM with an instance DB. Download the configuration into the controller and run an OS compilation.

Page 32: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

11 Configuring the Measuring Point with PR3_SUM

32 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

11.3 Configuring the Block Icons for PR3_SUM

1. Copy the "PR3_SUM/1" block icon (1) from the "@Template_pre.pdl" picture (2) and paste it into your process picture (2).

2. Use the Dynamic Wizard "Connect picture block to tag structure" to connect the copied block icon to the relevant structure tag.

Page 33: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

11 Configuring the Measuring Point with PR3_SUM

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 33

11.4 Configuring Tag Logging

Create raw data tag for transfer of 15-minute values

• Create a raw data tag for archiving.

– The tag name must have the following structure:

Tagname/rawdata (1&2) ("Tagname" Name of the "PR3_AR_DATA" block, for example, "Program1/DB_ARCHIVE/rawdata.

– For DB No. you enter the instance DB number for PR3_AR_DATA (DB_ARCHIVE (3))

– Start address = DBB 46 (4) and Length = 192 (5)

1

2

4

5

Page 34: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

11 Configuring the Measuring Point with PR3_SUM

34 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

Copying files

Copy the PR3_AR_SND.ini and PR3_AR_SND.pas files from the \WinCC\powerrate\Archive folder to the project Project directory\computer name\PAS.

Creating a C action for archiving

• Adjust the trigger/connection tag to the .REQUEST (1&2) connector of the PR3_AR_DATA block. Compile (3) and save (4) the script.

Page 35: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

11 Configuring the Measuring Point with PR3_SUM

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 35

Configuring the process value archive

1. Create a process value archive named pre (the name is mandatory).

2. Create two or three process-controlled archive tags for each PR3_SUM block (for example, Accumulated power value and Accumulated energy value).

Step 1

Step 2

1. Select the raw data tag.

Page 36: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

11 Configuring the Measuring Point with PR3_SUM

36 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

Step 3

Adjust the values of the two ID numbers to the ID numbers used in the program.

Page 37: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

11 Configuring the Measuring Point with PR3_SUM

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 37

Step 4

Copy (1) the structure tag of PR3_SUM and paste it in the "Archive tag name:" (2) field.

Step 5

Add ".S" to the "Archive tag name". Enter the unit in the Comment field (it will appear in the report).

2

Page 38: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

11 Configuring the Measuring Point with PR3_SUM

38 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

Step 6

Repeat Steps 1 to 5 and change the AR_ID subnumber, the Archive tag name and the Comment accordingly.

Page 39: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

11 Configuring the Measuring Point with PR3_SUM

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 39

Overview

Values in the sample program

The values below are given in the sample program.

Archive tag name AR_ID AR_ID subnumber Comment

Program1/DB_PULSE.S 1 1 [kWh]

Program1/DB_PULSE.V 1 101 [kW]

Program1/DB_INTEGER.S 1 2 [kWh]

Program1/DB_INTEGER.V 1 201 [kW]

Program1/DB_INTEGER.C 1 202 [kWh]

Program1/DB_ANALOG.S 1 3 [kWh]

Program1/DB_ANALOG.V 1 103 [kW]

Program1/DB_ANALOG.C 1 203 [kWh]

Program1/DB_CALC.S 1 4 [kWh]

Program1/DB_CALC.V 1 104 [kW]

Program1/DB_PULSE.S Accumulated energy value (LAST_VAL) Program1/DB_PULSE.V Average power value (CUR_PWR)

Page 40: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

11 Configuring the Measuring Point with PR3_SUM

40 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

Adjust the PR3_AR_SND.ini file

1. Enter the archive tag configured in the Tag Logging.

2. Open the PR3_AR_SND.ini file in the project directory.

3. The structure looks like this: "Archive tag name;AR_ID;AR_ID subnumber".

4. Save and close the file after entering the tags.

Page 41: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

11 Configuring the Measuring Point with PR3_SUM

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 41

11.5 Correlation between the Block Icon and the S7 Block PR3_SUM

The PR3_SUM block is used to acquire the energy values and display the values on the OS.

Various counters are supported. The counter type is set at the "INP_SEL" input. You must create a block icon in WinCC for each PR3_SUM block configured and link it to the structure tag.

Page 42: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

11 Configuring the Measuring Point with PR3_SUM

42 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

11.6 Using Faceplates

Open a faceplate

Click on a block icon to open the associated faceplate.

Views

You select the different views via the drop-down menu. The loop display is shown using the associated icon.

Page 43: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

12 Configuring the General Switch with PR3_SWITCH

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 43

12 Configuring the General Switch with PR3_SWITCH 1. Copy the "PR3_SWITCH/1" block icon (1) from the "@Template_pre.pdl"

picture and paste it into your process picture (2).

2. Use the Dynamic Wizard as described in section 11.3 to connect the block icon to the "Program1/DB_SWITCH" structure tag.

IMPORTANT

Make sure that you have copied the faceplate for S7-300.

Page 44: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

12 Configuring the General Switch with PR3_SWITCH

44 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

12.1 Connection between the Block Icon and the S7 Block PR3_SWITCH

The PR3_SWITCH function block is for displaying and operating a switch via digital inputs and outputs. The input parameters ON, OFF, TRIP and UNPLUG are used to form the switch status. The input parameters TRIP and UNPLUG are not evaluated if EN_TRIP or EN_UNPLUG = FALSE respectively. You can modify the view of the switch at the input parameter "STYPE". Depending on the STYPE setting you can have the following views of the switch.

Default value for the "STYPE" input = 0

The following switch statuses are formed depending on the inputs and are displayed in the faceplate and icon.

X Irrelevant in this status and not evaluated.

STYPE = 2 STYPE = 3

STYPE = 4 STYPE = 5

STYPE = 0

Page 45: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

12 Configuring the General Switch with PR3_SWITCH

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 45

12.2 Using Faceplates

Open a faceplate

Click on a block icon to open the associated faceplate.

Views

You select the different views via the drop-down menu. The loop display is shown using the associated icon.

Page 46: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

13 Configuring PAC3200 / PAC4200 with PR3_PAC

46 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

13 Configuring PAC3200 / PAC4200 with PR3_PAC 1. Copy the "PR3_PAC/1" block icon (1) from the "@Template_pre.pdl" picture

and paste it into your process picture (2).

2. Use the Dynamic Wizard as described in section 11.3 to connect the block icon to the "Program1/DB_SWITCH" structure tag.

IMPORTANT

Make sure that you have copied the faceplate for S7-300.

Page 47: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

13 Configuring PAC3200 / PAC4200 with PR3_PAC

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 47

13.1 Connection between the Block Icon and the S7 Block PR3_PAC

The PR3_PAC function block is for displaying selected measured values and status information messages of the multifunctional measuring devices PAC3200 and PAC4200.

Measured value display

You can select data of basic types 1 and 2 for the measured value display. However, when you parameterize the PAC in the HW Config you must make sure that the basic types for the data to be displayed are configured accordingly. The parameters BASADR1 and BASADR2 must each be supplied with the logical basic addresses of basic types 1 and 2. You specify the type of measured value with the TYPE_x parameter.

Page 48: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

13 Configuring PAC3200 / PAC4200 with PR3_PAC

48 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

13.2 Using Faceplates

Open a faceplate

Click on a block icon to open the associated faceplate.

Views

You select the different views via the drop-down menu. The loop display is shown using the associated icon.

IMPORTANT

The values for the current are displayed as integers. The values are truncated and not rounded off.

Page 49: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

14 Batch-related Acquisition of Energy Data with PR3_SUMC

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 49

14 Batch-related Acquisition of Energy Data with PR3_SUMC

14.1 Description

A detailed description is available in the manual.

14.2 Configuring the PR3_SUMC Block

NetPro

The Partner ID (1) of the configured S7 connection is needed on the PR3_UA_S block.

Page 50: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

14 Batch-related Acquisition of Energy Data with PR3_SUMC

50 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

PR3_SUMC Block Parameters

Call PR3_SUMC with an instance DB.

Meaning of important inputs

Input ID: Block ID; unique number for this block.

Input CUR_TS: output CUR_TS of the PRE_SYNC block.

Input DIFF_LOC: Output DIFF_LOC of the PRE_SYNC block.

Input ACTIVE: Batch-active. Trigger to send values to the user archives.

Input ARCH_ID: Number of the user archive PRE_SUMC_1 (PRE_SUMC_+"ARCH_ID", for example).

Input MAX_VAL: maximum number of energy types (values: 1 to 5).

Input VALUNITx: value unit of energy type x (x = 1 ... 5)

Input TYPEx: energy type x (x = 1 ... 5) Input VALx_y: current working value of energy type x (x = 1 ... 5) of load y (y = 1 ... 10)

Input SND_ST: output QSND_ST of the PRE_UA_S block.

Page 51: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

14 Batch-related Acquisition of Energy Data with PR3_SUMC

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 51

PR3_UA_S Block Parameters

Here you enter the Partner ID of the S7 connection at Parameter ID_1. The parameter at the R_ID input is needed for creating the raw data tag in WinCC. Connect the REQ001_ST input to the QREQ_ST output of PR3_SUMC.

Meaning of important inputs

Input ID_1: Partner ID of the S7 connection.

Input ID_2: only necessary for redundant connections.

Input R_ID: Connection to the user archives. This ID is required for the raw data tag.

Download the configuration into the controller and run "Compile OS".

Page 52: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

14 Batch-related Acquisition of Energy Data with PR3_SUMC

52 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

14.3 Assigning Parameters in WinCC

Create a raw data tag of the BSEND/BRCV type

Create raw data tags for the user archives. Raw data tags must have the parameters below.

PR3_UA_S

• Copy the tag name Program1/DB_SEND of the PR3_UA_S structure.

• Create a new tag of the "raw data" tag type. Insert the copied name and add the extension …/DATA.

• Press the "Select" button at the address parameter. Select "BSEND/BRCV" as raw data type. Enter the R_ID of the PR3_UA_S block.

PR3_UA_R

• Copy the tag name Program1/DB_RCV of the PR3_UA_R structure.

• Create a new tag of the "raw data" tag type. Insert the copied name and add the extension …/DATA.

• Press the "Select" button at the address parameter. Select "BSEND/BRCV" as raw data type. Enter the R_ID of the PR3_UA_R block.

Page 53: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

14 Batch-related Acquisition of Energy Data with PR3_SUMC

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 53

Copy the Global Script action

Copy the PRE_UA_S.pas and PR3_SetDiff_UTC_Localtime.pas files from the SIMATIC powerrate installation path into your WinCC project in the …\PAS path.

Change the Global Script action

Open the action PR_UA_S.pas. Change the tag name and tag triggers accordingly. In your example these are the tag name "Program1/DB_SEND" and the trigger tags "Program1/DB_SEND.REQ" and "Program1/DB_SEND/DATA". After making the changes, compile and save the script.

Page 54: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

14 Batch-related Acquisition of Energy Data with PR3_SUMC

54 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

Import the archive

The import file is located in the installation path of WinCC, WinCC installation path\powerrate\config, for example.

Configuration

1. Open the user archive in the WinCC Explorer.

2. Select "Project Import..." in the main menu.

3. In the Select Dialog file you use the Browse button to select the "UserArchiveConfigurationEnglish.uap" file in the path specified above.

4. Now click the "Download" button. The result is an overview of the available user archives.

5. Select the "PRE_SUMC_1" archive and click the "Import" button.

6. After successful import you save the configuration.

Result

Configuring the process screen

1. Insert the WinCC OCX control „WinCC UserArchiveControl" into your user picture.

2. Double-click to open the control's Configuration dialog.

3. In the "General" tab you select the configured archive "PRE_SUMC_1", close the dialog and save the picture.

Result

Page 55: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

14 Batch-related Acquisition of Energy Data with PR3_SUMC

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 55

14.4 Simulation of a Batch

ACTIVE Start/Stop measuring

UNIT Plant name

BA_ID, BA_NA, REC_NA These three inputs are for identifying the separate measurements (batches). The current values are also saved in the user archive.

VALUNITx Value unit (kWh or m3, for example)

TYPEx Energy type (electric, for example)

VALx_y Current working values of energy type x (x = 1 ... 5,

y = 1 ... 10)

The VALx_y inputs must be connected only with the outputs of the PR3_SUM blocks. In your example the four output values of the PR3_SUM are already connected.

Page 56: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

14 Batch-related Acquisition of Energy Data with PR3_SUMC

56 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

This picture was created for test purposes. You can use the IO fields to change the input values of the simulation data block "SIMULATION" (DB100) which is connected to the "PR3_SUMC".

When the ACTIVE input is set to 1, a new data record is created in the WinCC user archive. The start time is update to the current time. The end time is set to the default value of 01.01.1990. The end time is updated when the measuring ends (ACTIVE = 0).

Page 57: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

14 Batch-related Acquisition of Energy Data with PR3_SUMC

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 57

In the figure below the value for DB_INTEGER was increased by 10kWh.

When ACTIVE is reset to zero, measuring stops and the data record in the user archive is updated automatically (ENDTIME and VALUE1).

Page 58: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

15 Configuring the Load Management with PR3_LMGM_10

58 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

15 Configuring the Load Management with PR3_LMGM_10

Load management in the context of energy management systems is understood to be the monitoring of the power limit per time interval agreed with the utility company. The time interval depends on the medium; for electricity it is typically 15 minutes, with gas 1 hour.

The general load management functions below are implemented in SIMATIC powerrate.

• Calculation of the difference in power based on the current consumption and the trend taken from the PRE_SUM / PR3_SUM block.

• Monitoring of the supply limit.

• A pending limit overshoot triggers a warning / alarms.

• Archiving of additional data when limits are overshot.

• Generation of a release/block signal for each consumer based

on the priority list taking into account min. / max. switch-off times and min. switch on times of the consumer.

For this, blocks with different quantity frameworks are made available depending on the required number of consumers. The blocks below are available.

• PRE_LMGM_10 / PR3_LMGM_10 up to 10 consumers

• PRE_LMGM_25 / PR3_LMGM_25 up to 25 consumers

• PRE_LMGM_50 / PR3_LMGM_50 up to 50 consumers

• PRE_LMGM_75 / PR3_LMGM_75 up to 75 consumers

• PRE_LMGM / PR3_LMGM up to 100 consumers

Page 59: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

15 Configuring the Load Management with PR3_LMGM_10

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 59

15.1 General Information on Configuring

WinCC user archives are used for storing the load management configuration. You must configure the load management in the faceplate. When you edit and save the parameters in the individual steps, the data is both downloaded to the controller and written to WinCC user archives.

If you want to make sure that the current status of the priority list is being used in the controller, you can use the "Download from PLC" function in the faceplate view "Edit List of Priorities".

It is recommended to download the instance DB of the PRE_LMGM block from the controller before making a total download of the controller to ensure that the last configuration is active when you restart the CPU.

If uploading is not possible or an old configuration is to be activated, you can download the complete configuration immediately into the controller from the faceplate view "Configuration".

You can see which is the latest configuration from the Config ID (if known) or from the "Start of configuration" time stamp and "End of configuration" (empty).

15.2 Configuring the Total Energy Consumption / Total Supply

The PR3_SUM block is used to acquire the data below and the block parameters must be interconnected accordingly to PR3_LMGM.

• Total energy consumption (CUR_VAL) / total power supply (CUR_PWR)

• Inclusion of the trend calculation up to the end of the period (EST_VAL / EST_PWR).

• Average energy / power values at the end of the period.

Page 60: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

15 Configuring the Load Management with PR3_LMGM_10

60 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

15.3 Configuring the Consumers

The block can manage up to 10 consumers. You must specify at the MAX_LOAD input the highest number at whose input a consumer is interconnected. You can make settings for each consumer. Below we describe the associated parameters, where x stands for the number of consumers and x = 01 - 10.

Page 61: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

15 Configuring the Load Management with PR3_LMGM_10

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 61

MODES

The current consumer power is at input Px. This input is evaluated only if the input MODEx (see below) has the value 1.

The rated capacity is specified at input CAPx. The rated capacity is always taken as the basis for calculating when connecting. In MODEx = 2 or 3 it is assumed that the consumer runs at the rated capacity when switched on.

The input ONx is interconnected with the switching state of the consumer (only

MODEx = 2).

The consumer type is set at the input MODEx.

Depending on the consumer type, a consumer is considered to be switched off under the conditions listed below.

Times

A minimum switch-on time, a minimum switch-off time and a maximum switch-off time can be parameterized for each consumer at the inputs MIN_ONx, MIN_OFFx and MAX_OFFx respectively.

• Minimum switch-on time, i.e. after release how long must the consumer remain released until it can be blocked again.

• Minimum switch-off time, i.e. after switch-off how long must the consumer remain switched off until it can be released again.

• Maximum switch-off time, i.e. after switch-off how long may the consumer remain switched off until it must be switched on again (MAX_OFFx = 0 means that there is no maximum switch-off time).

Outputs

Each consumer has an input named EN_SHEDx which defines whether an individual consumer can be removed from the load management (1= consumer assigned to the load management).

Each consumer has an input named MAN_ENx which defines whether manual mode will be released (MAN_ENx =1) or switched off.

Each consumer has an input named MANx which defines whether manual mode is activated.

Page 62: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

15 Configuring the Load Management with PR3_LMGM_10

62 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

Priority list

There is one PRIOx input for each consumer at which the priority of the consumer is parameterized as a number (1 to 255). 1 is the highest priority, 0 means that the consumer is not part of the load management or that there is no consumer available.

Rolling consumers

There is one input named ROLLx for each consumer at which is defined whether the consumer is a rolling consumer in the priority group (ROLLx > 0) or not (ROLLx = 0). Consumers switched as rolling consumers all have the same priority. The ROLLx parameter defines the order in which the consumers concerned are switched off.

Tariffs

The block has three tariffs (on-peak tariff, off-peak tariff, and Sunday or holiday tariff). Either a work limit or a power limit can be defined for each tariff. You define the limit values either using the faceplate or switchable inputs.

Page 63: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

15 Configuring the Load Management with PR3_LMGM_10

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 63

Parameters for feed data

Connection to the S7 block PRE_SYNC

The three inputs of the LMGM blocks must be connected with the three outputs of the PRE_SYNC block.

Page 64: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

15 Configuring the Load Management with PR3_LMGM_10

64 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

Connection with the S7 blocks PRE_UA_S and PRE_UA_R

The PRE_UA_S and PRE_UA_R blocks are needed to read parameters from the S7 CPU and write them to the WinCC user archive.

.

Page 65: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

15 Configuring the Load Management with PR3_LMGM_10

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 65

15.4 Example of Load Management Commissioning

15.4.1 PR3_LMGM_10 block parameters

Meaning of important inputs

Input MAX_LOAD: Maximum number of customers

Input ID: Batch ID. All blocks that require PRE_UA_S or PRE_UA_R to exchange data with the WinCC user archive need an individual ID.

Input ARCH_ID: Number of the user archive PRE__LMGM_CONFIG_1 (PRE__LMGM_ CONFIG_+"ARCH_ID", for example).

Inputs SYNC_P, SYNC_PER, CUR_TS: Must be connected with the outputs of the PR3_SYNC block.

Inputs SND_ST, RCV_ST: Must be connected with the outputs of the PRE_UA_S and PRE_UA_R blocks.

Inputs enclosed in red: Connect the inputs with the outputs of the PR3_SUM that represent the feed.

Page 66: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

15 Configuring the Load Management with PR3_LMGM_10

66 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

We want to manage all three users in our example. All are running in MODE 1. Therefore we must connect the inputs P01, P02 and P03 and outputs QON01 QON02 and QON03 with the simulation data block. The values for inputs CAP01, CAP02 and CAP03 are defined using the faceplate.

Thus the program is completely defined for the S7 controller. After configuration, download the program into the S7 controller and run "Compile OS".

Page 67: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

15 Configuring the Load Management with PR3_LMGM_10

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 67

15.4.2 Assigning Parameters in WinCC

Create a raw data tag

Create a raw data tag as shown in the screen shot below to receive data for WinCC.

Copy Global Script actions

Copy the PRE_UA_R.pas file from the SIMATIC powerrate installation path into your WinCC project in the …\PAS path.

Page 68: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

15 Configuring the Load Management with PR3_LMGM_10

68 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

Change the Global Script action

Open the action PR_UA_R.pas. Change the tag name and tag trigger accordingly. In your example these are the tag name "Program1/DB_RCV" and the trigger tag "Program1/DB_RCV.REQ". After making the changes, compile and save the script.

Page 69: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

15 Configuring the Load Management with PR3_LMGM_10

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 69

Import the archive

The import file is located in the installation path of WinCC, WinCC installation path\powerrate\config, for example.

Configuration

1. Open the user archive in the WinCC Explorer.

2. Select "Project Import..." in the main menu.

3. In the Select Dialog file you use the Browse button to select the "UserArchiveConfigurationEnglish.uap" file in the path specified above.

4. Now click the "Download" button. The result is an overview of the available user archives.

5. Select the archives "PR3_LMGM_CONFIG_1", "PR3_LMGM_LIM_1" and "PR3_LMGM_PRIO_1" and click the "Import" button.

6. After successful import you save the configuration.

Result

Import the Runtime data

You must import the Runtime data for the archive "PR3_LMGM_PRIO_1".

Page 70: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

15 Configuring the Load Management with PR3_LMGM_10

70 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

Configuration

1. Open the user archive "PR3_LMGM_PRIO_1" in the User Archive Editor.

2. Select "Runtime data Import..." in the main menu.

3. Select the import file "PR3_LMGM_PRIO_English.csv" from the powerrate installation directory. The import file is located in the installation path of WinCC, WinCC installation path\powerrate\config, for example.

4. Save your archive and close the user archive editor.

Result

IMPORTANT

A file (PRx_LMGM_PRIO_Deutsch.csv / PRx_LMGM_PRIO_English.csv) that contains the archive default settings is provided for the PRE_LMGM_PRIO_1 / PR3_LMGM_PRIO_1 archive. If you want, you can create this file in Excel and then import it.

Page 71: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

15 Configuring the Load Management with PR3_LMGM_10

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 71

15.4.3 Configuring the LMGM Block Icon

1. Copy the "PR3_LMGM_10/1" block icon and paste it into your process picture.

2. Use the Dynamic Wizard as described in section 11.3 to connect the block icon to the "Program1/DB_LMGM" structure tag.

Open a faceplate

Click on a block icon to open the associated faceplate.

Page 72: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

15 Configuring the Load Management with PR3_LMGM_10

72 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

Views

You select the different views via the drop-down menu.

Page 73: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

15 Configuring the Load Management with PR3_LMGM_10

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 73

15.5 Commissioning the Load Management Using a Faceplate

15.5.1 Overview

To start with it is necessary to define the parameters of the Load Management via the faceplate.

Configuration

• Change the parameters (stabilization delay, for example) accordingly in the "Parameters" view.

• Enter the tariffs with the relevant power values.

• Enter the parameters for each consumer.

• Activate the consumers in the Load Management.

• Test the Load Management.

• Upload the data block for the Load Management.

15.5.2 Changing the Values in the "Parameters" View

Configuration steps

1. Select the "Parameters" view from the LMGM faceplate.

2. Click "Edit".

3. Change the parameters as below.

– "Limit source" to Power

– "Stabilization delay" to 3s

– "Hysteresis starting value" to 100%

– "Warning threshold" to 80%

– "Alarm threshold" to 90%

4. Click "Save" to write the settings to the controller and insert them in the user archive.

5. View after saving.

Result

Page 74: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

15 Configuring the Load Management with PR3_LMGM_10

74 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

15.5.3 Changing the Values in the "Tariffs" View

Configuration steps

1. Select the "Tariffs" view from the LMGM faceplate.

2. Click "Edit".

3. Define the time periods and power values of the three tariffs.

– "On-peak tariff"

– "Off-peak tariff"

– "Holiday tariff"

4. Save the settings.

5. View after saving.

Result

Page 75: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

15 Configuring the Load Management with PR3_LMGM_10

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 75

15.5.4 Changing the Values in the "Edit List of Priorities" View

Configuration steps

1. Select the "Edit List of Priorities" view from the LMGM faceplate.

2. Click "Edit".

3. Change the values for the consumer as shown in the screen shot.

– "Capacity"

– "Acquisition type"

– "Priority"

– "Rolling sequence no."

4. Save the settings.

5. View after saving.

Result

IMPORTANT

To start with only the default values are in this table. All these values are set to zero.

Page 76: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

15 Configuring the Load Management with PR3_LMGM_10

76 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

15.5.5 Changing the Values in the "List of Priorities" View

Configuration steps

1. Select the "List of Priorities" view from the LMGM faceplate.

2. Check all the "active" check boxes in the "Load management" column.

Result

IMPORTANT

If the consumers are not active in the load management, they are not switched off automatically if the alarm threshold is reached.

After changing the values in the various views of the LMGM faceplate, you can see the configured values in the "Standard" view of the faceplate.

Page 77: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

15 Configuring the Load Management with PR3_LMGM_10

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 77

15.5.6 Testing the Load Management

The supply was defined with the PR3_SUM block in DB20 "DB_INFEED". The reference of the PR3_SUM block is the power value that can be found in the data block double-word (DB100.DBD352). This data is available in the FC101 (ENERGY) block.

The power value for the 3 consumers (inputs P01, P02 and P03) are connected with DB100.DBD338, DB100.DBD342 and DB100.DBD346.

Power of the consumers:

1. Consumer 1 10kW

2. Consumer 2 20kW

3. Consumer 3 30kW

The power value (DB100.DBD356) is used for simulation purposes. This is connected to a status bar in the process picture. If you increase the value, the supply is also increased and if the alarm threshold is reached, the consumer is automatically shed.

Page 78: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

15 Configuring the Load Management with PR3_LMGM_10

78 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

15.6 Uploading the Data Block for LMGM from the Controller

Configuration steps

1. Open the Online view of the SIMATIC Manager.

2. Copy the DB4 (DB_LMGM) block from the Online view into the Offline view (project) in the block folder.

Result

You have saved all the parameters of the Load Management in your STEP 7 project.

Page 79: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

16 Configuring the powerrate Report

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 79

16 Configuring the powerrate Report

16.1 Calling the powerrate Report

There are two ways of calling the powerrate report.

• Using the Start menu: SIMATIC > powerrate > Reports or

• Using a button in WinCC. This button is located in the @Template_pre.pdl template. You press the button to start the Report application in WinCC Runtime.

Page 80: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

16 Configuring the powerrate Report

80 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

16.2 Configuring the powerrate Report

You can create a manual or automatic report in the Start window of the powerrate report. The screen shot below gives an overview of the menu options in the powerrate Reports Editor.

IMPORTANT

You can define the name of the WinCC server in Settings/WinCC Server. In the case of redundancy, you specify the name of the redundant WinCC server.

SIMATIC powerrate for WinCC only supports redundancy with S7-400 controllers.

Page 81: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

16 Configuring the powerrate Report

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 81

16.2.1 Adding Reports Exporting Archived Measured Values

You start the Report Wizard by selecting the option Report > Add.

IMPORTANT

Your WinCC project must be open before you can add reports.

Page 82: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

16 Configuring the powerrate Report

82 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

Selecting Archive Tags

If a report has been selected for energy analyses (export of energy tags, cost center report, duration curve report), the archive tags in the process value archive, available under the name "pre", are read out of the WinCC Tag Logging archive.

The archive tags are presented for the type of report selected. The following types of archive tags are analyzed:

Table 16-1

Name Extension of the Archive Tag

Meaning

.C Absolute counter value

.S Energy value

.V Energy requirement

IMPORTANT

.S is only possible with energy counter values (DB_INTEGER or DB_ANALOG, for example).

Page 83: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

16 Configuring the powerrate Report

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 83

Time period

The start and end times of the archive data are specified for manual reports as the report time period.

Last day The report displays the time period of the last 24 hours.

Elapsed day The report displays the time period of yesterday from 0:00 to 24:00.

Result

Select the report period and quit the wizard by clicking "Finish".

Page 84: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

16 Configuring the powerrate Report

84 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

Generating reports

1. Click the "Generate report" button (1).

2. You can make changes, the time period (2), for example, before the report is generated.

The configured value is always shown first.

3. Generate the report (3).

Result

After successful generation of a report the Excel files are created in the directory configured.

Page 85: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

16 Configuring the powerrate Report

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 85

16.2.2 Adding Reports Cost Centers

Add a report of the "Cost Center Report" type and configure the parameters as shown in the screen shot.

Adding cost centers

You must define cost centers before assigning them. You do this with the

"Cost centers" button. 3 cost centers are defined in this example.

For a cost center report only energy values will be shown (*.S)

Page 86: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

16 Configuring the powerrate Report

86 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

Assigning cost centers

Assignment of cost centers for all archive tags from the pop-up menu.

Time period

Select the report period and quit the wizard by clicking "Finish".

Page 87: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

16 Configuring the powerrate Report

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 87

Result

After successful generation of the report the Excel files are created in the directory configured.

Page 88: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

16 Configuring the powerrate Report

88 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

16.2.3 Adding Reports Duration Curve Report

Add a report of the "Duration Curve Report" type and configure the parameters as shown in the screen shot.

Adding archive tags and time periods

Select the archive tag and time period. Click "Finish" to close the wizard.

Result

After successful generation of the report the Excel files are created in the directory configured.

Page 89: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

16 Configuring the powerrate Report

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 89

Page 90: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

16 Configuring the powerrate Report

90 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

16.2.4 Adding Reports Batch Value Export

Add a report of the "Batch Value Export" type and configure the parameters as shown in the screen shot.

Time period

Select the time period required. Click "Finish" to close the wizard.

Page 91: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

16 Configuring the powerrate Report

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 91

Result

After successful generation of the report the Excel files are created in the directory configured.

Page 92: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

16 Configuring the powerrate Report

92 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

16.2.5 Adding Reports Batch Report (sorted according to time)

Add a report of the "Batch Report (sorted according to time)" type. Configure the parameters as shown in the screen shot.

Time period

Select the time period. Click "Finish" to close the wizard.

Page 93: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

16 Configuring the powerrate Report

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 93

Result

After successful generation of the report the Excel files are created in the directory configured. The Batch Report sorted according to name is identical to the batch report sorted according to time.

Page 94: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

16 Configuring the powerrate Report

94 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

16.2.6 Adding Reports Counter Values

Add a report of the "Counter Values" type. Configure the parameters as shown in the screen shot.

Page 95: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

16 Configuring the powerrate Report

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 95

Time period

Select the time period. Click "Finish" to close the wizard.

IMPORTANT

Different views are displayed for time periods depending on the value given for the "Start time..." parameter.

Page 96: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

16 Configuring the powerrate Report

96 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

Result

After successful generation of the report the Excel files are created in the directory configured.

Possible time periods for reading out counter values

Page 97: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

16 Configuring the powerrate Report

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 97

16.2.7 Adding Reports Virtual Measuring Points

Virtual measuring points are possible for:

• Duration curve report

• Export of archived measured values

• Cost center report

Adding a virtual measuring point

Select a virtual measuring point using the pop-up menu.

Adding a virtual measuring point

Configure the virtual measuring point. If you use energy values (*.S) in your formulas, then you must also use .S for the name of your virtual measuring point.

Page 98: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

16 Configuring the powerrate Report

98 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

Result

The virtual measuring point is created.

IMPORTANT

When you name the virtual measuring points, you must make sure that you use the extensions ".C", ".S" and ".V" so that calculations are made properly in the different report types.

Page 99: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

16 Configuring the powerrate Report

SIMATIC powerrate V3.0 SP1 Version: 01, Entry ID: 65384955 99

16.2.8 Adding Reports Automatic Execution

Double-click on a configured report to change the settings. Set the "Trigger" parameter to "Automatic".

Defining the time values

You define the time period according to your requirements. The options are shown in the screen shot.

Page 100: Service & Support - Siemens · PDF fileService & Support Answers for ... 15.5 Commissioning the Load Management Using a Faceplate ... The WinCC blocks are not selected by default during

16 Configuring the powerrate Report

100 SIMATIC powerrate V3.0 SP1

Version: 01, Entry ID: 65384955

Defining the valid period for values

You can define the valid period for values according to your requirements. The options are shown in the screen shot.

Result

After configuration the automatic reports are marked green.