control de demanda sentron pac 3200_s7-1200.pdf
TRANSCRIPT
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
1/52
Applications & ToolsAnswers for industry.
Cover
Measuring& Control:
Switching Loads with S7-1200 and
SENTRON PAC3200 via MODBUS TCP
S7-1200 Set 24
SIMATIC S7-1200, SENTRON PAC3200
Application Description July 2013
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
2/52
Warranty and Liability
2S
CopyrightS
ie
mensAG
2013Allrightsreserved
Warranty and Liability
Note The Application Examples are not binding and do not claim to be completeregarding the circuits shown, equipping and any eventuality. The ApplicationExamples do not represent customer-specific solutions. They are only intendedto provide support for typical applications. You are responsible for ensuring thatthe described products are used correctly. These application examples do notrelieve you of the responsibility to use safe practices in application, installation,operation and maintenance. When using these Application Examples, yourecognize that we cannot be made liable for any damage/claims beyond theliability clause described. We reserve the right to make changes to theseApplication Examples at any time without prior notice.If there are any deviations between the recommendations provided in theseapplication examples and other Siemens publications e.g. Catalogs thecontents 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 ofthe examples, information, programs, engineering and performance data etc.,described in this Application Example shall be excluded. Such an exclusion shallnot apply in the case of mandatory liability, e.g. under the German Product LiabilityAct (Produkthaftungsgesetz), in case of intent, gross negligence, or injury of life,body or health, guarantee for the quality of a product, fraudulent concealment of adeficiency or breach of a condition which goes to the root of the contract(wesentliche Vertragspflichten). The damages for a breach of a substantialcontractual obligation are, however, limited to the foreseeable damage, typical forthe 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 ofproof to your detriment.
Any form of duplication or distribution of these Application Examples or excerptshereof is prohibited without the expressed consent of Siemens Industry Sector.
CautionThe functions and solutions described in this article confine themselves to therealization of the automation task predominantly. Please take into account
furthermore that corresponding protective measures have to be taken up in thecontext of Industrial Security when connecting your equipment to other parts of theplant, the enterprise network or the Internet. Further information can be foundunder the Item-ID 50203404.
http://support.automation.siemens.com/WW/view/en/50203404
http://support.automation.siemens.com/WW/view/en/50203404http://support.automation.siemens.com/WW/view/en/50203404 -
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
3/52
Table of Contents
Switching Loads with S7-1200 and SENTRON PAC3200Version 1.1, Entry ID: 58856464 3
CopyrightS
ie
mensAG
2013Allrightsreserved
Table of ContentsWarranty and Liabili ty .............................................................................................. 2
Table of Contents ..................................................................................................... 3
1
Automation Problem ...................................................................................... 5
2 Automation Solution ...................................................................................... 6
2.1 Required Basic Knowledge ................................................................ 62.2 Components ...................................................................................... 62.2.1 SENTRON PAC3200 ......................................................................... 62.3 Load control principle......................................................................... 7
Data acquisition and switching commands ......................................... 7Measured data of the SENTRON PAC3200 devices .......................... 8Base quantity for load control ............................................................. 9Base load and electrical losses .......................................................... 9Criteria for switching off loads ............................................................ 9Criteria for switching loads back on .................................................. 11
Priority list ........................................................................................ 122.4 Data logging .................................................................................... 13
2.5 Error messages ............................................................................... 142.6 Hardware and programming software of the sample project ............. 15
Products................................................................................ 15Programming package ..................................................................... 16
2.7 Wiring of the sample project............................................................. 172.8 Communication principle.................................................................. 17
Client-server relationship ................................................................. 17The MB_CLIENT instruction ............................................................ 18Access to the Modbus data register ................................................. 19Serial communication....................................................................... 19Network addresses .......................................................................... 20
2.9
Program description......................................................................... 20
2.9.1 Block structure................................................................................. 21OB100 Startup............................................................................ 21OB1 Main ................................................................................... 21FB501 LoadSwitching, DB501 LoadSwitching_DB................. 21FB1084 MB_CLIENT .................................................................. 22FC502 CALC_P_active_av ......................................................... 22FC161 Event .............................................................................. 22FC501 Load_shedding ............................................................... 23DB503 PAC_data ....................................................................... 23
2.9.2 User parameters .............................................................................. 23Load-independent parameters in LoadSwitching_DB ....................... 23Load-dependent parameters in DB PAC_data ............................... 25
2.9.3
Program flow in FB501 LoadSwitching .......................................... 27
Networks. ....................................................................... 27Sequencer ....................................................................................... 27
2.10 Visualization .................................................................................... 29Main screen (start screen) ............................................................... 29Consumer load list screen ............................................................. 30Error messages screen.................................................................. 30
3 Configurat ion ................................................................................................ 31
3.1 SIMATIC software installation .......................................................... 313.2 Parameterizing the SENTRON PAC3200 devices ............................ 313.3 Configuring the HMI ......................................................................... 323.4 Settings on the development system (Windows) .............................. 33
3.4.1
Assigning the IP address to the development system ....................... 33
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
4/52
Table of Contents
4S
CopyrightS
ie
mensAG
2013Allrightsreserved
3.4.2 Setting the PG/PC interface ............................................................. 353.5 Parameter assignments in the TIA Portal and project download ....... 36
Opening the project ......................................................................... 36Setting the country-specific local time .............................................. 37
Load settings for the live demo ........................................................ 37Downloading the control program to the CPU................................... 38
Setting the CPU clock ...................................................................... 38Downloading the HMI project part to the KTP600 ............................. 39Simulating the KTP600 .................................................................... 40
3.6 Expanding the number of SENTRON PAC3200 devices .................. 413.6.1 Expansions in data blocks ............................................................... 41
LoadSwitching_DB [DB501] ............................................................. 41PAC_data [DB503] .......................................................................... 41
3.6.2 Expansions in the Load list HMI screen ......................................... 423.6.3 Expansions in the Error messages HMI screen .............................. 44
4 Live demo ..................................................................................................... 45
4.1
Switching behavior .......................................................................... 454.2 Error messages ............................................................................... 46
4.3 Data log........................................................................................... 46
5 Glossary ........................................................................................................ 49
6 Code Elements ............................................................................................. 51
7 References .................................................................................................... 51
8 History .......................................................................................................... 52
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
5/52
1 Automation Problem
Switching Loads with S7-1200 and SENTRON PAC3200Version 1.1, Entry ID: 58856464 5
CopyrightS
ie
mensAG
2013Allrightsreserved
58856464_
Set24_
LoadSwitching_
V1d1_
en.doc
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 apower limit (in kW, price per kW). If this power limit specified by the power utility isexceeded, an additional price per kW has to be charged for the entire accountingperiod (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 adefined measuring period. Generally, this has a duration of 15 minutes. The powerutility starting with the full hour thus measures the 15-minute energyconsumption and then divides this value by the time to calculate 15-minute averagepower demands. If a single one of these power values exceeds the specified powerlimit within the accounting period, the price per kW must be paid for the entireaccounting period.
To avoid this, large-scale electricity customers temporarily switch off dispensableloads. Now the task in this application is as follows:
Relative to the start of the respective measuring period, the total averagepower demand of all loads is to be permanently determined to forecast it forthe end of the measuring period. If it is expected that the power limit will beexceeded, loads are to be temporarily switched off according to a priority list.
The respective total average power demands at the end of the measuringperiods are to be logged over at least the accounting period to furnish proof tothe power utility.
Figure 1-1: Task
Load 1(interruptible)
Load 2(interruptible)
Load n(interruptible)
Load 1(non-interruptible)
Load 2(non-interruptible)
Load n(non-interruptible)
Load control
Infeed
Measurement of electri cal energy
and power by power utility
Separate power
measurement
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
6/52
2 Automation Solution
2.1 Required Basic Knowledge
6S
CopyrightS
ie
mensAG
2013Allrightsreserved
2 Automation Solut ion
2.1 Required Basic Knowledge
A general knowledge of the field of electrical engineering is required to understandthis application example.
Knowledge of the relevant safety regulations and standards is required forinstalling and connecting the components.
You should be familiar with PLC handling, especially SIMATIC S7-1200 and withthe 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 tomeasure the power or electrical energy of the loads.
A KTP600 operator panel is used as the HMI (see/10/).
2.2.1 SENTRON PAC3200
The link to the multi-function measuring instrument you find inchap. 7References (/1/).
Abbildung 2-1: SENTRON PAC3200
Find a short summary of the measuring devices features below.
Features
The SENTRON PAC3200 is a Power Monitoring Device for displaying all therelevant system parameters in low-voltage power distribution. It is capable ofsingle-phase, two-phase or three-phase measurement and can be used in two-
wire, three-wire and four-wire systems.
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
7/52
2 Automation Solution
2.3 Load control principle
Switching Loads with S7-1200 and SENTRON PAC3200Version 1.1, Entry ID: 58856464 7
CopyrightS
ie
mensAG
2013Allrightsreserved
58856464_
Set24_
LoadSwitching_
V1d1_
en.doc
Thanks to its compact design in 96 x 96 mm format, it is an ideal replacement forall conventional analog indicating instruments.
Thanks to its large measured voltage range, the SENTRON PAC3200 with multi-range power supply can be connected direct in any low-voltage system up to a
rated system voltage of 690 V.
For the device version with extra-low voltage power supply, direct connection tosystems up to 500 V is permissible.
Higher voltages can be measured using voltage transformers. For measuringcurrent, either x/1 A or x/5 A current transformer can be used.
The large graphical LC display permits reading even from a distance. TheSENTRON PAC3200 has backlighting that can be adjusted in steps for optimalreadability even under poor lighting conditions.
The combination of four function keys with the multi-language plaintext displaysmakes intuitive user prompting possible. The experienced operator can also usedirect navigation for quicker selection of the desired display menu.
The SENTRON PAC3200 has a range of useful monitoring, diagnostics andservice functions, a two-tariff active energy and reactive energy counter, auniversal counter, and a working hours counter for monitoring the running time ofconnected loads.
The integral Ethernet interface or an optionally available interface module can beused for communication. This application uses the inbuilt interface.
In addition, the SENTRON PAC3200 has a multifunctional digital input and digitaloutput. The parameters can be set either direct on the device or via thecommunications interface.
Password protection is integrated via the front of the device to guard againstunauthorized access.
2.3 Load control principle
Data acquisition and swit ching commands
The measured data at the power infeed point necessary for load control is acquiredindividually for each load by the SENTRON PAC3200 multi-function measuringinstruments and added up in the PLC. No measurement is necessary at the actualpower infeed point. The SENTRON PAC3200 devices transmit the data to thecontroller via MODBUS on TCP. The switching-off of loads that is required whenthere is an imminent exceeding of the power limit is performed using relays (NC
1
contacts) that are controlled directly by the digital output of the relevant SENTRONPAC3200 device. The SENTRON PAC3200 devices receive the associatedswitching commands from the PLC via MODBUS communication.
Note Power limit monitoring is alone power customers funeral. The utility doesntdeliver any digestible data (measurands, warnings) to the customer, which canbe used to switch-off loads in due time. The power customer has to trust in agood accordance of the utilitys measurements and calculations with the ownones that are dealt with in this application example .
1Normally Closed
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
8/52
2 Automation Solution
2.3 Load control principle
8S
CopyrightS
ie
mensAG
2013Allrightsreserved
Figure 2-2: Data acquisition and switching commands
Infeed
Measurement of electrical energyand power by power utilit yPAC
3200
S7-1200
KTP600
PM1207
TIA-Portal
DataLog
PAC
3200
PAC
3200
PAC
3200
PAC
3200
PAC
3200
Load 1(interruptible)
Load 2(interruptible)
Load n(interruptible)
Load 1(non-interruptible)
Load 2(non-interruptible)
Load n(non-interruptible)
Base Load,
Electric Losses
Measured data of the SENTRON PAC3200 devices
The multi-function measuring instruments provide a variety of data. For thisapplication, the following selection of measured values is required by eachSENTRON PAC and transmitted to the controller:
Act ive Energy Import Tari ff 1 (Wh)The device is able to differentiate between import and export (e.g., generatoroperation) of energy. Furthermore, the active energy can be added upoptionally in tariff 1 or tariff 2
2. Mostly, these tariffs are referred to as ON PEAK
(e.g., in the daytime) and OFF PEAK (e.g., at night).
Working Hours Counter (s)Counts while the measuring instrument is supplied with power. From the count
value and the active energy, the average power demands within the measuringperiod are permanently calculated for each load. The software considers thecounter overflow.
Total Act ive Power (W)Total refers to the three phases U, V, W. The instantaneous values of theactive powers are only used for display purposes. They are not used as criteriafor switching off loads.
2The 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 theinput has no effect and the electrical energy is added in tariff ON PEAK.
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
9/52
2 Automation Solution
2.3 Load control principle
Switching Loads with S7-1200 and SENTRON PAC3200Version 1.1, Entry ID: 58856464 9
CopyrightS
ie
mensAG
2013Allrightsreserved
58856464_
Set24_
LoadSwitching_
V1d1_
en.doc
Base quantity fo r load control
The calculations for load switching are based on the instantaneous total averagepower demand Pav(tn) of all loads that is continually calculated from the start ofeach measuring periodtm. Continually means that Pav(tn) is updated with a
periodicity oftscan. The individual average power demand Pavof a loadpermanently results from the active energy provided by the SENTRON PACrelative to the start of the measuring period-current time time interval. This timeinterval is obtained by continually reading out the working hours counter.
In this application,tm=15min andtscan=15s. Therefore, the average powerdemands Pav(tn) and Pav(tn) are updated 60 times during the measuring period.
Base load and electrical losses
When calculating Pav(tn), a not measured optional component Pb which is e. g.made up of base load and electrical losses can be added to the individual averagepower demands Pav(tn) of the measured loads. If necessary, a respective value (W)is written to a data block.
Criteria for switching off loads
A load will be switched off when the following four conditions are simultaneouslymet at the time tnwithin the measuring period:
Pav_fc Pmax
Pav-fc3is the forecast of Pav
3for the end of the measuring period. Pav_fcis
continually calculated thus at the intervaltscan from the current gradient ofthe shape of Pav. Pmaxis the power limit, i.e. the average power demand,relative to the measuring period, whose exceeding would result in a higherkilowatthour rate.
Figure 2-3: Forecast of the total average power demand (switching off)
Pmax
P
t
Pav(t)
Pav_fctscan
tm
tn
t0 tm
tn-1
)()()(
1
1_ navnm
nn
navnavfcav tPtt
tt
tPtPP
Pav(tn)
Pav(tn-1)
3Origin of indices: av=average, fc=forecast
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
10/52
2 Automation Solution
2.3 Load control principle
10S
CopyrightS
ie
mensAG
2013Allrightsreserved
EovEoff
Eov(tn)4is 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 Pmaxand tn. Eoff(tn) is the energy that isavailable for shedding by the next load to be switched off with the power Poff according to the priority list from the current time until the end of themeasuring period.
Figure 2-4: Energy resource of the next load to be switched off
Pmax
P
t
Pav(tn)
tm
tn
t0 tm
);(|)(| 0max ttPtPE nnavov
Poff
Eov
Eoff
);(|))(|( max nmnavoffoff ttPtPPE
Emax
Poffis the power value of the load that defines its switch-off instant. The smallerit is compared to the rated power, the sooner the load will be switched off.
The condition EovEoffof this bullet has two tasks:
The accuracy of the forecast Pav_fcis limited, particularly at the start of themeasuring period. The calculation of Pav_fctends to overreact, which canresult in increased switching off/on of the switchable loads. The energyconsideration in this bullet counteracts this behavior and attenuates theswitching dynamics.
When considering solely the forecast Pav_fc, a load would always be shedtoo soon within the measuring period as the power of the next load to beswitched off is not considered. As the size of the next load to be shed isknown, the software can set the load shedding time so that it is as close tothe demanded power limit as possible.
Waiting time between switch-off actions was complied with
If successive shedding of several loads is necessary due to quickly increasingtotal reference power or low rated powers of the individual loads to be switchedoff next, this is performed with the minimum interval tscan. If the respectiveprocesses and conditions require a larger minimum interval, this can beparameterized in multiples oftscan.
4Origin of indices: ov=overload
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
11/52
2 Automation Solution
2.3 Load control principle
Switching Loads with S7-1200 and SENTRON PAC3200Version 1.1, Entry ID: 58856464 11
CopyrightS
ie
mensAG
2013Allrightsreserved
58856464_
Set24_
LoadSwitching_
V1d1_
en.doc
Minimum on time was complied with
For each load, a minimum on time can be parameterized to satisfy thepermitted dynamics of the load. If a load is to be switched off while its on timeis still running, this load will be skipped and the system will continue with the
next load in the priority list.
Criteria for switching loads back on
The above criteria for switching off loads apply accordingly also to switching loadsback on:
A load will be switched on when the following four conditions are simultaneouslymet at the time tnwithin the measuring period:
Pav_fc < Pmax
Figure 2-5: Forecast of the total average power demand (switching on)
Pmax
P
t
Pav(t)
Pav_fc
tscan
tmtn
t0 tm
)()()(
1
1_ navnm
nn
navnavfcav tPtt
tt
tPtPP
tn-1
Pav(tn-1)
Pav
(tn)
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
12/52
2 Automation Solution
2.3 Load control principle
12S
CopyrightS
ie
mensAG
2013Allrightsreserved
EovEon
Figure 2-6: Energy resource of the next load to be switched on
Pmax
P
t
Pav(tn)
tmtn
t0 tm
);(|)(| 0max ttPtPE nnavov
Pon
Eov
Eon
);(|))(|( max nmnavoffoff ttPtPPE
In contrast toFigure 2-4, the blue area representing Eovis below and the greenarea representing Eonis above the Pmaxline in the above figure. Ponis thepower value of the load that defines its switch-on instant. The greater it iscompared 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 totalreference power or low rated powers of the individual loads to be switched onnext, this is performed with the minimum intervaltscan. If the respectiveprocesses and conditions require a larger minimum interval, this can beparameterized in multiples oftscan.
Minimum off time was complied with
For each load, a minimum off time can be parameterized to satisfy thepermitted dynamics of the load. If a load is to be switched on while its off timeis still running, this load will be skipped and the system will continue with thenext load in the priority list.
Priority listThe selection of the load to be switched next (on or off) is based on a priority list tobe edited by the user. It is represented by a field in a DB and organized as follows:
Table 2-1: Priority list
Priority l ist
Load that is the first to be switched off and the last to be switchedon
.
.
.
Load that is the first to be switched on and the last to be switchedoff
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
13/52
2 Automation Solution
2.4 Data logging
Switching Loads with S7-1200 and SENTRON PAC3200Version 1.1, Entry ID: 58856464 13
CopyrightS
ie
mensAG
2013Allrightsreserved
58856464_
Set24_
LoadSwitching_
V1d1_
en.doc
When switching off, the list is processed from top to bottom. When switching on, itis processed from bottom to top.
NOTICE Especially highly alternating processes require an exact adjustment with
the load control based on the present principle. You can tune the systemby
a parameterizable switching delay(switch_delay, see Table 2-9)
factors for the consumer loads swit ch-on and switch-off power(P_OnOff.OFFfactor, P_OnOff.ONfactor, P_OnOff.threshold, see Table 2-9)
the costumer loads positions in the priority list(prio_list[..], see Table 2-10)
the adjustable values
switch-off power(P_switch_off)
switch-on power(P_switch_on)
off-time(t_remain_off)
on-time(t_remain_on)for each costumer load(see Table 2-10)
With the present load control i t cannot be ensured, that each technologyrespectively each process is controllable in respect of power limitcompliance.
2.4 Data logging
A data log is a data area in the load memory or on the memory card to whichprocess values can be written. The data logs are saved in CSV format (comma-separated value). When the controller is connected to a PC via the PROFINETinterface, you can use a Web browser to access the data logs via the Web serverof the SIMATIC S7-1200 and edit and display them, for example, in an Excelspreadsheet. Access is possible in both RUN and STOP mode of the CPU.
When the controller is restarted, a data log will be created with theDataLogCreate instruction if it does not exist yet. If it already exists, it will beopened with DataLogOpen. At the end of the measuring period, the total averagepower demand Pav(tm) relative to the measuring period is written to the data logwith DataLogWrite. The number of process values to be written to the data logcan be parameterized by the user. The data log size is limited by the size of theload memory or memory card. The organization corresponds to a ring buffer.
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
14/52
2 Automation Solution
2.5 Error messages
14S
CopyrightS
ie
mensAG
2013Allrightsreserved
Figure 2-7: Data logging
Load memory
Webserver
DataLogCreate
DataLogOpen
DataLogWrite
Pav(tm)
User program
.csv
2.5 Error messages
The following errors that do not require acknowledgement are written to a messagebuffer with a time stamp and displayed in a message display on the KTP600. Theerror texts can be edited in the TIA Portal:
Communication fault
The communication is implemented as a sequencer. If one step of thecommunication (e.g., wait for connection established, wait for data receptioncomplete, etc.) exceeds a parameterized time, an error will be reported for therespective SENTRON PAC.
No load available to swi tch-offIf loads are no longer available for switching off in the priority list as allswitchable loads have already been switched off by the system or loadshedding is currently not permitted due to a running minimum on time, an errormessage will be generated.
Scan interval too shortWhen adding the individual power/energy measured per SENTRON PAC tothe total power/energy over all loads, it is assumed that the individual
power/energy values were determined at exactly the same time. The finitecommunication time required for polling a SENTRON PAC3200 device causesskews that eventually influence the accuracy of the cumulative values. As longas the scan timetscan(= parameterizable time after which polling restarts withthe first SENTRON PAC) is long compared to the sum of the communicationtime requirements of all connected SENTRON PAC3200 devices, the issuecan be ignored. If, however, the number of SENTRON PAC3200 devices is solarge that the communication with them lasts longer thantscan,tscanwill nolonger take effect and the summation will no longer be determined. In thiscase, an error message will be displayed to inform the user of the problem.However, please consider that an extension oftscanresults in a decrease ofthe number of measured values within the measuring period and thereby alsoadversely affects the accuracy.
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
15/52
2 Automation Solution
2.6 Hardware and programming software of the sample project
Switching Loads with S7-1200 and SENTRON PAC3200Version 1.1, Entry ID: 58856464 15
CopyrightS
ie
mensAG
2013Allrightsreserved
58856464_
Set24_
LoadSwitching_
V1d1_
en.doc
Data log errorsAn error message is configured for each of the DataLogCreate,DataLogOpenand DataLogWritedata log instructions used. If the respectiveinstruction sets its error bit, an error message will be generated and the status
word of the instruction will be saved to a DB for evaluation by the user.
2.6 Hardware and programming software of the sampleproject
In the sample project, two loads are configured that are measured usingSENTRON PAC3200 devices. For information on how to extend the application tomore loads, please refer to chapter 3.6.
Products.
Table 2-2: Products
Components Qty. MLFB/order number1. SENTRON PAC3200; LCD; 96X96MM POWER
MONITORING DEVICE PANEL MOUNT TYPE FORMEASUREMENT OF ELECTR. VALUES VAUX: 110-340VDC / 95-240VAC VIN: MAX.690/400V; 45-65HZAMPIN: X/1A OR X/5A AC COMPRESSION TYPETERMINALS
2 7KM2112-0BA00-3AA0
2. SIMATIC S7-1200 POWER MODULE PM1207STABILIZED POWER SUPPLY INPUT: 120/230 V ACOUTPUT: 24 V DC/2.5 A
1 6EP1332-1SH71
3. COMPACT SWITCH MODULE CSM 1277 CONNECTIONSIMATIC S7-1200 AND UP TO 3 FURTHER IND.ETHERNET USERS WITH 10/100 MBIT/S UNMANAGED
SWITCH, 4 RJ45 PORTS, EXT. 24V DC POWERSUPPLY, LED DIAGNOSTICS, S7-1200 MODULE INCL.ELECTRONIC MANUAL ON CD
1 6GK7277-1AA10-0AA0
4. SIMATIC S7-1200, CPU 1215C, KOMPAKT CPU,DC/DC/DC, 2 PROFINET PORT, ONBOARD I/O: 14 DI24VDC; 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
1 6ES7215-1AG31-0XB0
5. SIMATIC HMI KTP600 BASIC COLOR PN, BASIC PANEL,KEY AND TOUCH OPERATION, 6" TFT DISPLAY, 256COLORS, PROFINET INTERFACE, CONFIGURATIONFROM WINCC FLEXIBLE 2008 SP2 COMPACT/ WINCCBASIC V10.5/ STEP7 BASIC V10.5, CONTAINS OPENSOURCE SW WHICH IS PROVIDED FREE OF CHARGEFOR DETAILS SEE CD
1 6AV6647-0AD11-3AX0
6. MINIATURE POWER RELAY SCREW TERMINALS,2NO+2NC SNAP-ON MOUNTING ON STANDARDMOUNTING RAIL DC SOLENOID SYSTEM DC 24V
2 3TK2022-0BB4
7. Current transformer(depending on the loads; both x/1A or also x/5A currenttransformers can be used)
2 -
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
16/52
2 Automation Solution
2.6 Hardware and programming software of the sample project
16S
CopyrightS
ie
mensAG
2013Allrightsreserved
Components Qty. MLFB/order number
8. SIMATIC NET INDUSTRIAL ETHERNET TP CORDRJ45/RJ45, CAT 6, TP CABLE 4X2, PREASSEMBLED W.
2 RJ45 CONNECTORS, 0.5M1M2M6M
10M
4
6XV1870-3Q
E50H10H20H60N10
Note In deviation from Table 2-2you can use each type of S7-1200 CPU from firmwareV2.1.
Should the S7-1200 CPU you are going to use not be included in the hardwarecatalogue, 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 thesimulation ( icon in the toolbar).
Programming package
Table 2-3: Programming software
Komponente Bestellnummer oder Link
STEP 7 Basic V11 SP2 6ES7822-0AA01-0YA0
Update to zuSTEP 7 Basic V11 SP2
http://support.automation.siemens.com/WW/view/en/58112582
or alternatively
STEP 7 Basic V12 6ES7822-0AA02-0YA5
NOTICE Use always the latest so ftware update (see /6/).
http://support.automation.siemens.com/WW/view/en/58112582https://eb.automation.siemens.com/mall/de/de/Catalog/Product/6ES7822-0AA02-0YE5https://eb.automation.siemens.com/mall/de/de/Catalog/Product/6ES7822-0AA02-0YE5http://support.automation.siemens.com/WW/view/en/58112582 -
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
17/52
2 Automation Solution
2.7 Wiring of the sample project
Switching Loads with S7-1200 and SENTRON PAC3200Version 1.1, Entry ID: 58856464 17
CopyrightS
ie
mensAG
2013Allrightsreserved
58856464_
Set24_
LoadSwitching_
V1d1_
en.doc
2.7 Wiring of the sample project
Figure 2-8: Wiring
L1N
PE
PS1207CSM
1277CPU1215C
+24V
-
KTP600
SENTRON
PAC3200
1
L1
N
F
Load 1
SENTRON
PAC3200
2
Load wiring as for PAC 1
IP-Adr. 192.168.0.254IP-Adr. 192.168.0.1
IP-Adr. 192.168.0.200
IP-Adr. 192.168.0.201
The load-side wiring of the SENTRON PAC3200 devices depends on the loadtypes. 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 inparticular to chapter 6.4 Connection examples and chapter 9.2.4 Basicparameters in /1/.
2.8 Communication princ iple
Client-server relationship
As a server, the SENTRON PAC3200 devices provide MODBUS on TCPcommunication. Using the MB_CLIENT instruction, the SIMATIC S7-1200 CPU cancommunicate as a Modbus TCP client via its PROFINET interface. Additionalcommunication hardware e.g., a communications processor is not necessary.
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
18/52
2 Automation Solution
2.8 Communication principle
18S
CopyrightS
ie
mensAG
2013Allrightsreserved
The MB_CLIENT ins truction
The MB_CLIENT instruction can be found on the Instructions task card inCommunication > Communications processor > MODBUS TCP. When it is
dragged to the program using the mouse, a respective system FB will be createdwhose data will be stored in a system DB or as a multi-instance in the instance DBof the calling FB. In the program, the MB_CLIENT instruction is called only onceper CPU cycle. It satisfies the requirements of its different communication partnersand tasks by the fact that its parameters are variably set for the respective partnersand tasks.
Figure 2-9: MB_CLIENT instruction
For the parameter description of MB_CLIENT, please refer, for example, to theonline help of the TIA Portal.
NOTICE To communicate with the SENTRON PAC3200, in the static data of theMB_CLIENT record, the TCON_PARAM.MB_UNIT_ID parameter must havea value between 16#0001 and 16#00F7. As the default value when creatingthe data record is 16#00FF, it must be changed later. In the associatedapplication example, the change has already been made and the parameterhas been set to 16#0001.
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
19/52
2 Automation Solution
2.8 Communication principle
Switching Loads with S7-1200 and SENTRON PAC3200Version 1.1, Entry ID: 58856464 19
CopyrightS
ie
mensAG
2013Allrightsreserved
58856464_
Set24_
LoadSwitching_
V1d1_
en.doc
Access to the Modbus data register
The register is a buffer for the data received from the Modbus server or to be sentto the Modbus server. I t is accessed via the MB_DATA_PTR InOut parameter ofthe MB_CLIENT instruction. MB_DATA_PTR is a pointer of the VARIANT type.This means that only the address information of the actual parameter onMB_DATA_PTR is transferred, whereas the data type of the actual parameter isirrelevant. Therefore, it is possible to interpret the Modbus register to be addressedby means of the symbolic addressing in the correct data view.
Figure 2-10: Different data views of the Modbus data register(FB LoadSwitching [FB501], static tags))
As can be seen in Figure 2-10, the Modbus data register is eight bytes wide andassigned to the static tag Rx_LReal. With Rx_Real, Rx_UDInt and Tx_Uint, threemore data views are defined whose data widths can be less than eight bytes. Inthis application, the different data views are used to access the following data ofthe SENTRON PAC device:
Table 2-4: Reference: Data view measured value/action
Data view Read/Write Measured value/action Reference
Rx_LReal R Active Energy Import Tariff 1
Table 3-6 in /1/Rx_Real R Total Active Power
Rx_UDInt R Working Hours Counter
Tx_UInt W Switching outputs Table 3-26 in/1/
Serial communication
To allow operation of more than eight SENTRON PAC3200 devices, thecommunication is serial communication:
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
20/52
2 Automation Solution
2.9 Program description
20S
CopyrightS
ie
mensAG
2013Allrightsreserved
Figure 2-11: Serial communication
Connect t o SENTRON PAC n
Receive from / send to SENTRON PAC n
Disconnect from SENTRON PAC n
Wait until end of scan time
n := 1
n := n+1
All SENTRON PACs processed?
Yes
No
Start
The application needs 200-300ms to process a SENTRON PAC3200 device. Themax. possible number of SENTRON PAC3200 devices is determined by therelation between the total communication time requirement, the scan time and thelength of the measuring period. The issue has already been touched on in chapter2.5, third bullet.
Network addresses
In the application, the following addresses are assigned:
Table 2-5: Network addresses
Node IP address Subnet mask
Controller 192.168.0.1
255.255.255.0Operator panel 192.168.0.254
SENTRON PAC 1 192.168.0.200
SENTRON PAC 2 192.168.0.201
The application assumes that all SENTRON PAC3200 devices belong to one
subnet. Therefore, the first three bytes are identical for all measuring instrumentsand must be specified only 1 x in the relevant parameter DB. The fourth byte iscrucial for the discrimination of the devices. In this case, the addresses 2-252
5can
be assigned to the SENTRON PAC3200 devices.
2.9 Program description
This chapter describes the program structure of the example at the function anddata block level of the automation system.
5On condition that the IP device address of the development system is 253.
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
21/52
2 Automation Solution
2.9 Program description
Switching Loads with S7-1200 and SENTRON PAC3200Version 1.1, Entry ID: 58856464 21
CopyrightS
ie
mensAG
2013Allrightsreserved
58856464_
Set24_
LoadSwitching_
V1d1_
en.doc
2.9.1 Block structure
Figure 2-12shows the call hierarchy of the program blocks and the access to thedata blocks.
Figure 2-12: Block structure
DB501PowerMan_DB
FB501 PowerMan
OB1 MAIN
DB503 PAC_data
Operatingsystem
FC502 CALC_P_active_av
FC161 Event
FC501 Load_shedding
OB100 Startup
FB1084 MB_CLIENT
OB100 Startup
In this block, constants are calculated that are derived from input parameters anddo 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_maxmonitoring_time offset_P_activeoffset_E_active offset_hoffset_DQ
(see Table 2-9)
OB1 Main
The block contains only the call of FB501 LoadSwitching.
FB501 LoadSwitching , DB501 LoadSwitching_DB
The FB provides the main functionality of this application. It does not have anyparameters. The tags marked with ! in the comment of the associated instanceDB represent load-independent, general data that must be parameterized by theuser (see Table 2-9).
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
22/52
2 Automation Solution
2.9 Program description
22S
CopyrightS
ie
mensAG
2013Allrightsreserved
FB1084 MB_CLIENT
When the instruction of the same name is inserted into the user program inSystem 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 inDB501 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 )( actav tP of the average active power relative to the start
of the measuring period for each SENTRON PAC.
0
0)()()(tt
tEtEtP
act
activeactactiveactav
activeE = value of the active energy meter;
actt = working hours counter value at the moment;0t = working hours counter value at the start of the measuring period.
Active energy meter and working hours counter can overflow in the SENTRONPAC and after an overflow, restart at zero. As the overflow limits are known, theoverflow can be considered. FC502 takes this into account.
Table 2-6: FC502 block parameters
Parameter Datatype
IN/OUT Explanation
E_active LReal IN Value of the active energy meter (Wh)at the moment
E_active_0 LReal IN Value of the active energy meter (Wh)at the start of the measuring period
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 theHMI generates the error messages.
Table 2-7: FC161 block parameters
Parameter Datatype
IN/OUT Explanation
Trigger Bool IN TRUE: Error bit is setFALSE: Error bit is reset
Event_Bit UInt IN Significance in the error word (015)
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
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
23/52
2 Automation Solution
2.9 Program description
Switching Loads with S7-1200 and SENTRON PAC3200Version 1.1, Entry ID: 58856464 23
CopyrightS
ie
mensAG
2013Allrightsreserved
58856464_
Set24_
LoadSwitching_
V1d1_
en.doc
FC501 Load_shedding
In accordance with the explanations in chapter 2.2.1, the block decides if a load isto be switched off or on. If a load is no longer available for load switching, the blockinitiates a relevant error message.
Table 2-8: FC501 block parameters
Parameter Datatype
IN/OUT Explanation
Reset Bool IN At the start of the new measuring period, the block isexecuted once with Reset=TRUE. This results in aninitialization for the new measuring process.
switch_load SInt OUT Switching command:-0 = no action-1 = switch off load+1 = switch on load
PAC_index UInt OUT Number of the load to be switched
(corresponds to the array index of the load_specarray tag in the PAC_data DB.)
SUM_P_active_av_log Real OUT Average of the total active power at the end of themeasuring period that is written to the data log.
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).
2.9.2 User parameters
The following section provides a description of the tags that have to beparameterized by the user. In the comment, the respective tags are marked with!.
Load-independent parameters in LoadSwitching_DB
Table 2-9: Load-independent parameters in LoadSwitching_DB
Name Data type Dim. Explanation
P_average_limit Real W Power limit PmaxLimit Pmaxspecified by the power utility for the averagetotal active power relative to the measuring period. If
exceeded, a higher kilowatthour rate will be charged forthe entire accounting period.
P_base_load Real W Base load PbBase load assumed to be constant that is notmeasured.
P_active_sample_max USInt - Active power measured value sample no.
The active power can be averaged from severalmeasured values. The measurements are performed indirect succession with regard to time.
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
24/52
2 Automation Solution
2.9 Program description
24S
CopyrightS
ie
mensAG
2013Allrightsreserved
Name Data type Dim. Explanation
ext_trigger Bool - Trigger for measuring period
FALSE = CPU clock
TRUE = pos. edge at E0.0When triggering using the CPU clock, it isrecommended that it be synchronized at regularintervals, e.g. by means of an NTP server or a GPSreceiver.
ON_ack_required Bool - Acknowledgement for reclosing
FALSE = By load control switched-off loads arereclosed automatically.
TRUE = Each reclosing demand from the load contolhas to be released manually.
(default value = FALSE)
monitoring_time Time Time Duration of the measuring periodtm
Permitted values in minutes:
2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60;When triggering using the CPU clock, the measuringperiods within an hour always start with the first minuteand the multiples of the minute value that correspondsto the length of the selected measuring period.
scan_time Time Time Scan timetscan
Interval at which one and the same SENTRON PAC isperiodically polled.
comm_error_time Time Time Detection time for communication faults
The communication flow is organized in a sequencer. Ifa step exceeds a specific time, a relevant errormessage will be generated and the transition from the
faulty to the next SENTRON PAC will take place.switch_delay USInt - Switching delay
In terms of software, load switching can be performedmax. at the interval specified by the scan_time. Toavoid avalanches when there are significant loadchanges, the switching interval can be extended tomultiples of the scan time.
P_OnOff. Struct
OFFfactor Real - Factor for switch-off power
The measured active power of the load reduced by afactor (P_OFFfactor < 1.0)
6is used as the switch-off
power (see chapter 2.2.1).
ONfactor Real - Factor for switch-on power
The measured active power of the load increased by afactor (P_ONfactor > 1.0)
6is used as the switch-on
power (see chapter 2.2.1).
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.
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
25/52
2 Automation Solution
2.9 Program description
Switching Loads with S7-1200 and SENTRON PAC3200Version 1.1, Entry ID: 58856464 25
CopyrightS
ie
mensAG
2013Allrightsreserved
58856464_
Set24_
LoadSwitching_
V1d1_
en.doc
threshold Real W Zero threshold for active power
The switch-off and switch-on powers of the loads areonly permanently derived from the currently measuredactive powers when they are above a parameterizable
zero threshold. If this is not the case, a stored value willbe used as a substitute7.
DataLog_1. Struct Data log
Data area in the load memory or on the memory card towhich process values are saved.
records UDInt - Total number of data records
The number of data records to be archived. In thisapplication, a data record consists of only one value,i.e. the average of the total active power relative to themeasuring period. At the end of each measuring period,it is written to the load memory or memory card.
filename String File name
Name of the csv file located in the load memory or on
the memory card that can be downloaded from the Webserver to the PC.
header String Column headers
Comma-separated column headers. In this application,however, there is only one column (aside from the datarecord number and time stamp).
offset. Struct Offset addresses of the Modbus registers used
P_active UInt - Total Active Power (65), see Table 3-6 in /1/
E_active UInt - Active Energy Import Tariff 1 (801), see Table 3-6 in /1/
h UInt - Working Hours Counter (213), see Table 3-6 in /1/
DQ UInt - Switching outputs (60008), see Table 3-26 in /1/
Load-dependent parameters in DB PAC_data
Table 2-10: Load-dependent parameters in DB PAC_data
Name Datatype
Dim. Explanation
PAC_max UInt - Number of SENTRON PAC3200 devices
Number of measured loads.
IP. Struct IP address (octets 1-3)
octet1 USInt Octet 1
octet2 USInt Octet 2octet3 USInt Octet 3
7This 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 andP_ONfactor parameters.
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
26/52
2 Automation Solution
2.9 Program description
26S
CopyrightS
ie
mensAG
2013Allrightsreserved
Name Datatype
Dim. Explanation
load_spec Array[1..n]
of Struct
Array of load specifications
Maximum number of possible loadsload_spec [ ]. Struct Load specification
index UInt - Index
The value must always be identical to the array elementnumber. It is necessary to be able to access theindividual loads in the HMI using a text list with names.
IP_octet4 USInt - IP address (octet 4)
Must be in the range from 2 to 253.
P_switch_off Real W Switch-off power8Poff
The active power of the load used for the calculation ofthe switch-off instant. A value less than or equal to therated power is usually used. The smaller the value
compared to the rated power, the sooner the load willbe switched off at a switch-off request within themeasuring period if the software has defined it as thenext load to be switched off.
When you parameterize P_switch_off with 0, thesystem uses the measured active power multiplied bythe OFFfactor parameter (see Table 2-9).
P_switch_on Real W Switch-on power8Pon
The active power of the load used for the calculation ofthe switch-on instant. A value greater than or equal tothe rated power is usually used. The greater the valuecompared to the rated power, the later the load will beswitched on at a switch-on request within themeasuring period if the software has defined it as the
next load to be switched on.When you parameterize P_switch_on with 0, thesystem uses the measured active power multiplied bythe ONfactor parameter (see Table 2-9).
t_remain_off Time Time Off time
Time a load must remain switched off after it wasswitched off by the system. It will only be available forswitching on after this time has elapsed.
t_remain_on Time Time On time
Time a load must remain switched on after it wasswitched on by the system. It will only be available forswitching off after this time has elapsed.
prio_list Array[1..n]of UInt Priority listThe first list element has the highest priority, the lastone has the lowest priority with regard to switching offloads. When loads are switched off, the priority list isprocessed from top to bottom (from 1 to n). When loadsare switched back on, it is processed from bottom to top(from n to 1).
prio_list [ ] UInt - In the priority list, the array element numbers of theloads have to be entered in load_spec according to thedesired priority. If the load is not available or if it is notto be switched at all, 0 has to be entered.
8Different switch-on and switch-off power of a load force hysteresis.
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
27/52
2 Automation Solution
2.9 Program description
Switching Loads with S7-1200 and SENTRON PAC3200Version 1.1, Entry ID: 58856464 27
CopyrightS
ie
mensAG
2013Allrightsreserved
58856464_
Set24_
LoadSwitching_
V1d1_
en.doc
Note This application includes data records for 20 loads. If necessary, modify thenumber 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 arraysaccordingly. PAC_max must never be greater than the number of elements of
these arrays.
2.9.3 Program flow in FB501 LoadSwitching
Networks.
Table 2-11: Networks of FB501
NW no. Title Description
1 Monitoring interval Definition of the trigger times for the measuring period
Time definition of the end of the measuring period
2 Call MB_CLIENT Call of the MB_CLIENT instruction
3-11 Waiting for Sequencer (see below for the explanation)
12 Recognize communicationfaults
A communication fault will be detected if a communicationstep exceeds the comm_error_time specified in DB501.Communication steps are characterized by step number
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
28/52
2 Automation Solution
2.9 Program description
28Switching Loads with S7-1200 and SENTRO N PAC3200
Version 1.1, Beitrags-ID: 58856464
CopyrightS
iemensAG
2013Allrightsreserved
Figure 2-13: State diagram
No
Step 1010 (NW11)
Step 50 (NW10)
Step 40 (NW9)
Step 30 (NW8)
Step 24 (NW7)
Step 20 (NW6)
Step 15 (NW5)
Step 10 (NW4)
Step 1000 (NW3)
Restart
Load switched
(DONE)
Start ofmeasuring period
CONNECTED &nicht BUSY
Pactive received n times andmean value generated
(DONE)
Eactive received(DONE)
Yes
Switching request?Working hours counter
received (DONE)
Not BUSY
Not CONNECTED& not BUSY
Scan time
elapsed?
Initiate communication jobSet MB_CLIENT parameter
Scan time elapsed
Initia
teconnection
establishment
toPAC1
Save mean value of PactiveSet MB_CLIENT parameter
Save Eactive
Log load conditionSet MB_CLIENT parameter
Set MB_CLIENT parameter
Calculate Pav (relative to measuring period)Complete communication job
Initiate connection termination
All PACs processed?
No
No
Initiate connection establishment
to the next PAC
Load management (process FB Load_shedding)Initiate connection establishment to PAC 1
YesYes
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
29/52
2 Automation Solution
2.10 Visualization
Switching Loads with S7-1200 and SENTRON PAC3200Version 1.1, Entry ID: 58856464 29
CopyrightS
ie
mensAG
2013Allrightsreserved
58856464_
Set24_
LoadSwitching_
V1d1_
en.doc
2.10 Visualization
For monitoring, the KTP600 provides three screens.
Main screen (start screen)
Figure 2-14: Main screen
Sum of the current activepowers over all measuringinstruments plus a specified
base load. The value is basedon the measured values read
out of the SENTRON PACs
with register offset address 65(Total Active Power).
Sum of the current average activepower demands over all
measuring instruments relative tothe start of the measuring periodplus a specified base load. The
value is based on the measuredvalues read out of the SENTRON
PACs with register offsetaddresses 801 (Active Energy
Import Tariff 1) and 213(Working Hours Counter).
Total active power forecast for the
end of the measuring period.
Energy reserve currentlyprovided by the next load to
be switched off or on. Whenit has been used up, the
respective load will be
switched off or on.
off:
on:
Load switch-off is
pending.
Load switch-on ispending.
Name of the next load to be
switched off or on
Measuring period
Button to switch to the error list.
If at least one error is pending,the will button flash red/white.
Button to switch to the
load condition list
Button to release reclosing
next load to be switched on
The bar charts of the power displays are normalized to the specified power limit (inthe example: 8 kW). They display values in the range between 80% and 120% ofthe power limit. The number representations allow the display of values less than10MW.
The bar chart of the energy reserve is also normalized. It displays values in therange between 0 and 10% of the active energy limit relative to the measuringperiod.
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 onlyvisible, if
LoadSwitching.ON_ack_required is parameterized to TRUE9and
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 therelevant SENTRON PAC3200 device has got the switch-on command for the load.
9In the project code of the application example bit LoadSwitching.ON_ack_required = FALSE
(default value). Therefore button ON is invisible and consumer loads get reclosedautomatically without any manually release.
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
30/52
2 Automation Solution
2.10 Visualization
30Switching Loads with S7-1200 and SENTRON PAC3200
Version 1.1, Beitrags-ID: 58856464
CopyrightS
ie
mensAG
2013Allrightsreserved
Consumer load list screen
Figure 2-15: Consumer load list screen
Name of the loads
Switching status
Earliest next switch-oninstant if a minimum off time
has been specified for therespective load.
Earliest next switch-off instant if
a minimum on time has beenspecified for the respective
load.
.
Back to Load
management screen
Error messages screen
Figure 2-16: Error messages screen
Back to Loadmanagement screen
Error messages with
time stamp andalarm status
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
31/52
3 Configuration
3.1 SIMATIC software installation
Switching Loads with S7-1200 and SENTRON PAC3200Version 1.1, Entry ID: 58856464 31
CopyrightS
ie
mensAG
2013Allrightsreserved
58856464_
Set24_
LoadSwitching_
V1d1_
en.doc
3 ConfigurationOnce you have properly installed and wired all components and connected them tothe supply voltage as shown in Figure 2-8, the following configurations and
parameter settings have to be made.
3.1 SIMATIC software instal lation
The project was created with TIA Portal Version V11 SP2 Update 5 and VersionV12. The firmware version of the CPU 1215C used was V3.0.2. If necessary,update your software. see also chap. 2.6Hardware and programming software ofthe sample project
3.2 Parameterizing the SENTRON PAC3200 devices
Starting from the default configuration of the devices, the following settings have to
be made. They are made in the user interface of the devices. For the generaloperation of the SENTRON PAC3200 devices, please refer to chapter 8 Operatorcontrol in /1/. At this point of commissioning, neither measuring voltage normeasuring current are applied to the measuring instruments.
Table 3-1: Parameterizing the SENTRON PAC3200 devices
No. Instruction Additional note
1. Language, regional settings group
Navigate to the LANGUAGE/REGIONAL group and set thedesired language.
Parameter Device 1 Device 2
LANGUAGE ENGLISH
See chapter 9.2.3 in /1/
2. Basic parameters group
Basic parameters are all settings for the measuring inputs. Definethe connection type (number of phases, conductors), if you aremeasuring with or without voltage transformer and your requiredcurrent transformer ratio. Adjust the parameters to your loads.
To test the application in a useful way, the two configured loadsshould be in a range where load switching can be properlymonitored in the Load management HMI screen (Figure 2-14).In the laboratory test, loads were used that were interpreted bythe SENTRON PAC3200 devices as loads with approx. 200W to1000W. To reach values in that range, you can if loads of thatmagnitude are not available to you manipulate the SENTRON
PAC3200 devices with regard to voltage or current conversion bymeans of reconfiguring.
See chapter 9.2.4 in /1/
3. Integrated I/O group
Navigate to DIGITAL OUTPUT and define the action.
Parameter Device 1 Device 2
ACTION REMOTE OUTPUT
See chapter 9.2.6 in /1/
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
32/52
3 Configuration
3.3 Configuring the HMI
32Switching Loads with S7-1200 and SENTRON PAC3200
Version 1.1, Beitrags-ID: 58856464
CopyrightS
ie
mensAG
2013Allrightsreserved
No. Instruction Additional note
4. Communication group
Set the following parameters.
Parameter Device 1 Device 2
IP-ADDR 192.168.0.200 192.168.0.201
SUBNET 255.255.255.0
GATEWAY 0.0.0.0
PROTOCOL MODBUS TCP
See chapter 9.2.7 in /1/
After the above parameterization, the measuring voltage and the measuring currenthave to be applied to the SENTRON PAC3200 devices and the displayedmeasured values have to be checked.
3.3 Configuring the HMI
If the real KTP600 (not simulated) is used as the operator panel, the project-specific IP address 192.168.0.254 must be set.
Table 3-2: Assigning the IP address to the KTP600
No. Operator action Picture / result / additional note
1. Select the Control Panel button to openthe control panel of the Loader.
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
33/52
3 Configuration
3.4 Settings on the development system (Windows)
Switching Loads with S7-1200 and SENTRON PAC3200Version 1.1, Entry ID: 58856464 33
CopyrightS
ie
mensAG
2013Allrightsreserved
58856464_
Set24_
LoadSwitching_
V1d1_
en.doc
No. Operator action Picture / result / additional note
2. 1. Select the Profinet button to openthe Profinet Settings dialog box.
2. Select Specify an IP address.
3. Make the following entries:
IP address = 192.168.0.254
Subnet mask = 255.255.255.0
4. Select OK to close the dialog boxand apply the entries.
3.4 Settings on the development system (Windows)
3.4.1 Assigning the IP address to the development system
Your PG/PC must be assigned an IP address in the same subnet as the othernetwork components involved. The IP addresses of the individual nodes are shownin Table 2-5.
To assign the IP address for your network card, proceed as follows in the WindowsXP operating system:
Table 3-3: Assigning the IP address to the development system
No. Operator action Picture / result / additional note
1. In the Windows Control Panel, open NetworkConnections.
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
34/52
3 Configuration
3.4 Settings on the development system (Windows)
34Switching Loads with S7-1200 and SENTRON PAC3200
Version 1.1, Beitrags-ID: 58856464
CopyrightS
ie
mensAG
2013Allrightsreserved
No. Operator action Picture / result / additional note
2. Select the network card to be used andright-click to open the properties.
3. Select the Internet Protocol (TCP/IP) itemand open its properties.
4. Select Use the following IP address.
In IP address, enter an available addressin the relevant subnet
10.
In Subnet mask, enter 255.255.255.0.
Select OK to confirm the settings.
10
When using IP device address 253 for the development system, the entire address rangefrom 2-252 will be available to you for the SENTRON PAC3200 devices.
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
35/52
3 Configuration
3.4 Settings on the development system (Windows)
Switching Loads with S7-1200 and SENTRON PAC3200Version 1.1, Entry ID: 58856464 35
CopyrightS
ie
mensAG
2013Allrightsreserved
58856464_
Set24_
LoadSwitching_
V1d1_
en.doc
3.4.2 Setting the PG/PC interface
To simulate the KTP600 on the development system, the PG/PC interface must beset accordingly.
Table 3-4: Setting the PG/PC interface
No. Operator action Picture / result / additional note
1. In the Windows Control Panel, open SetPG/PC Interface.
2. In Access Point of the Application, selectS7ONLINE (STEP 7) in conjunction withthe interface parameter assignment ofyour network card( -->TCP/IP(Auto) -> ).
Select OK to confirm the settings.
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
36/52
3 Configuration
3.5 Parameter assignments in the TIA Portal and project download
36Switching Loads with S7-1200 and SENTRON PAC3200
Version 1.1, Beitrags-ID: 58856464
CopyrightS
ie
mensAG
2013Allrightsreserved
3.5 Parameter assignments in the TIA Portal and projectdownload
Opening the project
Table 3-5: Opening the project
No. Operator action Picture / result / additional note
1. Unzip the sample project to any directory onyour hard drive and double-click on the filewith the .ap11 extension.
2. If the TIA Portal has opened in the portal view,select the project view.
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
37/52
3 Configuration
3.5 Parameter assignments in the TIA Portal and project download
Switching Loads with S7-1200 and SENTRON PAC3200Version 1.1, Entry ID: 58856464 37
CopyrightS
ie
mensAG
2013Allrightsreserved
58856464_
Set24_
LoadSwitching_
V1d1_
en.doc
Setting the country-specific local time
Make sure that the date and time of day setting in the CPU is correct. This isnecessary for the following reasons:
The measuring period for the mean-value generation of the power issynchronized with the local time.
The controller synchronizes the KTP600 system time every minute. Thisensures that the time stamps of the alarm messages are correct.
Table 3-6: Setting the country-specific local time
No. Instruction Picture / result / additional note
1. Select the CPU.
2. Navigate to the Time of day settings and, ifnecessary, adjust the time zone and thedaylight-saving time/standard time settings.
Load settings for the live demo
If, after configuring, you want to perform a live demo as described in chapter 4, it isrecommended at this point to set a power limit and base load so that loads areswitched on and off. Select the load relationships as shown in Figure 3-1.
Figure 3-1: Recommended power relationships for the live demo
Base loadPower limit
Switchable loads
P
t
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
38/52
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
39/52
3 Configuration
3.5 Parameter assignments in the TIA Portal and project download
Switching Loads with S7-1200 and SENTRON PAC3200Version 1.1, Entry ID: 58856464 39
CopyrightS
ie
mensAG
2013Allrightsreserved
58856464_
Set24_
LoadSwitching_
V1d1_
en.doc
Table 3-8: Setting the CPU clock
No. Instruction
1. In the project tree, select the PLC_1 controller.
2. Select the Go online button.3. Select the Online and diagnostics option.
4. Open the Set time of day function.
5. Set the date and time of day or apply the local time of the development system.
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/).
Downloading the HMI project part to the KTP600
If a real KTP600 (not simulated) is used as the operator panel, the HMI project partmust be downloaded to the KTP600. For the transfer, connect your PG/PC to theHMI either directly or using the CSM1277 switch.
Table 3-9: Downloading the HMI project part to the KTP600
No. Instruction Picture / result / additional note
1. Select the HMI_1 [KTP600 Basic PN]operator panel folder.
Select the Download to device button todownload the HMI project part to the CPU.
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
40/52
3 Configuration
3.5 Parameter assignments in the TIA Portal and project download
40Switching Loads with S7-1200 and SENTRON PAC3200
Version 1.1, Beitrags-ID: 58856464
CopyrightS
ie
mensAG
2013Allrightsreserved
No. Instruction Picture / result / additional note
2. If necessary, check the Overwrite alloption.
Select the Load button.
3. Depending on the operator panel setting,you have to trigger the transfer in theLoader menu of the KTP600 using theTransfer button.
4. Once the successful result message isdisplayed, select the Finish button to
finish downloading. If necessary, reconnect the HMI to the
CSM1277 switch using the patch cable.
Simulating the KTP600
If you want to run the KTP600 as a simulation on your development system,proceed as follows:
Table 3-10: Simulating the KTP600
No. Instruction Picture / result / additional note
1. Select the HMI_1 [KTP600 PN] operatorpanel folder.
Select the Simulation button.
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
41/52
3 Configuration
3.6 Expanding the number of SENTRON PAC3200 devices
Switching Loads with S7-1200 and SENTRON PAC3200Version 1.1, Entry ID: 58856464 41
CopyrightS
ie
mensAG
2013Allrightsreserved
58856464_
Set24_
LoadSwitching_
V1d1_
en.doc
3.6 Expanding the number of SENTRON PAC3200 devices
In order to operate the program example with more than two SENTRON PAC3200devices, you have to provide more Ethernet ports. Use multiple switches orswitches with more ports. Assign each SENTRON PAC3200 device a unique IPaddress 192.168.0.2252 (see chapter 9.2.7 in /1/).
3.6.1 Expansions in data blocks
LoadSwitching_DB [DB501]
Table 3-11: Increasing the number of measuring instruments expansions in DB501
Tag Additional note
P_base_load If necessary, reduce the base load that is not measuredif you now (partially) measure it using additionalSENTRON PAC3200 devices.
PAC_data [DB503]
With regard to the memory, 20 SENTRON PAC3200 devices are considered in theexample. If you want to configure more devices, you have to increase the size ofthe load_spec, prio_list and consumer_load arrays accordingly.
Table 3-12: Increasing the number of measuring instruments expansions in DB503
Tag Additional note
PAC_max New number of SENTRON PAC3200 devices
load_spec[n].P_switch_offload_spec[n].P_switch_onload_spec[n].t_remain_offload_spec[n].t_remain_on
Define the switch-off/switch-on powers and the off/ontimes of the added loads(for the tag description, see Table 2-10).
prio_list[n] Enter the new loads in the priority list (for the tagdescription, see Table 2-10).
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
42/52
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
43/52
3 Configuration
3.6 Expanding the number of SENTRON PAC3200 devices
Switching Loads with S7-1200 and SENTRON PAC3200Version 1.1, Entry ID: 58856464 43
CopyrightS
ie
mensAG
2013Allrightsreserved
58856464_
Set24_
LoadSwitching_
V1d1_
en.doc
No. Instruction Picture / result / additional note
3. Open the PAC_data DB.
Open the properties of the new row
elements. Use drag and drop to move the new tags
that have already been created in thePAC_data DB to the respective processtags in the properties fields of the newHMI screen elements. Dra
g&Drop
The following tags have to be created in the operator panel configuration as shown above:
DB PAC_data Load_list screen
Load name column
load_spec[ ].index Properties>General
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
>Generalconsumer_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
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
44/52
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
45/52
4 Live demo
4.1 Switching behavior
Switching Loads with S7-1200 and SENTRON PAC3200Version 1.1, Entry ID: 58856464 45
CopyrightS
ie
mensAG
2013Allrightsreserved
58856464_
Set24_
LoadSwitching_
V1d1_
en.doc
4 Live demo
4.1 Switching behavior
Initial load relationships as shown in Figure 3-1are assumed.
Table 4-1: Live demo switching behavior
No. Instruction Picture / result / additional note
1. Cause the controller to restart and then goonline.
2. Wait for the start of the measuring period. If it
is triggered using the CPU clock, you can setthe time of day in online mode to start ofmeasuring period minus n seconds to savetime.
When the measuring period starts after a
restart of the controller, the outputs of allSENTRON PAC3200 devices will be reset andall switchable loads will be switched on.
3. Monitor the Load management screen (forthe explanation, see Figure 2-14).
With the third scan after the start of themeasuring period (scan time has elapsed 3 x),valid data is available that is displayed in theLoad management screen.
The switching behavior will be as follows:The two loads are successively switched off. In the next measuring period, initially one load isswitched back on (which one depends on the priority list). If the second load is also switchedback on temporarily depends on the relationship between the power values of the loads, base
load and power limit. Over time, the two loads are constantly switched on and off. The core taskof this application is to ensure that the average total power relative to the measuring period never exceeds the specified power limit at the end of the measuring period. You check this byevaluating the data log (see chapter 4.2).
4. Go to the Live Demo watch table.
5. In the watch table, modify the followingboundary conditions and monitor the effects ofthe modifications.
Load on/off time
Load switch-on/switch-off power
Power limit
Base load
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
46/52
4 Live demo
4.2 Error messages
46Switching Loads with S7-1200 and SENTRON PAC3200
Version 1.1, Beitrags-ID: 58856464
CopyrightS
ie
mensAG
2013Allrightsreserved
4.2 Error messages
Table 4-2: Live demo error messages
No. Instruction Picture / result / additional note1. No load available to switch-off:
In the watch table (see Table 4-1, 5) increasethe base load to such an extent that despiteswitching off both loads, the power limit isexceeded at the end of the measuring period.
At the instant when the system wants to switchoff a (nonexistent) third load, the No loadavailable to switch-off error message markedas incoming is generated and displayed inthe Error messages HMI screen (seeFigure2-16).
The message disappears as soon as a load isavailable for switching off and is switched off.
2. Scan interval too short :
In the watch table (see Table 4-1, 5) enter ascan interval (LoadSwitching_DB.scan_time)that is shorter than the communication time for
two loads (e.g., 300ms).
The Scan interval too short error message isgenerated and displayed in the Errormessages HMI screen.
The message disappears as soon as thecommunication with all loads can becompleted within the scan interval.
3. Communication fault with load n:
Remove the RJ45 connector from one of theloads.
After the communication monitoring time forload n has elapsed, the load name communication fault error message isgenerated and displayed in the Errormessages HMI screen (see Figure 2-16).
The message disappears as soon ascommunication with load n is possible.
4.3 Data log
At the end of each measuring period, the average total power (relative to themeasuring period) is written to a csv file in the load memory as a data log. Waituntil several measuring periods are over before you download the file.
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
47/52
4 Live demo
4.3 Data log
Switching Loads with S7-1200 and SENTRON PAC3200Version 1.1, Entry ID: 58856464 47
CopyrightS
ie
mensAG
2013Allrightsreserved
58856464_
Set24_
LoadSwitching_
V1d1_
en.doc
Table 4-3: Live demo data log
No. Instruction Additional note / picture
1. Open the browser on your development
system and enter the following IP addressas the Web address: 192.168.0.1. TheIntro page of the controller opens.
If this has not yet been done, downloadand install the security certificate toensure that the browser does not informyou of the missing certificate every timeyou open the PLC pages. If the certificatehas already been installed, continue with5.
2. Install the certificate.
An installation wizard guides you through theinstallation. Let Windows automatically selectthe certificate store.
3. After finishing the certificate installation, selectENTER on the Intro page.
4. In Name, enter the user name admin.
It is not necessary to enter a password.
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
48/52
4 Live demo
4.3 Data log
48Switching Loads with S7-1200 and SENTRON PAC3200
Version 1.1, Beitrags-ID: 58856464
CopyrightS
ie
mensAG
2013Allrightsreserved
No. Instruction Additional note / picture
5. Then navigate to Data Logs and downloadthe SUM_P_active_av.csv file (the file name isdefined in the DataLog_1 structure inLoadSwitching_DB).
6. Open the csv file with Microsoft Excel.
Then you can rename, for example, the csv fileto xls, arrange the text in columns and formatthe resulting table as required or create agraphic.
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
49/52
5 Glossary
Switching Loads with S7-1200 and SENTRON PAC3200Version 1.1, Entry ID: 58856464 49
CopyrightS
ie
mensAG
2013Allrightsreserved
58856464_
Set24_
LoadSwitching_
V1d1_
en.doc
5 Glossary
Tabelle 5-1: Glossary
Begriff Erluterung
CPU Central Processing Unit in this context the complete controls S7-1200.
CSV-Format CSV means Comma-Separated Values und describes the formatof 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 cardto which process values can be written. With den webserver of theSIMATIC S7-1200 data can be written into an Excel file.
tm Duration of the measuring period, wherein the power utilitycalculates the total average power demand to compare it with areference value (power limit).
(Tag in STEP 7 program: LoadSwitching_DB.monitoring_time)
tscan Scan cycle in which the SENTRON PAC3200 readings aretransmitted periodically.
(Tag in STEP 7 program: LoadSwitching_DB.scan_time)
Emax(tn) Total energy consumption from the start of the measuring period tothe current instant of time tnin case of permanently keeping thepower limit.
(Tag in STEP 7 program: no direct equvalent)
Eoff(tn) Energy that is available for shedding by the next load to be switchedoff according to the priority list from the current time until the end ofthe measuring period.
(Tag in STEP 7 program: LoadSwitching_DB.E_switch11
)
Eon(tn) Energy that is available for switch-on by the next load to be
switched on according to the priority list from the current time untilthe end of the measuring period.
(Tag in STEP 7 program: LoadSwitching_DB.E_switch11)
HMI Human Machine InterfaceOperator panel as a user interface
IP-Adresse Address if a network participant (CPU, SENTRON PAC3200, HMI,Engineering system) based on the internet protocol.
MODBUS Serial Communication protocol for use with PLCs, based on aMaster/Slave architecture or a Client/Server relation.
MODBUS on TCP Modbus variant used for communications over TCP/IP networks,connecting over port 502.
NC-Kontakt Normally closed contact
Relay contact, which is closed if the coil is currentless.
PLC Programmable Logic Controler in this context SIMATIC S7-1200
Pav(tn) Individual average power demand of one load. It permanentlyresults from the active energy provided by the SENTRON PACrelative to the interval start of the measuring period current time.
(Tag in STEP 7 program:PAC_data.consumer_load[#PAC_index].P_active_av)
Pb Not measured base load, which can be entered into the programand which is added to the loads single power demands.
(Tag in STEP 7 program: LoadSwitching_DB.P_base_load)
11
The program does not differentiate between loads to switch off or on. The distinction is doneby the sign of the overload.
-
8/11/2019 Control de Demanda SENTRON PAC 3200_S7-1200.pdf
50/52
5 Glossary
50Switching Loads with S7-1200 and SENTRON PAC3200
Version 1.1, Beitrags-ID: 58856464
CopyrightS
ie
mensAG
2013Allrightsreserved
Begriff Erluterung
Pmax Power limit specified by the power utility, i.e. the average powerdemand, relative to the measuring period, whose exceeding wouldresult 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-offinstant.A value less than or equal to the rated power is usually used. Thesmaller the value compared to the rated power, the sooner the loadwill be switched off at a switch-off request within the measuringperiod if the software has defined it as the next load to be switchedoff.
(Tag in STEP 7 program: PAC_data.load_spec[n].P_switch_off)