Академический Документы
Профессиональный Документы
Культура Документы
Measuring& Control:
Switching Loads with S7-1200 and
SENTRON PAC3200 via MODBUS TCP
S7-1200 Set 24
SIMATIC S7-1200, SENTRON PAC3200
Note The Application Examples are not binding and do not claim to be complete
regarding the circuits shown, equipping and any eventuality. The Application
Examples do not represent customer-specific solutions. They are only intended
to provide support for typical applications. You are responsible for ensuring that
the described products are used correctly. These application examples do not
relieve you of the responsibility to use safe practices in application, installation,
operation and maintenance. When using these Application Examples, you
recognize that we cannot be made liable for any damage/claims beyond the
liability clause described. We reserve the right to make changes to these
Application Examples at any time without prior notice.
If there are any deviations between the recommendations provided in these
application examples and other Siemens publications – e.g. Catalogs – the
contents of the other documents have priority.
We do not accept any liability for the information contained in this document.
Any claims against us – based on whatever legal reason – resulting from the use of
the examples, information, programs, engineering and performance data etc.,
described in this Application Example shall be excluded. Such an exclusion shall
Siemens AG 2013 All rights reserved
not apply in the case of mandatory liability, e.g. under the German Product Liability
Act (“Produkthaftungsgesetz”), in case of intent, gross negligence, or injury of life,
body or health, guarantee for the quality of a product, fraudulent concealment of a
deficiency or breach of a condition which goes to the root of the contract
(“wesentliche Vertragspflichten”). The damages for a breach of a substantial
contractual obligation are, however, limited to the foreseeable damage, typical for
the type of contract, except in the event of intent or gross negligence or injury to
life, body or health. The above provisions do not imply a change of the burden of
proof to your detriment.
Copyright
Caution
The functions and solutions described in this article confine themselves to the
realization of the automation task predominantly. Please take into account
furthermore that corresponding protective measures have to be taken up in the
context of Industrial Security when connecting your equipment to other parts of the
plant, the enterprise network or the Internet. Further information can be found
under the Item-ID 50203404.
http://support.automation.siemens.com/WW/view/en/50203404
Sw
2
Table of Contents
Table of Contents
Warranty and Liability .............................................................................................. 2
Table of Contents ..................................................................................................... 3
1 Automation Problem ...................................................................................... 5
2 Automation Solution ...................................................................................... 6
2.1 Required Basic Knowledge ................................................................ 6
2.2 Components ...................................................................................... 6
2.2.1 SENTRON PAC3200 ......................................................................... 6
2.3 Load control principle......................................................................... 7
Data acquisition and switching commands ......................................... 7
Measured data of the SENTRON PAC3200 devices .......................... 8
Base quantity for load control ............................................................. 9
Base load and electrical losses .......................................................... 9
Criteria for switching off loads ............................................................ 9
Criteria for switching loads back on .................................................. 11
Priority list ........................................................................................ 12
2.4 Data logging .................................................................................... 13
2.5 Error messages ............................................................................... 14
2.6 Hardware and programming software of the sample project ............. 15
Products………................................................................................ 15
Programming package ..................................................................... 16
Siemens AG 2013 All rights reserved
OB100 – “Startup”............................................................................ 21
OB1 – “Main” ................................................................................... 21
FB501 – “LoadSwitching”, DB501 – “LoadSwitching_DB”................. 21
FB1084 – “MB_CLIENT“ .................................................................. 22
FC502 – “CALC_P_active_av” ......................................................... 22
FC161 – “Event” .............................................................................. 22
FC501 – “Load_shedding” ............................................................... 23
DB503 – “PAC_data” ....................................................................... 23
2.9.2 User parameters .............................................................................. 23
Load-independent parameters in LoadSwitching_DB ....................... 23
Load-dependent parameters in DB “PAC_data” ............................... 25
2.9.3 Program flow in FB501 “LoadSwitching” .......................................... 27
Networks……………. ....................................................................... 27
Sequencer ....................................................................................... 27
2.10 Visualization .................................................................................... 29
Main screen (start screen) ............................................................... 29
“Consumer load list” screen ............................................................. 30
“Error messages” screen.................................................................. 30
3 Configuration ................................................................................................ 31
3.1 SIMATIC software installation .......................................................... 31
3.2 Parameterizing the SENTRON PAC3200 devices ............................ 31
3.3 Configuring the HMI ......................................................................... 32
3.4 Settings on the development system (Windows) .............................. 33
3.4.1 Assigning the IP address to the development system ....................... 33
7 References .................................................................................................... 51
8 History .......................................................................................................... 52
Copyright
Sw
4
1 Automation Problem
1 Automation Problem
Power utilities charge industrial electricity customers not only for the active energy
consumed (in kWh, “kWh rate”), but they also charge another price dependent on a
power limit (in kW, “price per kW”). If this power limit specified by the power utility is
exceeded, an additional price per kW has to be charged for the entire accounting
period (e.g., 1 month or 1 year, depending on the terms of the contract).
The power limit is defined as the average of the total electric power imported over a
defined measuring period. Generally, this has a duration of 15 minutes. The power
utility – starting with the full hour – thus measures the 15-minute energy
consumption and then divides this value by the time to calculate 15-minute average
power demands. If a single one of these power values exceeds the specified power
limit within the accounting period, the price per kW must be paid for the entire
accounting period.
To avoid this, large-scale electricity customers temporarily switch off dispensable
loads. Now the task in this application is as follows:
Relative to the start of the respective measuring period, the total average
power demand of all loads is to be permanently determined to forecast it for
the end of the measuring period. If it is expected that the power limit will be
exceeded, loads are to be temporarily switched off according to a priority list.
The respective total average power demands at the end of the measuring
Copyright Siemens AG 2013 All rights reserved
58856464_Set24_LoadSwitching_V1d1_en.doc
periods are to be logged over at least the accounting period to furnish proof to
the power utility.
Figure 1-1: Task
Measurement of electrical energy
Load 1 and power by power utility
(non-interruptible)
Load control
Load n
(non-interruptible)
…
Load 1
(interruptible)
Load 2
(interruptible)
…
Load n
(interruptible)
2 Automation Solution
2.1 Required Basic Knowledge
A general knowledge of the field of electrical engineering is required to understand
this application example.
Knowledge of the relevant safety regulations and standards is required for
installing and connecting the components.
You should be familiar with PLC handling, especially SIMATIC S7-1200 and with
the TIA portal as a platform for programming and commissioning.
Knowledge concerning load management and optimizing energy delivery is helpful.
2.2 Components
A SIMATIC S7-1200 CPU (see /2/) is used for load control.
SENTRON PAC3200 multi-function measuring instruments are used to
measure the power or electrical energy of the loads.
A KTP600 operator panel is used as the HMI (see /10/).
Siemens AG 2013 All rights reserved
Features
The SENTRON PAC3200 is a Power Monitoring Device for displaying all the
relevant system parameters in low-voltage power distribution. It is capable of
single-phase, two-phase or three-phase measurement and can be used in two-
wire, three-wire and four-wire systems.
Sw
6
2 Automation Solution
2.3 Load control principle
In addition, the SENTRON PAC3200 has a multifunctional digital input and digital
output. The parameters can be set either direct on the device or via the
communications interface.
Password protection is integrated via the front of the device to guard against
unauthorized access.
Note Power limit monitoring is alone power customer’s funeral. The utility doesn’t
deliver any digestible data (measurands, warnings) to the customer, which can
be used to switch-off loads in due time. The power customer has to trust in a
good accordance of the utility’s measurements and calculations with the own
ones that are dealt with in this application example .
1
Normally Closed
Base Load,
Electric Losses
Measurement of electrical energy
PAC
Load 1 3200
and power by power utility
(non-interruptible)
PAC
Load 2 3200
(non-interruptible) Infeed
…
PAC
Load n 3200
(non-interruptible)
PM1207 S7-1200
Load 1 PAC
(interruptible) 3200
TIA-Portal
PAC DataLog
Siemens AG 2013 All rights reserved
Load 2 3200
(interruptible)
…
…
Load n PAC
(interruptible) 3200
KTP600
2
The SENTRON PAC 3200 has a digital input which can be paramererized for tariff
changeover. See Chap. 9.2.6. in /1/. The application uses the default configuration in which the
input has no effect and the electrical energy is added in tariff ON PEAK.
Sw
8
2 Automation Solution
2.3 Load control principle
3 3
Pav-fc is the forecast of Pav for the end of the measuring period. Pav_fc is
continually calculated – thus at the interval tscan – from the current gradient of
the shape of Pav. Pmax is the power limit, i.e. the average power demand,
relative to the measuring period, whose exceeding would result in a higher
kilowatthour rate.
Figure 2-3: Forecast of the total average power demand (switching off)
P
tscan Pav_fc
Pmax
Pav(tn)
Pav(tn-1)
Pav(t)
t
tn-1 tn
tm
t0 tm
3
Origin of indices: av=average, fc=forecast
Eov Eoff
4
Eov(tn) is the consumed energy of all loads from the start of the measuring
period until the current time that exceeds the energy Emax(tn) max. permissible
until that time. Emax(tn) is the product of Pmax and tn. Eoff(tn) is the energy that is
available for shedding by the next load to be switched off – with the power P off
– according to the priority list from the current time until the end of the
measuring period.
Emax
Siemens AG 2013 All rights reserved
t
tn
tm
t0 tm
Poff is the power value of the load that defines its switch-off instant. The smaller
Copyright
it is compared to the rated power, the sooner the load will be switched off.
4
Origin of indices: ov=overload
Sw
10
2 Automation Solution
2.3 Load control principle
Pmax
Pav(tn-1)
Pav(t)
Copyright Siemens AG 2013 All rights reserved
58856464_Set24_LoadSwitching_V1d1_en.doc
Pav(tn)
Pav_fc
t
tn-1 tn
tm
t0 tm
Eov Eon
Figure 2-6: Energy resource of the next load to be switched on
Pon Eon
Pmax
Eov Pav(tn)
t
tn
tm
t0 tm
In contrast to Figure 2-4, the blue area representing Eov is below and the green
area representing Eon is above the Pmax line in the above figure. Pon is the
power value of the load that defines its switch-on instant. The greater it is
compared to the rated power, the later the load will be switched on.
Waiting time between switch-on actions was complied with
If several loads are successively switched on due to quickly decreasing total
Copyright
Priority list
The selection of the load to be switched next (on or off) is based on a priority list to
be edited by the user. It is represented by a field in a DB and organized as follows:
Sw
12
2 Automation Solution
2.4 Data logging
When switching off, the list is processed from top to bottom. When switching on, it
is processed from bottom to top.
User program
Pav(tm)
…
DataLogCreate
.csv
Webserver
…
DataLogOpen
Load memory
…
DataLogWrite
…
Siemens AG 2013 All rights reserved
complete”, etc.) exceeds a parameterized time, an error will be reported for the
respective SENTRON PAC.
No load available to switch-off
If loads are no longer available for switching off in the priority list as all
switchable loads have already been switched off by the system or load
shedding is currently not permitted due to a running minimum on time, an error
message will be generated.
Scan interval too short
When adding the individual power/energy measured per SENTRON PAC to
the total power/energy over all loads, it is assumed that the individual
power/energy values were determined at exactly the same time. The finite
communication time required for polling a SENTRON PAC3200 device causes
skews that eventually influence the accuracy of the cumulative values. As long
as the scan time tscan (= parameterizable time after which polling restarts with
the first SENTRON PAC) is long compared to the sum of the communication
time requirements of all connected SENTRON PAC3200 devices, the issue
can be ignored. If, however, the number of SENTRON PAC3200 devices is so
large that the communication with them lasts longer than tscan, tscan will no
longer take effect and the summation will no longer be determined. In this
case, an error message will be displayed to inform the user of the problem.
However, please consider that an extension of tscan results in a decrease of
the number of measured values within the measuring period and thereby also
adversely affects the accuracy.
Sw
14
2 Automation Solution
2.6 Hardware and programming software of the sample project
Products……….
Table 2-2: Products
Components Qty. MLFB/order number
1. SENTRON PAC3200; LCD; 96X96MM POWER 2 7KM2112-0BA00-3AA0
MONITORING DEVICE PANEL MOUNT TYPE FOR
MEASUREMENT OF ELECTR. VALUES VAUX: 110-
340VDC / 95-240VAC VIN: MAX.690/400V; 45-65HZ
AMPIN: X/1A OR X/5A AC COMPRESSION TYPE
Copyright Siemens AG 2013 All rights reserved
58856464_Set24_LoadSwitching_V1d1_en.doc
TERMINALS
2. SIMATIC S7-1200 POWER MODULE PM1207 1 6EP1332-1SH71
STABILIZED POWER SUPPLY INPUT: 120/230 V AC
OUTPUT: 24 V DC/2.5 A
3. COMPACT SWITCH MODULE CSM 1277 CONNECTION 1 6GK7277-1AA10-0AA0
SIMATIC S7-1200 AND UP TO 3 FURTHER IND.
ETHERNET USERS WITH 10/100 MBIT/S UNMANAGED
SWITCH, 4 RJ45 PORTS, EXT. 24V DC POWER
SUPPLY, LED DIAGNOSTICS, S7-1200 MODULE INCL.
ELECTRONIC MANUAL ON CD
4. SIMATIC S7-1200, CPU 1215C, KOMPAKT CPU, 1 6ES7215-1AG31-0XB0
DC/DC/DC, 2 PROFINET PORT, ONBOARD I/O: 14 DI
24VDC; 10 DO 24VDC; 0,5A; 2 AI 0-10V DC, 2 AO 0-
20MA DC, STROMVERSORGUNG: DC 20,4 -28,8 V DC,
PROGRAMM/DATENSPEICHER 100 KB
5. SIMATIC HMI KTP600 BASIC COLOR PN, BASIC PANEL,
KEY AND TOUCH OPERATION, 6" TFT DISPLAY, 256
COLORS, PROFINET INTERFACE, CONFIGURATION
FROM WINCC FLEXIBLE 2008 SP2 COMPACT/ WINCC 1 6AV6647-0AD11-3AX0
BASIC V10.5/ STEP7 BASIC V10.5, CONTAINS OPEN
SOURCE SW WHICH IS PROVIDED FREE OF CHARGE
FOR DETAILS SEE CD
6. MINIATURE POWER RELAY SCREW TERMINALS,
2NO+2NC SNAP-ON MOUNTING ON STANDARD 2 3TK2022-0BB4
MOUNTING RAIL DC SOLENOID SYSTEM DC 24V
7. Current transformer
(depending on the loads; both x/1A or also x/5A current 2 -
transformers can be used)
Note In deviation from Table 2-2 you can use each type of S7-1200 CPU from firmware
V2.1.
Should the S7-1200 CPU you are going to use not be included in the hardware
catalogue, actualize it with the latest HSP (hardware Support Package). See /5/.
A KTP600 operator panel is not mandatory. In the TIA Portal, you can work with the
simulation ( icon in the toolbar).
Programming package
Siemens AG 2013 All rights reserved
Sw
16
2 Automation Solution
2.7 Wiring of the sample project
SENTRON SENTRON
PAC3200 PAC3200
1 2
IP-Adr. 192.168.0.201
IP-Adr. 192.168.0.200 F
L1
N Load 1
The load-side wiring of the SENTRON PAC3200 devices depends on the load
types. The sample wiring shows the connection of a single-phase load. For detailed
information and other examples of how to connect different loads, please refer in
particular to chapter 6.4 “Connection examples” and chapter 9.2.4 “Basic
parameters” in /1/.
For the parameter description of MB_CLIENT, please refer, for example, to the
online help of the TIA Portal.
NOTICE To communicate with the SENTRON PAC3200, in the static data of the
MB_CLIENT record, the TCON_PARAM.MB_UNIT_ID parameter must have
a value between 16#0001 and 16#00F7. As the default value when creating
the data record is 16#00FF, it must be changed later. In the associated
application example, the change has already been made and the parameter
has been set to 16#0001.
Sw
18
2 Automation Solution
2.8 Communication principle
As can be seen in Figure 2-10, the Modbus data register is eight bytes wide and
Copyright Siemens AG 2013 All rights reserved
58856464_Set24_LoadSwitching_V1d1_en.doc
assigned to the static tag Rx_LReal. With Rx_Real, Rx_UDInt and Tx_Uint, three
more data views are defined whose data widths can be less than eight bytes. In
this application, the different data views are used to access the following data of
the SENTRON PAC device:
Serial communication
To allow operation of more than eight SENTRON PAC3200 devices, the
communication is serial communication:
Start
n := 1
Network addresses
In the application, the following addresses are assigned:
Copyright
The application assumes that all SENTRON PAC3200 devices belong to one
subnet. Therefore, the first three bytes are identical for all measuring instruments
and must be specified only 1 x in the relevant parameter DB. The fourth byte is
crucial for the discrimination of the devices. In this case, the addresses 2-252 5 can
be assigned to the SENTRON PAC3200 devices.
5
On condition that the IP device address of the development system is 253.
Sw
20
2 Automation Solution
2.9 Program description
Figure 2-12 shows the call hierarchy of the program blocks and the access to the
data blocks.
DB501
“PowerMan_DB”
Operating system
OB100 FB1084
“Startup” “MB_CLIENT”
FC502
FB501 “CALC_P_active_av”
“PowerMan”
FC161
“Event”
OB1
“MAIN”
FC501
“Load_shedding”
Copyright Siemens AG 2013 All rights reserved
58856464_Set24_LoadSwitching_V1d1_en.doc
DB503
“PAC_data”
OB100 – “Startup”
In this block, constants are calculated that are derived from input parameters and
do not change during runtime.
NOTICE During runtime, do not change input parameters that are accessed in
“Startup”. These are the following parameters in LoadSwitching_DB:
P_average_limit P_active_sample_max
monitoring_time offset_P_active
offset_E_active offset_h
offset_DQ
(see Table 2-9)
OB1 – “Main”
The block contains only the call of FB501 “LoadSwitching”.
FB1084 – “MB_CLIENT“
When the instruction of the same name is inserted into the user program in
“System blocks > Program resources”, this system FB will be created in the project
tree. The associated static data was created as a multi-instance and is located in
DB501 “LoadSwitching_DB” under the name “MB_CLIENT_Instance”.
FC502 – “CALC_P_active_av”
The FC is used as an auxiliary function and, once in the scan interval, calculates
the instantaneous value Pav (t act ) of the average active power relative to the start
of the measuring period for each SENTRON PAC.
Eactive (tact ) Eactive (t0 )
Pav (tact )
tact t0
Eactive = value of the active energy meter;
t act = working hours counter value at the moment;
t0 = working hours counter value at the start of the measuring period.
Active energy meter and working hours counter can overflow in the SENTRON
PAC and after an overflow, restart at zero. As the overflow limits are known, the
overflow can be considered. FC502 takes this into account.
Siemens AG 2013 All rights reserved
E_active_overflow LReal IN Overflow value of the active energy meter (Wh) (from /1/)
h UDInt IN Value of the working hours counter (s)
at the moment
h_0 UDInt IN Value of the working hours counter (s)
at the start of the measuring period
h_overflow UDInt IN Overflow value of the working hours counter (s) (from /1/)
FC161 – “Event”
The FC facilitates entering and removing error bits in alarm words from which the
HMI generates the error messages.
Table 2-7: FC161 – block parameters
Parameter Data IN/OUT Explanation
type
Trigger Bool IN TRUE: Error bit is set
FALSE: Error bit is reset
Event_Bit UInt IN Significance in the error word (0…15)
Alarm_Word Word INOUT Error word accessed by the HMI
Global_fault Bool OUT = TRUE if at least 1 bit is set in the error word
Sw
22
2 Automation Solution
2.9 Program description
FC501 – “Load_shedding”
In accordance with the explanations in chapter 2.2.1, the block decides if a load is
to be switched off or on. If a load is no longer available for load switching, the block
initiates a relevant error message.
DB503 – “PAC_data”
While the data concerning the overall functionality is stored in LoadSwitching_DB,
DB503 includes all necessary load-specific data records. The tags marked with “!”
in the comment of the DB have to be parameterized by the user (see Table 2-10).
6
Switch-off and switch-on power can also be specified as absolute values (see Table 2-10).
When doing so, the P_OFFfactor, P_ONfactor and threshold parameters are irrelevant.
Sw
24
2 Automation Solution
2.9 Program description
7
This requires that a value above the zero threshold has been measured at least 1 x after the
CPU start. Ensure this if you determine switch-off and switch-on power via the P_OFFfactor and
P_ONfactor parameters.
8
Different switch-on and switch-off power of a load force hysteresis.
Sw
26
2 Automation Solution
2.9 Program description
Note This application includes data records for 20 loads. If necessary, modify the
number of data records to save disk space or cover more loads. To do so,
reduce or increase the size of load_spec, prio_list and consumer_load arrays
accordingly. PAC_max must never be greater than the number of elements of
these arrays.
Networks…………….
Sequencer
The state diagram (Figure 2-13) below shows the program flow implemented by the
sequencer. In the diagram’s yellow ellipses (states) the program waits for the
events which are displayed by the blue texts. With the arriving event, the current
state is left and the program executes the task which follows the yellow ellipse in
direction of the arrow. Subsequently the program leads – where required via a
branching (decision) - to a successor state. The task or branching directly following
a state is always programmed in the same network than the state definition itself.
Initia
estab AC 1
No Step 1010 (NW11)
Step 1000 (NW3)
te co m ent
to P
Scan time Scan time elapsed Start of
lish
nnec
Load management (process FB Load_shedding) elapsed? measuring period
Initiate connection establishment to PAC 1 Step 10 (NW4)
Yes
tion
Yes CONNECTED & Restart
nicht BUSY
All PACs processed?
No Initiate communication job
Step 50 (NW10) Set MB_CLIENT parameter
Not CONNECTED
Siemens AG 2013 All rights reserved
Step 30 (NW8) No
Save Eactive
Working hours counter
received (DONE) Switching request?
Yes
2.10 Visualization
For monitoring, the KTP600 provides three screens.
The bar charts of the power displays are normalized to the specified power limit (in
the example: 8 kW). They display values in the range between 80% and 120% of
the power limit. The number representations allow the display of values less than
10MW.
The bar chart of the energy reserve is also normalized. It displays values in the
range between 0 and 10% of the active energy limit relative to the measuring
period.
The bar chart of the measuring period is normalized to its duration.
The button to release reclosing the next consumer load to be switched on is only
visible, if…
„LoadSwitching“.ON_ack_required is parameterized to TRUE9 and
the load control schedules reclosing a consumer load due to the power regime.
To confirm pressing the “ON” button, its color becomes light yellow until the
relevant SENTRON PAC3200 device has got the switch-on command for the load.
9
In the project code of the application example bit „LoadSwitching“.ON_ack_required = FALSE
(default value). Therefore button „ON“ is invisible and consumer loads get reclosed
automatically without any manually release.
Back to “Load
management” screen
3 Configuration
Once you have properly installed and wired all components and connected them to
the supply voltage as shown in Figure 2-8, the following configurations and
parameter settings have to be made.
After the above parameterization, the measuring voltage and the measuring current
have to be applied to the SENTRON PAC3200 devices and the displayed
measured values have to be checked.
Your PG/PC must be assigned an IP address in the same subnet as the other
network components involved. The IP addresses of the individual nodes are shown
in Table 2-5.
To assign the IP address for your network card, proceed as follows in the Windows
XP operating system:
10
When using IP device address 253 for the development system, the entire address range
from 2-252 will be available to you for the SENTRON PAC3200 devices.
To simulate the KTP600 on the development system, the PG/PC interface must be
set accordingly.
Power limit
Base load
Switchable loads
program blocks.
Select the “Load” button.
Note You can conveniently synchronize the CPU clock in the following two ways:
Synchronization via NTP server (chapter 5.6.7 in /2/).
Synchronization via GPS receiver (/7/).
LoadSwitching_DB [DB501]
PAC_data [DB503]
Copyright Siemens AG 2013 All rights reserved
58856464_Set24_LoadSwitching_V1d1_en.doc
With regard to the memory, 20 SENTRON PAC3200 devices are considered in the
example. If you want to configure more devices, you have to increase the size of
the “load_spec”, “prio_list” and “consumer_load” arrays accordingly.
Dra
g
&D
r op
The following tags have to be created in the operator panel configuration as shown above:
“OFF“ column
consumer_load[ ].OFF >Animations
>View
>Visibility
“earliest turn-on instant” column (hour)
consumer_load[ ].time_control.turn_on_instant.HOUR >Properties
>General
consumer_load[ ].time_control.turn_on_disabled >Animations
>View
>Visibility
“earliest turn-on instant” column (minute)
consumer_load[ ].time_control.turn_on_instant.MINUTE >Properties
>General
consumer_load[ ].time_control.turn_on_disabled >Animations
>View
>Visibility
“earliest turn-off instant” column (hour)
consumer_load[ ].time_control.turn_off_instant.HOUR >Properties
>General
consumer_load[ ].time_control.turn_off_disabled >Animations
>View
>Visibility
“earliest turn-off instant” column (minute)
consumer_load[ ].time_control.turn_off_instant.MINUTE >Properties
>General
consumer_load[ ].time_control.turn_off_disabled >Animations
>View
>Visibility
4 Live demo
4.1 Switching behavior
Initial load relationships as shown in Figure 3-1 are assumed.
2. Wait for the start of the measuring period. If it When the measuring period starts after a
is triggered using the CPU clock, you can set restart of the controller, the outputs of all
the time of day in online mode to start of SENTRON PAC3200 devices will be reset and
measuring period minus n seconds to save all switchable loads will be switched on.
time.
3. Monitor the “Load management” screen (for With the third scan after the start of the
the explanation, see Figure 2-14). measuring period (scan time has elapsed 3 x),
Copyright Siemens AG 2013 All rights reserved
58856464_Set24_LoadSwitching_V1d1_en.doc
At the end of each measuring period, the average total power (relative to the
measuring period) is written to a csv file in the load memory as a data log. Wait
until several measuring periods are over before you download the file.
5 Glossary
Tabelle 5-1: Glossary
Begriff Erläuterung
CPU Central Processing Unit – in this context the complete controls S7-
1200.
CSV-Format CSV means „Comma-Separated Values“ und describes the format
of a text file used for storing or interchanging simple data structures.
Data Log A data log is a data area in the load memory or on the memory card
to which process values can be written. With den webserver of the
SIMATIC S7-1200 data can be written into an Excel file.
tm Duration of the measuring period, wherein the power utility
calculates the total average power demand to compare it with a
reference value (power limit).
(Tag in STEP 7 program: „LoadSwitching_DB“.monitoring_time)
tscan Scan cycle in which the SENTRON PAC3200 readings are
transmitted periodically.
(Tag in STEP 7 program: „LoadSwitching_DB“.scan_time)
Emax(tn) Total energy consumption from the start of the measuring period to
the current instant of time tn in case of permanently keeping the
Copyright Siemens AG 2013 All rights reserved
power limit.
58856464_Set24_LoadSwitching_V1d1_en.doc
11
The program does not differentiate between loads to switch off or on. The distinction is done
by the sign of the overload.
Begriff Erläuterung
Pmax Power limit specified by the power utility, i.e. the average power
demand, relative to the measuring period, whose exceeding would
result in a higher kilowatthour rate.
(Tag in STEP 7 program: „LoadSwitching_DB“.P_average_limit)
Poff Active power of the load used for the calculation of the switch-off
instant.
A value less than or equal to the rated power is usually used. The
smaller the value compared to the rated power, the sooner the load
will be switched off at a switch-off request within the measuring
period if the software has defined it as the next load to be switched
off.
(Tag in STEP 7 program: „PAC_data“.load_spec[n].P_switch_off)
Pon Active power of the load used for the calculation of the switch-on
instant.
A value greater than or equal to the rated power is usually used.
The greater the value compared to the rated power, the later the
load will be switched on at a switch-on request within the measuring
period if the software has defined it as the next load to be switched
on.
(Tag in STEP 7 program: „PAC_data“.load_spec[n].P_switch_on)
PROFINET Process Field Network is the open Industrial Ethernet standard of
PROFIBUS & PROFINET International (PI) for automation.
Siemens AG 2013 All rights reserved
6 Code Elements
The software examples are available on the HTML page from which you
downloaded this document.
Table 6-1: Code elements
File name12 Contents
58856464_Set24_LoadSwitching_V11_SP2_Vxdx.zip STEP 7 V11 project
58856464_Set24_LoadSwitching_V12_Vxdx.zip STEP 7 V12 project
7 References
Table 7-1: References
No. Document/link
/1/ Manual SENTRON Power Monitoring Device PAC3200
http://support.automation.siemens.com/WW/view/en/26504150
/2/ SIMATIC S7-1200 System Manual
http://support.automation.siemens.com/WW/view/en/36932465
/3/ STEP 7 Basic V11.0 SP2 System Manual
http://support.automation.siemens.com/WW/view/en/57199536
Copyright Siemens AG 2013 All rights reserved
58856464_Set24_LoadSwitching_V1d1_en.doc
12
Always use the most current software
(pay attention to “…_Vxdx” in the file name!).
8 History
Table 8-1: History
Version Date Modification
V1.0 03/2012 First edition
V1.1 01/2013 You can select wether reclosing consumer loads is
accomplished manually or automatically
Editorial revision
V1.1 05/2013 Supplemented by TIA Portal V12 project.
V1.1 07/2013 Minimal text modification in chap.1
Siemens AG 2013 All rights reserved
Copyright