PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4...

394
SIMATIC Process Control System PCS 7 PCS 7 Industry Library for S7 Function Manual 09/2015 A5E34977996-AA Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller blocks 9 System blocks 10 Monitoring blocks 11

Transcript of PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4...

Page 1: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

SIMATIC

Process Control System PCS 7PCS 7 Industry Library for S7

Function Manual

09/2015A5E34977996-AA

Basics 1

Operation blocks 2

HVAC blocks 3

Communication blocks 4

Logic blocks 5

Mathematical blocks 6

Motor and valve blocks 7

Panel blocks 8

Controller blocks 9

System blocks 10

Monitoring blocks 11

Page 2: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Legal informationWarning notice system

This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.

DANGERindicates that death or severe personal injury will result if proper precautions are not taken.

WARNINGindicates that death or severe personal injury may result if proper precautions are not taken.

CAUTIONindicates that minor personal injury can result if proper precautions are not taken.

NOTICEindicates that property damage can result if proper precautions are not taken.If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.

Qualified PersonnelThe product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.

Proper use of Siemens productsNote the following:

WARNINGSiemens products may only be used for the applications described in the catalog and in the relevant technical documentation. If products and components from other manufacturers are used, these must be recommended or approved by Siemens. Proper transport, storage, installation, assembly, commissioning, operation and maintenance are required to ensure that the products operate safely and without any problems. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.

TrademarksAll names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.

Disclaimer of LiabilityWe have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Siemens AGDivision Process Industries and DrivesPostfach 48 4890026 NÜRNBERGGERMANY

A5E34977996-AAⓅ 05/2015 Subject to change

Copyright © Siemens AG 2015.All rights reserved

Page 3: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Table of contents

1 Basics.........................................................................................................................................................17

1.1 About this document..............................................................................................................17

1.2 Overview of function blocks...................................................................................................18

1.3 Operator control and monitoring in WinCC............................................................................201.3.1 Block icon...............................................................................................................................201.3.2 Faceplate...............................................................................................................................211.3.3 Special characteristics...........................................................................................................30

1.4 Hierarchical operating concept...............................................................................................311.4.1 Description of the concept......................................................................................................311.4.2 Configuration of the multiple control room operation.............................................................32

1.5 Panel integration....................................................................................................................331.5.1 Interface to the operator panel...............................................................................................331.5.2 Description of the concept......................................................................................................351.5.3 Overview of IL S7 Flexible types............................................................................................371.5.4 Operator control and monitoring in WinCC flexible................................................................381.5.4.1 General view of the panel blocks...........................................................................................381.5.4.2 Connecting the variables for trend view.................................................................................411.5.4.3 Configuration of the panel interface.......................................................................................43

2 Operation blocks.........................................................................................................................................45

2.1 S7Aggr08 - Switchover for up to 8 units.................................................................................452.1.1 Function.................................................................................................................................452.1.2 Calling OBs............................................................................................................................452.1.3 Setting the operating mode....................................................................................................452.1.4 Number of units......................................................................................................................452.1.5 Master unit (OP_TIME_S parameter = 0)...............................................................................462.1.6 Maximum units to be switched...............................................................................................462.1.7 Activation/deactivation depending on operating hours / priorities (OP_TIME_S = 1

parameter)..............................................................................................................................472.1.8 Unit switch-on and switch-off delay........................................................................................472.1.9 Error handling.........................................................................................................................482.1.10 Cascading..............................................................................................................................482.1.11 Message behavior..................................................................................................................492.1.12 Startup characteristics............................................................................................................492.1.13 Time behavior........................................................................................................................492.1.14 Called blocks..........................................................................................................................492.1.15 Block parameters...................................................................................................................502.1.16 Operator control & monitoring................................................................................................542.1.16.1 Views of S7Aggr08.................................................................................................................542.1.16.2 Standard view of S7Aggr08...................................................................................................542.1.16.3 Parameter view of S7Aggr08.................................................................................................552.1.16.4 Block icon of S7Aggr08..........................................................................................................56

2.2 S7UsrM - Selection of operating level from 8 levels..............................................................57

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 3

Page 4: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

2.2.1 Function.................................................................................................................................572.2.2 Calling OBs............................................................................................................................572.2.3 Startup characteristics............................................................................................................572.2.4 Assignment of message text and message class to the block parameters............................572.2.5 Called blocks..........................................................................................................................582.2.6 Block parameters...................................................................................................................582.2.7 Operator control & monitoring................................................................................................602.2.7.1 Views of S7UsrM....................................................................................................................602.2.7.2 Standard view of S7UsrM......................................................................................................602.2.7.3 Block icons of S7UsrM...........................................................................................................61

2.3 S7OpA - Operator control of an analog measured value.......................................................622.3.1 Function.................................................................................................................................622.3.2 Calling OBs............................................................................................................................622.3.3 Time behavior........................................................................................................................622.3.4 Startup characteristics............................................................................................................622.3.5 Operator panel.......................................................................................................................622.3.6 Switch permission..................................................................................................................622.3.7 Called blocks..........................................................................................................................632.3.8 Block parameters...................................................................................................................632.3.9 Operator control & monitoring................................................................................................642.3.9.1 Views of S7OpA.....................................................................................................................642.3.9.2 Standard view of S7OpA........................................................................................................642.3.9.3 Block icons of S7OpA............................................................................................................65

2.4 S7OpD - Operator control of a binary measured value..........................................................662.4.1 Function.................................................................................................................................662.4.2 OBs to be called.....................................................................................................................662.4.3 Time behavior........................................................................................................................662.4.4 Operating modes....................................................................................................................662.4.5 Operator panel.......................................................................................................................662.4.6 Switch permission..................................................................................................................662.4.7 Startup characteristics............................................................................................................672.4.8 Called blocks..........................................................................................................................672.4.9 Block parameters...................................................................................................................672.4.10 Operator control & monitoring................................................................................................682.4.10.1 Views of S7OpD.....................................................................................................................682.4.10.2 Standard view of S7OpD........................................................................................................682.4.10.3 Block icons of S7OpD............................................................................................................69

3 HVAC blocks..............................................................................................................................................71

3.1 S7CalcWatP - Calculation of thermal power and emitted energy..........................................713.1.1 Function.................................................................................................................................713.1.2 OBs to be called.....................................................................................................................723.1.3 Time behavior........................................................................................................................723.1.4 Operator panel.......................................................................................................................723.1.5 Error handling.........................................................................................................................723.1.6 Message behavior..................................................................................................................723.1.7 Startup characteristics............................................................................................................733.1.8 Called blocks..........................................................................................................................733.1.9 Block parameters...................................................................................................................733.1.10 Operator control & monitoring................................................................................................753.1.10.1 Views of CalcWatP.................................................................................................................75

Table of contents

PCS 7 Industry Library for S74 Function Manual, 09/2015, A5E34977996-AA

Page 5: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

3.1.10.2 Standard view of CalcWatP...................................................................................................763.1.10.3 Parameter view of CalcWatP.................................................................................................763.1.10.4 Block icons of CalcWatP........................................................................................................77

3.2 S7ConvAbRe - Conversion of humidity from absolute to relative or relative to absolute.......783.2.1 Function.................................................................................................................................783.2.2 OBs to be called.....................................................................................................................783.2.3 Time behavior........................................................................................................................783.2.4 Error handling.........................................................................................................................783.2.5 Block parameters...................................................................................................................78

3.3 S7ConvCF - Conversion of unit of temperature from °C to °F or from °F to °C.....................793.3.1 Function.................................................................................................................................793.3.2 OBs to be called.....................................................................................................................793.3.3 Time behavior........................................................................................................................793.3.4 Error handling.........................................................................................................................793.3.5 Block parameters...................................................................................................................79

3.4 S7HxFct - Calculation of enthalpy, absolute humidity, and saturated humidity according to Mollier.................................................................................................................................80

3.4.1 Function.................................................................................................................................803.4.2 OBs to be called.....................................................................................................................803.4.3 Time behavior........................................................................................................................803.4.4 Operator panel.......................................................................................................................803.4.5 Error handling.........................................................................................................................803.4.6 Message behavior..................................................................................................................813.4.7 Startup characteristics............................................................................................................813.4.8 Called blocks..........................................................................................................................813.4.9 Block parameters...................................................................................................................813.4.10 Operator control & monitoring................................................................................................833.4.10.1 Views of S7HxFct...................................................................................................................833.4.10.2 Standard view of S7HxFct......................................................................................................833.4.10.3 Block icons of S7HxFct..........................................................................................................84

4 Communication blocks...............................................................................................................................85

4.1 ASRcvH - H-system communication receive block................................................................854.1.1 Function.................................................................................................................................854.1.2 OBs to be called.....................................................................................................................854.1.3 Monitoring the receiving procedure........................................................................................864.1.4 Message behavior..................................................................................................................864.1.5 Startup characteristics............................................................................................................874.1.6 Time behavior........................................................................................................................874.1.7 Called blocks..........................................................................................................................874.1.8 Block parameters...................................................................................................................87

4.2 ASSendH - H-system communication send block................................................................1044.2.1 Function...............................................................................................................................1044.2.2 Calling OBs..........................................................................................................................1044.2.3 Monitoring the sending procedure........................................................................................1044.2.4 Message behavior................................................................................................................1054.2.5 Startup characteristics..........................................................................................................1064.2.6 Time behavior......................................................................................................................1064.2.7 Called blocks........................................................................................................................1064.2.8 Block parameters.................................................................................................................106

Table of contents

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 5

Page 6: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

4.3 S7Get - AS-AS communication, read data...........................................................................1144.3.1 Function...............................................................................................................................1144.3.2 OBs to be called...................................................................................................................1144.3.3 Time behavior......................................................................................................................1144.3.4 Monitoring of the communication procedure........................................................................1144.3.5 Message behavior................................................................................................................1154.3.6 Startup characteristics..........................................................................................................1154.3.7 Called blocks........................................................................................................................1154.3.8 Block parameters.................................................................................................................115

4.4 S7Put - AS-AS communication, write data...........................................................................1174.4.1 Function...............................................................................................................................1174.4.2 Calling OBs..........................................................................................................................1174.4.3 Time behavior......................................................................................................................1174.4.4 Monitoring of the communication procedure........................................................................1174.4.5 Message behavior................................................................................................................1184.4.6 Startup characteristics..........................................................................................................1184.4.7 Called blocks........................................................................................................................1184.4.8 Block parameters.................................................................................................................119

5 Logic blocks..............................................................................................................................................121

5.1 S7SelB - BOOL selector......................................................................................................1215.1.1 Function...............................................................................................................................1215.1.2 Calling OBs..........................................................................................................................1215.1.3 Block parameters.................................................................................................................121

5.2 S7SelI - INTEGER selector..................................................................................................1225.2.1 Function...............................................................................................................................1225.2.2 Calling OBs..........................................................................................................................1225.2.3 Block parameters.................................................................................................................122

5.3 S7SelR - REAL selector.......................................................................................................1235.3.1 Function...............................................................................................................................1235.3.2 Calling OBs..........................................................................................................................1235.3.3 Block parameters.................................................................................................................123

6 Mathematical blocks.................................................................................................................................125

6.1 S7AccuS - Accumulated measured value with specific heat...............................................1256.1.1 Function...............................................................................................................................1256.1.2 Calling OBs..........................................................................................................................1256.1.3 Time behavior......................................................................................................................1256.1.4 Operating modes..................................................................................................................1256.1.5 Startup characteristics..........................................................................................................1256.1.6 Integrate...............................................................................................................................1266.1.7 Called blocks........................................................................................................................1266.1.8 Block parameters.................................................................................................................1276.1.9 Operator control & monitoring..............................................................................................1286.1.9.1 Views of S7AccuS................................................................................................................1286.1.9.2 Standard view of S7AccuS...................................................................................................1286.1.9.3 Block icons of S7AccuS.......................................................................................................128

6.2 S7Average - Generation of mean/minimum/maximum value...............................................1296.2.1 Function...............................................................................................................................1296.2.2 OBs to be called...................................................................................................................129

Table of contents

PCS 7 Industry Library for S76 Function Manual, 09/2015, A5E34977996-AA

Page 7: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

6.2.3 Time behavior......................................................................................................................1296.2.4 How it works.........................................................................................................................1296.2.5 Plausibility check..................................................................................................................1296.2.6 Message behavior................................................................................................................1306.2.7 Startup characteristics..........................................................................................................1306.2.8 Called blocks........................................................................................................................1316.2.9 Block parameters.................................................................................................................1316.2.10 Operator control & monitoring..............................................................................................1336.2.10.1 Views of S7Average.............................................................................................................1336.2.10.2 Standard view of S7Average................................................................................................1336.2.10.3 Parameter view of S7Average.............................................................................................1346.2.10.4 Block icon of S7Average......................................................................................................134

7 Motor and valve blocks.............................................................................................................................135

7.1 General information about motor blocks - Description of the general functions of all motor blocks...................................................................................................................................135

7.1.1 General information about motor blocks..............................................................................1357.1.2 Function...............................................................................................................................1367.1.3 Calling OBs..........................................................................................................................1377.1.4 Time behavior......................................................................................................................1377.1.5 How it works.........................................................................................................................1377.1.6 Operating modes..................................................................................................................1387.1.7 Interlock................................................................................................................................1407.1.8 Control..................................................................................................................................1407.1.9 Runtime monitoring..............................................................................................................1407.1.10 Motor protection...................................................................................................................1417.1.11 Error handling.......................................................................................................................1417.1.12 Bumpless switchover...........................................................................................................1417.1.13 Startup characteristics..........................................................................................................1427.1.14 Message behavior................................................................................................................1427.1.15 Availability............................................................................................................................1437.1.16 Maintenance information......................................................................................................1437.1.17 Anti-blocking function (ABS)................................................................................................1447.1.18 Called blocks........................................................................................................................1447.1.19 Operator control & monitoring..............................................................................................1447.1.19.1 Views of motor blocks in general.........................................................................................1447.1.19.2 Parameter view of motor blocks...........................................................................................1447.1.19.3 Maintenance view of motor blocks in general......................................................................145

7.2 S7Vlv - Valve control............................................................................................................1467.2.1 Function...............................................................................................................................1467.2.2 Calling OBs..........................................................................................................................1467.2.3 Time behavior......................................................................................................................1467.2.4 How it works.........................................................................................................................1467.2.5 Neutral position....................................................................................................................1467.2.6 Operating modes..................................................................................................................1477.2.7 Interlock................................................................................................................................1487.2.8 Monitoring............................................................................................................................1497.2.9 Bumpless switchover...........................................................................................................1497.2.10 Operator panel.....................................................................................................................1497.2.11 Switch permission................................................................................................................1497.2.12 Error handling.......................................................................................................................1507.2.13 Startup characteristics..........................................................................................................150

Table of contents

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 7

Page 8: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

7.2.14 Availability............................................................................................................................1507.2.15 Message behavior................................................................................................................1507.2.16 Called blocks........................................................................................................................1517.2.17 Block parameters.................................................................................................................1517.2.18 Operator control & monitoring..............................................................................................1547.2.18.1 Views of S7Vlv.....................................................................................................................1547.2.18.2 Standard view of S7Vlv........................................................................................................1557.2.18.3 Parameter view of S7Vlv......................................................................................................1567.2.18.4 Block icons of S7Vlv.............................................................................................................156

7.3 S7Mot - Single-stage motor.................................................................................................1577.3.1 Function...............................................................................................................................1577.3.2 Control outputs.....................................................................................................................1577.3.3 Feedback.............................................................................................................................1577.3.4 Monitoring times...................................................................................................................1577.3.5 Operator panel.....................................................................................................................1577.3.6 Switch permission................................................................................................................1577.3.7 Called blocks........................................................................................................................1587.3.8 Special block parameters.....................................................................................................1587.3.9 Operator control & monitoring..............................................................................................1617.3.9.1 Views of S7Mot....................................................................................................................1617.3.9.2 Standard view of S7Mot.......................................................................................................1627.3.9.3 Block icons of S7Mot............................................................................................................163

7.4 S7MotRev - Reversing motor...............................................................................................1647.4.1 Function...............................................................................................................................1647.4.2 Control outputs.....................................................................................................................1647.4.3 Feedback.............................................................................................................................1647.4.4 Monitoring times...................................................................................................................1647.4.5 Control..................................................................................................................................1647.4.6 Operator panel.....................................................................................................................1657.4.7 Switch permission................................................................................................................1657.4.8 Called blocks........................................................................................................................1657.4.9 Special block parameters.....................................................................................................1657.4.10 Operator control & monitoring..............................................................................................1697.4.10.1 Views of S7MotRev..............................................................................................................1697.4.10.2 Standard view of S7MotRev.................................................................................................1707.4.10.3 Block icons of S7MotRev.....................................................................................................171

7.5 S7MotSpd - Two-stage motor..............................................................................................1727.5.1 Function...............................................................................................................................1727.5.2 Control outputs.....................................................................................................................1727.5.3 Feedback.............................................................................................................................1727.5.4 Monitoring times...................................................................................................................1727.5.5 Control..................................................................................................................................1727.5.6 Operator panel.....................................................................................................................1737.5.7 Switch permission................................................................................................................1737.5.8 Called blocks........................................................................................................................1737.5.9 Special block parameters.....................................................................................................1747.5.10 Operator control & monitoring..............................................................................................1787.5.10.1 Views of S7MotSpd..............................................................................................................1787.5.10.2 Standard view of S7MotSpd.................................................................................................1787.5.10.3 Block icons of S7MotSpd.....................................................................................................179

Table of contents

PCS 7 Industry Library for S78 Function Manual, 09/2015, A5E34977996-AA

Page 9: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

7.6 S7MotSpdC - Frequency-controlled motor...........................................................................1817.6.1 Function...............................................................................................................................1817.6.2 Control outputs.....................................................................................................................1817.6.3 Feedback.............................................................................................................................1817.6.4 Monitoring times...................................................................................................................1817.6.5 Speed specification..............................................................................................................1817.6.6 Operator panel.....................................................................................................................1827.6.7 Switch permission................................................................................................................1827.6.8 Called blocks........................................................................................................................1827.6.9 Special block parameters.....................................................................................................1827.6.10 Operator control & monitoring..............................................................................................1877.6.10.1 Views of S7MotSpdC...........................................................................................................1877.6.10.2 Standard view of S7MotSpdC..............................................................................................1877.6.10.3 Block icons of S7MotSpdC...................................................................................................189

7.7 S7MV3P -3-point final controlling element...........................................................................1917.7.1 Function...............................................................................................................................1917.7.2 Calling OBs..........................................................................................................................1917.7.3 Time behavior......................................................................................................................1917.7.4 Operating modes..................................................................................................................1917.7.5 Neutral position....................................................................................................................1917.7.6 Control outputs.....................................................................................................................1917.7.7 Setpoint................................................................................................................................1927.7.8 Operator panel.....................................................................................................................1927.7.9 Switch permission................................................................................................................1927.7.10 Error handling / Message behavior......................................................................................1937.7.11 Startup characteristics..........................................................................................................1937.7.12 Availability............................................................................................................................1937.7.13 Called blocks........................................................................................................................1947.7.14 Block parameters.................................................................................................................1947.7.15 Operator control & monitoring..............................................................................................1977.7.15.1 Views of S7MV3P................................................................................................................1977.7.15.2 Standard view of S7MV3P...................................................................................................1987.7.15.3 Parameter view of S7MV3P.................................................................................................2017.7.15.4 Block icons of S7MV3P........................................................................................................202

7.8 S7VlvMot - Control of motor valve.......................................................................................2037.8.1 Description of S7VlvMot.......................................................................................................2037.8.2 Operating modes of S7VlvMot.............................................................................................2067.8.3 Functions of S7VlvMot.........................................................................................................2077.8.4 Troubleshooting S7VlvMot...................................................................................................2167.8.5 Messaging of S7VlvMot.......................................................................................................2177.8.6 I/Os of S7VlvMot..................................................................................................................2187.8.7 Operator control & monitoring..............................................................................................2267.8.7.1 Views of S7VlvMot...............................................................................................................2267.8.7.2 Standard view of S7VlvMot..................................................................................................2277.8.7.3 Limit view of S7VlvMot.........................................................................................................2307.8.7.4 Parameter view of S7VlvMot................................................................................................2327.8.7.5 Preview of S7VlvMot............................................................................................................2347.8.7.6 Block icons of S7VlvMot.......................................................................................................236

8 Panel blocks.............................................................................................................................................239

8.1 S7PCalcWatP - Operator panel interface for S7CalcWatP..................................................239

Table of contents

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 9

Page 10: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

8.1.1 Function...............................................................................................................................2398.1.2 OBs to be called...................................................................................................................2398.1.3 Startup characteristics..........................................................................................................2398.1.4 Called blocks........................................................................................................................2398.1.5 Block parameters.................................................................................................................2408.1.6 Operator control & monitoring..............................................................................................2418.1.6.1 Views of S7CalcWatP..........................................................................................................2418.1.6.2 Standard view of S7CalcWatP.............................................................................................2418.1.6.3 Block icons of S7CalcWatP..................................................................................................241

8.2 S7PHxFct - Operator panel interface for S7HxFct...............................................................2428.2.1 Function...............................................................................................................................2428.2.2 OBs to be called...................................................................................................................2428.2.3 Startup characteristics..........................................................................................................2428.2.4 Called blocks........................................................................................................................2428.2.5 Block parameters.................................................................................................................2428.2.6 Operator control & monitoring..............................................................................................2438.2.6.1 Views of S7PHxFct..............................................................................................................2438.2.6.2 Standard view of S7PHxFct.................................................................................................2448.2.6.3 Block icon of S7PHxFct........................................................................................................244

8.3 S7PMonAn - Operator panel interface for S7MonAn...........................................................2458.3.1 Function...............................................................................................................................2458.3.2 OBs to be called...................................................................................................................2458.3.3 Startup characteristics..........................................................................................................2458.3.4 Called blocks........................................................................................................................2458.3.5 Block parameters.................................................................................................................2458.3.6 Operator control & monitoring..............................................................................................2478.3.6.1 Views of S7PMonAn............................................................................................................2478.3.6.2 Standard view of S7PMonAn...............................................................................................2478.3.6.3 Block icons of S7PMonAn....................................................................................................248

8.4 S7PMonAn08 - Operator panel interface for S7MonAn08...................................................2498.4.1 Function...............................................................................................................................2498.4.2 OBs to be called...................................................................................................................2498.4.3 Startup characteristics..........................................................................................................2498.4.4 Called blocks........................................................................................................................2498.4.5 Block parameters.................................................................................................................2498.4.6 Operator control & monitoring..............................................................................................2518.4.6.1 Views of S7PMonAn08........................................................................................................2518.4.6.2 Standard view of S7PMonAn08...........................................................................................2528.4.6.3 Block icons of S7PMonAn08................................................................................................252

8.5 S7PMonAnDi - Operator panel interface for S7MonAnDi....................................................2538.5.1 Function...............................................................................................................................2538.5.2 OBs to be called...................................................................................................................2538.5.3 Startup characteristics..........................................................................................................2538.5.4 Called blocks........................................................................................................................2538.5.5 Block parameters.................................................................................................................2538.5.6 Operator control & monitoring..............................................................................................2558.5.6.1 Views of S7PMonAnDi.........................................................................................................2558.5.6.2 Standard view of S7PMonAnDi............................................................................................2568.5.6.3 Block icons of S7PMonAnDi................................................................................................256

8.6 S7PMonAnGrad - Operator panel interface for S7MonAnGrad...........................................257

Table of contents

PCS 7 Industry Library for S710 Function Manual, 09/2015, A5E34977996-AA

Page 11: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

8.6.1 Function...............................................................................................................................2578.6.2 Calling OBs..........................................................................................................................2578.6.3 Startup characteristics..........................................................................................................2578.6.4 Called blocks........................................................................................................................2578.6.5 Block parameters.................................................................................................................2578.6.6 Operator control & monitoring..............................................................................................2598.6.6.1 Views of S7PMonAnGrad....................................................................................................2598.6.6.2 Standard view of S7PMonAnGrad.......................................................................................2608.6.6.3 Block icons of S7PMonAnGrad............................................................................................260

8.7 S7PMonDi - Operator panel interface for S7MonDi.............................................................2618.7.1 Function...............................................................................................................................2618.7.2 Calling OBs..........................................................................................................................2618.7.3 Startup characteristics..........................................................................................................2618.7.4 Called blocks........................................................................................................................2618.7.5 Block parameters.................................................................................................................2618.7.6 Operator control & monitoring..............................................................................................2638.7.6.1 Views of S7PMonDi.............................................................................................................2638.7.6.2 Standard view of S7PMonDi................................................................................................2638.7.6.3 Block icon of S7PMonDi.......................................................................................................263

8.8 S7PMonDi08 - Operator panel interface for S7MonDi08.....................................................2648.8.1 Function...............................................................................................................................2648.8.2 Calling OBs..........................................................................................................................2648.8.3 Startup characteristics..........................................................................................................2648.8.4 Called blocks........................................................................................................................2648.8.5 Block parameters.................................................................................................................2648.8.6 Operator control & monitoring..............................................................................................2668.8.6.1 Views of S7PMonDi08.........................................................................................................2668.8.6.2 Standard view of S7PMonDi08............................................................................................2678.8.6.3 Block icons of S7PMonDi08.................................................................................................267

8.9 S7PMot - Operator panel interface for S7Mot......................................................................2688.9.1 Function...............................................................................................................................2688.9.2 OBs to be called...................................................................................................................2688.9.3 How it works.........................................................................................................................2688.9.4 Startup characteristics..........................................................................................................2698.9.5 Called blocks........................................................................................................................2698.9.6 Block parameters.................................................................................................................2698.9.7 Operator control & monitoring..............................................................................................2708.9.7.1 Views of S7PMot..................................................................................................................2708.9.7.2 Standard view of S7PMot.....................................................................................................2718.9.7.3 Block icon of S7PMot...........................................................................................................271

8.10 S7PMotRev - Operator panel interface for S7MotRev.........................................................2728.10.1 Function...............................................................................................................................2728.10.2 OBs to be called...................................................................................................................2728.10.3 How it works.........................................................................................................................2728.10.4 Startup characteristics..........................................................................................................2738.10.5 Called blocks........................................................................................................................2738.10.6 Block parameters.................................................................................................................2738.10.7 Operator control & monitoring..............................................................................................2758.10.7.1 Views of S7PMotRev...........................................................................................................2758.10.7.2 Standard view of S7PMotRev..............................................................................................275

Table of contents

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 11

Page 12: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

8.10.7.3 Block icons of S7PMotRev...................................................................................................275

8.11 S7PMotSpd - Operator panel interface for S7MotSpd.........................................................2768.11.1 Function...............................................................................................................................2768.11.2 Calling OBs..........................................................................................................................2768.11.3 How it works.........................................................................................................................2768.11.4 Startup characteristics..........................................................................................................2778.11.5 Called blocks........................................................................................................................2778.11.6 Block parameters.................................................................................................................2778.11.7 Operator control and monitoring..........................................................................................279

8.12 S7PMotSpdC - Operator panel interface for S7MotSpdC....................................................2808.12.1 Function...............................................................................................................................2808.12.2 Calling OBs..........................................................................................................................2808.12.3 How it works.........................................................................................................................2808.12.4 Startup characteristics..........................................................................................................2818.12.5 Called blocks........................................................................................................................2818.12.6 Block parameters.................................................................................................................2818.12.7 Operator control & monitoring..............................................................................................2838.12.7.1 Views of S7PMotSpdC.........................................................................................................2838.12.7.2 Standard view of S7PMotSpdC............................................................................................2838.12.7.3 Block icons of S7PMotSpdC................................................................................................283

8.13 S7PPID - Operator panel interface for S7PIDCon...............................................................2848.13.1 Function...............................................................................................................................2848.13.2 Configuration notes..............................................................................................................2848.13.3 Calling OBs..........................................................................................................................2848.13.4 Startup characteristics..........................................................................................................2848.13.5 Called blocks........................................................................................................................2848.13.6 Block parameters.................................................................................................................2858.13.7 Operator control & monitoring WinCC flexible.....................................................................2878.13.7.1 Views of S7PPID..................................................................................................................2878.13.7.2 Standard view of S7PPID.....................................................................................................2878.13.7.3 Trend view of S7PPID..........................................................................................................2888.13.7.4 Block icons of S7PPID.........................................................................................................288

8.14 S7PMV3P - Operator Panel Interface for S7MV3P..............................................................2898.14.1 Function...............................................................................................................................2898.14.2 OBs to be called...................................................................................................................2898.14.3 How it works.........................................................................................................................2898.14.4 Startup characteristics..........................................................................................................2908.14.5 Called blocks........................................................................................................................2908.14.6 Block parameters.................................................................................................................2908.14.7 Operator control & monitoring..............................................................................................2918.14.7.1 Views of S7PMV3P..............................................................................................................2918.14.7.2 Standard view of S7PMV3P.................................................................................................2928.14.7.3 Block icon of S7PMV3P.......................................................................................................292

8.15 S7POpA - Operator panel interface for S7OpA...................................................................2938.15.1 Function...............................................................................................................................2938.15.2 OBs to be called...................................................................................................................2938.15.3 Startup characteristics..........................................................................................................2938.15.4 Called blocks........................................................................................................................2938.15.5 Block parameters.................................................................................................................2948.15.6 Operator control & monitoring..............................................................................................295

Table of contents

PCS 7 Industry Library for S712 Function Manual, 09/2015, A5E34977996-AA

Page 13: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

8.15.6.1 Views of S7POpA.................................................................................................................2958.15.6.2 Standard view of S7POpA...................................................................................................2958.15.6.3 Block icons of S7POpA........................................................................................................295

8.16 S7POpD - Operator panel interface for S7OpD...................................................................2968.16.1 Function...............................................................................................................................2968.16.2 Calling OBs..........................................................................................................................2968.16.3 Startup characteristics..........................................................................................................2968.16.4 Called blocks........................................................................................................................2968.16.5 Block parameters.................................................................................................................2978.16.6 Operator control & monitoring..............................................................................................2988.16.6.1 Views of S7POpD................................................................................................................2988.16.6.2 Standard view of S7POpD...................................................................................................2988.16.6.3 Block icons of S7POpD........................................................................................................299

8.17 S7PVlv - Operator panel interface for S7Vlv........................................................................3008.17.1 Function...............................................................................................................................3008.17.2 Calling OBs..........................................................................................................................3008.17.3 How it works.........................................................................................................................3008.17.4 Startup characteristics..........................................................................................................3018.17.5 Called blocks........................................................................................................................3018.17.6 Block parameters.................................................................................................................3018.17.7 Operator control & monitoring..............................................................................................3028.17.7.1 Views of S7PVlv...................................................................................................................3028.17.7.2 Standard view of S7PVlv......................................................................................................3038.17.7.3 Block icons of S7PVlv..........................................................................................................303

8.18 S7PVlvMot - Operator panel interface for S7VlvMot............................................................3048.18.1 Function...............................................................................................................................3048.18.2 Calling OBs..........................................................................................................................3048.18.3 Startup characteristics..........................................................................................................3048.18.4 Called blocks........................................................................................................................3048.18.5 Block parameter...................................................................................................................3058.18.6 Operator control & monitoring..............................................................................................3078.18.6.1 Views of S7VlvMot...............................................................................................................3078.18.6.2 Standard view of S7PVlvMot................................................................................................3078.18.6.3 Block icons of S7PVlvMot....................................................................................................308

9 Controller blocks.......................................................................................................................................309

9.1 S7PIDCon - Continuous PID controller................................................................................3099.1.1 Description of S7PIDCon.....................................................................................................3099.1.2 Modes supported by S7PIDCon...........................................................................................3129.1.3 Functions..............................................................................................................................3129.1.4 Error handling.......................................................................................................................3199.1.5 Messaging............................................................................................................................3199.1.6 I/Os.......................................................................................................................................3209.1.7 Views of S7PIDCon..............................................................................................................3279.1.8 Operator control & monitoring..............................................................................................3289.1.8.1 Views of S7PIDCon..............................................................................................................3289.1.8.2 Standard view of S7PIDCon................................................................................................3289.1.8.3 Limit view of S7PIDCon.......................................................................................................3319.1.8.4 Ramp view of S7PIDCon.....................................................................................................3339.1.8.5 Parameter view of S7PIDCon..............................................................................................3349.1.8.6 Preview of S7PIDCon..........................................................................................................335

Table of contents

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 13

Page 14: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

9.1.8.7 Block icons of S7PIDCon.....................................................................................................336

10 System blocks..........................................................................................................................................339

10.1 S7ASTimeBCD - Output the CPU time in BCD format........................................................33910.1.1 Function...............................................................................................................................33910.1.2 OBs to be called...................................................................................................................33910.1.3 Called blocks........................................................................................................................33910.1.4 Block parameters.................................................................................................................339

10.2 S7MVLd - Retrieving the manipulated variable for the controller.........................................34010.2.1 Function...............................................................................................................................34010.2.2 Calling OBs..........................................................................................................................34010.2.3 Time behavior......................................................................................................................34010.2.4 How it works / Startup characteristics..................................................................................34010.2.5 Called blocks........................................................................................................................34010.2.6 Block parameters.................................................................................................................340

10.3 S7SplitRange - Split range for control..................................................................................34210.3.1 Function...............................................................................................................................34210.3.2 Calling OBs..........................................................................................................................34210.3.3 Time behavior......................................................................................................................34210.3.4 Interconnection in the CFC..................................................................................................34210.3.5 Supplying the manipulated variables...................................................................................34310.3.6 Adjusting the controller.........................................................................................................34310.3.7 Error handling.......................................................................................................................34310.3.8 Startup characteristics..........................................................................................................34310.3.9 Message behavior................................................................................................................34310.3.10 Diagram of a split range control process..............................................................................34410.3.11 Called blocks........................................................................................................................34510.3.12 Block parameters.................................................................................................................345

11 Monitoring blocks......................................................................................................................................349

11.1 S7MonAn - Measured value monitoring...............................................................................34911.1.1 Function...............................................................................................................................34911.1.2 OBs to be called...................................................................................................................34911.1.3 Time behavior......................................................................................................................34911.1.4 How it works.........................................................................................................................34911.1.5 Output V...............................................................................................................................34911.1.6 Operator panel.....................................................................................................................35011.1.7 Error handling.......................................................................................................................35011.1.8 Startup characteristics..........................................................................................................35011.1.9 Message behavior................................................................................................................35011.1.10 Called blocks........................................................................................................................35111.1.11 Block parameters.................................................................................................................35111.1.12 Operator control & monitoring..............................................................................................35311.1.12.1 Views of S7MonAn...............................................................................................................35311.1.12.2 Standard view of S7MonAn..................................................................................................35311.1.12.3 Limit view of S7MonAn.........................................................................................................35411.1.12.4 Maintenance view of S7MonAn............................................................................................35511.1.12.5 Trend view of S7MonAn.......................................................................................................35511.1.12.6 Block icons of S7MonAn......................................................................................................355

11.2 S7MonAn08 - Measured value monitoring with 8 limits.......................................................35611.2.1 Function...............................................................................................................................356

Table of contents

PCS 7 Industry Library for S714 Function Manual, 09/2015, A5E34977996-AA

Page 15: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

11.2.2 Calling organization blocks..................................................................................................35611.2.3 Time behavior......................................................................................................................35611.2.4 Startup characteristics..........................................................................................................35611.2.5 Output V...............................................................................................................................35611.2.6 Error handling.......................................................................................................................35611.2.7 Measured value monitoring..................................................................................................35711.2.8 Operator panel.....................................................................................................................35711.2.9 Message behavior................................................................................................................35711.2.10 Block parameters.................................................................................................................35811.2.11 Called blocks........................................................................................................................36211.2.12 Operator control & monitoring..............................................................................................36211.2.12.1 Views of S7MonAn08...........................................................................................................36211.2.12.2 Limit view of S7MonAn08.....................................................................................................36311.2.12.3 Block icons of S7MonAn08..................................................................................................363

11.3 S7MonAnDi - Measured value monitoring for 4 analog and binary limits............................36411.3.1 Function...............................................................................................................................36411.3.2 Calling OBs..........................................................................................................................36411.3.3 Time behavior......................................................................................................................36411.3.4 How it works.........................................................................................................................36411.3.5 Output V...............................................................................................................................36411.3.6 Operator panel.....................................................................................................................36511.3.7 Error handling.......................................................................................................................36511.3.8 Startup characteristics..........................................................................................................36511.3.9 Message behavior................................................................................................................36511.3.10 Called blocks........................................................................................................................36611.3.11 Block parameters.................................................................................................................36611.3.12 Operator control & monitoring..............................................................................................36811.3.12.1 Views of S7MonAnDi...........................................................................................................36811.3.12.2 Standard view of S7MonAnDi..............................................................................................36811.3.12.3 Limit view of S7MonAnDi.....................................................................................................36911.3.12.4 Block icons of S7MonAnDi...................................................................................................369

11.4 S7MonAnGrad - Measured value monitoring with gradient function....................................37011.4.1 Function...............................................................................................................................37011.4.2 Calling OBs..........................................................................................................................37011.4.3 Time behavior......................................................................................................................37011.4.4 How it works.........................................................................................................................37011.4.5 Startup characteristics..........................................................................................................37011.4.6 Error handling.......................................................................................................................37011.4.7 Output V...............................................................................................................................37111.4.8 Message behavior................................................................................................................37111.4.9 Measured value monitoring..................................................................................................37211.4.10 Gradient monitoring..............................................................................................................37211.4.11 Operator panel.....................................................................................................................37211.4.12 Called blocks........................................................................................................................37211.4.13 Block parameters.................................................................................................................37211.4.14 Operator control & monitoring..............................................................................................37511.4.14.1 Views of S7MonAnGrad.......................................................................................................37511.4.14.2 Parameter view of S7MonAnGrad.......................................................................................37511.4.14.3 Block icons of S7MonAnGrad..............................................................................................376

11.5 S7MonDi - Monitoring of a binary process tag.....................................................................37711.5.1 Function...............................................................................................................................377

Table of contents

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 15

Page 16: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

11.5.2 Calling OBs..........................................................................................................................37711.5.3 Time behavior......................................................................................................................37711.5.4 Output Q...............................................................................................................................37711.5.5 Monitoring the process tag...................................................................................................37811.5.6 Operator panel.....................................................................................................................37811.5.7 Message behavior................................................................................................................37811.5.8 Startup characteristics..........................................................................................................37911.5.9 Called blocks........................................................................................................................37911.5.10 Block parameters.................................................................................................................37911.5.11 Operator control & monitoring..............................................................................................38011.5.11.1 Views of S7MonDi................................................................................................................38011.5.11.2 Standard view of S7MonDi...................................................................................................38111.5.11.3 Maintenance view of S7MonDi.............................................................................................38111.5.11.4 Block icons of S7MonDi.......................................................................................................382

11.6 S7MonDi08 - Monitoring of 8 binary process tags...............................................................38311.6.1 Function...............................................................................................................................38311.6.2 Calling OBs..........................................................................................................................38311.6.3 Time behavior......................................................................................................................38311.6.4 Outputs Qx...........................................................................................................................38311.6.5 Monitoring the process tag...................................................................................................38411.6.6 Operator panel.....................................................................................................................38411.6.7 Message behavior................................................................................................................38411.6.8 Startup characteristics..........................................................................................................38511.6.9 Called blocks........................................................................................................................38511.6.10 Block parameters.................................................................................................................38511.6.11 Operator control & monitoring..............................................................................................38911.6.11.1 Views of S7MonDi08............................................................................................................38911.6.11.2 Standard view of S7MonDi08...............................................................................................38911.6.11.3 Maintenance view of S7MonDi08.........................................................................................39011.6.11.4 Block icons of S7MonDi08...................................................................................................391

Index.........................................................................................................................................................393

Table of contents

PCS 7 Industry Library for S716 Function Manual, 09/2015, A5E34977996-AA

Page 17: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Basics 11.1 About this document

This manual describes the functions of the blocks in the Industry Library for S7, hereafter referred to as IL S7.

It describes the blocks contained in the IL S7 and the extension of the standard functionality.

This manual focuses on:

● Description of the contained blocks.

● Operating concept "Operation of multiple control rooms" including coupling blocks for panel integration with WinCC flexible

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 17

Page 18: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

1.2 Overview of function blocksThe table below offers a list of the function blocks contained in the IL S7 with their essential functions and features.

FB/FC name FB/FC number

Function OCM

S7Mot FB258 Single-stage motor JS7MotRev FB259 Reversing motor JS7MotSpd FB260 Two-stage motor JS7MotSpdC FB261 Frequency-controlled motor JS7MV3P FB262 3-point final controlling element JS7Vlv FB263 Valve control JS7CalcWatP FB264 Calculation of thermal power and emitted energy JS7PIDCon FB265 Continuous PID controller JS7HxFct FB267 Calculation of enthalpy, absolute humidity, and humidity at sat‐

urationJ

S7AccuS FB269 Accumulated measured value with specific heat JS7Average FB270 Averaging with validation of measured values JS7MonAn FB271 Measured value monitoring JS7MonAn08 FB272 Measured value monitoring for 8 limits JS7MonAnDi FB273 Measured value monitoring for 4 analog and binary limits JS7MonAnGrad FB274 Measured value monitoring with gradient function JS7MonDi FB275 Monitoring of a binary process tag JS7MonDi08 FB276 Monitoring of 8 binary process tags JS7Aggr08 FB277 Switchover for max. 8 units JS7OpA FB278 Operator control of an analog measured value JS7OpD FB279 Operator control of a binary measured value JS7UsrM FB280 Selection of operation level out of 8 levels JS7PCalcWatP FB282 Operator panel interface for calculation of thermal power and

emitted energyJ

S7PPID FB283 Operator panel interface for S7PIDCON JS7PHxFkt FB285 Operator panel interface for calculation of enthalpy, absolute

humidity, and humidity at saturationJ

S7PMonAn FB286 Operator panel interface for measured value monitoring (S7Mo‐nAn)

J

S7PMonAn08 FB287 Operator panel interface for measured value monitoring for 8 limits (S7MonAn08)

J

S7PMonAnDi FB288 Operator panel interface for measured value monitoring for 4 analog and binary limits (S7MonAnDi)

J

S7PMonAnGrad FB289 Operator panel interface for measured value monitoring with gradient function (S7MonAnGrad)

J

S7PMonDi FB290 Operator panel interface for monitoring of a binary process tag (S7MonDi)

J

S7PMonDi08 FB291 Operator panel interface for monitoring of the 8 binary process tags (S7MonDi08)

J

S7PMot FB292 Operator panel interface for single-stage motor (S7Mot) J

Basics1.2 Overview of function blocks

PCS 7 Industry Library for S718 Function Manual, 09/2015, A5E34977996-AA

Page 19: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

FB/FC name FB/FC number

Function OCM

S7PMotRev FB293 Operator panel interface for reversing motor with 2 directions of rotation (S7MotRev)

J

S7PMotSpd FB294 Operator panel interface for two-stage motor (S7MotSpd) JS7PMotSpdC FB295 Operator panel interface for frequency-controlled motor

(S7MotSpdC)J

S7PMV3P FB296 Operator panel interface for 3-point final controlling element (S7MV3P)

J

S7POpA FB297 Operator panel interface for manipulation of an analog value (S7OpA)

J

S7POpD FB298 Operator panel interface for manipulation of a binary value (S7OpD)

J

S7PVlv FB301 Operator panel interface for a valve (S7Vlv) JS7MVLd FB302 Retrieving the manipulated variable for the controller JS7SplitRange FB303 Split range for control NS7VlvMot FB306 Motor valve control JS7PVlvMot FB307 Operator panel interface for motor valve (S7VlvMot) JASRcvH FB1117 H-system communication receive block NASSendH FB1116 H-system communication send block NS7Get FB1198 AS-AS communication, read data JS7Put FB1199 Call of SFB15 Put JS7ConvAbRe FC256 Conversion of humidity from absolute to relative or relative to

absoluteN

S7ConvCF FC257 Conversion of unit of temperature from °C to °F or °F to °C NS7SelB FC258 Bool selector NS7SelI FC259 Integer selector NS7SelR FC262 Real selector NS7ASTimeBCD FC261 Output of CPU time in BCD format N

Basics1.2 Overview of function blocks

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 19

Page 20: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

1.3 Operator control and monitoring in WinCC

1.3.1 Block icon

General information about block iconsThe block icons are stored centrally as user-defined objects (UDO) in the WinCC screen "@PCS7Typicals_IL_S7.pdl". They are copied to the process screens from this template and linked to the process via a dynamic wizard (configuration aid).

Representation of a technological iconThe first line of the block icon displays the instance-specific name of the integrated block. You can show or hide this line by setting the internal WinCC variable "View_Tag". The variable is generated automatically in the OS project editor and located in the Split Screen Manager group.

Technological icons with process feedback are usually represented by colors showing their states (active, not active, and malfunction).

Icons for operator control are identified by an additional green arrow appearing above the cursor when the mouse points to the icon. The associated faceplate opens when the operator clicks the icon with the mouse.

Table 1-1 Status table

Status of icon ColorOn/open GreenOff/closed WhiteAlarm RedWarning YellowFault Black

Table 1-2 Status display

Status Status iconMessage lock enabledInterlock enabled

Basics1.3 Operator control and monitoring in WinCC

PCS 7 Industry Library for S720 Function Manual, 09/2015, A5E34977996-AA

Page 21: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Status Status iconInterlock disabled

Local operating mode activeAutomatic operating mode activeManual operating mode activeMaintenance switch active

Maintenance switch inactive

Simulation activeSimulation inactive

Switching authority

Switching authorityThe following switching authority are available:

● Operator panel: OP

● Control station OS (local control station): LCS

● Local OS: No icon

Tooltip textThe tooltip text contains text configured in the block comment of the associated AS block. Referencing is in WinCC in the variable <instance>.#comment. The tooltip text is displayed when the cursor is positioned on the icon.

1.3.2 FaceplateLeft-clicking on an icon in the WinCC graphic opens up an operator window (faceplate) for the selected process tag.

Faceplate viewsA faceplate usually offers a choice of several views.

The standard view provides a summary of the most important information. Additional views contain detailed information and settings for the limits.

The button bar shows which view is currently active. The active button is colored green.

Table 1-3 Button mapping

Icon Stored faceplate viewStandard view

Maintenance view

Basics1.3 Operator control and monitoring in WinCC

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 21

Page 22: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Icon Stored faceplate viewLimit value view

Parameter view

Trend view

Message view

Batch view

Fix faceplate in the front at screen change

Operation within a faceplateIf an object within WinCC can be controlled by the operator, this is indicated by a green arrow above the cursor as soon as the mouse hovers over the object.

Values in the faceplate can only be modified if operation is enabled. Buttons which cannot be operated due to operating states are grayed out. A text box appears for every change to a value/state made manually. Changes must be explicitly confirmed in this case.

Each change is logged by the system and can be called in the user list: user, process tag, old value, and new value.

Analog text boxes

1

2

3

4

(1) Mouse click opens the operator window

(2) Text box for the desired value

(3) Confirm the value input

(4) Discard the value input

Basics1.3 Operator control and monitoring in WinCC

PCS 7 Industry Library for S722 Function Manual, 09/2015, A5E34977996-AA

Page 23: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Binary text boxes

1

2

(1) Confirm the value input

(2) Discard the value input

Standard viewThe standard view is different for each type of block, but the basic layout always remains the same.

1

7

5

6

2

3

4

(1) Button bar to switch view

(2) Override (open = disabled, closed = enabled)

(3) Message lock enabled

(4) Status display in plain text

(5) Box for symbolic representation of the state

(6) Alarm view for the process tag

(7) Name of the process tag

Basics1.3 Operator control and monitoring in WinCC

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 23

Page 24: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Limit viewThe limit view is different for each block type depending on the number of limits, but the basic layout is always the same.

2

3

1

(1) Enable message lock

(2) Monitored limits

(3) Limit bar

Parameter viewThe following control parameters can be set in the parameter view depending on block type:

● Monitoring,

● operating,

● and/or control parameters

Basics1.3 Operator control and monitoring in WinCC

PCS 7 Industry Library for S724 Function Manual, 09/2015, A5E34977996-AA

Page 25: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

1

3

4

2

(1) Setpoint

● High limit in %

● Low limit in %

(2) Slope in %

(3) Monitoring

● Run time in seconds

● Monitoring enabled

(4) Hysteresis

● Positioning in %

● Monitoring in %

Maintenance viewThe maintenance view is different for each type of block, but the basic layout always remains the same.

For motors, it contains counters for the operating hours and switching cycles; for monitoring blocks it contains the simulation and substitute value.

Basics1.3 Operator control and monitoring in WinCC

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 25

Page 26: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

1

2

(1) Current run time

● Run time in hours

● Stop time in hours

● since in hours

(2) Run time total

● Total days in days

● Startups

● since in hours

Message viewThe message view is the same for all block types. This section is therefore referenced in the following document. The alarm screen displays the following information:

● Date

● Time

● Origin (plant designation of the process tag)

● User name, as configured

● Event (e.g., motor protection)

● Status (incoming/outgoing)

● Type (danger/malfunction/warning)

● Info text (if configured)

When the message view is selected for the process tag, only the relevant messages for this process tag are displayed.

The alarm window corresponds to the S7 standard and can be operated as follows:

Basics1.3 Operator control and monitoring in WinCC

PCS 7 Industry Library for S726 Function Manual, 09/2015, A5E34977996-AA

Page 27: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

1

2

3

(1) Message navigation

(2) Acknowledgment single

(3) Acknowledgment group

Trend viewThe trend view is the same for all process tags. This section is therefore referenced in the following document. Only the number of trends may vary for different block types.

The trend view shows the analog values as a trend.

Example trend:

1

(1) Legend representation

Basics1.3 Operator control and monitoring in WinCC

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 27

Page 28: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Batch viewThe batch view is the same for all block types.

You can activate or deactivate the batch view by setting the internal WinCC variable ""@IL_BatchView". The variable is generated automatically in the OS project editor and located in the Split Screen Manager group.

1

(1) Batch allocation

● Release

● Allocated

● Batch name

● Batch ID

● Batch step

Basics1.3 Operator control and monitoring in WinCC

PCS 7 Industry Library for S728 Function Manual, 09/2015, A5E34977996-AA

Page 29: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Integrating a trend in a faceplateProceed as follows to integrate a trend in a faceplate.

1. Create an archive for the variables of the trend display to be shown. This is done with the assistance of the archive wizard in the Tag Logging Editor of WinCC.

2. Call the archive "Process Value Archive".

3. Set up the corresponding icon based on specific instances defining whether archive values are retrieved and which values are used. To do this, change the "ReturnPath" and "StandardTrend" properties.

1

(1) Object properties

Parameter Value EffectReturnPath .PV Structure element name beginning with a dot

: SeparatorCO_GREEN Color for trend

(more color constants are listed in the "Color ta‐ble" in the Appendix)

, Comma for next trendExample: .PV_IN:CO_GREEN,.SP:CO_BLUE

Process value and setpoint for controllerStandardTrend

2 Online values with time axis of 5 minutes

> 2 Archive values with time axis of the entered val‐ue (in minutes)

Basics1.3 Operator control and monitoring in WinCC

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 29

Page 30: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

The "@S7_Trend.pdl" screen [screen size = 700 x 450] is the trend master for all faceplates. The default setting of the process values for the faceplates (see descriptions of faceplates) results in a time axis of 5 minutes being displayed.

Note

When archive values are used, all measured values must also be set up in the Process Value Archive. Process values which do not exist in the archive are not shown.

1.3.3 Special characteristics

Interface between user-defined object and processTo connect the user-defined object to the process, some properties/events of the object have to be provided with process variables/global scripts. The connections are made automatically by a dynamic wizard.

Basics1.3 Operator control and monitoring in WinCC

PCS 7 Industry Library for S730 Function Manual, 09/2015, A5E34977996-AA

Page 31: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

1.4 Hierarchical operating concept

1.4.1 Description of the conceptThere may be some applications in which the required plants or units have to be operated from several operating locations.

To avoid inconsistencies caused by the operation from different locations and control who is responsible for operation, the IL S7 offers a concept for operation of multiple control rooms to meet this requirement.

Determining the operator authorization The multiple control room concept provided by the Industrial Library for S7 is based on the APL function, "Local operator authorization".

The local operator authorization is an upstream operator authorization. It determines independent of user management and authorizations, if a block may be operated from an operating station (a specified place). If local operator authorization is missing, operation of a block instance is usually blocked. Otherwise, when local operator authorization is allowed, the operator authorization is normally determined through user management and the block-specific release.

Local operator authorization can be set for each specific instance for each operator station with its own variable management; in other words, block instances can be enabled or disabled for use on an operator station independently of one another.

The concept integrated with the S7UsrM block consists of hierarchical operation and monitoring of control rooms and panels for up to 8 levels.

Each of these 8 levels can be assigned the control rights over a Faceplate. In addition, an operating level can be assigned a permission with highest priority (KeySwitch function) by means of a technological I/O.

The names of the operating levels are defined for specific users by means of an enumeration and are visualized on the OS.

Function and interaction of componentsThe S7UsrM is responsible for central management of the active operating level. The active operating level is specified at this block by the faceplate or the interconnection. By interconnecting the output S7UsrM.QPERMIS with the inputs <Technological block>.PERMIS and <Panel block>.PERMIS, the active operating level is transferred to the block instance.

The local operator authorization is checked on the OS by comparing the value of the internal variable @Permission with the value at the PERMIS I/O of the block instance.

The local operator authorization on the panel is checked by comparing the values at the I/Os OP_PERMIS and PERMIS.

If these values are identical, the station has the local operator authorization.

Basics1.4 Hierarchical operating concept

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 31

Page 32: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

All relevant icons on the process control screen contain information that identifies the operator station currently having switching authority. This information is also displayed in the faceplate.

See alsoS7UsrM - Selection of operating level from 8 levels (Page 57)

1.4.2 Configuration of the multiple control room operation

Configuring operating levels on the OS stationTo assign an operating level to an operator station (OS) you must perform the following steps:

1. Change the internal @Permission variable for the start value to the number of the operating level for this station.(The variable of the data type "unsigned 32-bit value" is automatically created using the OS project editor and is located in the Split Screen Manager group).

2. Interconnect the <Technological block>.PERMIS input with the S7UsrM.QPERMIS output of the user manager block.

If the internal @Permission variable matches the value at the input <Technological block>.PERMIS, the operator station can be operated.

Configuring operating levels on the operator panelYou need to complete the following steps to assign a relevant operating level to an operator panel (OP):

1. Configuration of the input <Panel block>.OP_PERMIS with the appropriate operating level on the operator panel.

2. Interconnect the <Panel block>.PERMIS input with the S7UsrM.QPERMIS output of the user manager block.

If the <Panel block>.PERMIS and <Panel block>.OP_PERMIS parameters match, the operator panel can be operated.

Note

The enumeration associated with <Technological block>.PERMIS (default: OP_Conf1) is used to display the current operator authorization in the faceplate.

Basics1.4 Hierarchical operating concept

PCS 7 Industry Library for S732 Function Manual, 09/2015, A5E34977996-AA

Page 33: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

1.5 Panel integration

1.5.1 Interface to the operator panel

Function and interaction of componentsIf you wish to control and monitor the process from an operator panel as well as an OS (operator station), you must use the operator panel blocks (S7Pxxx). These blocks form the OCM interface with the operator panel.

For example, if you want to control and monitor a "MOTOR" via the OS and an operator panel, it is necessary to implement the following blocks:

● Technological block "S7Mot" for controlling the equipment "MOTOR"

● Operator panel (OP) interface block "S7PMot" from theIL S7 to act as an coupling/connection of the "S7Mot" technological block and the panel (WinCC-Flexible)

The technological block and panel block communicate using various status words. This means all status words of the panel block must be connected to the corresponding I/Os of the technological block. All required values are read and written using these connections.

Basics1.5 Panel integration

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 33

Page 34: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Instance data block as interfaceThe instance data blocks of the operator panel form the OCM interface with the operator panel. They have an individually defined "structure", which is dependent on the type of equipment concerned.

Create a data block which serves as "communication DB" in the S7 program. You can use DB 25 from the library as template. The instance data block numbers of the used panel blocks are stored as integer in this block. Connect the "IDBNo" output of the panel interface block with the DB parameter.

Note

You only need to use one DB for each controller that includes all IDB number entries of the panel blocks used.

Basics1.5 Panel integration

PCS 7 Industry Library for S734 Function Manual, 09/2015, A5E34977996-AA

Page 35: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

1.5.2 Description of the conceptIn many plants, there is an additional requirement to be able to operate and visualize plant parts at the machine level.IL S7 offers a concept for integrating the panel with WinCC flexible that meets this requirement.

The concept offers a uniform operating and display form on the operator station and operator panel.

Core functionalityThe S7 Industry Library block library includes matching interface blocks for some of your technological blocks. The interface blocks are used to implement the data exchange between the operator panel and operator station and to standardize the alarm logging. The interface block also manages the operator authorization for the panel.

The interface blocks come with a library of preconfigured block icons and faceplates for visualization on the operator panel.

Operating philosophyAll operator stations have two standard operating levels, 5 and 6.

An operator with operating level 5 "Process operations" can perform all switching operations, which means all technological devices can be activated/deactivated or the operating mode can be switched from manual to automatic and vice versa.

An operator with operating level 6 "Higher-level process operations" can change parameters provided to the operator by a faceplate.

The operating philosophy implemented on the operator panel corresponds to operating level 5. This means it is not possible to change parameters on the OP or to deactivate the device.

Message characteristicsThe messages are generated by the technological block in the controller by calling the Alarm_DQ and Alarm_SC functions. The operator station (OS) and operator panel (OP) receive the messages and their states from the controller. The controller transmits the message number and the corresponding message text to the HMI devices.

In addition, each panel block of the IL S7 has a WORD input as an alarm interface with which bit messaging is implemented.

Basics1.5 Panel integration

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 35

Page 36: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

In the message view of the operator panel, the message classes "S7 messages", "S7 controller control system messages" and "S7 warning" are displayed. Note that messages of the message class "S7 Process message" or "S7 Tolerance" are not displayed by the system broken down by instances in the message view of the operator panel. Messages of these message classes must be displayed by a separate message view in the operator panel project.

A filter is required to display messages broken down by instance in the message view of the operator panel. The message is given a unique value to assign the messages on the panel to an instance by means of filtering. This value consists of the instance DB number of the panel function block and the value configured at the "AS_Nr" input of the panel block.

Basics1.5 Panel integration

PCS 7 Industry Library for S736 Function Manual, 09/2015, A5E34977996-AA

Page 37: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

The filter value is written to the "Op_MsgFilter" I/O and transferred to the panel with the message as message auxiliary value when the ALARM_DQ is generated. The message texts are then filtered in the message view of the faceplate according to the value at the "Op_MsgFilter" I/O of the associated panel block.

This means a value that is unique throughout the project must be configured at the input "AS_Nr" for each AS in the project. Values between 1 and 999 are permitted at the "AS_Nr" input.

1.5.3 Overview of IL S7 Flexible typesThe Industry Library for WinCC-flexible provides you with a preconfigured collection of faceplate blocks. The block icons and faceplates are preconfigured with the necessary variables and functions. When items are inserted into the screen, the variables and connections are generated in addition to the graphic objects. All you have to do is adapt them according to the project-specific conditions. Please note: It is necessary to have a separate variable container for every faceplate and every block icon.

You can display the process values of several technological blocks of the same type in one display window. To define which process values are to be displayed on the faceplate, click the relevant block icon.

Type IL S7 IL PCS 7 CommentMot S7PMot PMotL Faceplate for panel communication block for one

motorMotRev S7PMotRev PMotRevL Faceplate for panel communication block for a re‐

versing motor with 2 directions of rotationMotSpd S7PMotSpd PMotSpdL Faceplate for panel communication block for a two-

stage motorMotSpdC S7PMotSpdC PMotSpdCL Faceplate for panel communication block for a fre‐

quency-controlled motorVlv S7PVlv PVlvL Faceplate for panel communication block for a

valveVlvMot - PVlvMotL Faceplate for panel communication block for a mo‐

tor valveMonAn S7PMonAn +

S7PMonAn‐Grad

PMonAnL Faceplate for panel communication block for meas‐ured value monitoring

MonAn08 S7PMonAn08 PMonAn08 Faceplate for panel communication block for meas‐ured value monitoring (8 limits)

MonAnDi S7PMonAnDi PMonAnDi Faceplate for panel communication block for meas‐ured value monitoring

MonDi S7PMonDi PMonDiL Faceplate for panel communication block for mon‐itoring a digital process tag

MonDi08 S7PMonDi08 PMonDi08 Faceplate for panel communication block for mon‐itoring 8 binary process tags

MV3P S7PMV3P - Faceplate for panel communication block for 3-point final controlling element

OpA S7POpA POpAnL Faceplate for panel communication block of an an‐alog measured value

Basics1.5 Panel integration

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 37

Page 38: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Type IL S7 IL PCS 7 CommentOpD S7POpD POpD Faceplate for panel communication block of a dig‐

ital measured valueCalcWatP S7PCalcWatP PCalcWatP Faceplate for panel communication block for cal‐

culating thermal power and energyHxFct S7PHxFct PHxFct Faceplate for panel communication block to calcu‐

late enthalpy and humidityPID S7PPID PPIDL Faceplate for panel communication block for a con‐

troller

1.5.4 Operator control and monitoring in WinCC flexible

1.5.4.1 General view of the panel blocks

Panel block views The blocks provide the following views:

● Standard view

● Message view (some blocks)

● Trend view (some blocks) (only available in IL flexible)

● Associated value view

Non-specific block viewsThese views are identical for all blocks which offer the respective view.

Associated value view

Basics1.5 Panel integration

PCS 7 Industry Library for S738 Function Manual, 09/2015, A5E34977996-AA

Page 39: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Note

You can enable the associated value view using the EN_AUX input of the panel block. If EN_AUX = 0, the view cannot be opened.

Trend view (only available in WinCC flexible)

Message view

Basics1.5 Panel integration

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 39

Page 40: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

NoteColors for message classes in the message window

The representation of the messages in the message window is made centrally in the TIA Portal in the message settings of the message classes of the Panel.

So that the message texts can be configured in a readable color based on the message color, each faceplate has the Message -> Alarm_TextColor attribute. Project-specific templates with an appropriate message text color can thus be created.

The color is set to gray by default so that the text is readable for warnings, which are usually yellow in PCS 7, as well as for black faults.

Basics1.5 Panel integration

PCS 7 Industry Library for S740 Function Manual, 09/2015, A5E34977996-AA

Page 41: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

1.5.4.2 Connecting the variables for trend view

Connection of variables for the trend view (only available in IL flexible)If the faceplate has a trend view ( ), you must connect the variables you want to display (example shows PMonAn with OpPV display):

1. Drag the faceplate instance into the screen and select it.

2. At the "Trend" property in the "General" area of the "Properties", open the dialog for connecting the variables with the "..." button.

Basics1.5 Panel integration

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 41

Page 42: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

3. Double-click a line of the dialog to add a variable. The displayed variable is configured in the column "Source settings".

4. Connected variable:

5. The entire project must be rebuild after changing a displayed variable.

Basics1.5 Panel integration

PCS 7 Industry Library for S742 Function Manual, 09/2015, A5E34977996-AA

Page 43: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

1.5.4.3 Configuration of the panel interface

Configuring the panel interface in WinCC flexibleThe panel interface is configured in WinCC flexible or WinCC Comfort. A description of the procedure and an application example is available on the Online Support pages in entry "Integration of Comfort Panels, Operator Panels and S7-300 Package Units in SIMATIC PCS 7 with PCS 7 Industry Library"

Access optionsYou can access the documentation as follows:

● On the Internet

– http://support.automation.siemens.com/WW/view/en/50708061 (http://support.automation.siemens.com/WW/view/de/50708061)

Basics1.5 Panel integration

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 43

Page 44: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Basics1.5 Panel integration

PCS 7 Industry Library for S744 Function Manual, 09/2015, A5E34977996-AA

Page 45: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Operation blocks 22.1 S7Aggr08 - Switchover for up to 8 units

2.1.1 FunctionThe block is used to switch over up to 8 units based on the criterion of runtime or master device.

The block switches a certain number of units (which can be specified) on/off and tries to keep the desired number constant. If a unit is switched on or off manually, this is also taken into consideration. When switchover dependent on operating hours is not activated, the master unit is switched through to maintain a uniform load on the individual units. These specifications can be implemented in automatic or manual mode. When switchover dependent on operating hours is activated and a change in the requirements occurs or the unit states change, the units with the fewest operating hours are switched on and the units with the most operating hours are switched off.

2.1.2 Calling OBsThis is the cyclic interrupt OB in which you install the block (e.g. OB32). Additionally in OB100 (see Startup characteristics (Page 49)).

2.1.3 Setting the operating modeThe block supports manual (block switched on/off via OS) and automatic (block switched on/off by the AS program) modes.

If the block is switched "OFF", all controls at the start outputs QSRT_A1 – QSRT_A8 are removed.

2.1.4 Number of unitsThe following modes are available within the context of setpoint specification for the number of units: "External" and "Internal". This setting is made by the AS program (N_LIOP_SEL = 1) or via the OS (N_LIOP_SEL = 0).

In "External" mode, the number of units is specified using the interconnectable UNIT_REQ_AS input. In "Internal" mode, it is specified using the UNIT_REQ_OP parameter (input via OS).

Only available units can be switched. The information on availability and the status of a unit is supplied by the status byte. Only available units which are set to the OFF status can be switched on. Only available units which are set to the ON status can be switched off. When a

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 45

Page 46: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

unit is not available but is switched on, it is included in the required number and the start output (QSRT_Ax) is adjusted accordingly.

If the required number of units cannot be started, the missing number is output at the QMISS output parameter for further interconnection or evaluation. In addition, the QNOTACH error bit is output in this case.

2.1.5 Master unit (OP_TIME_S parameter = 0)The following modes are available within the context of setpoint specification for the master unit: "External", "Internal", and "Time". This setting is made by the AS program (S_LIOP_SEL = 1) or via the OS (S_LIOP_SEL = 0).

In "Internal" mode, the master unit is specified using the UNIT_MAS_OP in-out parameter (input via OS).

In "External" mode, the master unit is determined in the block. When the block is started for the first time, the first unit is the master unit. The master can be switched using the EXT_SW input. (Since an edge evaluation of the EXT_SW input takes place in the block, the operator has to ensure that the input is reset.)

In "Time" mode, the master unit is likewise determined in the block. The switchover is performed automatically after a specified time (CHG_TIME). This time carries on running, even if the block is in the "External" or "Internal" mode.

Under normal circumstances, the next unit is used as the master unit during continued switching in the "External" and "Time" modes. However, when input COM_EN = 1, the unit which was switched on first is used as the master. If no units are On, continued switching takes place as normal.

2.1.6 Maximum units to be switchedThe block can switch a maximum of 8 units. If a number greater than 8 is entered at input parameter MAX_AGGR, this is limited to 8.

Operation blocks2.1 S7Aggr08 - Switchover for up to 8 units

PCS 7 Industry Library for S746 Function Manual, 09/2015, A5E34977996-AA

Page 47: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

2.1.7 Activation/deactivation depending on operating hours / priorities (OP_TIME_S = 1 parameter)

Activation/deactivation depending on operating timeThe user can configure activation/deactivation depending on operating hours using the parameters OP_TIME_S and PREF_UNIT. If OP_TIME_S = 1 and PREF_UNIT = 1, the device with the lowest number of operating hours is used when a unit is switched on. But when a unit is switched off, the unit with the highest number of operating hours is used. Only the number of required units can be set manually. The value 0 is always output as leading unit (master unit) at the block. The display of the master unit is hidden in the faceplate. Step enabling only takes place if the required number of units changes or if the status of a unit has changed. The current operating hours of the units are configured at inputs H_RUN_1 to H_RUN_8. Because there is no automatic step enabling, the value 0 is also output at the block as the remaining time until the next switchover. The value disappears in the faceplate.With this operating setting, all other functions and operator control & monitoring activities remain exactly the same as described.

Activation/deactivation depending on prioritiesThe deactivation/activation depending on priorities can be activated during configuration by the user with the parameters OP_TIME_S and PREF_UNIT. If the parameter OP_TIME_S = 1 and PREF_UNIT = 2, the unit with the lowest priority (smallest PRIO_XX value) is switched in case of activation, and the unit with the lowest priority (largest PRIO_XX value) is switched in case of deactivation. Only the number of required units can be set manually. The value 0 is always output as leading unit (master unit) at the block. The display of the master unit is hidden in the faceplate. Step enabling only takes place if the required number of units changes or if the status of a unit has changed. The priority of the units is configured at the inputs PRIO_01 to PRIO_08. Priorities can be assigned from 1 to 99, with 1 being the highest and 99 being the lowest priority. The parameter view displays an additional column with the configured priorities in the Activation/deactivation depending on priorities mode. Because there is no automatic Stop time counter in hours, the value 0 is also output at the block for the remaining time until the next switchover. The value is hidden on the faceplate. With this operating setting, all other functions and operator control/monitoring activities remain exactly the same as described.

2.1.8 Unit switch-on and switch-off delayA delay can be configured for unit switch-on/switch-off when requirements change. The DELAY_ON in-out parameter is used for switching on and the DELAY_OFF in-out parameter is used for switching off. These delay times are only active subject to enabling via the DELAY_EN parameter. Once this has been done, the delay times can be set via the OS using the Parameter view.

Operation blocks2.1 S7Aggr08 - Switchover for up to 8 units

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 47

Page 48: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

2.1.9 Error handlingDuring its execution, the block monitors the correctness of the interconnected and configured inputs, and the inputs received via faceplate.

Parameter assignment error QPARAMFError bit when parameters in the block are not in the valid range.

Valid ranges:

● 0 < CHG_TIME <= 576 hours

● 0 < MAX_AGGR <= 8

Value for erroneous entry:

● MAX_AGGR > 8 ⇒ MAX_AGGR := 8

● MAX_AGGR <= 0 ⇒ MAX_AGGR := 0

● CHG_TIME > 576 ⇒ CHG_TIME:= 576h (24 days)

● CHG_TIME <= 0 ⇒ CHG_TIME:= 168h (7 days)

Operator error QOP_ERRError bit when the operator entered an invalid value in the faceplate.

Valid ranges:

● 0 <= UNIT_REQ_OP <= MAX_AGGR

● 0 < UNIT_MAS_OP <= MAX_AGGR

Value for erroneous entry:

● UNIT_REQ_OP ⇒ Previous number is retained.

● UNIT_MAS_OP ⇒ Previous unit is retained.

Interconnection error QAS_ERRError bit when the interconnected UNIT_REQ_AS input is not in the valid range.

Valid range:

● 0 <= UNIT_REQ_AS <= MAX_AGGR

Value for erroneous entry:

● UNIT_REQ_AS ⇒ Previous number is retained.

2.1.10 CascadingQNOTACH info message:

Operation blocks2.1 S7Aggr08 - Switchover for up to 8 units

PCS 7 Industry Library for S748 Function Manual, 09/2015, A5E34977996-AA

Page 49: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Output bit when the required number of units could not be switched on. In addition, the missing number is output at the QMISS output.

2.1.11 Message behaviorThe "Automatic change not possible" message is generated when the time for the time-triggered switch has elapsed, but the block is in "Internal" or "External" mode.

The message can be generated, but is not active by default.

Assignment of message text and message class to the block parameters

Message number

Block parame‐ter

Default message text Message class

1 OP_TIME_S = 0QTIME_S = 0

Time-triggered switch not possible <deactivated>

The messages can be locked centrally with MSG_LOCK (OS operation) or L_MSGLCK (program).

2.1.12 Startup characteristicsInitialization of the block with the status data stored before the CPU entered the stop state.

2.1.13 Time behaviorThe block processing delay is implemented via the RUNUPCY parameter (number of times the block is executed).

The actual cyclic processing does not take place until all units to be switched have concluded their startups (STAT_1 – STAT_8, Bit 4 = 1).

The block must be called using a cyclic interrupt OB. The sampling time of the block is set in the SAMPLE_T parameter.

2.1.14 Called blocks

SFC6 RD_SINFOSFC20 BLKMOVSFC107 ALARM_DQSFC19 ALARM_SC

Operation blocks2.1 S7Aggr08 - Switchover for up to 8 units

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 49

Page 50: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

2.1.15 Block parameters

Block I/Os

Parameter Type IN/OUT OCM DescriptionEN BOOL IN 0 RUNUPCYC INT IN 0 Number of startup cyclesRESTART BOOL IN 0 Manual startupMAX_AGGR INT IN 1 Max. number of units [0...8]UNIT_REQ_AS INT IN 0 Number of units required by ASSTAT_1 BYTE IN 0 Status byte unit 1STAT_2 BYTE IN 0 Status byte unit 2STAT_3 BYTE IN 0 Status byte unit 3STAT_4 BYTE IN 0 Status byte unit 4STAT_5 BYTE IN 0 Status byte unit 5STAT_6 BYTE IN 0 Status byte unit 6STAT_7 BYTE IN 0 Status byte unit 7STAT_8 BYTE IN 0 Status byte unit 8H_RUN_1 REAL IN 1 Operating time in [s] unit 1H_RUN_2 REAL IN 1 Operating time in [s] unit 2H_RUN_3 REAL IN 1 Operating time in [s] unit 3H_RUN_4 REAL IN 1 Operating time in [s] unit 4H_RUN_5 REAL IN 1 Operating time in [s] unit 5H_RUN_6 REAL IN 1 Operating time in [s] unit 6H_RUN_7 REAL IN 1 Operating time in [s] unit 7H_RUN_8 REAL IN 1 Operating time in [s] unit 8PRIO_01 INT IN 0 Priority (1 – 99) unit 1PRIO_02 INT IN 0 Priority (1 – 99) unit 2PRIO_03 INT IN 0 Priority (1 – 99) unit 3PRIO_04 INT IN 0 Priority (1 – 99) unit 4PRIO_05 INT IN 0 Priority (1 – 99) unit 5PRIO_06 INT IN 0 Priority (1 – 99) unit 6PRIO_07 INT IN 0 Priority (1 – 99) unit 7PRIO_08 INT IN 0 Priority (1 – 99) unit 8ON_OP_EN BOOL IN 0 Enable: 1=Operator can switch 'on'OFFOP_EN BOOL IN 0 Enable: 1=Operator can switch 'off'MANOP_EN BOOL IN 0 Enable: 1=Operator can enter MANUALAUTOP_EN BOOL IN 0 Enable: 1=Operator can enter AUTOMOD_LIOP_SEL BOOL IN 0 Select mode: 1=Linking , 0=OperationAUT_L BOOL IN 0 Interconnectable input for MANUAL/AUTO mode AUTO_ON BOOL IN 0 Automatic mode: 1=On, 0=Off

Operation blocks2.1 S7Aggr08 - Switchover for up to 8 units

PCS 7 Industry Library for S750 Function Manual, 09/2015, A5E34977996-AA

Page 51: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionOP_TIME_S BOOL IN 0 0=Master unit switches mode active / 1=Operating

time switches mode activePREF_UNIT INT IN 0 1 =Operating time / 2 =Priority switchover enabledINTOP_EN_N BOOL IN 1 Enable: 1=Operator can enter number of units IN‐

TERNALLYEXTOP_EN_N BOOL IN 0 Enable: 1=Operator can enter number of units EX‐

TERNALLYOP_EN_N BOOL IN 0 Enable: 1=Operator can enter number of unitsN_LIOP_SEL BOOL IN 0 Select number of units mode: 1=Linking , 0=Opera‐

tionINTOP_EN_S BOOL IN 1 Enable: 1=Operator can enter switchover INTER‐

NALLYEXTOP_EN_S BOOL IN 0 Enable: 1=Operator can enter switchover EXTER‐

NALLYTIMEOP_EN_S BOOL IN 0 Enable: 1=Operator can enter switchover TIMEOP_EN_S BOOL IN 0 Enable: 1=Operator can enter master unitS_LIOP_SEL BOOL IN 0 Select switchover units mode: 1=Linking , 0=Oper‐

ationEXT_L_N BOOL IN 0 Interconnectable Input for INTERNAL/EXTERNAL

mode number of unitsINT_L_S BOOL IN 0 Interconnectable input for INTERNAL mode switch‐

overEXT_L_S BOOL IN 0 Interconnectable input for EXTERNAL mode switch‐

overTIME_L_S BOOL IN 0 Interconnectable input for TIME mode switchoverEXT_SW BOOL IN 0 1=External sequential switchoverCHG_TIME_OP_EN BOOL IN 0 Enable: 1=Operator can enter change timeSAMPLE_T REAL IN 0 Sampling time in [s]DELAY_ON REAL IN 0 ON delay in [s]DELAY_OFF REAL IN 0 OFF delay in [s]DELAY_EN BOOL IN 0 1=ON/OFF delay enabledDELAY_OP_EN BOOL IN 0 Enable: 1=Operator can enter delay timeCOM_EN BOOL IN 0 1=Commutate enabled (1st unit as master)MSG_EVID DWORD IN 0 Message IDMSG_LOCK BOOL IN 1 1=Lock messagesL_MSGLCK BOOL IN 1 Lock messages via interconnectionAUX REAL IN 1 Associated valueBA_EN BOOL IN 1 1=Batch enableOCCUPIED BOOL IN 1 1 = In use by a batchBA_ID DWORD IN 1 Batch IDBA_NA STRING[32] IN 1 Batch nameSTEP_NO DWORD IN 1 Batch step numberCMP_ID DWORD IN 0 Area codePERMIS INT IN 1 Switching authority

Operation blocks2.1 S7Aggr08 - Switchover for up to 8 units

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 51

Page 52: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionAUT_ON_OP BOOL IN_OUT 1 Operator input operating mode: 1=AUTO, 0=MAN‐

UALMAN_ON BOOL IN_OUT 1 Operator input: 1=Start motorEXT_ON_OP_N BOOL IN_OUT 1 Operator input mode 1=EXTERNAL, 0=INTERNAL

number of unitsINT_ON_OP_S BOOL IN_OUT 1 Operator input mode 1=INTERNAL switchoverEXT_ON_OP_S BOOL IN_OUT 1 Operator input mode 1=EXTERNAL switchoverTIME_ON_OP_S BOOL IN_OUT 1 Operator input mode 1=TIME switchoverUNIT_REQ_OP INT IN_OUT 1 Number of units required by OPUNIT_MAS_OP INT IN_OUT 1 Master unit from OPCHG_TIME INT IN_OUT 1 Time remaining until switchover of master unit in [h]MASTER_OLD INT IN_OUT 0 Master unit restored from OPREQ_OLD INT IN_OUT 0 Number of units restored from OP QSRT_A1_OLD BOOL IN_OUT 0 1=Start unit 1 restoredQSRT_A2_OLD BOOL IN_OUT 0 1=Start unit 2 restoredQSRT_A3_OLD BOOL IN_OUT 0 1=Start unit 3 restoredQSRT_A4_OLD BOOL IN_OUT 0 1=Start unit 4 restoredQSRT_A5_OLD BOOL IN_OUT 0 1=Start unit 5 restoredQSRT_A6_OLD BOOL IN_OUT 0 1=Start unit 6 restoredQSRT_A7_OLD BOOL IN_OUT 0 1=Start unit 7 restoredQSRT_A8_OLD BOOL IN_OUT 0 1=Start unit 8 restoredENO BOOL OUT 0 QON BOOL OUT 1 Control output 1=Block ONQON_OP BOOL OUT 1 Status: 1=Operator enabled for ONQOFF_OP BOOL OUT 1 Status: 1=Operator enabled for OFFQMAN_AUT BOOL OUT 1 1=AUTO, 0=MANUAL QMANOP BOOL OUT 1 Status: 1=Operator enabled for MANUALQAUTOP BOOL OUT 1 Status: 1=Operator enabled for AUTOQOP_TIME_S BOOL OUT 1 0 = Master unit switch mode active / 1 = Time-trig‐

gered switch mode activeQINT_EXT_N BOOL OUT 1 1=EXTERNAL, 0=INTERNAL number of unitsQINT_S BOOL OUT 1 1=INTERNAL mode switchoverQEXT_S BOOL OUT 1 1=EXTERNAL mode switchoverQTIME_S BOOL OUT 1 1=TIME modes switchover QINTOP_N BOOL OUT 1 Status: 1=Operator enabled for INTERNAL number

of unitsQEXTOP_N BOOL OUT 1 Status: 1=Operator enabled for EXTERNAL number

of unitsQOP_N BOOL OUT 1 Status: 1=Operator enabled for enter number of

unitsQINTOP_S BOOL OUT 1 Status: 1=Operator enabled for INTERNAL switch‐

over

Operation blocks2.1 S7Aggr08 - Switchover for up to 8 units

PCS 7 Industry Library for S752 Function Manual, 09/2015, A5E34977996-AA

Page 53: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionQEXTOP_S BOOL OUT 1 Status: 1=Operator enabled for EXTERNAL switch‐

overQTIMEOP_S BOOL OUT 1 Status: 1=Operator enabled for TIME switchoverQOP_S BOOL OUT 1 Status: 1= Operator enabled for enter master unitQCHG_TIME_OP BOOL OUT 1 Status: 1=Operator enabled for enter change timeQDELAY_OP BOOL OUT 1 Status: 1= Operator enabled for enter delay timeQOP_ERR BOOL OUT 0 1=Operator errorQAS_ERR BOOL OUT 0 1=Interconnection errorQPARAMF BOOL OUT 1 1=Parameter assignment errorQNOTACH BOOL OUT 0 1=Number of units not achievedQSRT_A1 BOOL OUT 1 1=Start unit 1QSRT_A2 BOOL OUT 1 1=Start unit 2QSRT_A3 BOOL OUT 1 1=Start unit 3QSRT_A4 BOOL OUT 1 1=Start unit 4QSRT_A5 BOOL OUT 1 1=Start unit 5QSRT_A6 BOOL OUT 1 1=Start unit 6QSRT_A7 BOOL OUT 1 1=Start unit 7QSRT_A8 BOOL OUT 1 1=Start unit 8QUNIT_ON BYTE OUT 1 Number of units switched onQUNIT_AV BYTE OUT 1 Number of units availableQUNIT_REQ INT OUT 1 Number of units requiredQCMP_RUN INT OUT 1 Compared number of units required/on QAUTCT INT OUT 1 Number of units switched on and number of units

availableQUNIT_MAS INT OUT 1 Master unitQMISS INT OUT 1 Units missingQRESERVE INT OUT 1 Reserved unitsQCHG_TIME TIME OUT 1 Time remaining until master unit switchoverQMSG_SUP BOOL OUT 1 1=Message suppression activeQMSG_ERR BOOL OUT 0 1=Message errorMSG_STAT WORD OUT 0 Message: STATUS outputMSG_ACK BOOL OUT 0 Message: ACK_STATE output

Status word assignment for STAT_x parameter

Status bit ParameterBit 0 AvailableBit 1 -Bit 2 Unit offBit 3 Unit onBit 4 Startup done

Bit 5 – Bit 7 -

Operation blocks2.1 S7Aggr08 - Switchover for up to 8 units

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 53

Page 54: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

2.1.16 Operator control & monitoring

2.1.16.1 Views of S7Aggr08The block provides the following views:

● Standard view

● Message view

● Parameter view

● Batch view

2.1.16.2 Standard view of S7Aggr08

3

4

6

7

8

9

2

5

1

(1) ModeDisplay and switchover of the operating mode This area provides information on the currently valid operating mode. The following operating modes can be shown here:

● On

● Out of service

(2) Command

(3) Number of units

● Setpoint

● Quantity

(4) Master unit

● Setpoint

● Interval no.

(5) Message lock enabled

(6) Display area for block states

Operation blocks2.1 S7Aggr08 - Switchover for up to 8 units

PCS 7 Industry Library for S754 Function Manual, 09/2015, A5E34977996-AA

Page 55: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

This area provides additional information on the operating state of the block:

● Master unit

(7) Display area for block states

This area provides additional information on the operating state of the block:

● LocalOS

(8)

● Units indicator:

– Green: Unit running + is available

– Dark green: Unit running + is not available

– White: Unit not running + is available

– Gray: Unit not running + is not available

● Time remaining until switchover of the master unit in the format dd hh:mm

– Gray characters: Time is running, but is not active (QTIME_S = 0)

– Black characters: Time is running + is active (QTIME_S = 1)

(9) Unit icon with number of active units:

● Green: Number of running units > 0

● Gray: Number of running units = 0

2.1.16.3 Parameter view of S7Aggr08

1

2

3

Operation blocks2.1 S7Aggr08 - Switchover for up to 8 units

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 55

Page 56: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

(1) Switchover

● Time remaining

(2)

● Req. units

● Missing units

● Max. units

● Master units

(3)

● Units 1 to 8

● available 1 to 8

● On 1 to 8

● Runtime 1 to 8

2.1.16.4 Block icon of S7Aggr08

Operation blocks2.1 S7Aggr08 - Switchover for up to 8 units

PCS 7 Industry Library for S756 Function Manual, 09/2015, A5E34977996-AA

Page 57: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

2.2 S7UsrM - Selection of operating level from 8 levels

2.2.1 FunctionThe S7UsrM block manages the operator control permission for a unit.

The block uses a "switch" to select one of 8 operating levels, sets this level at the output [QPERMIS] and activates the output [QOPACT_n(QPERMIS)]. If no operating levels are available, the output [QNOOP] is set and the output [QPERMIS] becomes inactive.

The values are selected either with an operator-control switch [KEYSWITCH] which switches the operating level to the level defined with [KS_DEVICE] or with the [OP_S_DEV] which can be controlled from the operator station. The keyswitch [KEYSWITCH] has a higher priority than the input [OP_S_DEV].

If a selected operating level fails, the block will switch to the next available backup level [BCKUPn_PL]. If both backup levels are unavailable, the first available operating level is selected.

2.2.2 Calling OBsThis is the cyclic interrupt OB in which you install the block (e.g. OB35). Additionally in OB100 (see Startup characteristics (Page 57)).

2.2.3 Startup characteristicsThe messages are suppressed after startup for the number of cycles set at RUNUPCYC.

2.2.4 Assignment of message text and message class to the block parameters

Message number

Block parame‐ter

Default message text Message class

1 KEYSWITCH Keyswitch activated Process message – with ac‐knowledgment

2 QERR Parameter assignment error AS control system message - fault

3 Operating level changed Process message – with ac‐knowledgment

4 Backup level 1 selected Process message – with ac‐knowledgment

5 Backup level 2 selected Process message – with ac‐knowledgment

Operation blocks2.2 S7UsrM - Selection of operating level from 8 levels

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 57

Page 58: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Message number

Block parame‐ter

Default message text Message class

6 Next available level selected Process message – with ac‐knowledgment

7 QNOOP No operating level available Process message – with ac‐knowledgment

2.2.5 Called blocks

SFC6 RD_SINFOSFC107 ALARM_DQSFC19 ALARM_SCFC67 S7ASTIMEBCD

2.2.6 Block parameters

Parameter Type IN/OUT OCM DescriptionEN BOOL IN 0 RESTART BOOL IN 0 Manual startupOPDEAV_1 BOOL IN 1 Operating level 01 availableOPDEAV_2 BOOL IN 1 Operating level 02 availableOPDEAV_3 BOOL IN 1 Operating level 03 availableOPDEAV_4 BOOL IN 1 Operating level 04 availableOPDEAV_5 BOOL IN 1 Operating level 05 availableOPDEAV_6 BOOL IN 1 Operating level 06 availableOPDEAV_7 BOOL IN 1 Operating level 07 availableOPDEAV_8 BOOL IN 1 Operating level 08 availableL_MSGLCK BOOL IN 0 1=Interconnectable message suppressionKEYSWITCH BOOL IN 1 1=Enable keyswitchKS_DEVICE INT IN 0 Operating level for keyswitchBCKUP1_PL INT IN 0 1..8 first backup levelBCKUP2_PL INT IN 0 1..8 second backup levelMAXLEVEL INT IN 1 Highest number of operating levelsRUNUPCYC INT IN 0 Number of startup cycles with message suppres‐

sionMSG_EVID1 DWORD IN 0 Message ID 1MSG_EVID2 DWORD IN 0 Message ID 2MSG_EVID3 DWORD IN 0 Message ID 3MSG_EVID4 DWORD IN 0 Message ID 4MSG_EVID5 DWORD IN 0 Message ID 5

Operation blocks2.2 S7UsrM - Selection of operating level from 8 levels

PCS 7 Industry Library for S758 Function Manual, 09/2015, A5E34977996-AA

Page 59: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionMSG_EVID6 DWORD IN 0 Message ID 6MSG_EVID7 DWORD IN 0 Message ID 7AUX REAL IN 1 Associated valueBA_EN BOOL IN 1 Batch enableOCCUPIED BOOL IN 1 Occupied by batchBA_ID DWORD IN 1 Current batch ID (number)BA_NA STRING[32] IN 1 Batch nameSTEP_NO DWORD IN 1 Batch step numberCMP_ID DWORD IN 0 Area codeOP_S_DEV INT IN_OUT 1 Associated valueMSG_LOCK BOOL IN_OUT 1 1=Message suppressionENO BOOL OUT 0 QERR BOOL OUT 0 1=ErrorQNOOP BOOL OUT 0 No operating level availableQOPACT_1 BOOL OUT 0 1=Activated as operating levelQOPACT_2 BOOL OUT 0 1=Activated as operating levelQOPACT_3 BOOL OUT 0 1=Activated as operating levelQOPACT_4 BOOL OUT 0 1=Activated as operating levelQOPACT_5 BOOL OUT 0 1=Activated as operating levelQOPACT_6 BOOL OUT 0 1=Activated as operating levelQOPACT_7 BOOL OUT 0 1=Activated as operating levelQOPACT_8 BOOL OUT 0 1=Activated as operating levelQPERMIS INT OUT 1 QRET_VAL INT OUT 0 Error codeQMSG_ERR BOOL OUT 0 Message errorQMSG_SUP BOOL OUT 1 Message suppressionMSG_STAT1 WORD OUT 0 Message: STATUS output 1MSG_STAT2 WORD OUT 0 Message: STATUS output 2MSG_STAT3 WORD OUT 0 Message: STATUS output 3MSG_STAT4 WORD OUT 0 Message: STATUS output 4MSG_STAT5 WORD OUT 0 Message: STATUS output 5MSG_STAT6 WORD OUT 0 Message: STATUS output 6MSG_STAT7 WORD OUT 0 Message: STATUS output 7MSG_ACK1 BOOL OUT 0 Message: ACK_STATE output 1MSG_ACK2 BOOL OUT 0 Message: ACK_STATE output 2MSG_ACK3 BOOL OUT 0 Message: ACK_STATE output 3MSG_ACK4 BOOL OUT 0 Message: ACK_STATE output 4MSG_ACK5 BOOL OUT 0 Message: ACK_STATE output 5MSG_ACK6 BOOL OUT 0 Message: ACK_STATE output 6MSG_ACK7 BOOL OUT 0 Message: ACK_STATE output 7

Operation blocks2.2 S7UsrM - Selection of operating level from 8 levels

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 59

Page 60: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

2.2.7 Operator control & monitoring

2.2.7.1 Views of S7UsrMThe block provides the following views:

● Standard view

● Message view

● Batch view

2.2.7.2 Standard view of S7UsrM

4

3

1

2

56

(1) LocalOS

(2) ControlCenterOS

(3) Operator panels

● Operator panels 1 to 2

(4) Operation level

● Operation levels 5 to 8

(5) Message lock enabled

(6) Display area for block states

This area provides additional information on the operating state of the block.

The currently selected operating level is defined for the entire project with an enumeration type. The operating level determines which HMI devices can be used to control the unit. Levels that are not available are grayed-out.

Operation blocks2.2 S7UsrM - Selection of operating level from 8 levels

PCS 7 Industry Library for S760 Function Manual, 09/2015, A5E34977996-AA

Page 61: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

2.2.7.3 Block icons of S7UsrM

Operation blocks2.2 S7UsrM - Selection of operating level from 8 levels

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 61

Page 62: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

2.3 S7OpA - Operator control of an analog measured value

2.3.1 FunctionThe S7OpA block is used for operator control of an analog value of a block. Operator control outside the operating limits is limited to the relevant violated limit value. Instead of the value (U) set by the operator, an interconnected or configured value (LINK_U) can be checked (LINK_ON=1). The functionality is taken from the technological S7 standard block OP_A_LIM and expanded with the addition of the functionality of an operator panel and switch permission. More detailed information about the function of the OP_A_LIM block can be found in the function description of the OP_A_LIM.

2.3.2 Calling OBsThis is the cyclic interrupt OB in which you install the block (e.g. OB32). Additionally in OB100 (see Startup characteristics (Page 62)).

2.3.3 Time behaviorThe block must be called using a cyclic interrupt OB. The sampling time of the block is set in the SAMPLE_T parameter.

2.3.4 Startup characteristicsDuring startup, the counter states are saved via internal variables. Startup can be simulated manually using the RESTART input.

2.3.5 Operator panelSo that various technological functions of the library can also be controlled and monitored from an operator panel, the "S7POpA" block is installed in the CFC for the actual technology block.

2.3.6 Switch permissionIt is possible to control the technological block from different operating levels. If the input [OP_ACTIVE] is set, the operator setpoint is specified via the input [OP_U]. If the local WinCC variable "@Permission" matches the value set for the operating level at block parameter [PERMIS], the operator station is given switch permission.

The different operating levels are indicated by a project-specific enumeration type.

For this purpose, enumerations with the corresponding switch permissions have to be added to the “Global Declarations” folder in the SIMATIC Manager. The value range of the elements

Operation blocks2.3 S7OpA - Operator control of an analog measured value

PCS 7 Industry Library for S762 Function Manual, 09/2015, A5E34977996-AA

Page 63: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

of the enumeration can be defined from 0 (no operating level available) up to 8. Higher values are not evaluated.

This type must be assigned to the "S7UsrM" blocks of the units and all [PERMIS] inputs of the technological blocks, as well as to the OP interface block "S7POpA".

Example

Select the units in the "process object view", filter by "I/O name" "*PERMIS" and assign the corresponding type to all "enumerations".

2.3.7 Called blocks

SFC6 RD_SINFOFB46 OP_A_LIMUDT76 UDT_S7POpA

2.3.8 Block parameters

Parameter Type IN/OUT OCM DescriptionEN BOOL IN 0 RESTART BOOL IN 0 Manual startupOP_EN BOOL IN 0 Enable 1=Operator enableBTRACK BOOL IN 1 Bumpless switchover 1=On, 0=OffLINK_ON BOOL IN 1 Selection: 1=Linking , 0=OperationOP_ACTIVE BOOL IN 0 Operator panel control enabledOP_U REAL IN 0 Operator panel inputLINK_U REAL IN 0 Interconnectable input: UU_HL REAL IN 1 High limit UU_LL REAL IN 1 Low limit URUNUPCYC INT IN 0 Number of startup cycles with message suppressionBA_EN BOOL IN 1 Batch enableOCCUPIED BOOL IN 1 Occupied by batchBA_ID DWORD IN 1 Current batch ID (number)BA_NA STRING[32] IN 1 Batch nameSTEP_NO DWORD IN 1 Batch step numberPERMIS INT IN 1 Switching authoritySAMPLE_T REAL IN 0 Sampling time in [s]U REAL IN_OUT 1 Operator inputENO BOOL OUT 0 V REAL OUT 1 Output valueQERR BOOL OUT 0 1=Error

Operation blocks2.3 S7OpA - Operator control of an analog measured value

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 63

Page 64: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionQOP_ERR BOOL OUT 1 1=Operator errorQOP_LIM BOOL OUT 0 1=Operator input has been limitedQOP_EN BOOL OUT 1 Status: 1=Operator can inputQVHL BOOL OUT 0 1=High limit of V activeQVLL BOOL OUT 0 1=Low limit of V activeQOP_STAT STRUCT OUT 0 Unit status for OP_A for panelQOP_STAT.UDT_IDENT BYTE OUT 0 UDT identifier for UDT_S7POpAQOP_STAT.QOP_Link BOOL OUT 0 Status 1=LINK is active <=> "Automatic"QOP_STAT.QOP_EN BOOL OUT 0 Status 1=Operator may inputQOP_STAT.QOP_U REAL OUT 0 Operator Panel operator input QOP_STAT.QOP_VHL REAL OUT 0 Operator panel high limit UQOP_STAT.QOP_VLL REAL OUT 0 Operator panel low limit U

2.3.9 Operator control & monitoring

2.3.9.1 Views of S7OpAThe block provides the following views:

● Standard view

● Batch view

2.3.9.2 Standard view of S7OpA

3

4

1

2

5

(1) Manual value in percent

(2) LINK_ON

● On

● Off

(3) Output value

(4) Bumpless enabled

(5) Display area for block states

Operation blocks2.3 S7OpA - Operator control of an analog measured value

PCS 7 Industry Library for S764 Function Manual, 09/2015, A5E34977996-AA

Page 65: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

This area provides additional information on the operating state of the block.

● LocalOS

2.3.9.3 Block icons of S7OpA

Operation blocks2.3 S7OpA - Operator control of an analog measured value

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 65

Page 66: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

2.4 S7OpD - Operator control of a binary measured value

2.4.1 FunctionThe S7OpD block is used for operator control of a digital value.

2.4.2 OBs to be calledThis is the cyclic interrupt OB in which you install the block (e.g. OB32). Additionally in OB100 (see Startup characteristics (Page 67)).

2.4.3 Time behaviorThe block must be called using a cyclic interrupt OB. The sampling time of the block is set in the SAMPLE_T parameter.

2.4.4 Operating modesThere are two operator control modes: level and pulse manipulation. The appropriate mode for level/pulse manipulation is set with the MODE parameter.

If LINK_ON = 0, then in level mode, the input I0 input is switched to the output Q0.

In pulse manipulation mode, the input I0 is applied to the output Q0 for the time PULSTIME. Once this time has elapsed, I0 is reset.

The LINK_ON input is used to select whether the input I0 (LINK_ON = 0), which can be controlled by the operator, or the interconnectable input LINK_I (LINK_ON = 1) is used.

2.4.5 Operator panelSo that various technological functions of the library can also be controlled and monitored from an operator panel, the "S7POpD" block is installed in the CFC for the actual technology block.

2.4.6 Switch permissionIt is possible to control the technological block from different operating levels. If the input [OP_ACTIVE] is set, manual control is via the input [OP_IO].

If the local WinCC variable "@Permission" matches the value set for the operating level at block parameter [PERMIS], the operator station is given switch permission.

The different operating levels are indicated by a project-specific enumeration type.

Operation blocks2.4 S7OpD - Operator control of a binary measured value

PCS 7 Industry Library for S766 Function Manual, 09/2015, A5E34977996-AA

Page 67: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

For this purpose, enumerations with the corresponding switch permissions have to be added to the “Global Declarations” folder in the SIMATIC Manager. The value range of the elements of the enumeration can be defined from 0 (no operating level available) up to 8. Higher values are not evaluated.

This type must be assigned to the "S7UsrM" blocks of the units and all [PERMIS] inputs of the technological blocks, as well as to the OP interface block "S7POpD".

Example:

Select the units in the "process object view", filter by "I/O name" "*PERMIS" and assign the corresponding type to all "enumerations".

2.4.7 Startup characteristicsDuring startup, all internal parameters are reset.

2.4.8 Called blocks

SFC6 RD_SINFOUDT75 UDT_S7POpD

2.4.9 Block parameters

Parameter Type IN/OUT OCM DescriptionEN BOOL IN 0 RESTART BOOL IN 0 Manual startupLINK_I BOOL IN 0 Interconnectable input I LINK_ON BOOL IN 0 Selection: 1=Linking , 0=OperationOP_EN0 BOOL IN 0 1=Operator control enable for entering '0'OP_EN1 BOOL IN 0 1=Operator control enable for entering '1'MODE BOOL IN 0 Mode=0 pulse manipulation, Mode=1 level manip‐

ulationOP_ACTIVE BOOL IN 0 Operator panel control enabledOP_I0 BOOL IN 0 Operator panel inputTIME_PULS REAL IN 1 Pulse timeRUNUPCYC INT IN 0 Number of startup cycles with message suppres‐

sionBA_EN BOOL IN 1 Batch enableOCCUPIED BOOL IN 1 Occupied by batchBA_ID DWORD IN 1 Current batch ID (number)BA_NA STRING[32] IN 1 Batch name

Operation blocks2.4 S7OpD - Operator control of a binary measured value

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 67

Page 68: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionSTEP_NO DWORD IN 1 Batch step numberPERMIS INT IN 1 Switching authoritySAMPLE_T REAL IN 0 Sampling time in [s]I0 BOOL IN_OUT 1 Manipulated variableENO BOOL OUT 0 Q0 BOOL OUT 1 Output valueMODE_P BOOL OUT 1 Active: Level commands selectedMODE_I BOOL OUT 1 Active: Pulse commands selectedQ_OP_EN0 BOOL OUT 1 1=Operator control enable for entering '0'Q_OP_EN1 BOOL OUT 1 1=Operator control enable for entering '1'QOP_STAT STRUCT OUT 0 Unit status for OP_D for panelQOP_STAT.UDT_IDENT BYTE OUT 0 UDT identifier for UDT_S7POpDQOP_STAT.QOP_Q BOOL OUT 0 Status 1=Operator panel output 1: 0=inactive, 1=ac‐

tive QOP_STAT.QOP_EN0 BOOL OUT 0 Status 1=Operator panel can set 0QOP_STAT.QOP_EN1 BOOL OUT 0 Status 1=Operator panel can set 1QOP_STAT.QOP_LINK BOOL OUT 0 Status 1=LINK is active <=> "Automatic"

2.4.10 Operator control & monitoring

2.4.10.1 Views of S7OpDThe block provides the following views:

● Standard view

● Batch view

2.4.10.2 Standard view of S7OpDDepending on which mode is set (pulse or level manipulation), two different faceplate views appear.

Standard view for level manipulation

1

2

3

4

Operation blocks2.4 S7OpD - Operator control of a binary measured value

PCS 7 Industry Library for S768 Function Manual, 09/2015, A5E34977996-AA

Page 69: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

(1) Command

● On

● Off

(2) Display area for block states

This area provides additional information on the operating state of the block.

● Off

(3) Display area for block states

This area provides additional information on the operating state of the block.

● LocalOS

(4) Status display

Standard view for pulse manipulation

1

2

3

4

5

(1) On

(2) Pulse time in seconds

(3) Display area for block states

This area provides additional information on the operating state of the block:

● Off

(4) Display area for block states

This area provides additional information on the operating state of the block:

● LocalOS

(5) Status display

2.4.10.3 Block icons of S7OpDThere is no specific OS Typical for this block. Values are displayed via a command button, for example.

Operation blocks2.4 S7OpD - Operator control of a binary measured value

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 69

Page 70: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Operation blocks2.4 S7OpD - Operator control of a binary measured value

PCS 7 Industry Library for S770 Function Manual, 09/2015, A5E34977996-AA

Page 71: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

HVAC blocks 33.1 S7CalcWatP - Calculation of thermal power and emitted energy

3.1.1 FunctionThe S7CalcWatP block uses the volume flow rate and the water supply and return temperatures to determine the current emitted thermal power and the total emitted thermal energy of the water.

The block requires the following input parameters:

● Instantaneous volume flow rate V_FL_RT [m³/h]

● Supply and return temperatures T_FORERN, T_RETURN in [°C]

● Information about whether volume is measured in supply (V_MEAS_F = TRUE) or return (V_MEAS_F = FALSE).

The F_POWER and F_ENERGY inputs can be used to change the unit of the MIN_POW, QTH_POW or QTH_ENGY and STH_ENGY parameters. By default, the power is indicated in kW and the energy in kWh (F_POWER = 1, F_ENERGY = 1). For example: If F_POWER has the value 1000, the unit for the power is F_POWER * kW = 1000 * kW = 1 MW. If a factor has the value 0, the value 1 is set in the program.

A thermal coefficient k [kWh/(m³/h/°C)] is determined from a table entered in the block based on the supply and return temperatures. The table provides the thermal coefficient for the supply and return temperatures ranging from 10 ℃ to 140 ℃ in steps of 10 ℃. The block calculates intermediate values by performing linear interpolation. Values outside this range are calculated by means of linear extrapolation.

The current thermal power is provided at the QTH_POW output in the unit [F_POWER * kW]. The total emitted thermal energy is provided at the QTH_ENGY output in the unit [F_ENERGY * kWh]. If the amount of thermal power is below the value of MIN_POW, a thermal power of zero is used. The current thermal power is always output as a positive value. For heating (supply temperature >= return temperature), the output is set to QHEATING = TRUE; for cooling, it is set to FALSE.

A positive edge at the RESET or L_RESET input resets the value of QTH_ENGY to zero. On restarting the CPU (in OB100), the value of STH_ENGY (Start Thermal Energy) is used as the initial value to calculate the thermal energy QTH_ENGY.

Calculation of the thermal power

QTH_POW := ABS(V_FL_RT * KT * (T_FORERN – T_RETURN)).

Calculation of the emitted thermal energy (iteratively at the i-th block call after RESET or restart of the CPU):

QTH_ENGY[i] := QTH_ENGY[i-1] + QTH_POW * (SAMPLE_T/3600.0).

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 71

Page 72: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

3.1.2 OBs to be calledThis is the cyclic interrupt OB in which you install the block (OB32). Additionally in OB100 (see Startup characteristics (Page 73)).

3.1.3 Time behaviorThe block must be called using a cyclic interrupt OB. The sampling time of the block is set in the SAMPLE_T parameter.

3.1.4 Operator panelSo that various technological functions of the library can also be controlled and monitored from an operator panel, the "S7PCalcWatP" block is installed in the CFC for the actual technology block.

A global data block containing the data structure (UDT) required for the technology function used is needed for this operator panel block.

Example

"UDT_S7PCalcWatP" is needed in the data block for an instance of "S7CalcWatP" and "S7PCalcWatP". This data block is the interface between the S7 and the operator panel.

3.1.5 Error handlingIf one of the inputs for measuring the volume flow or the supply or return temperature is faulty, the corresponding input V_FL_CSF, T_F_CSF, or T_R_CSF must be reset or interconnected. If one of the inputs is set, the last valid value is accepted and displayed at the QERR and QCSF outputs.

If the input parameter LAST_ON = True, the last valid value is transmitted for calculation (depending on the corresponding inputs V_FL_CSF, T_F_CSF and T_R_CSF).

For the input parameters LAST_ON = False and SUBS_ON = True, the corresponding substitute values SUBS_V_F. SUBS_T_F, or SUBS_T_R are forwarded for calculation depending on the associated inputs V_FL_CSF, T_F_CSF, or T_R_CSF.

3.1.6 Message behaviorThe S7CalcWatP block uses the ALARM_DQ block for generating messages.

Message triggers are:

● The CSF signals of the measured values (QCSF)

HVAC blocks3.1 S7CalcWatP - Calculation of thermal power and emitted energy

PCS 7 Industry Library for S772 Function Manual, 09/2015, A5E34977996-AA

Page 73: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Assignment of message text and message class to the block parameters

Message number

Block parame‐ter

Default message text Message class

1 V_FL_CSF External error volume flow rate S2 T_F_CSF External error supply temperature S3 T_R_CSF External error return temperature S

The messages can be locked centrally with MSG_LOCK (OS operation) or L_MSGLCK (program).

QMSG_SUP is set if the RUNUPCYC cycles have not finished running since the restart, MSG_LOCK or L_MSGLCK = TRUE.

3.1.7 Startup characteristicsThe RUNUPCYC parameter can be used to specify for how long (number of cycles) the messages are to be suppressed.

3.1.8 Called blocks

SFC107 ALARM_DQSFC19 ALARM_SCUDTxx UDT_S7PCalcWatP

3.1.9 Block parameters

Parameter Type IN/OUT OCM DescriptionEN BOOL IN 0 ENABLE BOOL IN 0 Block enableRESTART BOOL IN 0 Manual startupL_RESET BOOL IN 0 Central error resetSAMPLE_T REAL IN 0 Sampling time in [s]STH_ENGY REAL IN 1 Start value for calculating the thermal energyT_FORERN REAL IN 0 Supply temperature in [°C]T_RETURN REAL IN 0 Return temperature in [°C]V_FL_RT REAL IN 0 Volume flow rate in [m³/h]V_MEAS_F BOOL IN 1 Location of volume measurement (0=return, 1=supply)V_FL_CSF BOOL IN 0 External error affecting volume flow rate measurementT_F_CSF BOOL IN 0 External error affecting supply temperatureT_R_CSF BOOL IN 0 External error affecting return temperature

HVAC blocks3.1 S7CalcWatP - Calculation of thermal power and emitted energy

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 73

Page 74: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionSUBS_ON BOOL IN 0 1=Enable use of substitute valueSUBS_V_F REAL IN 0 Substitute value for volume flow rateSUBS_T_F REAL IN 0 Substitute value for supply temperatureSUBS_T_R REAL IN 0 Substitute value for return temperatureL_MSGLCK BOOL IN 1 Central message suppression interconnectableMSG_EVID_1 DWORD IN 0 ALARM_DQ Event IDMSG_EVID_2 DWORD IN 0 ALARM_DQ Event IDMSG_EVID_3 DWORD IN 0 ALARM_DQ Event IDMSG_FILTER DINT IN 0 Message filterRUNUPCYC INT IN 0 Number of startup cyclesAUX REAL IN 1 Associated valueBA_EN BOOL IN 1 BATCH enableOCCUPIED BOOL IN 1 ID for occupied by BATCHBA_ID DWORD IN 1 BATCH: Consecutive batch numberBA_NA STRING[3

2]IN 1 BATCH name

STEP_NO DWORD IN 1 BATCH step numberCMP_ID DWORD IN 0 Area code, see ALARM_DQ doc.PERMIS INT IN 1 Switching authorityMIN_POW REAL IN_OUT 1 Minimum powerF_POWER REAL IN_OUT 1 Factor for power unitF_ENERGY REAL IN_OUT 1 Factor for energy unitRESET BOOL IN_OUT 1 Controllable reset input for errorMSG_LOCK BOOL IN_OUT 1 Central message suppression, can be controlledENO BOOL OUT 0 QERR BOOL OUT 1 1=Group errorQTH_POW REAL OUT 1 Calculated thermal power in [factor * kW]QTH_ENGY REAL OUT 1 Calculated thermal energy in [factor *kWh]QHEATING BOOL OUT 1 0=cooling mode, 1=heating modeQT_FORERN REAL OUT 1 Supply temperature in [°C]QT_RETURN REAL OUT 1 Return temperature in [°C]QV_FL_RT REAL OUT 1 Volume flow rate in [m³/h]QCSF BOOL OUT 1 1=External errorQMSG_ERR BOOL OUT 0 1=Message error affecting ALARM_DQQMSG_SUP BOOL OUT 1 1=Message suppressionQLAST BOOL OUT 0 1=Enable last valid value activeQSUBS BOOL OUT 0 1=Enable use of substitute value activeMSG_STAT_1 WORD OUT 0 Message error information EVID_1MSG_STAT_2 WORD OUT 0 Message error information EVID_2MSG_STAT_3 WORD OUT 0 Message error information EVID_3MSG_ACK_1 BOOL OUT 0 Message acknowledge EVID_1

HVAC blocks3.1 S7CalcWatP - Calculation of thermal power and emitted energy

PCS 7 Industry Library for S774 Function Manual, 09/2015, A5E34977996-AA

Page 75: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionMSG_ACK_2 BOOL OUT 0 Message acknowledge EVID_2MSG_ACK_3 BOOL OUT 0 Message acknowledge EVID_3QOP_STAT STRUCT OUT 0 Operator panel statusQOP_STAT.UDT_IDENT BYTE OUT 0 UDT identifier for UDT_S7PCalcWatPQOP_STAT.QOP_T_FORERN

REAL OUT 0 Supply temperature status

QOP_STAT.QOP_T_RE‐TURN

REAL OUT 0 Return temperature status

QOP_STAT.QOP_V_FL_RT REAL OUT 0 Volume flow rate statusQOP_STAT.QOP_QTH_POW

REAL OUT 0 Thermal power status

QOP_STAT.QOP_QTH_EN‐GY

REAL OUT 0 Thermal energy status

QOP_STAT.QOP_QHEAT‐ING

BOOL OUT 0 Status 1=Heating, 0=Cooling

QOP_STAT.QOP_QERR BOOL OUT 0 Status 1=Operator panel errorQOP_STAT.QOS_STAT_F WORD OUT 0 Status panel messages

3.1.10 Operator control & monitoring

3.1.10.1 Views of CalcWatPThe block provides the following views:

● Standard view

● Message view

● Trend view

● Parameter view

● Batch view

HVAC blocks3.1 S7CalcWatP - Calculation of thermal power and emitted energy

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 75

Page 76: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

3.1.10.2 Standard view of CalcWatP

1

3

2

4

5

(1)

● Power

● Energy

(2) Start value energy

(3)

● Pre-run temp

● Return flow temp

● Flow

(4) Message lock enabled

(5) Display area for block states

This area provides additional information on the operating state of the block:

● Pre-run

● Heat

● LocalOS

3.1.10.3 Parameter view of CalcWatP

1

2

3

HVAC blocks3.1 S7CalcWatP - Calculation of thermal power and emitted energy

PCS 7 Industry Library for S776 Function Manual, 09/2015, A5E34977996-AA

Page 77: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

(1) Factor for unit

● Power

● Energy

(2) Power limit

● Minimum power

(3) Reset of energy

● Reset

3.1.10.4 Block icons of CalcWatP

HVAC blocks3.1 S7CalcWatP - Calculation of thermal power and emitted energy

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 77

Page 78: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

3.2 S7ConvAbRe - Conversion of humidity from absolute to relative or relative to absolute

3.2.1 FunctionThe S7ConvAbRe block converts absolute humidity to relative humidity, or vice versa.

The block requires the temperature in °C at the TEMP input and the atmospheric humidity in g/kg or % at the HUMID input. The conversion direction can be set at the K input parameter by selecting TRUE or FALSE.

The converted humidity is output in the relevant unit at the QHUMID output.

3.2.2 OBs to be calledThis is the cyclic interrupt OB in which you install the block (OB32).

3.2.3 Time behaviorThis block has no time behavior.

3.2.4 Error handlingThere is no error handling for this block.

3.2.5 Block parameters

Parameter Type IN/OUT

OCM Description

EN BOOL IN 0 K BOOL IN 0 1=Conversion 0=g/kg ->%, 1=%->g/kgTEMP REAL IN 0 Temperature in [°C]HUMID REAL IN 0 Humidity in [g/kg or %]ENO BOOL OUT 0 QHUMID REAL OUT 0 Result of selected conversion

HVAC blocks3.2 S7ConvAbRe - Conversion of humidity from absolute to relative or relative to absolute

PCS 7 Industry Library for S778 Function Manual, 09/2015, A5E34977996-AA

Page 79: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

3.3 S7ConvCF - Conversion of unit of temperature from °C to °F or from °F to °C

3.3.1 FunctionThe S7ConvCF block converts the unit of temperature from °C to °F, or vice versa.

The block requires the temperature in °C or in °F at the TEMP input. The conversion direction can be set at the K input parameter by selecting TRUE or FALSE.

The converted temperature is output in the relevant unit at the QTEMP output.

3.3.2 OBs to be calledThis is the cyclic interrupt OB in which you install the block (OB32).

3.3.3 Time behaviorThis block has no time behavior.

3.3.4 Error handlingThere is no error handling for this block.

3.3.5 Block parameters

Parameter Type IN/OUT

OCM Description

EN BOOL IN 0 K BOOL IN 0 1=Conversion 0=°C ->°F, 1=°F->°CTEMP REAL IN 0 Temperature in [°C or °F]ENO BOOL OUT 0 QTEMP REAL OUT 0 Result of selected conversion

HVAC blocks3.3 S7ConvCF - Conversion of unit of temperature from °C to °F or from °F to °C

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 79

Page 80: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

3.4 S7HxFct - Calculation of enthalpy, absolute humidity, and saturated humidity according to Mollier

3.4.1 FunctionThe S7HxFct block uses the relative humidity and the temperature to determine the absolute humidity, the enthalpy, and the saturated humidity.

As input parameters, the block requires the relative humidity H_REL [%] and the temperature T_CENTC [°C].

The determined enthalpy is provided in the unit [kJ/kg] at the QENT output. The absolute humidity is provided in the unit [g/kg] at the QH_ABS output. The saturated humidity is provided in the unit [g/kg] at the QH_SAT output.

3.4.2 OBs to be calledThis is the cyclic interrupt OB in which you install the block (OB32). Additionally in OB100 (see Startup characteristics (Page 81)).

3.4.3 Time behaviorThe block must be called using a cyclic interrupt OB. The sampling time of the block is set in the SAMPLE_T parameter.

3.4.4 Operator panelSo that various technological functions of the library can also be controlled and monitored from an operator panel, the "S7PHxFct" block is installed in the CFC for the actual technology block.

A global data block is required for this operator panel block. The data block contains the data structure (UDT) needed for the technology function used.

Example

"UDT_S7PHxFct" is needed in the data block for an instance of "S7HxFct" and "S7PHxFct". This data block is the interface between the S7 and the operator panel.

3.4.5 Error handlingIf one of the inputs for the temperature or relative humidity is faulty, the T_CENTC_CSF or H_REL_CSF input must be set or connected. If one of the inputs is set, the last valid value is accepted and displayed at the QERR and QCSF outputs.

If the input parameter LAST_ON = True, the last valid value is transmitted for calculation (depending on the corresponding inputs T_CENTC_CSF or H_REL_CSF).

HVAC blocks3.4 S7HxFct - Calculation of enthalpy, absolute humidity, and saturated humidity according to Mollier

PCS 7 Industry Library for S780 Function Manual, 09/2015, A5E34977996-AA

Page 81: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

For the input parameters LAST_ON = False and SUBS_ON = True, the corresponding substitute values SUBS_T or SUBS_H are forwarded for calculation depending on the associated inputs T_CENTC_CSF or H_REL_CSF.

3.4.6 Message behaviorThe S7HxFct block uses the ALARM_DQ block for generating messages.

Messages are triggered by the CSF signals of the measured values (QCSF).

Assignment of message text and message class to the block parameters

Message number

Block parame‐ter

Default message text Message class

1 T_CENTC_CSF

External error temperature S

2 H_REL_CSF External error relative humidity S

The messages can be locked centrally with MSG_LOCK (OS operation) or L_MSGLCK (program).

QMSG_SUP is set if the RUNUPCYC cycles have not finished running since the restart or if MSG_LOCK or L_MSGLCK = TRUE.

3.4.7 Startup characteristicsThe RUNUPCYC parameter can be used to specify for how long (number of cycles) the messages are to be suppressed.

3.4.8 Called blocks

SFC6 RD_SINFOSFC107 ALARM_DQSFC19 ALARM_SCUDTxx UDT_S7PHxFct

3.4.9 Block parameters

Parameter Type IN/OUT OCM DescriptionEN BOOL IN 0 ENABLE BOOL IN 0 Block enableRESTART BOOL IN 0 Manual startup

HVAC blocks3.4 S7HxFct - Calculation of enthalpy, absolute humidity, and saturated humidity according to Mollier

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 81

Page 82: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionSAMPLE_T REAL IN 0 Sampling time in [s]T_CENTC REAL IN 0 Temperature in [°C]H_REL REAL IN 0 Relative humidity in [%]T_CENTC_CSF BOOL IN 0 External error affecting temperatureH_REL_CSF BOOL IN 0 External error affecting relative humiditySUBS_ON BOOL IN 0 1=Enable use of substitute valueSUBS_T REAL IN 0 Substitute value for temperature measurementSUBS_H REAL IN 0 Substitute value for relative humidityL_MSGLCK BOOL IN 1 Central message suppression interconnectableMSG_EVID_1 DWORD IN 0 ALARM_DQ Event IDMSG_EVID_2 DWORD IN 0 ALARM_DQ Event IDMSG_FILTER DINT IN 0 Message filterRUNUPCYC INT IN 0 Number of startup cyclesAUX REAL IN 1 Associated valueBA_EN BOOL IN 1 BATCH enableOCCUPIED BOOL IN 1 ID for occupied by BATCHBA_ID DWORD IN 1 BATCH: Consecutive batch numberBA_NA STRING[3

2]IN 1 BATCH name

STEP_NO DWORD IN 1 BATCH step numberCMP_ID DWORD IN 0 Area code, see ALARM_DQ documentationPERMIS INT IN 1 Switching authorityMSG_LOCK BOOL IN_OUT 1 Central message suppression, can be controlledENO BOOL OUT 0 QERR BOOL OUT 1 1=Group errorQENT REAL OUT 1 Calculated enthalpy in [kJ/kg]QH_ABS REAL OUT 1 Calculated absolute humidity in [g/kg]QH_SAT REAL OUT 1 Calculated saturated humidity in [g/kg]QT_CENTC REAL OUT 1 Temperature in [°C]QH_REL REAL OUT 1 Relative humidity in [%]QCSF BOOL OUT 1 1=External errorQMSG_ERR BOOL OUT 0 1=Message error affecting ALARM_DQQMSG_SUP BOOL OUT 1 1=Message suppressionQLAST BOOL OUT 0 1=Enable last valid value activeQSUBS BOOL OUT 0 1=Enable use of substitute value activeMSG_STAT_1 WORD OUT 0 Message error information EVID_1MSG_STAT_2 WORD OUT 0 Message error information EVID_2MSG_ACK_1 BOOL OUT 0 Message acknowledge EVID_1MSG_ACK_2 BOOL OUT 0 Message acknowledge EVID_2QOP_STAT STRUCT OUT 0 Operator panel statusQOP_STAT.UDT_IDENT BYTE OUT 0 UDT identifier for UDT_S7PCalcWatP

HVAC blocks3.4 S7HxFct - Calculation of enthalpy, absolute humidity, and saturated humidity according to Mollier

PCS 7 Industry Library for S782 Function Manual, 09/2015, A5E34977996-AA

Page 83: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionQOP_STAT.QOP_T_CENTC REAL OUT 0 Status temperatureQOP_STAT.QOP_H_REL REAL OUT 0 Status relative humidityQOP_STAT.QOP_QENT REAL OUT 0 Status enthalpyQOP_STAT.QOP_QH_ABS REAL OUT 0 Status absolute humidityQOP_STAT.QOP_QH_SAT REAL OUT 0 Status saturated humidityQOP_STAT.QOP_QERR BOOL OUT 0 Status 1=Operator panel errorQOP_STAT.QOS_STAT_F WORD OUT 0 Status panel messages

3.4.10 Operator control & monitoring

3.4.10.1 Views of S7HxFctThe block provides the following views:

● Standard view

● Message view

● Trend view

● Batch view

3.4.10.2 Standard view of S7HxFct

1

2

34

(1)

● Enthalpy

● Absolute humidity

● Saturation humidity

(2)

● Temperature

● Rel. humidity

HVAC blocks3.4 S7HxFct - Calculation of enthalpy, absolute humidity, and saturated humidity according to Mollier

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 83

Page 84: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

(3) Message lock enabled

(4) Display area for block states

This area provides additional information on the operating state of the block:

● LocalOS

3.4.10.3 Block icons of S7HxFct

HVAC blocks3.4 S7HxFct - Calculation of enthalpy, absolute humidity, and saturated humidity according to Mollier

PCS 7 Industry Library for S784 Function Manual, 09/2015, A5E34977996-AA

Page 85: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Communication blocks 44.1 ASRcvH - H-system communication receive block

4.1.1 FunctionThe ASRcvH block coordinates the receipt of telegrams between a redundant and a non-redundant automation station via S7 communication (BRECV). Up to 30 REAL values and 30 binary values are sent. Each value also has a binary quality code which specifies whether the measured value is correct.

4.1.2 OBs to be calledThis is the cyclic interrupt organization block in which you install the block (e.g., OB32). Additionally in OB100 (see Startup characteristics (Page 87)).

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 85

Page 86: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

4.1.3 Monitoring the receiving procedureThere are two connections between sender and receiver. Both connections are monitored separately. If an error occurs during monitoring, the data received by the first connection is used. If one of the connections fails, the data of the connection that is still running is used. If both connections fail, the associated value (quality flag) is sent to the OS.

If at least one error is detected, the OS will be sent a group message once the SupprTime (configurable suppression time, can be set to any value) has expired.

The sending error is reset as soon as one or more telegrams have been successfully sent with valid data. When SupprTime < SampleTime, the error message is generated immediately.

4.1.4 Message behaviorMessage characteristics is controlled with the MsgLock and MsgSup parameters.

If the value of MsgLock is set to "TRUE", all messages are locked.

If the number of calls (RunUpCyc) after a restart have not yet been performed, the value of MsgSup is set to "TRUE" automatically and no messages are sent.

Messages

Message instance

Message ID Message class Event

MsgEvId SIG 1 AS control system Fault $$BlockComment$$ Communication failure conn. 1

SIG 2 AS control system Fault $$BlockComment$$ Communication failure conn. 2

SIG 3 AS control system Fault $$BlockComment$$ Complete loss of commu‐nication

SIG 4 - $$BlockComment$$ External message 1SIG 5 - $$BlockComment$$ External message 2SIG 6 - $$BlockComment$$ External message 3SIG 7 - $$BlockComment$$ External message 4SIG 8 - $$BlockComment$$ External message 5

Associated values for message instance MsgEvId

Associated value Block parameter1 Status12 Status23 ExtVa1034 ExtVa1045 ExtVa1056 ExtVa1067 ExtVa107

Communication blocks4.1 ASRcvH - H-system communication receive block

PCS 7 Industry Library for S786 Function Manual, 09/2015, A5E34977996-AA

Page 87: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Associated value Block parameter8 ExtVa1089 ExtVa10910 ExtVa110

The associated values (ExtVa1x) of the message block can be assigned freely.

4.1.5 Startup characteristicsMessage behavior is controlled with the RunUpCyc parameter. The value (number of cycles) indicates how long the messages are suppressed for. The Restart = TRUE parameter simulates a restart.

4.1.6 Time behaviorTime behavior is controlled with the SampleTime parameter. The value (time in seconds) indicates the length of the sampling time. The call is made via a cyclic interrupt organization block.

4.1.7 Called blocks

SFC6 RD_SINFOSFB35 ALARM_8PFB1152 IL_BRUDT1190 UDT_BoolStUDT1191 UDT_RealSt

4.1.8 Block parameters

Parameter Type IN/OUT OCM DescriptionSupprTime REAL IN 0 Suppression time [s]RunUpCyc INT IN 0 Number of startup cyclesEN BOOL IN 0 FirstVar1 BOOL IN 0 Pointer initial value conn. #1LastVar1 BOOL IN 0 End delimiter receive buffer

readback conn. #1FirstVar2 BOOL IN 0 Pointer initial value conn. #2LastVar2 BOOL IN 0 End delimiter receive buffer

readback conn. #2SampleTime REAL IN 0 Sampling time in [s]

Communication blocks4.1 ASRcvH - H-system communication receive block

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 87

Page 88: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionReal01_1In.Value REAL IN 0 ValueReal02_1In.Value REAL IN 0 ValueReal03_1In.Value REAL IN 0 ValueReal04_1In.Value REAL IN 0 ValueReal05_1In.Value REAL IN 0 ValueReal06_1In.Value REAL IN 0 ValueReal07_1In.Value REAL IN 0 ValueReal08_1In.Value REAL IN 0 ValueReal09_1In.Value REAL IN 0 ValueReal10_1In.Value REAL IN 0 ValueReal11_1In.Value REAL IN 0 ValueReal12_1In.Value REAL IN 0 ValueReal13_1In.Value REAL IN 0 ValueReal14_1In.Value REAL IN 0 ValueReal15_1In.Value REAL IN 0 ValueReal16_1In.Value REAL IN 0 ValueReal17_1In.Value REAL IN 0 ValueReal18_1In.Value REAL IN 0 ValueReal19_1In.Value REAL IN 0 ValueReal20_1In.Value REAL IN 0 ValueReal21_1In.Value REAL IN 0 ValueReal22_1In.Value REAL IN 0 ValueReal23_1In.Value REAL IN 0 ValueReal24_1In.Value REAL IN 0 ValueReal25_1In.Value REAL IN 0 ValueReal26_1In.Value REAL IN 0 ValueReal27_1In.Value REAL IN 0 ValueReal28_1In.Value REAL IN 0 ValueReal29_1In.Value REAL IN 0 ValueReal30_1In.Value REAL IN 0 ValueReal01_2In.Value REAL IN 0 ValueReal02_2In.Value REAL IN 0 ValueReal03_2In.Value REAL IN 0 ValueReal04_2In.Value REAL IN 0 ValueReal05_2In.Value REAL IN 0 ValueReal06_2In.Value REAL IN 0 ValueReal07_2In.Value REAL IN 0 ValueReal08_2In.Value REAL IN 0 ValueReal09_2In.Value REAL IN 0 ValueReal10_2In.Value REAL IN 0 ValueReal11_2In.Value REAL IN 0 Value

Communication blocks4.1 ASRcvH - H-system communication receive block

PCS 7 Industry Library for S788 Function Manual, 09/2015, A5E34977996-AA

Page 89: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionReal12_2In.Value REAL IN 0 ValueReal13_2In.Value REAL IN 0 ValueReal14_2In.Value REAL IN 0 ValueReal15_2In.Value REAL IN 0 ValueReal16_2In.Value REAL IN 0 ValueReal17_2In.Value REAL IN 0 ValueReal18_2In.Value REAL IN 0 ValueReal19_2In.Value REAL IN 0 ValueReal20_2In.Value REAL IN 0 ValueReal21_2In.Value REAL IN 0 ValueReal22_2In.Value REAL IN 0 ValueReal23_2In.Value REAL IN 0 ValueReal24_2In.Value REAL IN 0 ValueReal25_2In.Value REAL IN 0 ValueReal26_2In.Value REAL IN 0 ValueReal27_2In.Value REAL IN 0 ValueReal28_2In.Value REAL IN 0 ValueReal29_2In.Value REAL IN 0 ValueReal30_2In.Value REAL IN 0 ValueReal01.Value REAL OUT 0 ValueReal02.Value REAL OUT 0 ValueReal03.Value REAL OUT 0 ValueReal04.Value REAL OUT 0 ValueReal05.Value REAL OUT 0 ValueReal06.Value REAL OUT 0 ValueReal07.Value REAL OUT 0 ValueReal08.Value REAL OUT 0 ValueReal09.Value REAL OUT 0 ValueReal10.Value REAL OUT 0 ValueReal11.Value REAL OUT 0 ValueReal12.Value REAL OUT 0 ValueReal13.Value REAL OUT 0 ValueReal14.Value REAL OUT 0 ValueReal15.Value REAL OUT 0 ValueReal16.Value REAL OUT 0 ValueReal17.Value REAL OUT 0 ValueReal18.Value REAL OUT 0 ValueReal19.Value REAL OUT 0 ValueReal20.Value REAL OUT 0 ValueReal21.Value REAL OUT 0 ValueReal22.Value REAL OUT 0 Value

Communication blocks4.1 ASRcvH - H-system communication receive block

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 89

Page 90: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionReal23.Value REAL OUT 0 ValueReal24.Value REAL OUT 0 ValueReal25.Value REAL OUT 0 ValueReal26.Value REAL OUT 0 ValueReal27.Value REAL OUT 0 ValueReal28.Value REAL OUT 0 ValueReal29.Value REAL OUT 0 ValueReal30.Value REAL OUT 0 ValueRestart BOOL IN 0 ValueMsgLock.Value BOOL IN 0 ValueMsgAckEn BOOL IN 0 ValueExtMsg1.Value BOOL IN 0 ValueExtMsg2.Value BOOL IN 0 ValueExtMsg3.Value BOOL IN 0 ValueExtMsg4.Value BOOL IN 0 ValueExtMsg5.Value BOOL IN 0 ValueResHist1 BOOL IN 0 ValueResHist2 BOOL IN 0 ValueBool01_1In.Value BOOL IN 0 ValueBool02_1In.Value BOOL IN 0 ValueBool03_1In.Value BOOL IN 0 ValueBool04_1In.Value BOOL IN 0 ValueBool05_1In.Value BOOL IN 0 ValueBool06_1In.Value BOOL IN 0 ValueBool07_1In.Value BOOL IN 0 ValueBool08_1In.Value BOOL IN 0 ValueBool09_1In.Value BOOL IN 0 ValueBool10_1In.Value BOOL IN 0 ValueBool11_1In.Value BOOL IN 0 ValueBool12_1In.Value BOOL IN 0 ValueBool13_1In.Value BOOL IN 0 ValueBool14_1In.Value BOOL IN 0 ValueBool15_1In.Value BOOL IN 0 ValueBool16_1In.Value BOOL IN 0 ValueBool17_1In.Value BOOL IN 0 ValueBool18_1In.Value BOOL IN 0 ValueBool19_1In.Value BOOL IN 0 ValueBool20_1In.Value BOOL IN 0 ValueBool21_1In.Value BOOL IN 0 ValueBool22_1In.Value BOOL IN 0 ValueBool23_1In.Value BOOL IN 0 Value

Communication blocks4.1 ASRcvH - H-system communication receive block

PCS 7 Industry Library for S790 Function Manual, 09/2015, A5E34977996-AA

Page 91: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionBool24_1In.Value BOOL IN 0 ValueBool25_1In.Value BOOL IN 0 ValueBool26_1In.Value BOOL IN 0 ValueBool27_1In.Value BOOL IN 0 ValueBool28_1In.Value BOOL IN 0 ValueBool29_1In.Value BOOL IN 0 ValueBool30_1In.Value BOOL IN 0 ValueBool01_2In.Value BOOL IN 0 ValueBool02_2In.Value BOOL IN 0 ValueBool03_2In.Value BOOL IN 0 ValueBool04_2In.Value BOOL IN 0 ValueBool05_2In.Value BOOL IN 0 ValueBool06_2In.Value BOOL IN 0 ValueBool07_2In.Value BOOL IN 0 ValueBool08_2In.Value BOOL IN 0 ValueBool09_2In.Value BOOL IN 0 ValueBool10_2In.Value BOOL IN 0 ValueBool11_2In.Value BOOL IN 0 ValueBool12_2In.Value BOOL IN 0 ValueBool13_2In.Value BOOL IN 0 ValueBool14_2In.Value BOOL IN 0 ValueBool15_2In.Value BOOL IN 0 ValueBool16_2In.Value BOOL IN 0 ValueBool17_2In.Value BOOL IN 0 ValueBool18_2In.Value BOOL IN 0 ValueBool19_2In.Value BOOL IN 0 ValueBool20_2In.Value BOOL IN 0 ValueBool21_2In.Value BOOL IN 0 ValueBool22_2In.Value BOOL IN 0 ValueBool23_2In.Value BOOL IN 0 ValueBool24_2In.Value BOOL IN 0 ValueBool25_2In.Value BOOL IN 0 ValueBool26_2In.Value BOOL IN 0 ValueBool27_2In.Value BOOL IN 0 ValueBool28_2In.Value BOOL IN 0 ValueBool29_2In.Value BOOL IN 0 ValueBool30_2In.Value BOOL IN 0 ValueENO BOOL OUT 0 Bool01.Value BOOL OUT 0 ValueBool02.Value BOOL OUT 0 ValueBool03.Value BOOL OUT 0 Value

Communication blocks4.1 ASRcvH - H-system communication receive block

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 91

Page 92: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionBool04.Value BOOL OUT 0 ValueBool05.Value BOOL OUT 0 ValueBool06.Value BOOL OUT 0 ValueBool07.Value BOOL OUT 0 ValueBool08.Value BOOL OUT 0 ValueBool09.Value BOOL OUT 0 ValueBool10.Value BOOL OUT 0 ValueBool11.Value BOOL OUT 0 ValueBool12.Value BOOL OUT 0 ValueBool13.Value BOOL OUT 0 ValueBool14.Value BOOL OUT 0 ValueBool15.Value BOOL OUT 0 ValueBool16.Value BOOL OUT 0 ValueBool17.Value BOOL OUT 0 ValueBool18.Value BOOL OUT 0 ValueBool19.Value BOOL OUT 0 ValueBool20.Value BOOL OUT 0 ValueBool21.Value BOOL OUT 0 ValueBool22.Value BOOL OUT 0 ValueBool23.Value BOOL OUT 0 ValueBool24.Value BOOL OUT 0 ValueBool25.Value BOOL OUT 0 ValueBool26.Value BOOL OUT 0 ValueBool27.Value BOOL OUT 0 ValueBool28.Value BOOL OUT 0 ValueBool29.Value BOOL OUT 0 ValueBool30.Value BOOL OUT 0 ValueIntCnt1 DINT OUT 0 Integration of DATE conn. #1ErrCnt1 DINT OUT 0 Counter for errors conn. #1Length1 INT OUT 0 Length of the receive area 1Err1Out BOOL OUT 0 1:Error 0:No error (static)Status1 INT OUT 0 Status 1 (static)TrigReady1 BOOL OUT 0 0:Busy 1:New trigger possible IntCnt2 DINT OUT 0 Integration of DATE conn. #2 ErrCnt2 DINT OUT 0 Counter for errors conn. #2Length2 INT OUT 0 Length of the receive area 2Err2Out BOOL OUT 0 1:Error 0:No error (static)Status2 INT OUT 0 Status 2 (static)TrigReady2 BOOL OUT 0 0:Busy 1:New trigger possible MsgSup BOOL OUT 0 1=Message suppression activeMsgErr BOOL OUT 0 1=Message error

Communication blocks4.1 ASRcvH - H-system communication receive block

PCS 7 Industry Library for S792 Function Manual, 09/2015, A5E34977996-AA

Page 93: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionHist1Ti1 DATE_AND_TIM

EOUT 0

Hist2Ti1 DATE_AND_TIME

OUT 0

Hist3Ti1 DATE_AND_TIME

OUT 0

Hist4Ti1 DATE_AND_TIME

OUT 0

HistLTi1 DATE_AND_TIME

OUT 0

Hist1Ti2 DATE_AND_TIME

OUT 0

Hist2Ti2 DATE_AND_TIME

OUT 0

Hist3Ti2 DATE_AND_TIME

OUT 0

Hist4Ti2 DATE_AND_TIME

OUT 0

HistLTi2 DATE_AND_TIME

OUT 0

MsgLock.ST BYTE IN 0 Signal statusExtMsg1.ST BYTE IN 0 Signal statusExtMsg2.ST BYTE IN 0 Signal statusExtMsg3.ST BYTE IN 0 Signal statusExtMsg4.ST BYTE IN 0 Signal statusExtMsg5.ST BYTE IN 0 Signal statusReal01_1In.ST BYTE IN 0 Signal statusReal02_1In.ST BYTE IN 0 Signal statusReal03_1In.ST BYTE IN 0 Signal statusReal04_1In.ST BYTE IN 0 Signal statusReal05_1In.ST BYTE IN 0 Signal statusReal06_1In.ST BYTE IN 0 Signal statusReal07_1In.ST BYTE IN 0 Signal statusReal08_1In.ST BYTE IN 0 Signal statusReal09_1In.ST BYTE IN 0 Signal statusReal10_1In.ST BYTE IN 0 Signal statusReal11_1In.ST BYTE IN 0 Signal statusReal12_1In.ST BYTE IN 0 Signal statusReal13_1In.ST BYTE IN 0 Signal statusReal14_1In.ST BYTE IN 0 Signal statusReal15_1In.ST BYTE IN 0 Signal statusReal16_1In.ST BYTE IN 0 Signal statusReal17_1In.ST BYTE IN 0 Signal statusReal18_1In.ST BYTE IN 0 Signal status

Communication blocks4.1 ASRcvH - H-system communication receive block

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 93

Page 94: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionReal19_1In.ST BYTE IN 0 Signal statusReal20_1In.ST BYTE IN 0 Signal statusReal21_1In.ST BYTE IN 0 Signal statusReal22_1In.ST BYTE IN 0 Signal statusReal23_1In.ST BYTE IN 0 Signal statusReal24_1In.ST BYTE IN 0 Signal statusReal25_1In.ST BYTE IN 0 Signal statusReal26_1In.ST BYTE IN 0 Signal statusReal27_1In.ST BYTE IN 0 Signal statusReal28_1In.ST BYTE IN 0 Signal statusReal29_1In.ST BYTE IN 0 Signal statusReal30_1In.ST BYTE IN 0 Signal statusBool01_1In.ST BYTE IN 0 Signal statusBool02_1In.ST BYTE IN 0 Signal statusBool03_1In.ST BYTE IN 0 Signal statusBool04_1In.ST BYTE IN 0 Signal statusBool05_1In.ST BYTE IN 0 Signal statusBool06_1In.ST BYTE IN 0 Signal statusBool07_1In.ST BYTE IN 0 Signal statusBool08_1In.ST BYTE IN 0 Signal statusBool09_1In.ST BYTE IN 0 Signal statusBool10_1In.ST BYTE IN 0 Signal statusBool11_1In.ST BYTE IN 0 Signal statusBool12_1In.ST BYTE IN 0 Signal statusBool13_1In.ST BYTE IN 0 Signal statusBool14_1In.ST BYTE IN 0 Signal statusBool15_1In.ST BYTE IN 0 Signal statusBool16_1In.ST BYTE IN 0 Signal statusBool17_1In.ST BYTE IN 0 Signal statusBool18_1In.ST BYTE IN 0 Signal statusBool19_1In.ST BYTE IN 0 Signal statusBool20_1In.ST BYTE IN 0 Signal statusBool21_1In.ST BYTE IN 0 Signal statusBool22_1In.ST BYTE IN 0 Signal statusBool23_1In.ST BYTE IN 0 Signal statusBool24_1In.ST BYTE IN 0 Signal statusBool25_1In.ST BYTE IN 0 Signal statusBool26_1In.ST BYTE IN 0 Signal statusBool27_1In.ST BYTE IN 0 Signal statusBool28_1In.ST BYTE IN 0 Signal statusBool29_1In.ST BYTE IN 0 Signal status

Communication blocks4.1 ASRcvH - H-system communication receive block

PCS 7 Industry Library for S794 Function Manual, 09/2015, A5E34977996-AA

Page 95: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionBool30_1In.ST BYTE IN 0 Signal statusReal01_2In.ST BYTE IN 0 Signal statusReal02_2In.ST BYTE IN 0 Signal statusReal03_2In.ST BYTE IN 0 Signal statusReal04_2In.ST BYTE IN 0 Signal statusReal05_2In.ST BYTE IN 0 Signal statusReal06_2In.ST BYTE IN 0 Signal statusReal07_2In.ST BYTE IN 0 Signal statusReal08_2In.ST BYTE IN 0 Signal statusReal09_2In.ST BYTE IN 0 Signal statusReal10_2In.ST BYTE IN 0 Signal statusReal11_2In.ST BYTE IN 0 Signal statusReal12_2In.ST BYTE IN 0 Signal statusReal13_2In.ST BYTE IN 0 Signal statusReal14_2In.ST BYTE IN 0 Signal statusReal15_2In.ST BYTE IN 0 Signal statusReal16_2In.ST BYTE IN 0 Signal statusReal17_2In.ST BYTE IN 0 Signal statusReal18_2In.ST BYTE IN 0 Signal statusReal19_2In.ST BYTE IN 0 Signal statusReal20_2In.ST BYTE IN 0 Signal statusReal21_2In.ST BYTE IN 0 Signal statusReal22_2In.ST BYTE IN 0 Signal statusReal23_2In.ST BYTE IN 0 Signal statusReal24_2In.ST BYTE IN 0 Signal statusReal25_2In.ST BYTE IN 0 Signal statusReal26_2In.ST BYTE IN 0 Signal statusReal27_2In.ST BYTE IN 0 Signal statusReal28_2In.ST BYTE IN 0 Signal statusReal29_2In.ST BYTE IN 0 Signal statusReal30_2In.ST BYTE IN 0 Signal statusBool01_2In.ST BYTE IN 0 Signal statusBool02_2In.ST BYTE IN 0 Signal statusBool03_2In.ST BYTE IN 0 Signal statusBool04_2In.ST BYTE IN 0 Signal statusBool05_2In.ST BYTE IN 0 Signal statusBool06_2In.ST BYTE IN 0 Signal statusBool07_2In.ST BYTE IN 0 Signal statusBool08_2In.ST BYTE IN 0 Signal statusBool09_2In.ST BYTE IN 0 Signal statusBool10_2In.ST BYTE IN 0 Signal status

Communication blocks4.1 ASRcvH - H-system communication receive block

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 95

Page 96: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionBool11_2In.ST BYTE IN 0 Signal statusBool12_2In.ST BYTE IN 0 Signal statusBool13_2In.ST BYTE IN 0 Signal statusBool14_2In.ST BYTE IN 0 Signal statusBool15_2In.ST BYTE IN 0 Signal statusBool16_2In.ST BYTE IN 0 Signal statusBool17_2In.ST BYTE IN 0 Signal statusBool18_2In.ST BYTE IN 0 Signal statusBool19_2In.ST BYTE IN 0 Signal statusBool20_2In.ST BYTE IN 0 Signal statusBool21_2In.ST BYTE IN 0 Signal statusBool22_2In.ST BYTE IN 0 Signal statusBool23_2In.ST BYTE IN 0 Signal statusBool24_2In.ST BYTE IN 0 Signal statusBool25_2In.ST BYTE IN 0 Signal statusBool26_2In.ST BYTE IN 0 Signal statusBool27_2In.ST BYTE IN 0 Signal statusBool28_2In.ST BYTE IN 0 Signal statusBool29_2In.ST BYTE IN 0 Signal statusBool30_2In.ST BYTE IN 0 Signal statusReal01.ST BYTE OUT 0 Signal statusReal02.ST BYTE OUT 0 Signal statusReal03.ST BYTE OUT 0 Signal statusReal04.ST BYTE OUT 0 Signal statusReal05.ST BYTE OUT 0 Signal statusReal06.ST BYTE OUT 0 Signal statusReal07.ST BYTE OUT 0 Signal statusReal08.ST BYTE OUT 0 Signal statusReal09.ST BYTE OUT 0 Signal statusReal10.ST BYTE OUT 0 Signal statusReal11.ST BYTE OUT 0 Signal statusReal12.ST BYTE OUT 0 Signal statusReal13.ST BYTE OUT 0 Signal statusReal14.ST BYTE OUT 0 Signal statusReal15.ST BYTE OUT 0 Signal statusReal16.ST BYTE OUT 0 Signal statusReal17.ST BYTE OUT 0 Signal statusReal18.ST BYTE OUT 0 Signal statusReal19.ST BYTE OUT 0 Signal statusReal20.ST BYTE OUT 0 Signal statusReal21.ST BYTE OUT 0 Signal status

Communication blocks4.1 ASRcvH - H-system communication receive block

PCS 7 Industry Library for S796 Function Manual, 09/2015, A5E34977996-AA

Page 97: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionReal22.ST BYTE OUT 0 Signal statusReal23.ST BYTE OUT 0 Signal statusReal24.ST BYTE OUT 0 Signal statusReal25.ST BYTE OUT 0 Signal statusReal26.ST BYTE OUT 0 Signal statusReal27.ST BYTE OUT 0 Signal statusReal28.ST BYTE OUT 0 Signal statusReal29.ST BYTE OUT 0 Signal statusReal30.ST BYTE OUT 0 Signal statusBool01.ST BYTE OUT 0 Signal statusBool02.ST BYTE OUT 0 Signal statusBool03.ST BYTE OUT 0 Signal statusBool04.ST BYTE OUT 0 Signal statusBool05.ST BYTE OUT 0 Signal statusBool06.ST BYTE OUT 0 Signal statusBool07.ST BYTE OUT 0 Signal statusBool08.ST BYTE OUT 0 Signal statusBool09.ST BYTE OUT 0 Signal statusBool10.ST BYTE OUT 0 Signal statusBool11.ST BYTE OUT 0 Signal statusBool12.ST BYTE OUT 0 Signal statusBool13.ST BYTE OUT 0 Signal statusBool14.ST BYTE OUT 0 Signal statusBool15.ST BYTE OUT 0 Signal statusBool16.ST BYTE OUT 0 Signal statusBool17.ST BYTE OUT 0 Signal statusBool18.ST BYTE OUT 0 Signal statusBool19.ST BYTE OUT 0 Signal statusBool20.ST BYTE OUT 0 Signal statusBool21.ST BYTE OUT 0 Signal statusBool22.ST BYTE OUT 0 Signal statusBool23.ST BYTE OUT 0 Signal statusBool24.ST BYTE OUT 0 Signal statusBool25.ST BYTE OUT 0 Signal statusBool26.ST BYTE OUT 0 Signal statusBool27.ST BYTE OUT 0 Signal statusBool28.ST BYTE OUT 0 Signal statusBool29.ST BYTE OUT 0 Signal statusBool30.ST BYTE OUT 0 Signal statusMsgEvId DWORD IN 0 Message IDR_ID_1 DWORD IN 0 R_ID for connection #1

Communication blocks4.1 ASRcvH - H-system communication receive block

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 97

Page 98: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionR_ID_2 DWORD IN 0 R_ID for connection #2ID_1 WORD IN 0 ID for connection #1ID_2 WORD IN 0 ID for connection #2Dummy WORD IN 0 Hist1St1 WORD OUT 0 Hist2St1 WORD OUT 0 Hist3St1 WORD OUT 0 Hist4St1 WORD OUT 0 HistLSt1 WORD OUT 0 Hist1St2 WORD OUT 0 Hist2St2 WORD OUT 0 Hist3St2 WORD OUT 0 Hist4St2 WORD OUT 0 HistLSt2 WORD OUT 0 MsgStat WORD OUT 0 Message: STATUS outputMsgAckn WORD OUT 0 Message: ACK_STATE outputMsgLock STRUCT IN 0 1=Suppress messagesExtMsg1 STRUCT IN 0 Digital input for freely selectable message 1ExtMsg2 STRUCT IN 0 Digital input for freely selectable message 2ExtMsg3 STRUCT IN 0 Digital input for freely selectable message 3ExtMsg4 STRUCT IN 0 Digital input for freely selectable message 4ExtMsg5 STRUCT IN 0 Digital input for freely selectable message 5ExtVa103 ANY IN 0 Associated value 3 for messagesExtVa104 ANY IN 0 Associated value 4 for messagesExtVa105 ANY IN 0 Associated value 5 for messagesExtVa106 ANY IN 0 Associated value 6 for messagesExtVa107 ANY IN 0 Associated value 7 for messagesExtVa108 ANY IN 0 Associated value 8 for messagesExtVa109 ANY IN 0 Associated value 9 for messagesExtVa110 ANY IN 0 Associated value 10 for messagesReal01_1In STRUCT IN 0 Real02_1In STRUCT IN 0 Real03_1In STRUCT IN 0 Real04_1In STRUCT IN 0 Real05_1In STRUCT IN 0 Real06_1In STRUCT IN 0 Real07_1In STRUCT IN 0 Real08_1In STRUCT IN 0 Real09_1In STRUCT IN 0 Real10_1In STRUCT IN 0 Real11_1In STRUCT IN 0

Communication blocks4.1 ASRcvH - H-system communication receive block

PCS 7 Industry Library for S798 Function Manual, 09/2015, A5E34977996-AA

Page 99: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionReal12_1In STRUCT IN 0 Real13_1In STRUCT IN 0 Real14_1In STRUCT IN 0 Real15_1In STRUCT IN 0 Real16_1In STRUCT IN 0 Real17_1In STRUCT IN 0 Real18_1In STRUCT IN 0 Real19_1In STRUCT IN 0 Real20_1In STRUCT IN 0 Real21_1In STRUCT IN 0 Real22_1In STRUCT IN 0 Real23_1In STRUCT IN 0 Real24_1In STRUCT IN 0 Real25_1In STRUCT IN 0 Real26_1In STRUCT IN 0 Real27_1In STRUCT IN 0 Real28_1In STRUCT IN 0 Real29_1In STRUCT IN 0 Real30_1In STRUCT IN 0 Bool01_1In STRUCT IN 0 Bool02_1In STRUCT IN 0 Bool03_1In STRUCT IN 0 Bool04_1In STRUCT IN 0 Bool05_1In STRUCT IN 0 Bool06_1In STRUCT IN 0 Bool07_1In STRUCT IN 0 Bool08_1In STRUCT IN 0 Bool09_1In STRUCT IN 0 Bool10_1In STRUCT IN 0 Bool11_1In STRUCT IN 0 Bool12_1In STRUCT IN 0 Bool13_1In STRUCT IN 0 Bool14_1In STRUCT IN 0 Bool15_1In STRUCT IN 0 Bool16_1In STRUCT IN 0 Bool17_1In STRUCT IN 0 Bool18_1In STRUCT IN 0 Bool19_1In STRUCT IN 0 Bool20_1In STRUCT IN 0 Bool21_1In STRUCT IN 0 Bool22_1In STRUCT IN 0

Communication blocks4.1 ASRcvH - H-system communication receive block

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 99

Page 100: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionBool23_1In STRUCT IN 0 Bool24_1In STRUCT IN 0 Bool25_1In STRUCT IN 0 Bool26_1In STRUCT IN 0 Bool27_1In STRUCT IN 0 Bool28_1In STRUCT IN 0 Bool29_1In STRUCT IN 0 Bool30_1In STRUCT IN 0 Real01_2In STRUCT IN 0 Real02_2In STRUCT IN 0 Real03_2In STRUCT IN 0 Real04_2In STRUCT IN 0 Real05_2In STRUCT IN 0 Real06_2In STRUCT IN 0 Real07_2In STRUCT IN 0 Real08_2In STRUCT IN 0 Real09_2In STRUCT IN 0 Real10_2In STRUCT IN 0 Real11_2In STRUCT IN 0 Real12_2In STRUCT IN 0 Real13_2In STRUCT IN 0 Real14_2In STRUCT IN 0 Real15_2In STRUCT IN 0 Real16_2In STRUCT IN 0 Real17_2In STRUCT IN 0 Real18_2In STRUCT IN 0 Real19_2In STRUCT IN 0 Real20_2In STRUCT IN 0 Real21_2In STRUCT IN 0 Real22_2In STRUCT IN 0 Real23_2In STRUCT IN 0 Real24_2In STRUCT IN 0 Real25_2In STRUCT IN 0 Real26_2In STRUCT IN 0 Real27_2In STRUCT IN 0 Real28_2In STRUCT IN 0 Real29_2In STRUCT IN 0 Real30_2In STRUCT IN 0 Bool01_2In STRUCT IN 0 Bool02_2In STRUCT IN 0 Bool03_2In STRUCT IN 0

Communication blocks4.1 ASRcvH - H-system communication receive block

PCS 7 Industry Library for S7100 Function Manual, 09/2015, A5E34977996-AA

Page 101: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionBool04_2In STRUCT IN 0 Bool05_2In STRUCT IN 0 Bool06_2In STRUCT IN 0 Bool07_2In STRUCT IN 0 Bool08_2In STRUCT IN 0 Bool09_2In STRUCT IN 0 Bool10_2In STRUCT IN 0 Bool11_2In STRUCT IN 0 Bool12_2In STRUCT IN 0 Bool13_2In STRUCT IN 0 Bool14_2In STRUCT IN 0 Bool15_2In STRUCT IN 0 Bool16_2In STRUCT IN 0 Bool17_2In STRUCT IN 0 Bool18_2In STRUCT IN 0 Bool19_2In STRUCT IN 0 Bool20_2In STRUCT IN 0 Bool21_2In STRUCT IN 0 Bool22_2In STRUCT IN 0 Bool23_2In STRUCT IN 0 Bool24_2In STRUCT IN 0 Bool25_2In STRUCT IN 0 Bool26_2In STRUCT IN 0 Bool27_2In STRUCT IN 0 Bool28_2In STRUCT IN 0 Bool29_2In STRUCT IN 0 Bool30_2In STRUCT IN 0 Real01 STRUCT OUT 0 Real02 STRUCT OUT 0 Real03 STRUCT OUT 0 Real04 STRUCT OUT 0 Real05 STRUCT OUT 0 Real06 STRUCT OUT 0 Real07 STRUCT OUT 0 Real08 STRUCT OUT 0 Real09 STRUCT OUT 0 Real10 STRUCT OUT 0 Real11 STRUCT OUT 0 Real12 STRUCT OUT 0 Real13 STRUCT OUT 0 Real14 STRUCT OUT 0

Communication blocks4.1 ASRcvH - H-system communication receive block

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 101

Page 102: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionReal15 STRUCT OUT 0 Real16 STRUCT OUT 0 Real17 STRUCT OUT 0 Real18 STRUCT OUT 0 Real19 STRUCT OUT 0 Real20 STRUCT OUT 0 Real21 STRUCT OUT 0 Real22 STRUCT OUT 0 Real23 STRUCT OUT 0 Real24 STRUCT OUT 0 Real25 STRUCT OUT 0 Real26 STRUCT OUT 0 Real27 STRUCT OUT 0 Real28 STRUCT OUT 0 Real29 STRUCT OUT 0 Real30 STRUCT OUT 0 Bool01 STRUCT OUT 0 Bool02 STRUCT OUT 0 Bool03 STRUCT OUT 0 Bool04 STRUCT OUT 0 Bool05 STRUCT OUT 0 Bool06 STRUCT OUT 0 Bool07 STRUCT OUT 0 Bool08 STRUCT OUT 0 Bool09 STRUCT OUT 0 Bool10 STRUCT OUT 0 Bool11 STRUCT OUT 0 Bool12 STRUCT OUT 0 Bool13 STRUCT OUT 0 Bool14 STRUCT OUT 0 Bool15 STRUCT OUT 0 Bool16 STRUCT OUT 0 Bool17 STRUCT OUT 0 Bool18 STRUCT OUT 0 Bool19 STRUCT OUT 0 Bool20 STRUCT OUT 0 Bool21 STRUCT OUT 0 Bool22 STRUCT OUT 0 Bool23 STRUCT OUT 0 Bool24 STRUCT OUT 0 Bool25 STRUCT OUT 0

Communication blocks4.1 ASRcvH - H-system communication receive block

PCS 7 Industry Library for S7102 Function Manual, 09/2015, A5E34977996-AA

Page 103: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionBool26 STRUCT OUT 0 Bool27 STRUCT OUT 0 Bool28 STRUCT OUT 0 Bool29 STRUCT OUT 0 Bool30 STRUCT OUT 0

Communication blocks4.1 ASRcvH - H-system communication receive block

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 103

Page 104: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

4.2 ASSendH - H-system communication send block

4.2.1 FunctionThe block coordinates the sending of telegrams between a redundant and a non-redundant automation station via S7 communication (BSEND). Up to 30 REAL values and 30 binary values are sent. Each value also has a binary quality code which specifies whether the measured value is correct.

4.2.2 Calling OBsThis is the cyclic interrupt OB in which you install the block (e.g. OB32). Additionally in OB100 (see Startup characteristics (Page 106)).

4.2.3 Monitoring the sending procedureThe two connections to the receiving partner are monitored separately. The block generally sends simultaneously via both connections.

When an error is detected, a group message is sent to the OS. After a total failure of both connections, the associated value (quality flag) which is supplied with each value is also

Communication blocks4.2 ASSendH - H-system communication send block

PCS 7 Industry Library for S7104 Function Manual, 09/2015, A5E34977996-AA

Page 105: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

activated. A message is not generated until the SupprTime (suppression time) has expired. This parameter can be set.

The sending error is reset as soon as one or more telegrams have been successfully sent with valid data. When SupprTime < SampleTime, the error message is generated immediately.

4.2.4 Message behaviorAll messages can be locked with MsgLock. When all messages are disabled (MsgLock = TRUE) or if the number of calls due after a restart (RunUpCyc) have not yet been performed, the MsgSup output is set to TRUE and no message is sent.

Messages

Message instance

Message ID Message class Event

MsgEvId SIG 1 AS control system Fault $$BlockComment$$ Communication failure conn. 1

SIG 2 AS control system Fault $$BlockComment$$ Communication failure conn. 2

SIG 3 AS control system Fault $$BlockComment$$ Complete loss of commu‐nication

SIG 4 - $$BlockComment$$ External message 1SIG 5 - $$BlockComment$$ External message 2SIG 6 - $$BlockComment$$ External message 3SIG 7 - $$BlockComment$$ External message 4SIG 8 - $$BlockComment$$ External message 5

Associated values for message instance MsgEvId

Associated value Block parameter1 Status12 Status23 ExtVa1034 ExtVa1045 ExtVa1056 ExtVa1067 ExtVa1078 ExtVa1089 ExtVa10910 ExtVa110

The associated values (ExtVa1x) of the message block can be assigned freely.

Communication blocks4.2 ASSendH - H-system communication send block

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 105

Page 106: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

4.2.5 Startup characteristicsThe RunUpCyc parameter can be used to specify for how long (number of cycles) the messages are to be suppressed. Restart = TRUE can be used to simulate a restart.

4.2.6 Time behaviorThe block must be called using a cyclic interrupt OB. The sampling time of the block is set in the SampleTime parameter.

4.2.7 Called blocks

SFC6 RD_SINFOSFB35 ALARM_8PFB1151 IL_BSUDT1190 UDT_BoolStUDT1190 UDT_RealSt

4.2.8 Block parameters

Parameter Type IN/OUT

OCM Description

SupprTime REAL IN Suppression time [s]RunUpCyc INT IN Number of startup cyclesEN BOOL IN SendEn BOOL IN 1:Send, 0:Don't sendFirstVar BOOL IN Pointer initial value send dataLastVar BOOL IN End delimiter of send dataSampleTime REAL IN Sampling time in [s]Real01.Value REAL IN ValueReal02.Value REAL IN ValueReal03.Value REAL IN ValueReal04.Value REAL IN ValueReal05.Value REAL IN ValueReal06.Value REAL IN ValueReal07.Value REAL IN ValueReal08.Value REAL IN ValueReal09.Value REAL IN ValueReal10.Value REAL IN ValueReal11.Value REAL IN Value

Communication blocks4.2 ASSendH - H-system communication send block

PCS 7 Industry Library for S7106 Function Manual, 09/2015, A5E34977996-AA

Page 107: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT

OCM Description

Real12.Value REAL IN ValueReal13.Value REAL IN ValueReal14.Value REAL IN ValueReal15.Value REAL IN ValueReal16.Value REAL IN ValueReal17.Value REAL IN ValueReal18.Value REAL IN ValueReal19.Value REAL IN ValueReal20.Value REAL IN ValueReal21.Value REAL IN ValueReal22.Value REAL IN ValueReal23.Value REAL IN ValueReal24.Value REAL IN ValueReal25.Value REAL IN ValueReal26.Value REAL IN ValueReal27.Value REAL IN ValueReal28.Value REAL IN ValueReal29.Value REAL IN ValueReal30.Value REAL IN ValueRestart BOOL IN ValueBool01.Value BOOL IN ValueBool02.Value BOOL IN ValueBool03.Value BOOL IN ValueBool04.Value BOOL IN ValueBool05.Value BOOL IN ValueBool06.Value BOOL IN ValueBool07.Value BOOL IN ValueBool08.Value BOOL IN ValueBool09.Value BOOL IN ValueBool10.Value BOOL IN ValueBool11.Value BOOL IN ValueBool12.Value BOOL IN ValueBool13.Value BOOL IN ValueBool14.Value BOOL IN ValueBool15.Value BOOL IN ValueBool16.Value BOOL IN ValueBool17.Value BOOL IN ValueBool18.Value BOOL IN ValueBool19.Value BOOL IN ValueBool20.Value BOOL IN Value

Communication blocks4.2 ASSendH - H-system communication send block

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 107

Page 108: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT

OCM Description

Bool21.Value BOOL IN ValueBool22.Value BOOL IN ValueBool23.Value BOOL IN ValueBool24.Value BOOL IN ValueBool25.Value BOOL IN ValueBool26.Value BOOL IN ValueBool27.Value BOOL IN ValueBool28.Value BOOL IN ValueBool29.Value BOOL IN ValueBool30.Value BOOL IN ValueMsgLock.Value BOOL IN ValueMsgAckEn BOOL IN 1=Evaluate message acknowledgment statusExtMsg1.Value BOOL IN ValueExtMsg2.Value BOOL IN ValueExtMsg3.Value BOOL IN ValueExtMsg4.Value BOOL IN ValueExtMsg5.Value BOOL IN ValueResHist1 BOOL IN Reset the history conn. #1ResHist2 BOOL IN Reset the history conn. #2ENO BOOL OUT IntCnt1 DINT OUT Integration of sent data conn. #1ErrCnt1 DINT OUT Counter for errors conn. #1IntCnt2 DINT OUT Integration of sent data conn. #2ErrCnt2 DINT OUT Counter for errors conn. #2Length1 INT OUT Length of the sent data conn. #1Length2 INT OUT Length of the sent data conn. #2Err1Out BOOL OUT Error during data transmission (static) conn. #1Err2Out BOOL OUT Error during data transmission (static) conn. #2Status1 INT OUT Status (static) conn. #1Status2 INT OUT Status (static) conn. #2Ready1 BOOL OUT 0: Order not started or already running

1: Order completed successfully conn. #1Ready2 BOOL OUT 0: Order not started or already running

1: Order completed successfully conn. #2MsgSup BOOL OUT 1=Message suppression activeMsgErr BOOL OUT Message error (ERROR output of ALARM_8P)Hist1Ti1 DATE_AND_TIM

EOUT

Hist2Ti1 DATE_AND_TIME

OUT

Hist3Ti1 DATE_AND_TIME

OUT

Communication blocks4.2 ASSendH - H-system communication send block

PCS 7 Industry Library for S7108 Function Manual, 09/2015, A5E34977996-AA

Page 109: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT

OCM Description

Hist4Ti1 DATE_AND_TIME

OUT

HistLTi1 DATE_AND_TIME

OUT

Hist1Ti2 DATE_AND_TIME

OUT

Hist2Ti2 DATE_AND_TIME

OUT

Hist3Ti2 DATE_AND_TIME

OUT

Hist4Ti2 DATE_AND_TIME

OUT

HistLTi2 DATE_AND_TIME

OUT

Real01.ST BYTE IN Signal statusReal02.ST BYTE IN Signal statusReal03.ST BYTE IN Signal statusReal04.ST BYTE IN Signal statusReal05.ST BYTE IN Signal statusReal06.ST BYTE IN Signal statusReal07.ST BYTE IN Signal statusReal08.ST BYTE IN Signal statusReal09.ST BYTE IN Signal statusReal10.ST BYTE IN Signal statusReal11.ST BYTE IN Signal statusReal12.ST BYTE IN Signal statusReal13.ST BYTE IN Signal statusReal14.ST BYTE IN Signal statusReal15.ST BYTE IN Signal statusReal16.ST BYTE IN Signal statusReal17.ST BYTE IN Signal statusReal18.ST BYTE IN Signal statusReal19.ST BYTE IN Signal statusReal20.ST BYTE IN Signal statusReal21.ST BYTE IN Signal statusReal22.ST BYTE IN Signal statusReal23.ST BYTE IN Signal statusReal24.ST BYTE IN Signal statusReal25.ST BYTE IN Signal statusReal26.ST BYTE IN Signal statusReal27.ST BYTE IN Signal statusReal28.ST BYTE IN Signal status

Communication blocks4.2 ASSendH - H-system communication send block

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 109

Page 110: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT

OCM Description

Real29.ST BYTE IN Signal statusReal30.ST BYTE IN Signal statusBool01.ST BYTE IN Signal statusBool02.ST BYTE IN Signal statusBool03.ST BYTE IN Signal statusBool04.ST BYTE IN Signal statusBool05.ST BYTE IN Signal statusBool06.ST BYTE IN Signal statusBool07.ST BYTE IN Signal statusBool08.ST BYTE IN Signal statusBool09.ST BYTE IN Signal statusBool10.ST BYTE IN Signal statusBool11.ST BYTE IN Signal statusBool12.ST BYTE IN Signal statusBool13.ST BYTE IN Signal statusBool14.ST BYTE IN Signal statusBool15.ST BYTE IN Signal statusBool16.ST BYTE IN Signal statusBool17.ST BYTE IN Signal statusBool18.ST BYTE IN Signal statusBool19.ST BYTE IN Signal statusBool20.ST BYTE IN Signal statusBool21.ST BYTE IN Signal statusBool22.ST BYTE IN Signal statusBool23.ST BYTE IN Signal statusBool24.ST BYTE IN Signal statusBool25.ST BYTE IN Signal statusBool26.ST BYTE IN Signal statusBool27.ST BYTE IN Signal statusBool28.ST BYTE IN Signal statusBool29.ST BYTE IN Signal statusBool30.ST BYTE IN Signal statusMsgLock.ST BYTE IN Signal statusExtMsg1.ST BYTE IN Signal statusExtMsg2.ST BYTE IN Signal statusExtMsg3.ST BYTE IN Signal statusExtMsg4.ST BYTE IN Signal statusExtMsg5.ST BYTE IN Signal statusSendMode BYTE IN 0=Send once (pos.edge), 1:Send cyclic, 2-255: Send

every nth cycleMsgEvId DWORD IN Message ID

Communication blocks4.2 ASSendH - H-system communication send block

PCS 7 Industry Library for S7110 Function Manual, 09/2015, A5E34977996-AA

Page 111: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT

OCM Description

R_ID_1 DWORD IN R_ID for connection #1R_ID_2 DWORD IN R_ID for connection #2ID_1 WORD IN ID for connection #1ID_2 WORD IN ID for connection #2Hist1St1 WORD OUT Hist2St1 WORD OUT Hist3St1 WORD OUT Hist4St1 WORD OUT HistLSt1 WORD OUT Hist1St2 WORD OUT Hist2St2 WORD OUT Hist3St2 WORD OUT Hist4St2 WORD OUT HistLSt2 WORD OUT MsgStat WORD OUT Message: STATUS outputMsgAckn WORD OUT Message: ACK_STATE outputReal01 STRUCT IN Real02 STRUCT IN Real03 STRUCT IN Real04 STRUCT IN Real05 STRUCT IN Real06 STRUCT IN Real07 STRUCT IN Real08 STRUCT IN Real09 STRUCT IN Real10 STRUCT IN Real11 STRUCT IN Real12 STRUCT IN Real13 STRUCT IN Real14 STRUCT IN Real15 STRUCT IN Real16 STRUCT IN Real17 STRUCT IN Real18 STRUCT IN Real19 STRUCT IN Real20 STRUCT IN Real21 STRUCT IN Real22 STRUCT IN Real23 STRUCT IN Real24 STRUCT IN

Communication blocks4.2 ASSendH - H-system communication send block

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 111

Page 112: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT

OCM Description

Real25 STRUCT IN Real26 STRUCT IN Real27 STRUCT IN Real28 STRUCT IN Real29 STRUCT IN Real30 STRUCT IN Bool01 STRUCT IN Bool02 STRUCT IN Bool03 STRUCT IN Bool04 STRUCT IN Bool05 STRUCT IN Bool06 STRUCT IN Bool07 STRUCT IN Bool08 STRUCT IN Bool09 STRUCT IN Bool10 STRUCT IN Bool11 STRUCT IN Bool12 STRUCT IN Bool13 STRUCT IN Bool14 STRUCT IN Bool15 STRUCT IN Bool16 STRUCT IN Bool17 STRUCT IN Bool18 STRUCT IN Bool19 STRUCT IN Bool20 STRUCT IN Bool21 STRUCT IN Bool22 STRUCT IN Bool23 STRUCT IN Bool24 STRUCT IN Bool25 STRUCT IN Bool26 STRUCT IN Bool27 STRUCT IN Bool28 STRUCT IN Bool29 STRUCT IN Bool30 STRUCT IN MsgLock STRUCT IN 1=Suppress messagesExtMsg1 STRUCT IN Digital input for freely selectable message 1ExtMsg2 STRUCT IN Digital input for freely selectable message 2ExtMsg3 STRUCT IN Digital input for freely selectable message 3

Communication blocks4.2 ASSendH - H-system communication send block

PCS 7 Industry Library for S7112 Function Manual, 09/2015, A5E34977996-AA

Page 113: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT

OCM Description

ExtMsg4 STRUCT IN Digital input for freely selectable message 4ExtMsg5 STRUCT IN Digital input for freely selectable message 5ExtVa103 ANY IN Associated value 3 for messagesExtVa104 ANY IN Associated value 4 for messagesExtVa105 ANY IN Associated value 5 for messagesExtVa106 ANY IN Associated value 6 for messagesExtVa107 ANY IN Associated value 7 for messagesExtVa108 ANY IN Associated value 8 for messagesExtVa109 ANY IN Associated value 9 for messagesExtVa110 ANY IN Associated value 10 for messages

Communication blocks4.2 ASSendH - H-system communication send block

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 113

Page 114: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

4.3 S7Get - AS-AS communication, read data

4.3.1 FunctionThe block reads data via S7 communication (GET) from an additional S7 station. During communication between S7-4xx and S7-3xx, up to 222 bytes can be read from one DB.

The block is designed for use in S7-4xx CPUs.

4.3.2 OBs to be calledThis is the cyclic interrupt OB in which you install the block (e.g. OB32). Additionally in OB100 (see Startup characteristics (Page 115)).

4.3.3 Time behaviorThe block must be called using a cyclic interrupt OB. The sampling time of the block is set in the SAMPLE_T parameter.

4.3.4 Monitoring of the communication procedureThe connection to the partner station is monitored. When an error is detected (error affecting SFC GET or no status change in the monitoring input LIFE_BIT), a group message is sent to the OS. A message is not generated until the TIME_MON (suppression time) has expired. The TIME_MON parameter can be set. The error is reset once at least one telegram has been sent with valid data and life bit monitoring is running without errors.

When MONTIME < SAMPLE_T, the error message is generated immediately.

Communication blocks4.3 S7Get - AS-AS communication, read data

PCS 7 Industry Library for S7114 Function Manual, 09/2015, A5E34977996-AA

Page 115: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

4.3.5 Message behaviorAll messages can be locked with L_MSGLCK. When all messages are locked (L_MSGLCK = TRUE) or if the number of calls due after a restart (RUNUPCYC) have not yet been performed, the QMSG_SUP output is set to TRUE and no message is sent.

The QERR output and the message are output delayed by the time "SUPPTIME". If communication is "OK" and the time "SUPPTIME" has expired, the output and the message change to the OK state.

Assignment of message text and message class to the block parameters

Message number

Block parame‐ter

Default message text Message class

1 QERR Communication disrupted AS control system Fault

4.3.6 Startup characteristicsThe RUNUPCYC parameter can be used to specify for how long (number of cycles) the messages are to be suppressed.

RESTART = TRUE can be used to simulate a restart.

4.3.7 Called blocks

SFC6 RD_SINFOSFB14 GETSFC107 ALARM_DQSFC19 ALARM_SC

4.3.8 Block parameters

Parameter Type IN/OUT

OCM Description

EN BOOL IN 0 RESTART BOOL IN 0 1=Manual startupSTART BOOL IN 0 1=Start readingKOM_ID INT IN 0 ID for connectionDBNO_SRC INT IN 0 No. of source data blockADDR_SRC DWORD IN 0 Start address of source dataDBNO_DST INT IN 0 No. of destination data block ADDR_DST DWORD IN 0 Start address of destination data

Communication blocks4.3 S7Get - AS-AS communication, read data

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 115

Page 116: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT

OCM Description

LENGTH INT IN 0 Length of data in BYTESL_MSGLCK BOOL IN 0 Interconnectable input for message suppression

1=activeMONITOR BOOL IN 0 1=Monitoring activeTIME_MON REAL IN 0 Monitoring time in [s]LIFE_BIT BOOL IN 0 1=Communication failureEN_LIFE BOOL IN 0 1=Enable LIFE_BITSAMPLE_T REAL IN 0 Sampling time in [s]SUPPTIME REAL IN 0 Suppression time [s]MSG_EVID DWORD IN 0 Message IDRUNUPCYC INT IN 0 Number of startup cyclesCMP_ID DWORD IN 0 Area codeENO BOOL OUT 0 QNDR BOOL OUT 0 1=New data receivedQERR BOOL OUT 1 1=Group errorQLIFE_BIT BOOL OUT 0 1=Communication failureQSTATUS DWORD OUT 0 Status displayQMSG_ERR BOOL OUT 0 1=Message errorQMSGLCK BOOL OUT 1 1=Message lockedQMSG_SUP BOOL OUT 1 1=Message suppression activeMSG_STAT WORD OUT 0 Message: STATUS outputMSG_ACK BOOL OUT 0 Message: ACK_STATE output

Communication blocks4.3 S7Get - AS-AS communication, read data

PCS 7 Industry Library for S7116 Function Manual, 09/2015, A5E34977996-AA

Page 117: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

4.4 S7Put - AS-AS communication, write data

4.4.1 FunctionThe S7Put block writes data via S7 communication (PUT) to an additional S7 station. During communication between S7-4xx and S7-3xx, up to 212 bytes can be written to one DB.

The block is designed for use in S7-4xx CPUs.

4.4.2 Calling OBsThis is the cyclic interrupt OB in which you install the block (e.g. OB32). Additionally in OB100 (see Startup characteristics (Page 118)).

4.4.3 Time behaviorThe block must be called using a cyclic interrupt OB. The sampling time of the block is set in the SAMPLE_T parameter.

4.4.4 Monitoring of the communication procedureThe connection to the partner station is monitored. When an error is detected, a group message is sent to the OS.

The following types of error can occur:

● SFC PUT error

● LIFE_BIT monitoring input does not change state

Communication blocks4.4 S7Put - AS-AS communication, write data

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 117

Page 118: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

A message is not generated until TIME_MON (configurable monitoring time) has elapsed.

When both conditions are met, the error is reset:

● At least one telegram is sent with valid data

● Life bit monitoring is running without errors

If MONTIME < SAMPLE_T, the error message is generated immediately.

4.4.5 Message behaviorAll messages can be locked with L_MSGLCK.

If at least one of the following conditions is true, the QMSG_SUP output is set to TRUE and no messages are sent.

● All messages are locked (L_MSGLCK = TRUE)

● The number of calls due after a restart (RUNUPCYC) have not yet been performed

The QERR output and the message are output delayed by the time "SUPPTIME". If communication is "OK" and the time "SUPPTIME" has expired, the output and the message change to the OK state.

Assignment of message text and message class to the block parameters

Message number

Block parame‐ter

Default message text Message class

1 QERR Communication disrupted AS control system Fault

4.4.6 Startup characteristicsThe RUNUPCYC parameter can be used to specify for how long (number of cycles) the messages are to be suppressed.

RESTART = TRUE can be used to simulate a restart.

4.4.7 Called blocks

SFC6 RD_SINFOSFB15 PUTSFC107 ALARM_DQSFC19 ALARM_SC

Communication blocks4.4 S7Put - AS-AS communication, write data

PCS 7 Industry Library for S7118 Function Manual, 09/2015, A5E34977996-AA

Page 119: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

4.4.8 Block parameters

Parameter Type IN/OUT

OCM Description

EN BOOL IN 0 RESTART BOOL IN 0 Manual startupSTART BOOL IN 0 1=Start writingKOM_ID INT IN 0 ID for connectionDBNO_SRC INT IN 0 No. of source data blockADDR_SRC DWORD IN 0 Start address of source dataDBNO_DST INT IN 0 No. of destination data blockADDR_DST DWORD IN 0 Start address of destination dataLENGTH INT IN 0 Length of data in BYTES L_MSGLCK BOOL IN 0 Interconnectable input for message suppression 1=activeMONITOR BOOL IN 0 1=Monitoring activeTIME_MON REAL IN 0 Monitoring time in [s]LIFE_BIT BOOL IN 0 1=Communication failureEN_LIFE BOOL IN 0 1=Enable LIFE_BITSAMPLE_T REAL IN 0 Sampling time in [s]SUPPTIME REAL IN 0 Suppression time [s]MSG_EVID DWORD IN 0 Message IDRUNUPCYC INT IN 0 Number of startup cycles with message suppression CMP_ID DWORD IN 0 Area codeENO BOOL OUT 0 QDONE BOOL OUT 0 1=Job has been executedQERR BOOL OUT 1 1=Group errorQSTOERUNG BOOL OUT 1 1=Monitoring errorQLIFE_BIT BOOL OUT 0 1=Communication failureQSTATUS DWORD OUT 0 Status displayQMSG_ERR BOOL OUT 0 1=Message errorQMSGLCK BOOL OUT 1 1=Message lockedQMSG_SUP BOOL OUT 1 1=Message suppression active MSG_STAT WORD OUT 0 Message: STATUS outputMSG_ACK BOOL OUT 0 Message: ACK_STATE output

Communication blocks4.4 S7Put - AS-AS communication, write data

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 119

Page 120: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Communication blocks4.4 S7Put - AS-AS communication, write data

PCS 7 Industry Library for S7120 Function Manual, 09/2015, A5E34977996-AA

Page 121: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Logic blocks 55.1 S7SelB - BOOL selector

5.1.1 FunctionThe block selects one of two BOOL values depending on an input.

5.1.2 Calling OBsThis is the cyclic interrupt OB in which you install the block (e.g. OB32).

5.1.3 Block parameters

Parameter Type IN/OUT OCM DescriptionEN BOOL IN 0 K BOOL IN 0 Selector: 0=IN0, 1=IN1IN0 BOOL IN 0 Input 0IN1 BOOL IN 0 Input 1ENO BOOL OUT 0 OUT BOOL OUT 0 Output value

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 121

Page 122: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

5.2 S7SelI - INTEGER selector

5.2.1 FunctionThe block selects one of two integer values depending on an input.

5.2.2 Calling OBsThis is the cyclic interrupt OB in which you install the block (e.g. OB32).

5.2.3 Block parameters

Parameter Type IN/OUT OCM DescriptionEN BOOL IN 0 K BOOL IN 0 Selector: 0=IN0, 1=IN1IN0 INT IN 0 Input 0IN1 INT IN 0 Input 1ENO BOOL OUT 0 OUT INT OUT 0 Output value

Logic blocks5.2 S7SelI - INTEGER selector

PCS 7 Industry Library for S7122 Function Manual, 09/2015, A5E34977996-AA

Page 123: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

5.3 S7SelR - REAL selector

5.3.1 FunctionThe block selects one of two REAL values depending on an input.

5.3.2 Calling OBsThis is the cyclic interrupt OB in which you install the block (e.g. OB32).

5.3.3 Block parameters

Parameter Type IN/OUT OCM DescriptionEN BOOL IN 0 K BOOL IN 0 Selector: 0=IN0, 1=IN1IN0 REAL IN 0 Input 0IN1 REAL IN 0 Input 1ENO BOOL OUT 0 OUT REAL OUT 0 Output value

Logic blocks5.3 S7SelR - REAL selector

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 123

Page 124: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Logic blocks5.3 S7SelR - REAL selector

PCS 7 Industry Library for S7124 Function Manual, 09/2015, A5E34977996-AA

Page 125: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Mathematical blocks 66.1 S7AccuS - Accumulated measured value with specific heat

6.1.1 FunctionThe block is used to integrate a measured value in two separate registers. A distinction can be made between a counting pulse or a continuous value during accumulation. The measured value can be multiplied with a specific factor (e.g. specific heat) for the purpose of accumulation.

6.1.2 Calling OBsThis is the cyclic interrupt OB in which you install the block (e.g. OB32). Additionally in OB100 (see Startup characteristics (Page 125)).

6.1.3 Time behaviorThe block must be called using a cyclic interrupt OB. The sampling time of the block is set in the SAMPLE_T parameter.

6.1.4 Operating modesA distinction is made between two different operating modes at the MODE parameter:

● Mode = 0: Measured value as a continuous valueThe PV input specifies the process value as a continuous quantity value. The process value is recorded in the ACCU_T sampling time, weighted using the BASE_PV parameter, and then accumulated.

● Mode = 1: Measured value as pulse inputThe process value is transferred to the PULSE parameter as a pulse, weighted using the BASE_PU parameter, and then accumulated.

6.1.5 Startup characteristicsDuring startup, the counter states are saved via internal variables. Startup can be simulated manually using the RESTART input.

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 125

Page 126: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

6.1.6 IntegrateThe measured value (MODE=0:=PV; MODE=1:=PULSE) is accumulated in two counter registers:

● QACCU_1

● QACCU_2.

The following parameters must be configured for this:

MODE = 0The measured value is transferred at the PV input. The ACCU_T parameter specifies the integration sampling cycles in seconds.

The PV measured value is weighted at the BASE_PV parameter. It is essential to ensure that the ACCU_T and BASE_PV parameters have the same unit (e.g., BASE_PV = 3600 must be specified for a measured value with the unit m³/h and an ACCU_T of 1 second).

A deadband can be configured at the DEADB parameter. When PV < DEADB, the deadband is not included in the integration. In this case, the BASE_PU parameter is not relevant. The measured value is calculated with the following formula:

QACCU_1 := QACCU_1 + PV*SW*ACCU_T/BASE_PV

MODE = 1The measured value is transferred to the PULSE input as a pulse.

The pulse is weighted at the BASE_PU parameter. In this case, the BASE_PV, ACCU_T parameter is not relevant.

Reset counterThe counter states are reset via the faceplate and via the interconnectable inputs L_RESET1/L_RESET2.

The DATE_AC1/DATE_AC2 parameters each specify the time stamp for the reset operations in the format [yy/mm/dd_hh].

6.1.7 Called blocks

SFC6 RD_SINFOSFC67 S7ASTIMEBCD

Mathematical blocks6.1 S7AccuS - Accumulated measured value with specific heat

PCS 7 Industry Library for S7126 Function Manual, 09/2015, A5E34977996-AA

Page 127: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

6.1.8 Block parameters

Parameter Type IN/OUT OCM DescriptionEN BOOL IN 0 RESTART BOOL IN 0 Manual startupL_RESET1 BOOL IN 0 Interconnectable input reset counter #1L_RESET2 BOOL IN 0 Interconnectable input reset counter #2SAMPLE_T REAL IN 0 Sampling time in [s]ACCU_T REAL IN 0 Sample time for accumulation [s]MODE BOOL IN 0 Integration mode - 0:Level,;1:PulsePULSE BOOL IN 0 Pulse input process valuePV REAL IN 0 Integration input levelSW REAL IN 1 Specific heatDEADB REAL IN 0 Deadband for accumulatingBASE_PV REAL IN 0 Factor for PVBASE_PU REAL IN 0 Value/Pulse BA_EN BOOL IN 1 Operator enableOCCUPIED BOOL IN 1 1 = In use by a batchBA_ID DWORD IN 1 Current batch ID (number)BA_NA STRING[3

2]IN 1 Current batch name

STEP_NO DWORD IN 1 Batch step numberPERMIS INT IN 1 I/O for operator authorizationsACCU_1 REAL IN_OUT 0 Accumulated counter #1ACCU_2 REAL IN_OUT 0 Accumulated counter #2RESET_1 BOOL IN_OUT 1 Operator input reset counter #1RESET_2 BOOL IN_OUT 1 Operator input reset counter #2DATE_AC1 DWORD IN_OUT 1 Date counter #1 last reset [yy/mm/dd_hh]DATE_AC2 DWORD IN_OUT 1 Date counter #2 last reset [yy/mm/dd_hh]ENO BOOL OUT 0 QACCU_1 REAL OUT 1 Interconnectable accum. counter #1QACCU_2 REAL OUT 1 Interconnectable accum. counter #2QACCU_DI1 DINT OUT 1 Interconnectable accum. counter #1 (DINT)QACCU_DI2 DINT OUT 1 Interconnectable accum. counter #2 (DINT)QPAR_ERR BOOL OUT 0 Error: BASE_PV parameter = 0QSW_ERR BOOL OUT 0 Error: SW parameter <= 0

Mathematical blocks6.1 S7AccuS - Accumulated measured value with specific heat

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 127

Page 128: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

6.1.9 Operator control & monitoring

6.1.9.1 Views of S7AccuSThe block provides the following views:

● Standard view

● Batch view

6.1.9.2 Standard view of S7AccuS

1

3

5

2

4

(1) Counter 1

● Total 1

(2) Reset

(3) Counter 2

● Total 2

(4) Reset

(5) LocalOS

6.1.9.3 Block icons of S7AccuS

Mathematical blocks6.1 S7AccuS - Accumulated measured value with specific heat

PCS 7 Industry Library for S7128 Function Manual, 09/2015, A5E34977996-AA

Page 129: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

6.2 S7Average - Generation of mean/minimum/maximum value

6.2.1 FunctionThe block determines the mean value of up to 8 REAL type measured values. The Ux_USED inputs are used to configure which of the 8 measured Ux values are connected.

6.2.2 OBs to be calledThis is the cyclic interrupt OB in which you install the block (e.g. OB32). Additionally in OB100 (see Startup characteristics (Page 130)).

6.2.3 Time behaviorThe block must be called using a cyclic interrupt OB. The sampling time of the block is set in the SAMPLE_T parameter.

6.2.4 How it worksUnder the following conditions, a measured value Ux is not used to generate the mean value.

● Measured value Ux is identified as unused with the input Ux_USED = FALSE.

● Measured value Ux is not enabled with the input Ux_EN = FALSE

● Measured value Ux is identified as faulty with the input Ux_CSF = TRUE

● Measured value Ux deviates from the mean value calculated by more than the value configured at the PL_DIFF output and a plausibility check has been selected with PL_CH_EN = TRUE

6.2.5 Plausibility checkHereinafter, a measured value Ux is considered valid if:

● It is used (Ux_USED = TRUE)

● It is enabled (Ux_EN = TRUE)

● It is not faulty (Ux_CSF = FALSE)

● It is plausible

Only the values which are used, enabled, and not faulty are checked for plausibility. Values that are not used or have not been enabled are always identified as plausible. All measured

Mathematical blocks6.2 S7Average - Generation of mean/minimum/maximum value

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 129

Page 130: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

values are also marked as plausible if the plausibility check has been deselected with PL_CH_EN = FALSE.

If one or several measured values are not plausible following generation of the mean value, the value which deviates the most is initially marked as implausible. A new mean value is determined without the implausible values and the plausibility of the remaining measured values is checked again. When only two measured values are left to generate the mean value, they are only considered plausible if the difference between both measured values is less than the plausibility difference (PL_DIFF). If both values are implausible, mean value, minimum value, and maximum value are generated from the two (implausible) values and output until the message has been sent to WinCC. The values which were valid last are then output.

The maximum (QMAX) and the minimum (QMIN) are determined from all valid (used, enabled, not faulty, and plausible) values.

If no used, enabled, and intact measured values are available or the two remaining values are implausible, the values which were valid last are output at outputs V, QMIN, and QMAX. The QERR output is also set.

If only one measured value is used, enabled, and intact, the value is considered plausible and generates the mean, maximum, and minimum values.

6.2.6 Message behaviorA value must be implausible at least for the time PL_MSG before the message is sent to WinCC. Time measurement begins again if the value has been recognized as plausible during a block call.

Assignment of message text and message class to the block parameters

Message number

Block parame‐ter

Default message text Message class

1 - Value x not plausible AS control system Fault

The messages can be locked centrally with MSG_LOCK (OS operation) or L_MSGLCK (program).

QMSG_SUP is set if the RUNUPCYC cycles have not finished running since the restart, MSG_LOCK or L_MSGLCK = TRUE.

6.2.7 Startup characteristicsDuring startup, the following initializations are performed.

Initialization MeaningV = 0 Mean value = 0QERR = 0 At least one measured value is used, enabled, and not faulty.QUx_STAT = 0 All values connected, enabled, correct, and plausible

A manual new start is triggered as long as the RESTART input is set to TRUE.

Mathematical blocks6.2 S7Average - Generation of mean/minimum/maximum value

PCS 7 Industry Library for S7130 Function Manual, 09/2015, A5E34977996-AA

Page 131: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

6.2.8 Called blocks

SFC6 RD_SINFOSFC107 ALARM_DQSFC19 ALARM_SC

6.2.9 Block parameters

Block I/Os

Parameter Type IN/OUT OCM DescriptionEN BOOL IN 0 RUNUPCYC INT IN 0 Number of startup cyclesSAMPLE_T REAL IN 0 Sampling time in [s]RESTART BOOL IN 0 Manual startupU0_USED BOOL IN 0 Process value 0 usedU1_USED BOOL IN 0 Process value 1 usedU2_USED BOOL IN 0 Process value 2 usedU3_USED BOOL IN 0 Process value 3 usedU4_USED BOOL IN 0 Process value 4 usedU5_USED BOOL IN 0 Process value 5 usedU6_USED BOOL IN 0 Process value 6 usedU7_USED BOOL IN 0 Process value 7 usedU0 REAL IN 1 Process value 0U1 REAL IN 1 Process value 1U2 REAL IN 1 Process value 2U3 REAL IN 1 Process value 3U4 REAL IN 1 Process value 4U5 REAL IN 1 Process value 5U6 REAL IN 1 Process value 6U7 REAL IN 1 Process value 7U0_CSF BOOL IN 0 1= Process value 0 faultyU1_CSF BOOL IN 0 1= Process value 1 faultyU2_CSF BOOL IN 0 1= Process value 2 faultyU3_CSF BOOL IN 0 1= Process value 3 faultyU4_CSF BOOL IN 0 1= Process value 4 faultyU5_CSF BOOL IN 0 1= Process value 5 faultyU6_CSF BOOL IN 0 1= Process value 6 faultyU7_CSF BOOL IN 0 1= Process value 7 faultyMSG_LOCK BOOL IN 1 1=Lock messages

Mathematical blocks6.2 S7Average - Generation of mean/minimum/maximum value

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 131

Page 132: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionL_MSGLCK BOOL IN 1 Interconnectable Lock messagesMSG_EVID DWORD IN 0 Message IDAUX REAL IN 1 Associated valueBA_EN BOOL IN 1 1=Batch enableOCCUPIED BOOL IN 1 1 = In use by a batchBA_ID DWORD IN 1 Batch IDBA_NA STRING[32] IN 1 Batch nameSTEP_NO DWORD IN 1 Batch step numberCMP_ID DWORD IN 0 Area codePERMIS INT IN 1 Switching authorityU0_EN BOOL IN_OUT 1 Enable process value 0U1_EN BOOL IN_OUT 1 Enable process value 1U2_EN BOOL IN_OUT 1 Enable process value 2U3_EN BOOL IN_OUT 1 Enable process value 3U4_EN BOOL IN_OUT 1 Enable process value 4U5_EN BOOL IN_OUT 1 Enable process value 5U6_EN BOOL IN_OUT 1 Enable process value 6U7_EN BOOL IN_OUT 1 Enable process value 7PL_CH_EN BOOL IN_OUT 1 Enable plausibility check PL_DIFF REAL IN_OUT 1 Difference for value not plausiblePL_MSG REAL IN_OUT 1 Delay time in sec for messagesENO BOOL OUT 0 V REAL OUT 1 Mean valueQMAX REAL OUT 1 Maximum QMIN REAL OUT 1 Minimum QERR BOOL OUT 1 All process values not used, not enabled, or faultyQU0_STAT BYTE OUT 1 Status of U0QU1_STAT BYTE OUT 1 Status of U1QU2_STAT BYTE OUT 1 Status of U2QU3_STAT BYTE OUT 1 Status of U3QU4_STAT BYTE OUT 1 Status of U4QU5_STAT BYTE OUT 1 Status of U5QU6_STAT BYTE OUT 1 Status of U6QU7_STAT BYTE OUT 1 Status of U7QMSG_SUP BOOL OUT 1 1=Message suppression activeQMSG_ERR BOOL OUT 0 1=Message errorMSG_STAT WORD OUT 0 Message: STATUS outputMSG_ACK BOOL OUT 0 Message: ACK_STATE output

Mathematical blocks6.2 S7Average - Generation of mean/minimum/maximum value

PCS 7 Industry Library for S7132 Function Manual, 09/2015, A5E34977996-AA

Page 133: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Status word assignment for QUx_STAT parameter

Status bit ParameterBit 0 Measured value is not plausibleBit 1 Measured value is faulty due to external error (CSF)Bit 2 Measured value is not enabledBit 3 Measured value is not connected

Bit 4 – Bit 7 -

6.2.10 Operator control & monitoring

6.2.10.1 Views of S7AverageThe block provides the following views:

● Standard view

● Message view

● Parameter view

● Batch view

6.2.10.2 Standard view of S7Average

2

1

3

(1) LocalOS

Mathematical blocks6.2 S7Average - Generation of mean/minimum/maximum value

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 133

Page 134: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

(2) Displays for activity, measured values, units, and temperatures

● You can enable or disable the activity of each line by selecting or deselecting the check box.

● The colored lines indicate the following states:

– Green = OK

– Red = Faulty

– Gray = Disabled

(3) Message lock enabled

6.2.10.3 Parameter view of S7Average

1

(1) Plausibility

● Plausibility difference

● Suppression time

● Plausibility check

6.2.10.4 Block icon of S7Average

Mathematical blocks6.2 S7Average - Generation of mean/minimum/maximum value

PCS 7 Industry Library for S7134 Function Manual, 09/2015, A5E34977996-AA

Page 135: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Motor and valve blocks 77.1 General information about motor blocks - Description of the general

functions of all motor blocks

7.1.1 General information about motor blocksThe following description applies to the motor blocks S7MotSpdC, S7Mot, S7MotSpd, and S7MotRev. The individual descriptions outline exactly how inputs and outputs function.

The inputs for switching the motor on and off in manual operating mode are called manual control inputs. These inputs are listed below.

Block Parameter DescriptionS7MotSpdC, S7Mot MAN_ON 0 = Switch off motor

1 = Switch on motorS7MotSpd SP1_ON Switch on motor at speed 1

SP2_ON Switch on motor at speed 2MOT_OFF Switch off motor

S7MotRev REV_ON Switch on motor in reverseFORW_SON Switch on motor in forwardMOT_OFF Switch off motor

The inputs for switching the motor on and off in local mode with LOCAL_S = 1 are called local control inputs. These inputs are listed below.

Block Parameter DescriptionS7MotSpdC, S7Mot LOCAL_ON Switch on motor

LOCAL_OF Switch off motorS7MotSpd LOCAL_S1 Switch on motor at speed 1

LOCAL_S2 Switch on motor at speed 2LOCAL_OF Switch off motor

S7MotRev LOCAL_RE Switch on motor in reverseLOCAL_FW Switch on motor in forwardLOCAL_OF Switch off motor

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 135

Page 136: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

The outputs for controlling the motor are called control outputs. These outputs are listed below:

Block Parameter DescriptionS7MotSpdC, S7Mot QON Switch on motor

QOFF Switch off motorS7MotSpd QS1 Switch on motor at speed 1

QS2 Switch on motor at speed 2QOFF Switch off motor

S7MotRev QREV Switch on motor in reverseQFORW Switch on motor in forwardQOFF Switch off motor

The inputs which report the current motor state to the block are called response message inputs. These inputs are listed below.

Block Parameter DescriptionS7MotSpdC, S7Mot FB_ON = 0 Motor stopped

= 1 Motor runningS7MotSpd FB_ON_1 Motor running at speed 1

FB_ON_2 Motor running at speed 2S7MotRev FB_ON_REV Motor in reverse

FB_ON_FORW Motor in forward

The motor blocks have the following inputs for parameterization of the monitoring times:

Block Parameter DescriptionS7MotSpdC STIME_MON Runtime monitoring for motor stop

RTIME_MON Runtime monitoring for motor startS7Mot, S7MotSpd, S7MotRev

TIME_MON Runtime monitoring for motor start and stop

7.1.2 FunctionThe function of the blocks is similar to that of the S7 standard block MOTOR. The S7 standard block has been expanded with the addition of a number of functions for water and wastewater applications. Functions that are not required have been removed.

The motor is controlled by the block with the control outputs. One or more run feedback messages (for ON, OFF, or the current speed) can be monitored if desired. The feedback messages are provided by an auxiliary contactor.

Motor and valve blocks7.1 General information about motor blocks - Description of the general functions of all motor blocks

PCS 7 Industry Library for S7136 Function Manual, 09/2015, A5E34977996-AA

Page 137: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Each motor block provides the following functions:

● Static inputs

– Repair switch (forced OFF)

– Switchover between local operation and control station operation

● Different status variables for visualization in WinCC and subsequent unit blocks.

● Number of operating hours since the last motor start

● Number of operating days since the last reset

● Number of hours in standstill since the last motor stop

● Number of start cycles since the last reset

● Output of a bit for preventive maintenance when the operating days (item 4) or start cycles (item 6) exceed a parameterized value.

● Start the motor for a specified short time when the number of hours in standstill (item 5) exceeds a parameterized time.

● Output of a bit for message suppression when the motor is in stop status or within a parameterizable time after the last start.

These functions are not included in the S7 standard motor block. Further expansions (not the same for all blocks) are listed in the block descriptions.

Note

Most of the functions described above can be enabled and disabled using inputs.

7.1.3 Calling OBsThis is the cyclic interrupt OB in which you install the block (e.g. OB32). Additionally in OB100 (see Startup characteristics (Page 142)).

7.1.4 Time behaviorThe block must be called using a cyclic interrupt OB. The sampling time of the block is set in the SAMPLE_T parameter.

7.1.5 How it worksVarious inputs are available for controlling the motor. They are implemented with hierarchical interdependence in relation to one another and the states of the motor. Locking, feedback monitoring, and the motor circuit breaker in particular affect the control signals for the activation of the motor.

Motor and valve blocks7.1 General information about motor blocks - Description of the general functions of all motor blocks

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 137

Page 138: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

The allocation of priorities to individual input variables and influence on the control signals is shown in the following table. The sections following provide further details.

Priority: Influence:High REMOTE = 0

Motor protection error, if MSS_OFF = 1LOCK = 1 / REPAIR = 1LOCK_ON = 1Monitoring error, if FAULT_OFF = 1

Low Automatic/Manual modeNo effect Motor protection error, if MSS_OFF = 0

Monitoring error, if FAULT_OFF = 0Control system fault, operator error

7.1.6 Operating modesThe REMOTE input is used to select whether the motor is controlled locally (REMOTE = 0) or from the control station (REMOTE = 1).

In remote operation, the operating modes manual (control of the motor via the OS) or automatic (control of the motor via the AS program) can be selected.

In local operation, the operating modes manual or automatic can be selected. However, the motor can only be controlled in remote operation.

Local modeYou can enable local operation by setting the REMOTE input to "0". You can set the mode for local operation with the LOCAL_S mode variable (BOOL type).

The current manual or automatic command is output on switching back from local operation to remote operation.

LOCAL_S = 0 1Enable local operation CFC/SFC CFC/SFCOperation in the faceplate Not possible Not possibleTracking via an external input No YesReaction of the block Adjustment of the feed‐

back valueMonitoring of the feed‐back value

Interlock activated No Yes

Behavior at LOCAL_S = 0● The control settings for the block are made based on internal adjustment of the feedback

value.

● The configured runtime monitoring of the block is deactivated.

● The configured interlock functions of the block are disabled.

In local operation and with MONITOR = 0, QRUN and QSTOP are set to 0.

Motor and valve blocks7.1 General information about motor blocks - Description of the general functions of all motor blocks

PCS 7 Industry Library for S7138 Function Manual, 09/2015, A5E34977996-AA

Page 139: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Behavior at LOCAL_S = 1● The control of the block is tracked by a connected input parameter (LOCAL_ON, for

example). The interconnected input parameter includes the control signal for the local operator station on the system.

● The runtime monitoring of the block is effective in accordance with your configuration.

● The parameterized locking functionalities of the block are activated.

Control room modeSwitching between the two operating modes manual and automatic is performed either by OS operator control via AUT_ON_OP (LIOP_SEL = 0) or via the connection of input AUT_L (LIOP_SEL = 1). When the OS system is used to make the selection, the applicable enables AUT_OP_EN and MANOP_EN are required. The set operating mode is indicated at the output QMAN_AUT (1: automatic, 0: manual).

Manual modeOperator control is performed with the manual control inputs MAN_ON (S7MotSpd: S1_ON, S2_O) and MOT_OFF via the OS system if the applicable enables ON_OP_EN and OFF_OP_EN (S7MotSpd: S1_OP_EN, S2_OP_EN and OFF_OP_EN) exist.

Automatic modeAn automatic unit outputs the control commands via the interconnected input AUTO_ON.

The following flowchart illustrates the various operating modes. The block inputs via which the block receives its control commands in the particular operating mode are shown in parentheses.

Motor and valve blocks7.1 General information about motor blocks - Description of the general functions of all motor blocks

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 139

Page 140: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

7.1.7 InterlockThe interlock function takes priority over all other control signals and errors - with the exception of the motor circuit breaker when the corresponding enable signal is set (MSS_OFF = 1).

When LOCK or LOCK_ON is set, the motor is switched on and off directly (without considering the time MIN_CMD). LOCK has the higher priority.

When the repair switch is off (REPAIR = 1), the motor is also switched off directly.

7.1.8 ControlThe motor is activated with the applicable control outputs (S7MotSpdC and S7Mot: QON, QOFF or S7MotSpd: QS1, QS2 and QOFF or S7MotRev: QREV, QFORW and QOFF). The control output remains set until a new command is output.

During the switching time (setting of the control output until the required state of the response message inputs is reported), the QRUN and QSTOP outputs are set to 0. When runtime monitoring (MONITOR = 0) is deselected, the QRUN and QSTOP outputs are set together with the control outputs. There are exceptions here for S7MotSpd and S7MotRev.

The input MIN_CMD contains the minimum time which must pass before the control outputs output another command to the motor.

Example

When the motor is switched on with the control outputs, the time MIN_CMD must pass measured starting from the feedback indicating that the motor is running (QRUN = 1) before a command is output to switch off the motor. The same applies to the switching off or switching over of the motor S7MotSpd from speed 1 to speed 2 and switching S7MotRev from motor on in reverse to motor on in forward. The operator control enable is disabled for the manual inputs until the MIN_CMD time has expired.

When MSUP_TMR <> 0, the output QM_SUP is set to 1 for motor off. When the motor is switched on, QM_SUP is not reset to 0 until the time MSUP_TMR expires. When MSUP_TMR = 0, QM_SUP always remains set to 0.

The output QM_SUP can be used to hide runtime monitoring. If, for example, a 'Flow-Switch’ reports flow while the pump is running, the output QM_SUP can be used to prevent this message from being generated when the motor is at standstill.

7.1.9 Runtime monitoringThe monitoring logic observes the correspondence between the control outputs and the response message inputs and outputs the actual state via QRUN and QSTOP. The monitoring logic sets a monitoring error (QMON_ERR = 1) in the absence of feedback corresponding to the control outputs once the configured monitoring time has elapsed. A monitoring error is also set if the feedback changes without a request from the control outputs (a runtime error is also generated after a wait time). The feedback inputs from the motor must be unique so that it can be recognized whether the motor is running or at standstill.

Motor and valve blocks7.1 General information about motor blocks - Description of the general functions of all motor blocks

PCS 7 Industry Library for S7140 Function Manual, 09/2015, A5E34977996-AA

Page 141: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

If there is no feedback, monitoring must be deactivated with MONITOR = 0. When MONITOR = 0, the feedback inputs have no effect. When the control outputs are set, the desired feedback is accepted.

The feedback input for the actual speed of S7MotSpdC (SPEED_FB) is always evaluated regardless of the MONITOR input. Monitoring of the speed is not performed, however.

The FAULT_OFF parameter defines the relevance of the monitoring error. If FAULT_OFF = 1, the motor is switched off in the event of an error. If FAULT_OFF = 0, the error has no effect on the control outputs.

7.1.10 Motor protectionAt the falling edge of the motor circuit breaker signal MSS, the motor circuit breaker error QMSS_ST is set and stored. The parameter MSS_OFF is used to specify whether only an indication takes place (MSS_OFF = 0) or whether the motor should be switched off (MSS_OFF = 1). When the motor is switched off, the minimum time between two commands (MIN_CMD) is not considered.

7.1.11 Error handlingThe motor circuit breaker error (QMSS_ST = 1) and the monitoring error (QMON_ERR = 1) are reported to the OS and influence how the block functions. They can be reset either manually via OS operation with RESET or automatically on a positive edge of L_RESET. The output QRESET is set here for one cycle to acknowledge any additional devices. The process control error QCSF is merely reported to the OS and applied to the group error QGR_ERR along with the motor circuit breaker and monitoring errors. The process control error QCSF has no effect on the block algorithm.

When an operator error occurs, the output QOP_ERR is set for one cycle without a message.

Startup after STOP in error statusThe action taken depends on the operating mode which was set when the error was reset.

● The motor can restart after a reset in automatic mode if a corresponding start signal is provided by the automatic system.

● In manual mode, the motor must be explicitly switched on, because manual operation was adjusted to "OFF".

7.1.12 Bumpless switchoverTo ensure bumpless switchover to manual operation, the manual control inputs (MAN_ON or S1_ON, S2_ON, and MOT_OFF or REV_ON, FORW_SON, and MOT_OFF) are tracked in automatic operation to the current automatic command.

Motor and valve blocks7.1 General information about motor blocks - Description of the general functions of all motor blocks

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 141

Page 142: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

7.1.13 Startup characteristicsNo block processing takes place for the number of cycles parameterized on the input RUNUPCYC.

At startup, the values of the inputs RUNTIME, RUNTOTAL, STOPTIME, and STARTCYC are written to the outputs QRUNTIME, QRUNTOTAL, QSTOPTIME, and QSTARTCYC.

Operating mode, control inputs, and control outputs are not changed during startup. After expiration of RUNUPCYC, processing starts with the available values. Whether the minimum switching duration (MIN_CMD) must expire before a necessary switching procedure after startup is determined by the current values of the RUNTIME and STOPTIME parameters.

Example

If the motor is to be switched on, a waiting period occurs until STOPTIME has reached at least the value MIN_CMD. The same applies to switching off.

7.1.14 Message behaviorThe blocks S7MotSpdC, S7Mot, S7MotSpd, and S7MotRev use the ALARM_DQ block to generate messages.

The message is triggered by:

● Group error (QERR)

Assignment of message text and message class to the block parameters

Message number

Block parame‐ter

Default message text Message class

1 QMON_ERR Motor feedback error AS control system message - fault

2 QMSS_ST Motor protection triggered AS control system message - fault

3 QREPAIR Repair active AS control system message - fault

4 QCSF External error occurred AS control system message - fault

The messages can be locked centrally with MSG_LOCK (OS operation) or L_MSGLCK (program).

QMSG_SUP is set if the RUNUPCYC cycles have not finished running since the restart, or if MSG_LOCK or L_MSGLCK = TRUE.

Motor and valve blocks7.1 General information about motor blocks - Description of the general functions of all motor blocks

PCS 7 Industry Library for S7142 Function Manual, 09/2015, A5E34977996-AA

Page 143: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

7.1.15 AvailabilityWhen motor control is possible in automatic mode, the output QAVAIL is set to TRUE. This is the case under the following conditions.

● No local mode (QLOCAL = FALSE)

● No wait mode (QREPAIR = FALSE)

● Automatic mode (QMAN_AUT = TRUE)

● No interlock (LOCK = FALSE, LOCK_ON = FALSE)

● No external faults (QCSF = FALSE)

● Motor circuit breaker not tripped (QMST_ST = FALSE

● No runtime monitoring errors (QMON_ERR = FALSE)

7.1.16 Maintenance informationThe blocks S7MotSpdC, S7Mot, S7MotSpd, and S7MotRev have the following inputs and outputs for the operating hour counters and one output for preventive maintenance. The input and the corresponding output always have the same value after startup.

Parameter MeaningRUNTIME/QRUNTIME Number of operating hours since the last motor startRUNTOTAL/QRUNTOTAL Number of operating days since the last total resetSTOPTIME/QSTOPTIME Number of hours in standstill since the last motor stopSTARTCYC/QSTARTCYC Number of start cycles since the last total resetQPM_MSG = 1, if

RUNTOTAL/QRUNTOTAL > MAX_RUNTIME or STARTCYC/QSTARTCYC > MAX_STARTCYC

The parameters can be reset with edge-triggered reset of the inputs to zero. The AS time is written to the relevant input (DATE_TMR and DATE_TOT) as the time stamp for the reset.

Note

The AS time can differ from the OS- time.

Reset input Reset parameterL_RESETMR, RESETMR RUNTIME/QRUNTIME

STOPTIME/QSTOPTIMEL_RESETOT, RESETOT RUNTOTAL/QRUNTOTAL

STARTCYC/QSTARTCYC

Motor and valve blocks7.1 General information about motor blocks - Description of the general functions of all motor blocks

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 143

Page 144: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

7.1.17 Anti-blocking function (ABS)As one installation can include a number of motors but only one of these motors usually has a standby function, this motor can be started periodically. The cycle time is parameterized in days with the input ABS_PER. The runtime is specified in seconds with ABS_DUR on starting up.

Once STOPTIME/QSTOPTIME reaches the value of ABS_PER, the motor is available (QAVAIL = 1) and ABS_EN = 1, the following happens:

1. Motor is started.

2. Motor runs for the time ABS_DUR.

3. Motor is stopped.

During manual operation or in local mode, the motor is not started.

7.1.18 Called blocks

SFC6 RD_SINFOSFC107 ALARM_DQSFC19 ALARM_SCFC67 S7ASTimeBCD

7.1.19 Operator control & monitoring

7.1.19.1 Views of motor blocks in generalAll motor blocks have the views of runtime monitoring parameters and runtime parameters.

7.1.19.2 Parameter view of motor blocks

1

(1) Run time monitoring

● Run time in seconds

● Monitoring

Motor and valve blocks7.1 General information about motor blocks - Description of the general functions of all motor blocks

PCS 7 Industry Library for S7144 Function Manual, 09/2015, A5E34977996-AA

Page 145: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

7.1.19.3 Maintenance view of motor blocks in general

1

2

(1) Current run time

● Run time in hours

● Stop time in hours

● since in hours

● Reset

(2) Run time total

● Total days in days

● Startups

● since in hours

● Reset

Motor and valve blocks7.1 General information about motor blocks - Description of the general functions of all motor blocks

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 145

Page 146: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

7.2 S7Vlv - Valve control

7.2.1 FunctionThe block is used to activate control valves (open/close fittings) with two control signals (open/close). The neutral position of the valve can be the closed or open state. The two position feedback signals (open/closed) can be monitored if required. The position feedback signals are generated by limit switches.

7.2.2 Calling OBsThis is the cyclic interrupt OB in which you install the block (e.g. OB32). Additionally in OB100 (see Startup characteristics (Page 150)).

7.2.3 Time behaviorThe block must be called using a cyclic interrupt OB. The sampling time of the block is set in the SAMPLE_T parameter.

7.2.4 How it worksVarious inputs are available for controlling the valve. They are implemented with hierarchical interdependence in relation to one another and the states of the valve. Locking and feedback monitoring in particular affect the control signals QOPEN and QCLOSE.

The allocation of priorities to the individual input variables and events with regard to their influence on the control signal is shown in the following table. The sections following provide further details.

Priority: Event:High V_LOCK = 1 VL_CLOSE = 1c VL_OPEN = 1 Monitoring error, if FAULT_SS = 1Low Automatic/Manual modeNo effect Monitoring error, if FAULT_SS = 0 Control system fault, operator error

7.2.5 Neutral positionThe position of rest of the controlled valve is signaled at input SS_POS (1: open, 0: closed).

Motor and valve blocks7.2 S7Vlv - Valve control

PCS 7 Industry Library for S7146 Function Manual, 09/2015, A5E34977996-AA

Page 147: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

7.2.6 Operating modesThe REMOTE input is used to select whether the valve is controlled locally (REMOTE = 0) or from the control station (REMOTE = 1). In remote operation, the operating modes manual (control of the valve via the OS) or automatic (control of the valve via the AS program) can be selected. During local operation, the operating modes manual or automatic can be changed, but valve control is only performed in remote operation as specified by the selected operating mode.

Local operationYou can enable local operation by setting the REMOTE input to "0". You can set the mode for local operation with the LOCAL_S mode variable (BOOL type).

The current manual or automatic command is output on switching back from local operation to remote operation.

LOCAL_S = 0 1Enable local operation CFC/SFC CFC/SFCOperation in the faceplate Not possible Not possibleTracking via an external input No YesReaction of the block Adjustment of the feedback

valueMonitoring of the feedback value

Interlock activated No Yes

Behavior at LOCAL_S = 0● The control settings for the block are made based on internal adjustment of the feedback

value.

● The configured runtime monitoring of the block is deactivated.

● The configured interlock functions of the block are disabled.

In local mode with LOCAL_S=0, the current status of the valve is displayed on the OS if feedback is available (MONITOR = TRUE; NO_FB_xx, NOMON_xx = FALSE).

Behavior at LOCAL_S = 1● The control of the block is tracked by a connected input parameter (LOCAL_OP, for

example). The interconnected input parameter includes the control signal for the local operator station on the system.

● The runtime monitoring of the block is effective in accordance with your configuration.

● The parameterized locking functionalities of the block are activated.

Control room modeSwitchover takes place either via OS operator control of AUT_ON_OP or via the interconnection at the AUT_L input if the necessary enables are available. The set operating mode is indicated at output QMAN_AUT (1: automatic, 0: manual).

Motor and valve blocks7.2 S7Vlv - Valve control

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 147

Page 148: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Manual modeInput MAN_OC is controlled via the OS. Enables (OP_OP_EN or CL_OP_EN) must be available in order for operation to proceed.

Automatic modeThe control command is obtained via the input AUTO_OC (1: open, 0: close).

The connection must be made by means of interconnection to an automatic system.

7.2.7 InterlockThe interlock function takes priority over all other control signals and errors. When V_LOCK is set, the valve is placed in its neutral position. If V_LOCK is not set, a locking state (open/closed) can also be selected directly via the inputs VL_OPEN and VL_CLOSE. The VL_CLOSE signal locks VL_OPEN.

Motor and valve blocks7.2 S7Vlv - Valve control

PCS 7 Industry Library for S7148 Function Manual, 09/2015, A5E34977996-AA

Page 149: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

7.2.8 MonitoringMonitoring logic is used to check correspondence between the control command output QOPEN or QCLOSE and the feedback of the actual state of the valve (FB_OPEN, FB_CLOSE). If the end position has not been reached after the monitoring time TIME_MON has expired or if the feedback changes without reason, the output QMON_ERR is set. Setting the FAULT_SS input restores the valve to the zero energy neutral position. If the FAULT_SS command is not set, the command predefined by AUTO_OC or MAN_OC remains pending at outputs QOPEN / QCLOSE. If no limit feedback signal is connected, a MONITOR = 0 signal must be output to the monitoring function, which then assumes that the limit of the valve has been reached within the time TIME_MON. QOPENING or QCLOSING is displayed until TIME_MON has elapsed. In error-free monitoring operation, the outputs QOPENING and QCLOSING show the valve opening/closing. The outputs QCLOSED and QOPENED show whether or not the valve has reached the end position.

The inputs NO_FB_xx and NOMON_xx are used to parameterize whether no feedback is available for the states "open" or "closed" (NO_FB_xx=1) or the available feedback (e.g., due to failure of the end position switch) is not to be evaluated (NOMON_xx=1).

The FAULT_SS parameter defines the relevance of the monitoring error. If FAULT_SS = 1, the valve is set to its neutral position (defined by SS_POS) in the event of an error. FAULT_SS = 0 has no effect on the control outputs.

7.2.9 Bumpless switchoverIn order to ensure bumpless switchover to manual mode, the manual value MAN_OC is always tracked to the current value of AUTO_OC.

To ensure bumpless switchover when switching back from manual mode to remote mode, MAN_OC is tracked on switchover to local mode.

7.2.10 Operator panelSo that various technological functions of the library can also be controlled and monitored from an operator panel, the "S7PVlv" block is installed in the CFC for the actual technology block.

7.2.11 Switch permissionIt is possible to control the technological block from different operating levels. If the [OP_ACTIVE] input is set, manual/automatic switchover is performed via the [OP_AUT_OC] input, faults are reset via [OP_RESET], and manual control is via the [OP_MAN_OC]input.

If the local WinCC variable "@Permission" matches the value set for the operating level at block parameter [PERMIS], the operator station is given switch permission.

The different operating levels are indicated by a project-specific enumeration type. For this purpose, enumerations with the corresponding switch permissions have to be added to the “Global Declarations” folder in the SIMATIC Manager. The value range of the elements of the enumeration can be defined from 0 (no operating level available) up to 8. Higher values are not evaluated.

Motor and valve blocks7.2 S7Vlv - Valve control

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 149

Page 150: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

This type must be assigned to the "S7UsrM" blocks of the units and all [PERMIS] inputs of the technological blocks, as well as to the OP interface block "S7PVlv".

Example

Select the units in the "process object view", filter by "I/O Name" "*PERMIS" and assign the corresponding type to all "enumerations".

7.2.12 Error handlingThe monitoring error (QMON_ERR = 1) is reported to the OS. It can be reset either by operator control of RESET or automatically via a connection with the rising edge of L_RESET. The process control error CSF is merely reported to the OS and applied to the group errors QGR_ERR and QERR along with monitoring. If the message lock (MSG_LOCK or L_MSGLCK = 1) is active, QERR is suppressed. The outputs have no further influence on the block algorithm. Operator errors are indicated at output QOP_ERR without a message.

7.2.13 Startup characteristicsFollowing startup, the messages are suppressed (specified in the RUNUPCYC value for the configured Zyklen).

Startup commences with the operating mode that was active prior to the stop state.

The input START_SS can be used to determine whether the valve assumes the safety position during CPU startup (START_SS=1) and is thus switched to manual operation, or if the selected command is to be executed.

7.2.14 AvailabilityWhen valve control is possible in automatic mode, the output QAVAIL is set to TRUE. This is the case under the following conditions:

● No local mode (QLOCAL = FALSE)

● No startup

● Automatic mode (QMAN_AUT = TRUE)

● No interlock (V_LOCK = FALSE, VL_OPEN = FALSE, VL_CLOSE=FALSE)

● No external faults (QCSF = FALSE)

● No runtime monitoring errors (QMON_ERR = FALSE)

7.2.15 Message behaviorThe input for process control error CSF can be interconnected with an external error output. The error is not evaluated. A group message is generated at the ALARM_DQ block. The QERR output links all error outputs. If the message is locked, the QERR output is not set.

Motor and valve blocks7.2 S7Vlv - Valve control

PCS 7 Industry Library for S7150 Function Manual, 09/2015, A5E34977996-AA

Page 151: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Assignment of message text and message class to the block parameters

Message number

Block parame‐ter

Default message text Message class

1 QMON_ERR Valve feedback error AS control system message - fault

2 QCSF External error occurred AS control system message - fault

The message can be locked centrally by means of:

● MSG_LOCK (OS operation)

● L_MSGLCK (program)

QMSG_SUP is set if the RUNUPCYC cycles have not finished running since the restart, MSG_LOCK or L_MSGLCK = TRUE.

7.2.16 Called blocks

SFC6 RD_SINFOSFC107 ALARM_DQSFC19 ALARM_SCUDT64 UDT_S7PVlv (UDT_OP_SVALVE)

7.2.17 Block parameters

Block I/Os

Parameter Type IN/OUT OCM DescriptionEN BOOL IN 0 RESTART BOOL IN 0 Manual startupV_LOCK BOOL IN 0 1=Lock to SAVE positionVL_OPEN BOOL IN 0 1=Lock to OPENVL_CLOSE BOOL IN 0 1=Lock to CLOSEAUTO_OC BOOL IN 0 AUTO mode: 1=open, 0=closeSS_POS BOOL IN 0 Safe position. 1=open, 0=closeSTART_SS BOOL IN 0 1=Start with safe state position and manual modeFAULT_SS BOOL IN 0 1=In case of fault: safe positionL_RESET BOOL IN 0 Interconnectable input RESETREMOTE BOOL IN 0 1=remote, 0=localLOCAL_OP BOOL IN 0 Local operation with LOCAL_S=1: 1=OpenLOCAL_CL BOOL IN 0 Local operation with LOCAL_S=1: 1=CloseLOCAL_S BOOL IN 0 Local mode: 0=Track feedback, 1=Control

Motor and valve blocks7.2 S7Vlv - Valve control

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 151

Page 152: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionCSF BOOL IN 0 Control system fault 1=External errorFB_OPEN BOOL IN 0 Feedback: 1=OpenFB_CLOSE BOOL IN 0 Feedback: 1=CloseNO_FB_OP BOOL IN 0 1=No feedback OPEN presentNO_FB_CL BOOL IN 0 1=No feedback CLOSE presentMONITOR BOOL IN 1 Selection: 1=Monitoring ON, 0=Monitoring OFFNOMON_OP BOOL IN 0 1=No monitoring OPENNOMON_CL BOOL IN 0 1=No monitoring CLOSEOP_OP_EN BOOL IN 0 Enable 1=Operator max input OPEN CL_OP_EN BOOL IN 0 Enable 1=Operator max input CLOSEMANOP_EN BOOL IN 0 Enable 1=Operator max input MANUALAUTOP_EN BOOL IN 0 Enable 1=Operator max input AUTOLIOP_SEL BOOL IN 0 Selection: 1=Linking , 0=OperationAUT_L BOOL IN 0 Interconnectable input for MANUAL/AUTO modePERMIS INT IN 1 Switching authorityTIME_MON REAL IN 1 Monitoring time in [s]SAMPLE_T REAL IN 0 Sampling time in [s]MSG_EVID1 DWORD IN 1 Message ID 1MSG_EVID2 DWORD IN 1 Message ID 2RUNUPCYC INT IN 0 Number of startup cycles with message suppressionL_MSGLCK BOOL IN 0 Interconnectable message lockUSTATUS BYTE IN 0 User status bitsOP_ACTIVE BOOL IN 0 Operator panel control enabledOP_RESET BOOL IN 0 Operator panel input reset errorOP_AUT_OC BOOL IN 0 Operator panel input mode 1=AUTO, 0=OP MAN‐

UALOP_MAN_OC BOOL IN 0 Panel input: 1=Open valveMSG_FILTER DINT IN 0 Message filterAUX REAL IN 1 Associated valueBA_EN BOOL IN 1 Batch enableOCCUPIED BOOL IN 1 Occupied by batchBA_ID DWORD IN 1 Current batch ID (number)BA_NA STRING[32] IN 1 Batch nameSTEP_NO DWORD IN 1 Batch step numberCMP_ID DWORD IN 0 Area code:BYTE:=16RESET BOOL IN_OUT 1 Operator input error resetMAN_OC BOOL IN_OUT 1 Operator input: 1=Open, 0=CloseAUT_ON_OP BOOL IN_OUT 1 Operator input mode 1=AUTO, 0=MANUALMSG_LOCK BOOL IN_OUT 1 Enable 1=Messages lockedENO BOOL OUT 0 QMSG_SUP BOOL OUT 1 1=Alarm suppression

Motor and valve blocks7.2 S7Vlv - Valve control

PCS 7 Industry Library for S7152 Function Manual, 09/2015, A5E34977996-AA

Page 153: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionMSG_STAT1 WORD OUT 0 Message: Status output 1MSG_STAT2 WORD OUT 0 Message: Status output 2MSG_ACK1 BOOL OUT 0 Message: ACK_STATE output 1MSG_ACK2 BOOL OUT 0 Message: ACK_STATE output 2QCSF BOOL OUT 0 1=External errorQERR BOOL OUT 1 1=ErrorQMSG_ERR BOOL OUT 0 1=Message errorQMON_ERR BOOL OUT 1 1=Monitoring errorQGR_ERR BOOL OUT 0 1=Group errorQOP_ERR BOOL OUT 0 1=Operator errorQAVAIL BOOL OUT 0 1=Valve is availableQOPEN BOOL OUT 0 Control output: OpenQCLOSE BOOL OUT 0 Control output: CloseQMAN_AUT BOOL OUT 1 1=AUTO, 0=Manual modeQOP_OP BOOL OUT 1 Status: 1=Operator enabled for "OPEN"QCL_OP BOOL OUT 1 Status: 1=Operator enabled for "CLOSE"QAUTOP BOOL OUT 1 Status: 1=Operator enabled for "AUTO"QMANOP BOOL OUT 1 Status: 1=Operator enabled for "MANUAL"QOPENING BOOL OUT 0 1=Valve is openingQOPENED BOOL OUT 0 1=Valve is openQCLOSING BOOL OUT 0 1=Valve is closingQCLOSED BOOL OUT 0 1=Valve is closedQLOCAL BOOL OUT 1 1=Local, 0=RemoteQLOCAL_S BOOL OUT 0 Local modeQOS_STAT DWORD OUT 1 Status for WinCCQSTATUS BYTE OUT 0 Status of valveQOP_STAT STRUCT OUT 0 Panel statusQOP_STAT.UDT_IDENT BYTE OUT 0 UDT Identifier for UDT_S7PVlvQOP_STAT.QOP_RESET BOOL OUT 0 Status 1=Panel resetQOP_STAT.QOP_AUT_OC BOOL OUT 0 Status 1=Panel 1=AUTO, 0=Manual modeQOP_STAT.QOP_MAN_OC BOOL OUT 0 Status 1=Panel 1=Valve openingQOP_STAT.QOS_STAT_F WORD OUT 0 Status for panel messagesQOP_STAT.QOS_STAT DWORD OUT 0 Status for WinCC

Status word assignment for QOS_STAT parameter

Status bit ParameterBit 0 Local modeBit 1 Manual modeBit 2 Bit 3 Operator panel mode

Motor and valve blocks7.2 S7Vlv - Valve control

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 153

Page 154: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Status bit ParameterBit 4 Automatic modeBit 5 -Bit 6 CSFBit 7 FaultBit 8 Valve openBit 9 Valve closed

Bit 10 - Bit 11 -Bit 12 Valve is openingBit 13 Valve is closingBit 14 Forced openBit 15 Forced closedBit 16 SS_POS

Bit 17 - 23 -Bit 24 – 31 USTATUS

Status word assignment for QSTATUS parameter

Status bit ParameterBit 0 AvailableBit 1 -Bit 2 ClosedBit 3 OpenBit 4 Startup done

Bit 5 – Bit 7 -

7.2.18 Operator control & monitoring

7.2.18.1 Views of S7VlvThe block provides the following views:

● Standard view

● Message view

● Parameter view

● Batch view

Motor and valve blocks7.2 S7Vlv - Valve control

PCS 7 Industry Library for S7154 Function Manual, 09/2015, A5E34977996-AA

Page 155: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

7.2.18.2 Standard view of S7Vlv

4

1

2

3

5

6

7

8

9

(1) Display and switching the operating modeThis area provides information on the operating mode currently in effect. The following operating modes can be shown here:

● Manual

● Automatic

(2) Open and close valve

This area shows you the default operating state for the motor. The following states can be shown and executed here:

● Open

● Closed

(3) Reset the block

Click "Reset" in the event of errors that require a reset.

(4) Message lock enabled

(5) Display area for block states

This area provides additional information on the operating state of the block:

● Fault

(6) Display area for block statesThis area provides additional information on the operating state of the block.

● Remote

● Local

(7) Display area for block statesThis area provides additional information on the operating state of the block.

● Fault

● Open

● Closed

● Open -> Close

● Close - > Open

Motor and valve blocks7.2 S7Vlv - Valve control

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 155

Page 156: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

● Forced open

● Forced close

(8) Display area for block states

This area displays the active operating level of the block.

(9) Status display of valve

The current status of the motor is graphically displayed here:

● Green: Valve is open

● Gray: Valve is closed

● Red: A fault has occurred

7.2.18.3 Parameter view of S7Vlv

1

(1) Run time monitoring

● Run time in seconds

● Monitoring

7.2.18.4 Block icons of S7Vlv

Motor and valve blocks7.2 S7Vlv - Valve control

PCS 7 Industry Library for S7156 Function Manual, 09/2015, A5E34977996-AA

Page 157: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

7.3 S7Mot - Single-stage motor

7.3.1 FunctionS7Mot is used to control a single-stage motor.

7.3.2 Control outputsThe motor is started with the control outputs QON and stopped with QOFF.

7.3.3 FeedbackS7Mot has the feedback input FB_ON.

Parameter EffectFB_ON = 1 Motor runningFB_ON = 0 Motor stopped

7.3.4 Monitoring timesThe runtime monitoring time for switching on and off is specified in seconds at the TIME_MON input.

7.3.5 Operator panelSo that various technological functions of the library can also be controlled and monitored from an operator panel, the "S7PMot" block is installed in the CFC for the actual technology block.

7.3.6 Switch permissionIt is possible to control the technological block from different operating levels. If the [OP_ACTIVE] input is set, manual/automatic switchover is performed via the [OP_AUTO_OC] input, faults are reset via [OP_RESET], and manual control is via the [OP_SP]input.

If the local WinCC-Variable variable "@Permission" matches the value set for the operating level at block parameter [PERMIS], the operator station is given switch permission.

The different operating levels are indicated by a project-specific enumeration type.

For this purpose, enumerations with the corresponding switch permissions have to be added to the “Global Declarations” folder in the SIMATIC Manager. The value range of the elements

Motor and valve blocks7.3 S7Mot - Single-stage motor

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 157

Page 158: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

of the enumeration can be defined from 0 (no operating level available) up to 8. Higher values are not evaluated.

This type must be assigned to the "S7UsrM" blocks of the units and all [PERMIS] inputs of the technological blocks, as well as to the OP interface block "S7PMot".

Example

Select the units in the "process object view", filter by "I/O Name" "*PERMIS" and assign the corresponding type to all "enumerations".

7.3.7 Called blocks

UDT62 UDT_S7PMot

7.3.8 Special block parameters

Block I/Os

Parameter Type IN/OUT OCM DescriptionEN BOOL IN 0 RESTART BOOL IN 0 Manual startupLOCK BOOL IN 0 1=Lock to OFFLOCK_ON BOOL IN 0 1=Lock to ONAUTO_ON BOOL IN 0 Auto mode: 1=On, 0=OffL_RESET BOOL IN 0 Interconnectable input resetL_RESETMR BOOL IN 0 Interconnectable input reset counterL_RESETOT BOOL IN 0 Interconnectable input reset RUNTOTALMSS BOOL IN 0 Motor circuit breaker: 0=ActiveCSF BOOL IN 0 Control system fault 1=External errorFB_ON BOOL IN 0 Feedback: 1=Motor runningREMOTE BOOL IN 0 1=Remote, 0=LocalLOCAL_ON BOOL IN 0 Local operation with LOCAL_S=1: 1=OnLOCAL_OF BOOL IN 0 Local operation with LOCAL_S=1: 1=OffLOCAL_S BOOL IN 0 Local mode: 0=Track feedback, 1=ControlREPAIR BOOL IN 0 1=Repair switch in maintenance positionON_OP_EN BOOL IN 0 Enable: 1=Operator can switch onOFFOP_EN BOOL IN 0 Enable: 1=Operator can switch offMANOP_EN BOOL IN 0 Enable: 1=Operator can switch to manual modeAUTOP_EN BOOL IN 0 Enable: 1=Operator can switch to automatic modeLIOP_SEL BOOL IN 0 Selection: 1=Linking , 0=OperationAUT_L BOOL IN 0 Interconnectable input for MANUAL/AUTO modePERMIS INT IN 1 Switching authority

Motor and valve blocks7.3 S7Mot - Single-stage motor

PCS 7 Industry Library for S7158 Function Manual, 09/2015, A5E34977996-AA

Page 159: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionMONITOR BOOL IN 1 1=MONITORING ON, 0=MONITORING OFFSAMPLE_T REAL IN 0 Sampling time in [s]RUNUPCYC INT IN 0 Number of startup cycles with message suppressionFAULT_OFF BOOL IN 0 1=In case of fault: Motor OFFMSS_OFF BOOL IN 0 1=In case of MCB fault: Motor OFFMSG_LOCK BOOL IN 1 Message lockL_MSGLCK BOOL IN 0 Interconnectable message lockABS_EN BOOL IN 0 Enable anti-blocking systemABS_PER REAL IN 0 Anti-blocking system activation period (days)ABS_DUR REAL IN 0 Anti-blocking system activation duration (sec)USTATUS BYTE IN 0 User status bitsTIME_MON REAL IN 1 Monitoring time in [s]MAX_RUNT REAL IN 0 Maximum total run time before next preventive mainte‐

nanceMAX_STRT REAL IN 0 Maximum start cycles before next preventive maintenanceMIN_CMD REAL IN 0 Minimum time between start and stopMSUP_TMR REAL IN 0 Number of seconds for which messages are suppressed

following startupMSG_EVID1 DWORD IN 0 Message ID 1MSG_EVID2 DWORD IN 0 Message ID 2MSG_EVID3 DWORD IN 0 Message ID 3MSG_EVID4 DWORD IN 0 Message ID 4OP_ACTIVE BOOL IN 0 Operator panel control enabledOP_RESET BOOL IN 0 Operator panel input reset errorOP_AUT_ON BOOL IN 0 Operator panel input mode 1=AUTO, 0=OP MANUALOP_MAN_ON BOOL IN 0 Panel input: 1=Start motorMSG_FILTER DINT IN 0 Message filterAUX REAL IN 1 Associated valueBA_EN BOOL IN 1 Batch enableOCCUPIED BOOL IN 1 Occupied by batchBA_ID DWORD IN 1 Current batch ID (number)BA_NA STRING[3

2]IN 1 Batch name

STEP_NO DWORD IN 1 Batch step numberCMP_ID DWORD IN 0 Area codeSTARTCYC REAL IN_OUT 1 Switching authorityRUNTIME REAL IN_OUT 1 Run time counter in hoursRUNTOTAL REAL IN_OUT 1 Cumulated run time counter in daysSTOPTIME REAL IN_OUT 1 Stop time counter in hoursRESET BOOL IN_OUT 1 Operator input error resetRESETMR BOOL IN_OUT 1 Operator input error reset counter RESETOT BOOL IN_OUT 1 Operator input error reset RUNTOTAL

Motor and valve blocks7.3 S7Mot - Single-stage motor

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 159

Page 160: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionAUT_ON_OP BOOL IN_OUT 1 Operator input mode 1=AUTO, 0=MANUALMAN_ON BOOL IN_OUT 1 Operator input: 1=Start motorDATE_TMR DWORD IN_OUT 1 Date of last counter resetDATE_TOT DWORD IN_OUT 1 Date of last total resetENO BOOL OUT 0 QERR BOOL OUT 1 1=ErrorQMSS_ST BOOL OUT 0 Unacknowledged motor circuit breakerQMON_ERR BOOL OUT 0 1=Monitoring errorQGR_ERR BOOL OUT 0 1=Group errorQOP_ERR BOOL OUT 0 1=Operator errorQRUN BOOL OUT 0 1=Motor runningQSTOP BOOL OUT 0 1=Motor stopQON_OP BOOL OUT 1 Status: 1=Operator enable for ONQOFF_OP BOOL OUT 1 Status: 1=Operator enable for OFFQMAN_AUT BOOL OUT 1 1=AUTO, 0=MANUAL modeQMANOP BOOL OUT 1 Status: 1=Operator enable for MANUALQAUTOP BOOL OUT 1 Status: 1=Operator enable for AUTOQMSG_ERR BOOL OUT 0 1=Message errorQMSG_SUP BOOL OUT 1 1=Message suppression activeMSG_STAT1 WORD OUT 0 Message: STATUS output 1MSG_STAT2 WORD OUT 0 Message: STATUS output 2MSG_STAT3 WORD OUT 0 Message: STATUS output 3MSG_STAT4 WORD OUT 0 Message: STATUS output 4MSG_ACK1 BOOL OUT 0 Message: ACK_STATE output 1MSG_ACK2 BOOL OUT 0 Message: ACK_STATE output 2MSG_ACK3 BOOL OUT 0 Message: ACK_STATE output 3MSG_ACK4 BOOL OUT 0 Message: ACK_STATE output 4QCSF BOOL OUT 0 1=External errorQAVAIL BOOL OUT 0 1=Motor availableQLOCAL BOOL OUT 1 1=Local, 0=RemoteQLOCAL_S BOOL OUT 0 Local modeQREPAIR BOOL OUT 0 1=Repair switch in maintenance positionQABS_ON BOOL OUT 0 Anti-blocking system is enabledQPM_MSG BOOL OUT 0 1=Preventive maintenance requiredQM_SUP BOOL OUT 0 1=Message suppression after switchoverQON BOOL OUT 0 Control output 1=Start motorQOFF BOOL OUT 0 Control output 1=Stop motorQRESET BOOL OUT 0 Reset motorQSTATUS BYTE OUT 0 Status of control elementQOS_STAT DWORD OUT 1 Status for WinCCQSTARTCYC REAL OUT 0 Interconnectable: start cycles

Motor and valve blocks7.3 S7Mot - Single-stage motor

PCS 7 Industry Library for S7160 Function Manual, 09/2015, A5E34977996-AA

Page 161: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionQRUNTIME REAL OUT 0 Interconnectable run time counter in hoursQRUNTOTAL REAL OUT 0 Interconnectable cumulated run time counter in daysQSTOPTIME REAL OUT 0 Interconnectable stop time counter in hoursQOP_STAT STRUCT OUT 0 Panel statusQOP_STAT.UDT_IDENT BYTE OUT 0 UDT identifier for UDT_S7PMotQOP_STAT.QOP_RESET BOOL OUT 0 Status 1=Operator panel resetQOP_STAT.QOP_AUT_ON BOOL OUT 0 Status 1=Panel: 1=AUTO, 0=Manual modeQOP_STAT.QOP_MAN_ON BOOL OUT 0 Status 1=Panel 1=Motor runningQOP_STAT.QOS_STAT_F WORD OUT 0 Status for panel messagesQOP_STAT.QOS_STAT DWORD OUT 0 Status for WinCC

Status word assignment for QOS_STAT parameter

Status bit ParameterBit 0 Local modeBit 1 Manual modeBit 2 Motor in maintenanceBit 3 Operator panel modeBit 4 Automatic modeBit 5 -Bit 6 CSFBit 7 FaultBit 8 Motor runningBit 9 Motor stopped

Bit 10 - Bit 11 -Bit 12 Motor startingBit 13 Motor stoppingBit 14 Forced onBit 15 Forced off

Bit 16 - Bit 23 -Bit 24 – 31 USTATUS

7.3.9 Operator control & monitoring

7.3.9.1 Views of S7MotThe block provides the following views:

● Standard view

● Message view

● Maintenance view

Motor and valve blocks7.3 S7Mot - Single-stage motor

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 161

Page 162: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

● Parameter view

● Batch view

7.3.9.2 Standard view of S7Mot

1

2

3

4

5

6

(1) Display and switch the status

● (1) Display and switchover of operating mode:This area provides information on the currently valid operating mode. The following operating modes can be shown here:

– Manual

– Automatic

● Starting and stopping the motor.This area shows you the default operating state for the motor. The following states can be shown and executed here:

– Start

– Stop

● Reset the blockClick "Reset" in the event of errors that require a reset.

(2) Message lock enabled

(3) Display area for block states

This area provides additional information on the operating state of the block:

● Fault

(4) Display area for block statesThis area provides additional information on the operating state of the block:

● Remote

● Local

Motor and valve blocks7.3 S7Mot - Single-stage motor

PCS 7 Industry Library for S7162 Function Manual, 09/2015, A5E34977996-AA

Page 163: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

(5) Display area for block statesThis area provides additional information on the operating state of the block:

● Fault

● No connection

● Stop

● Start

● -> Start (Motor starting)

● -> Stop (Motor stopping)

● Forced start

● Forced stop

(6) Display area for block statesThis area displays the active operating level of the block.

(7) Status display of motor

The current status of the motor is graphically displayed here:

● Green: Motor running

● Gray: Motor idle

● Red: A fault has occurred

7.3.9.3 Block icons of S7Mot

Motor and valve blocks7.3 S7Mot - Single-stage motor

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 163

Page 164: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

7.4 S7MotRev - Reversing motor

7.4.1 FunctionBlock S7MotRev is used to control a motor which can run in two different directions.

7.4.2 Control outputsThe motor is started with the control outputs QREV, QFORW with reverse and forward directions. It is stopped with the control output QOFF.

7.4.3 FeedbackS7MotRev has the feedback inputs FB_ON_REV and FB_ON_FORW. When the motor is running in reverse, FB_ON_REV = 1 is set; when the motor is running in forward, FB_ON_FORW = 1 is set. If no feedback inputs are set, the motor will be at standstill. If both feedback inputs are set, there will be no valid feedback.

7.4.4 Monitoring timesThe runtime monitoring time for switching on and off is specified in seconds at the TIME_MON input.

7.4.5 ControlThe motor can be started in forward or reverse. When the motor is started in one direction, changing direction is only possible once the time (MIN_CMD) has expired. Changing direction is only possible via stop.

During the transition from forward to reverse, the QRUN output remains set to 1. The QRUN output also remains set to 1 during the transition from reverse to forward (including when the motor is switched off).

Manual modeIn manual mode, the block is started in reverse and forward with the REV_ON or FORW_SON input; it is switched off with MOT_OFF. If one input is set, the other two are automatically reset by the block.

Automatic modeStarting and stopping the motor takes place in automatic mode with the AUTO_ON input. If input AUTO_SPD = 0, the motor starts in forward. If AUTO_SPD = 1, the motor also starts in forward and then switches to reverse once forward operation has been established.

Forced ON (LOCK_ON)

Motor and valve blocks7.4 S7MotRev - Reversing motor

PCS 7 Industry Library for S7164 Function Manual, 09/2015, A5E34977996-AA

Page 165: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

The direction is specified via the LOCK_SPD input.

7.4.6 Operator panelSo that various technological functions of the library can also be controlled and monitored from an operator panel, the "S7PMotRev" block is installed in the CFC for the actual technology block.

7.4.7 Switch permissionIt is possible to control the technological block from different operating levels. If the [OP_ACTIVE] input is set, manual/automatic switchover is performed via the [OP_AUT_ON] input, faults are reset via [OP_RESET], and manual control is via the [OP_MOT_OFF], [OP_MANFORW], and [OP_MANREV] inputs.

If the local WinCC variable "@Permission" matches the value set for the operating level at block parameter [PERMIS], the operator station is given switch permission.

The different operating levels are indicated by a project-specific enumeration type.

For this purpose, enumerations with the corresponding switch permissions have to be added to the “Global Declarations” folder in the SIMATIC Manager. The value range of the elements of the enumeration can be defined from 0 (no operating level available) up to 8. Higher values are not evaluated.

This type must be assigned to the "S7UsrM" blocks of the units and all [PERMIS] inputs of the technological blocks, as well as to the OP interface block "S7PMotRev".

Example

Select the units in the "process object view", filter by "I/O Name" "PERMIS" and assign the corresponding type to all "enumerations".

7.4.8 Called blocks

UDT74 UDT_S7PMotRev

7.4.9 Special block parameters

Block I/Os

Parameter Type IN/OUT OCM DescriptionEN BOOL IN 0 RESTART BOOL IN 0 Manual startupLOCK BOOL IN 0 1=Lock to OFF

Motor and valve blocks7.4 S7MotRev - Reversing motor

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 165

Page 166: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionLOCK_ON BOOL IN 0 1=Lock to ONLOCK_FORWREV BOOL IN 0 1=Left, 0=Right / Direction with LOCK_ONAUTO_ON BOOL IN 0 Auto mode: 1=On, 0=OffAUTO_FORWREV BOOL IN 0 1=Left, 0=Right / Auto modeL_RESET BOOL IN 0 Interconnectable input resetL_RESETMR BOOL IN 0 Interconnectable input reset counterL_RESETOT BOOL IN 0 Interconnectable input reset RUNTOTALMSS BOOL IN 0 Motor circuit breaker: 0=ActiveCSF BOOL IN 0 Control system error 1=External errorFB_ON_FORW BOOL IN 0 Feedback: 1=Motor running in forwardFB_ON_REV BOOL IN 0 Feedback: 1=Motor running in reverseREMOTE BOOL IN 0 1=Remote, 0=LocalLOCAL_FW BOOL IN 0 Local operation with LOCAL_S=1: 1=ForwardLOCAL_RE BOOL IN 0 Local operation with LOCAL_S=1: 1=ReverseLOCAL_OF BOOL IN 0 Local operation with LOCAL_S=1: 1=OffLOCAL_S BOOL IN 0 Local mode: 0=Track feedback, 1=ControlREPAIR BOOL IN 0 1=Repair switch in maintenance positionFORW_OP_EN BOOL IN 0 Enable: 1=Operator can start the motor in forwardREV_OP_EN BOOL IN 0 Enable: 1=Operator can start the motor in reverseOFFOP_EN BOOL IN 0 Enable: 1=Operator can switch offMANOP_EN BOOL IN 0 Enable: 1=Operator can switch to manual modeAUTOP_EN BOOL IN 0 Enable: 1=Operator can switch to automatic modeLIOP_SEL BOOL IN 0 Selection: 1=Linking , 0=OperationAUT_L BOOL IN 0 Interconnectable input for MANUAL/AUTO modeMONITOR BOOL IN 1 1=MONITORING ON, 0=MONITORING OFFSAMPLE_T REAL IN 0 Sampling time in [s]PERMIS INT IN 1 Switching authorityRUNUPCYC INT IN 0 Number of startup cycles with message suppressionFAULT_OFF BOOL IN 0 1=In case of fault: Motor OFFMSS_OFF BOOL IN 0 1=In case of MCB fault: Motor OFFMSG_LOCK BOOL IN 1 Message lockL_MSGLCK BOOL IN 0 Interconnectable message lockABS_EN BOOL IN 0 Enable anti-blocking systemABS_PER REAL IN 0 Anti-blocking system activation period (days)ABS_DUR REAL IN 0 Anti-blocking system activation duration (sec)USTATUS BYTE IN 0 User status bitsTIME_MON REAL IN 1 Monitoring time in [s]MAX_RUNT REAL IN 0 Maximum total run time before next preventive mainte‐

nanceMAX_STRT REAL IN 0 Maximum start cycles before next preventive maintenanceMIN_CMD REAL IN 0 Minimum time between start and stop

Motor and valve blocks7.4 S7MotRev - Reversing motor

PCS 7 Industry Library for S7166 Function Manual, 09/2015, A5E34977996-AA

Page 167: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionMSUP_TMR REAL IN 0 Number of seconds for which messages are suppressed

following startupMSG_EVID1 DWORD IN 0 Message ID 1MSG_EVID2 DWORD IN 0 Message ID 2MSG_EVID3 DWORD IN 0 Message ID 3MSG_EVID4 DWORD IN 0 Message ID 4OP_ACTIVE BOOL IN 0 Operator panel control enabledOP_RESET BOOL IN 0 Operator panel input reset errorOP_AUT_ON BOOL IN 0 Operator panel input mode 1=AUTO, 0=OP MANUALOP_MOT_OFF BOOL IN 0 Panel input: 1=Stop motorOP_MANFORW BOOL IN 0 Panel input: 1=Start motor in forwardOP_MANREV BOOL IN 0 Panel input: 1=Start motor in reverseMSG_FILTER DINT IN 0 Message filterAUX REAL IN 1 Associated valueBA_EN BOOL IN 1 Batch enableOCCUPIED BOOL IN 1 Occupied by batchBA_ID DWORD IN 1 Current batch ID (number)BA_NA STRING[3

2]IN 1 Batch name

STEP_NO DWORD IN 1 Batch step numberCMP_ID DWORD IN 0 Area codeSTARTCYC REAL IN_OUT 1 Start cyclesRUNTIME REAL IN_OUT 1 Run time counter in hoursRUNTOTAL REAL IN_OUT 1 Cumulated run time counter in daysSTOPTIME REAL IN_OUT 1 Stop time counter in hoursRESET BOOL IN_OUT 1 Operator input error resetRESETMR BOOL IN_OUT 1 Operator input error reset counter RESETOT BOOL IN_OUT 1 Operator input error reset RUNTOTALAUT_ON_OP BOOL IN_OUT 1 Operator input mode 1=AUTO, 0=MANUALMOT_OFF BOOL IN_OUT 1 Operator input: 1=Motor offFORW_ON BOOL IN_OUT 1 Operator input: 1=Start forwardREV_ON BOOL IN_OUT 1 Operator input: 1=Start reverseDATE_TMR DWORD IN_OUT 1 Date of last counter resetDATE_TOT DWORD IN_OUT 1 Date of last total resetENO BOOL OUT 0 QERR BOOL OUT 1 1=ErrorQMSS_ST BOOL OUT 0 Unacknowledged motor circuit breakerQMON_ERR BOOL OUT 0 1=Monitoring errorQGR_ERR BOOL OUT 0 1=Group errorQOP_ERR BOOL OUT 0 1=Operator errorQRUN BOOL OUT 1 1=Motor runningQSTOP BOOL OUT 1 1=Motor stop

Motor and valve blocks7.4 S7MotRev - Reversing motor

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 167

Page 168: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionQFORWREV BOOL OUT 1 1=forward 0=reverseQFORW_OP BOOL OUT 1 Status: 1=Operator enable for forwardQREV_OP BOOL OUT 1 Status: 1=Operator enable for reverseQOFF_OP BOOL OUT 1 Status: 1=Operator enable for OFFQMAN_AUT BOOL OUT 1 1=AUTO, 0=MANUAL modeQMANOP BOOL OUT 1 Status: 1=Operator enable for MANUALQAUTOP BOOL OUT 1 Status: 1=Operator enable for AUTOQMSG_ERR BOOL OUT 0 1=Message errorQMSG_SUP BOOL OUT 1 1=Message suppression activeMSG_STAT1 WORD OUT 0 Message: STATUS output 1MSG_STAT2 WORD OUT 0 Message: STATUS output 2MSG_STAT3 WORD OUT 0 Message: STATUS output 3MSG_STAT4 WORD OUT 0 Message: STATUS output 4MSG_ACK1 BOOL OUT 0 Message: ACK_STATE output 1MSG_ACK2 BOOL OUT 0 Message: ACK_STATE output 2MSG_ACK3 BOOL OUT 0 Message: ACK_STATE output 3MSG_ACK4 BOOL OUT 0 Message: ACK_STATE output 4QCSF BOOL OUT 0 1=External errorQAVAIL BOOL OUT 0 1=Motor availableQLOCAL BOOL OUT 1 1=Local, 0=RemoteQLOCAL_S BOOL OUT 0 Local modeQREPAIR BOOL OUT 0 1=Repair switch in maintenance positionQABS_ON BOOL OUT 0 Anti-blocking system is enabledQPM_MSG BOOL OUT 0 1=Preventive maintenance requiredQM_SUP BOOL OUT 0 1=Message suppression after switchoverQFORW BOOL OUT 0 Control output 1=Start forwardQC_QFORW BYTE OUT 0 Quality code control output start forwardQREV BOOL OUT 0 Control output 1=Start reverseQC_QREV BYTE OUT 0 Quality code control output start reverseQOFF BOOL OUT 0 Control output 1=Stop motorQC_QOFF BYTE OUT 0 Quality code control output stop motorQRESET BOOL OUT 0 Reset motorQSTATUS BYTE OUT 0 Status of control elementQOS_STAT DWORD OUT 1 Status for WinCCQSTARTCYC REAL OUT 0 Interconnectable: start cyclesQRUNTIME REAL OUT 0 Interconnectable run time counter in hoursQRUNTOTAL REAL OUT 0 Interconnectable cumulated run time counter in daysQSTOPTIME REAL OUT 0 Interconnectable stop time counter in hoursQOP_STAT STRUCT OUT 0 Panel statusQOP_STAT.UDT_IDENT BYTE OUT 0 UDT identifier for UDT_S7PMotRevQOP_STAT.QOP_RESET BOOL OUT 0 Status 1=Operator panel reset

Motor and valve blocks7.4 S7MotRev - Reversing motor

PCS 7 Industry Library for S7168 Function Manual, 09/2015, A5E34977996-AA

Page 169: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionQOP_STAT.QOP_AUT_ON BOOL OUT 0 Status 1=Panel: 1=AUTO, 0=Manual modeQOP_STAT.QOP_MOT_OFF BOOL OUT 0 Status 1=Motor stoppedQOP_STAT.QOP_FORW BOOL OUT 0 Status 1=Panel 1=Motor running forwardQOP_STAT.QOP_REV BOOL OUT 0 Status 1=Panel 1=Motor running reverseQOP_STAT.QOP_RES_1 BOOL OUT 0 Reserve for external useQOP_STAT.QOP_RES_2 BOOL OUT 0 Reserve for external useQOP_STAT.QOP_RES_3 BOOL OUT 0 Reserve for external useQOP_STAT.QOS_STAT_F WORD OUT 0 Status for panel messagesQOP_STAT.QOS_STAT DWORD OUT 0 Status for WinCC

Status word assignment for QOS_STAT parameter

Status bit ParameterBit 0 Local modeBit 1 Manual modeBit 2 Motor in maintenanceBit 3 Operator panel modeBit 4 Automatic modeBit 5 -Bit 6 CSFBit 7 FaultBit 8 Motor running in forward directionBit 9 Motor running in reverse directionBit 10 Motor stoppedBit 11 Motor starting in forward directionBit 12 Motor starting in reverse directionBit 13 Motor stoppingBit 14 Forced onBit 15 Forced off

Bit 16 - Bit 23 -Bit 24 – 31 USTATUS

7.4.10 Operator control & monitoring

7.4.10.1 Views of S7MotRevThe block provides the following views:

● Standard view

● Message view

● Maintenance view

Motor and valve blocks7.4 S7MotRev - Reversing motor

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 169

Page 170: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

● Parameter view

● Batch view

7.4.10.2 Standard view of S7MotRev

1

2

3

4

5

6

(1) Display and switch the status

● (1) Display and switchover of operating mode:This area provides information on the currently valid operating mode. The following operating modes can be shown here:

– Manual

– Automatic

● Starting and stopping the motor.This area shows you the default operating state for the motor. The following states can be shown and executed here:

– Forward (Start >)

– Reverse (Start <)

– Stop

● Reset the blockClick "Reset" in the event of errors that require a reset.

(2) Message lock enabled

(3) Display area for block states

This area provides additional information on the operating state of the block:

● Fault

(4) Display area for block statesThis area provides additional information on the operating state of the block:

● Remote

● Local

Motor and valve blocks7.4 S7MotRev - Reversing motor

PCS 7 Industry Library for S7170 Function Manual, 09/2015, A5E34977996-AA

Page 171: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

(5) Display area for block statesThis area provides additional information on the operating state of the block:

● Fault

● No connection

● Start >

● Start <

● Stop

● -> Start > (Motor starting forwards)

● -> Start < (Motor starting in reverse)

● -> Stop (Motor stopping)

● Forced start

● Forced stop

(6) Display area for block statesThis area displays the active operating level of the block.

(7) Status display of motor

The current status of the motor is graphically displayed here:

● Green: Motor running

● Gray: Motor idle

● Red: A fault has occurred

7.4.10.3 Block icons of S7MotRev

Motor and valve blocks7.4 S7MotRev - Reversing motor

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 171

Page 172: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

7.5 S7MotSpd - Two-stage motor

7.5.1 FunctionBlock S7MotSpd is used to control a motor which can run at two different speeds.

7.5.2 Control outputsThe motor starts with the control outputs QS1 and QS2 at speeds 1 and 2 and stops with control ouput QOFF.

7.5.3 FeedbackS7MotSpd has the feedback inputs FB_ON_1 and FB_ON_2. When the motor is running at speed 1, FB_ON_1 is set to 1. When the motor is running at speed 2, FB_ON_2 is set to 1. If no feedback inputs are set, the motor will be at standstill. If both feedback inputs are set, there will be no valid feedback.

7.5.4 Monitoring timesThe runtime monitoring time for switching on and off is specified in seconds at the TIME_MON input.

7.5.5 ControlThe motor can be started at the speeds 1 and 2. For starting at speed 2, the motor is first started at speed 1. The motor is not started at speed 2 until speed 1 has been reached and the time between two control commands (MIN_CMD) has elapsed. It is possible to switch a motor running at speed 1 directly to speed 2. If a motor running at speed 2 is to be decelerated to speed 1, the motor is first switched off and then started again at speed 1.

During the transition from speed 1 to speed 2, the output QRUN remains set to 1. During the transition from speed 2 to speed 1, QRUN also remains set to 1 (including when the motor is switched off).

Manual modeIn manual mode, the block is started and switched off at speeds 1 and 2 with the SP1_ON, SP2_ON, and MOT_OFF inputs. When an input is set, the other two are automatically reset by the block.

Motor and valve blocks7.5 S7MotSpd - Two-stage motor

PCS 7 Industry Library for S7172 Function Manual, 09/2015, A5E34977996-AA

Page 173: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Automatic modeStarting and stopping the motor takes place in automatic mode with the AUTO_ON input. If input AUTO_SPD = 0, the motor starts at speed 1. If input AUTO_SPD = 1, the motor also starts at speed 1 and increases to speed 2 once this has been reached.

Forced on (LOCK_ON):

The speed is specified via the LOCK_SPD input.

7.5.6 Operator panelSo that various technological functions of the library can also be controlled and monitored from an operator panel, the "S7PMotSpd" block is installed in the CFC for the actual technology block.

7.5.7 Switch permissionIt is possible to control the technological block from different operating levels. If the [OP_ACTIVE] input is set, manual/automatic switchover is performed via the [OP_AUT_ON] input, faults are reset via [OP_RESET], and manual control is via the [OP_MOT_OFF], [OP_MANS1], and [OP_MANS2] inputs.

If the local WinCC variable "@Permission" matches the value set for the operating level at block parameter [PERMIS], the operator station is given switch permission.

The different operating levels are indicated by a project-specific enumeration type.

For this purpose, enumerations with the corresponding switch permissions have to be added to the “Global Declarations” folder in the SIMATIC Manager. The value range of the elements of the enumeration can be defined from 0 (no operating level available) up to 8. Higher values are not evaluated.

This type must be assigned to the "S7UsrM" blocks of the units and all [PERMIS] inputs of the technological blocks, as well as to the OP interface block "S7PMotSpd".

Example

Select the units in the "process object view", filter by "I/O Name" "PERMIS" and assign the corresponding type to all "enumerations".

7.5.8 Called blocks

UDT63 UDT_S7PMotSpd

Motor and valve blocks7.5 S7MotSpd - Two-stage motor

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 173

Page 174: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

7.5.9 Special block parameters

Block I/Os

Parameter Type IN/OUT OCM DescriptionEN BOOL IN 0 RESTART BOOL IN 0 Manual startupLOCK BOOL IN 0 1=Lock to OFFLOCK_ON BOOL IN 0 1=Lock to ONLOCK_SPD BOOL IN 0 1=Fast, 0=Slow / Speed at LOCK_ONAUTO_ON BOOL IN 0 Automatic mode: 1=On, 0=OffAUTO_SPD BOOL IN 0 1=Fast, 0=Slow / Automatic modeL_RESET BOOL IN 0 Interconnectable input resetL_RESETMR BOOL IN 0 Interconnectable input reset counterL_RESETOT BOOL IN 0 Interconnectable input reset RUNTOTALMSS BOOL IN 0 Motor circuit breaker: 0=ActiveCSF BOOL IN 0 Control system error 1=External errorFB_ON_1 BOOL IN 0 Speed feedback: 1=SlowFB_ON_2 BOOL IN 0 Speed feedback: 1=FastREMOTE BOOL IN 0 1=Remote, 0=LocalLOCAL_S1 BOOL IN 0 Local mode when LOCAL_S=1: 1=SlowLOCAL_S2 BOOL IN 0 Local mode when LOCAL_S=1: 1=FastLOCAL_OF BOOL IN 0 Local mode when LOCAL_S=1: 1=OffLOCAL_S BOOL IN 0 Local mode: 0=Track feedback, 1=ControlREPAIR BOOL IN 0 1=Repair switch in maintenance positionS1_OP_EN BOOL IN 0 Enable: 1=Operator can input speed 1S2_OP_EN BOOL IN 0 Enable: 1=Operator can input speed 2OFFOP_EN BOOL IN 0 Enable: 1=Operator can switch offMANOP_EN BOOL IN 0 Enable: 1=Operator can switch to manual modeAUTOP_EN BOOL IN 0 Enable: 1=Operator can switch to automatic modeLIOP_SEL BOOL IN 0 Selection: 1=Linking , 0=OperationAUT_L BOOL IN 0 Interconnectable input for MANUAL/AUTO modeMONITOR BOOL IN 1 1=MONITORING ON, 0=MONITORING OFFSAMPLE_T REAL IN 0 Sampling time in [s]PERMIS INT IN 1 Switching authorityRUNUPCYC INT IN 0 Number of startup cycles with message suppressionFAULT_OFF BOOL IN 0 1=In case of fault: Motor OFFMSS_OFF BOOL IN 0 1=In case of MCB fault: Motor OFFMSG_LOCK BOOL IN 1 Message lockL_MSGLCK BOOL IN 0 Interconnectable message lockABS_EN BOOL IN 0 Enable anti-blocking systemABS_PER REAL IN 0 Anti-blocking system activation period (days)

Motor and valve blocks7.5 S7MotSpd - Two-stage motor

PCS 7 Industry Library for S7174 Function Manual, 09/2015, A5E34977996-AA

Page 175: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionABS_DUR REAL IN 0 Anti-blocking system activation duration (sec)USTATUS BYTE IN 0 User status bitsTIME_MON REAL IN 1 Monitoring time in [s]MAX_RUNT REAL IN 0 Maximum total run time before next preventive mainte‐

nanceMAX_STRT REAL IN 0 Maximum start cycles before next preventive maintenanceMIN_CMD REAL IN 0 Minimum time between start and stopMSUP_TMR REAL IN 0 Number of seconds for which messages are suppressed

following startupMSG_EVID1 DWORD IN 0 Message ID 1MSG_EVID2 DWORD IN 0 Message ID 2MSG_EVID3 DWORD IN 0 Message ID 3MSG_EVID4 DWORD IN 0 Message ID 4OP_ACTIVE BOOL IN 0 Operator panel control enabledOP_RESET BOOL IN 0 Operator panel input reset errorOP_AUT_ON BOOL IN 0 Operator panel input mode 1=AUTO, 0=OP MANUALOP_MOT_OFF BOOL IN 0 Panel input: 1=Stop motorOP_MANS1 BOOL IN 0 Panel input: 1=Start motor Speed1OP_MANS2 BOOL IN 0 Panel input: 1=Start motor Speed2MSG_FILTER DINT IN 0 Message filterAUX REAL IN 1 Associated valueBA_EN BOOL IN 1 Batch enableOCCUPIED BOOL IN 1 Occupied by batchBA_ID DWORD IN 1 Current batch ID (number)BA_NA STRING[3

2]IN 1 Batch name

STEP_NO DWORD IN 1 Batch step numberCMP_ID DWORD IN 0 Area codeSTARTCYC REAL IN_OUT 1 Start cyclesRUNTIME REAL IN_OUT 1 Run time counter in hoursRUNTOTAL REAL IN_OUT 1 Cumulated run time counter in daysSTOPTIME REAL IN_OUT 1 Stop time counter in hoursRESET BOOL IN_OUT 1 Operator input error resetRESETMR BOOL IN_OUT 1 Operator input error reset counter RESETOT BOOL IN_OUT 1 Operator input error reset RUNTOTALAUT_ON_OP BOOL IN_OUT 1 Operator input mode 1=AUTO, 0=MANUALMOT_OFF BOOL IN_OUT 1 Operator input: 1=Motor offSP1_ON BOOL IN_OUT 1 Operator input: 1=Start Speed1SP2_ON BOOL IN_OUT 1 Operator input: 1=Start Speed2DATE_TMR DWORD IN_OUT 1 Date of last counter resetDATE_TOT DWORD IN_OUT 1 Date of last total resetENO BOOL OUT 0

Motor and valve blocks7.5 S7MotSpd - Two-stage motor

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 175

Page 176: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionQERR BOOL OUT 1 1=ErrorQMSS_ST BOOL OUT 0 Unacknowledged motor circuit breakerQMON_ERR BOOL OUT 0 1=Monitoring errorQGR_ERR BOOL OUT 0 1=Group errorQOP_ERR BOOL OUT 0 1=Operator errorQRUN BOOL OUT 1 1=Motor runningQSTOP BOOL OUT 1 1=Motor stopQSPEED BOOL OUT 1 1=Speed1 0=Speed2QS1_OP BOOL OUT 1 Status: 1=Operator enable for Speed1QS2_OP BOOL OUT 1 Status: 1=Operator enable for Speed2QOFF_OP BOOL OUT 1 Status: 1=Operator enable for OFFQMAN_AUT BOOL OUT 1 1=AUTO, 0=MANUAL modeQMANOP BOOL OUT 1 Status: 1=Operator enable for MANUALQAUTOP BOOL OUT 1 Status: 1=Operator enable for AUTOQMSG_ERR BOOL OUT 0 1=Message errorQMSG_SUP BOOL OUT 1 1=Message suppression activeMSG_STAT1 WORD OUT 0 Message: STATUS output 1MSG_STAT2 WORD OUT 0 Message: STATUS output 2MSG_STAT3 WORD OUT 0 Message: STATUS output 3MSG_STAT4 WORD OUT 0 Message: STATUS output 4MSG_ACK1 BOOL OUT 0 Message: ACK_STATE output 1MSG_ACK2 BOOL OUT 0 Message: ACK_STATE output 2MSG_ACK3 BOOL OUT 0 Message: ACK_STATE output 3MSG_ACK4 BOOL OUT 0 Message: ACK_STATE output 4QCSF BOOL OUT 0 1=External errorQAVAIL BOOL OUT 0 1=Motor availableQLOCAL BOOL OUT 1 1=Local, 0=RemoteQLOCAL_S BOOL OUT 0 Local modeQREPAIR BOOL OUT 0 1=Repair switch in maintenance positionQABS_ON BOOL OUT 0 Anti-blocking system is enabledQPM_MSG BOOL OUT 0 1=Preventive maintenance requiredQM_SUP BOOL OUT 0 1=Message suppression after switchoverQS1 BOOL OUT 0 Control output 1=Start speed 1QS2 BOOL OUT 0 Control output 1=Start speed 2QOFF BOOL OUT 0 Control output 1=Stop motorQRESET BOOL OUT 0 Reset motorQSTATUS BYTE OUT 0 Status of control elementQOS_STAT DWORD OUT 1 Status for WinCCQSTARTCYC REAL OUT 0 Interconnectable: start cyclesQRUNTIME REAL OUT 0 Interconnectable run time counter in hoursQRUNTOTAL REAL OUT 0 Interconnectable cumulated run time counter in days

Motor and valve blocks7.5 S7MotSpd - Two-stage motor

PCS 7 Industry Library for S7176 Function Manual, 09/2015, A5E34977996-AA

Page 177: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionQSTOPTIME REAL OUT 0 Interconnectable stop time counter in hoursQOP_STAT STRUCT OUT 0 Panel statusQOP_STAT.UDT_IDENT BYTE OUT 0 UDT identifier for UDT_S7PMotSpdQOP_STAT.QOP_RESET BOOL OUT 0 Status 1=Operator panel resetQOP_STAT.QOP_AUT_ON BOOL OUT 0 Status 1=Panel: 1=AUTO, 0=Manual modeQOP_STAT.QOP_MOT_OFF BOOL OUT 0 Status 1=Motor stoppedQOP_STAT.QOP_MANS1 BOOL OUT 0 Status 1=Panel 1=Motor running Speed1QOP_STAT.QOP_MANS2 BOOL OUT 0 Status 1=Panel 1=Motor running Speed2QOP_STAT.QOP_RES_1 BOOL OUT 0 Reserve for external useQOP_STAT.QOP_RES_2 BOOL OUT 0 Reserve for external useQOP_STAT.QOP_RES_3 BOOL OUT 0 Reserve for external useQOP_STAT.QOS_STAT_F WORD OUT 0 Status for panel messagesQOP_STAT.QOS_STAT DWORD OUT 0 Status for WinCC

Status word assignment for QOS_STAT parameter

Status bit ParameterBit 0 Local modeBit 1 Manual modeBit 2 Motor in maintenanceBit 3 Operator panel modeBit 4 Automatic modeBit 5 -Bit 6 CSFBit 7 FaultBit 8 Motor running at speed 1Bit 9 Motor running at speed 2Bit 10 Motor stoppedBit 11 Motor starting at speed 1Bit 12 Motor starting at speed 2Bit 13 Motor stoppingBit 14 Forced onBit 15 Forced off

Bit 16 - Bit 23 -Bit 24 – 31 USTATUS

Motor and valve blocks7.5 S7MotSpd - Two-stage motor

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 177

Page 178: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

7.5.10 Operator control & monitoring

7.5.10.1 Views of S7MotSpdThe block provides the following views:

● Standard view

● Message view

● Maintenance view

● Parameter view

● Batch view

7.5.10.2 Standard view of S7MotSpd

1

2

3

4

5

6

(1) Display and switch the status

● (1) Display and switchover of operating mode:This area provides information on the currently valid operating mode. The following operating modes can be shown here:

– Manual

– Automatic

● Starting and stopping the motor.This area shows you the default operating state for the motor. The following states can be shown and executed here:

– Slow (Start >)

– Fast (Start >>)

– Stop

● Reset the blockClick "Reset" in the event of errors that require a reset.

(2) Message lock enabled

(3) Display area for block states

Motor and valve blocks7.5 S7MotSpd - Two-stage motor

PCS 7 Industry Library for S7178 Function Manual, 09/2015, A5E34977996-AA

Page 179: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

This area provides additional information on the operating state of the block:

● Fault

(4) Display area for block statesThis area provides additional information on the operating state of the block:

● Remote

● Local

(5) Display area for block statesThis area provides additional information on the operating state of the block:

● Fault

● No connection

● Start >

● Start >>

● Stop

● -> Start > (Motor starting speed slow)

● -> Start >> (Motor starting speed fast)

● -> Stop (Motor stopping)

● Forced start

● Forced stop

(6) Display area for block statesThis area displays the active operating level of the block.

(7) Status display of motor

The current status of the motor is graphically displayed here:

● Green: Motor running

● Gray: Motor idle

● Red: A fault has occurred

7.5.10.3 Block icons of S7MotSpd

Motor and valve blocks7.5 S7MotSpd - Two-stage motor

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 179

Page 180: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Motor and valve blocks7.5 S7MotSpd - Two-stage motor

PCS 7 Industry Library for S7180 Function Manual, 09/2015, A5E34977996-AA

Page 181: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

7.6 S7MotSpdC - Frequency-controlled motor

7.6.1 FunctionS7MotSpdC is used to switch a motor on and off and to specify its speed.

7.6.2 Control outputsThe motor is started with the control outputs QON and stopped with QOFF.

7.6.3 FeedbackS7MotSpdC has two separate inputs for the evaluation of feedback from the motor. When the motor is running, FB_ON is set to 1. When the motor is at standstill, FB_ON is set to 0. If neither of the two inputs or both inputs are set, valid feedback will not be recognized.

The feedback input for the actual speed of S7MotSpdC (SPEED_FB) is always evaluated regardless of the MONITOR input. The speed is not monitored.

7.6.4 Monitoring timesS7MotSpdC has a monitoring time for switching on (RTIME_MON) and for switching off (STIME_MON).

7.6.5 Speed specificationParallel to the staring of the motor with output QON, the speed setpoint value SPEED_SP is written as a command to the QSPD_CMD output.

When the motor is to be switched off, QOFF is set and QSPD_CMD = 0.0 is output.

The actual speed of the motor is measured with input SPEED_FB and used to monitor the limits MAX_SPD and MIN_SPD. If the actual value for the configured time MAX_SPD_TMR or MIN_SPD_TMR is outside the associated limits MAX_SPD or MIN_SPD, the QSPD_MAX_TMR or QSPD_MIN_TMR output is set at the block so that a downstream automatic system can respond.

[SPEED_FB > MAX_SPD] (for 0< t > MAX_SPD_TMR) = QSPD_MAX_TMR

[SPEED_FB < MIN_SPD] (for 0< t > MIN_SPD_TMR) = QSPD_MIN_TMR

The motor block does not submit a message about this to the OS.

When SP_TrkFB is active, the SPEED_FB feedback is tracked as a setpoint in local mode.

When SP_TrkEx is active, the external setpoint is applied on switchover to an internal setpoint in order to guarantee a bumpless switchover.

Motor and valve blocks7.6 S7MotSpdC - Frequency-controlled motor

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 181

Page 182: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

7.6.6 Operator panelSo that various technological functions of the library can also be controlled and monitored from an operator panel, the "S7PMotSpdC _OP" block is installed in the CFC for the actual technology block.

7.6.7 Switch permissionIt is possible to control the technological block from different operating levels. If the [OP_ACTIVE] input is set, manual/automatic switchover is performed via the [OP_AUT_ON] input, faults are reset via [OP_RESET], and manual control is via the [OP_MAN_ON]input.

If the local WinCC variable "@Permission" matches the value set for the operating level at block parameter [PERMIS], the operator station is given switch permission. The different operating levels are indicated by a project-specific enumeration type. For this purpose, enumerations with the corresponding switch permissions have to be added to the “Global Declarations” folder in the SIMATIC Manager. The value range of the elements of the enumeration can be defined from 0 (no operating level available) up to 8. Higher values are not evaluated.

This type must be assigned to the "S7UsrM" blocks of the units and all [PERMIS] inputs of the technological blocks, as well as to the OP interface block "S7PMotSpdC".

Example

Select the units in the "process object view", filter by "I/O Name" "*PERMIS" and assign the corresponding type to all "enumerations".

7.6.8 Called blocks

UDT66 UDT_S7PmotSpdC

7.6.9 Special block parameters

Block I/Os

Parameter Type IN/OUT OCM DescriptionEN BOOL IN 0 RESTART BOOL IN 0 Manual startupLOCK BOOL IN 0 1=Lock to OFFLOCK_ON BOOL IN 0 1=Lock to ONAUTO_ON BOOL IN 0 Automatic mode: 1=On, 0=OffL_RESET BOOL IN 0 Interconnectable input resetL_RESETMR BOOL IN 0 Interconnectable input reset counterL_RESETOT BOOL IN 0 Interconnectable input reset RUNTOTAL

Motor and valve blocks7.6 S7MotSpdC - Frequency-controlled motor

PCS 7 Industry Library for S7182 Function Manual, 09/2015, A5E34977996-AA

Page 183: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionMSS BOOL IN 0 Motor circuit breaker: 0=ActiveQC_MSS BYTE IN 0 Quality code motor circuit breakerCSF BOOL IN 0 Control system error 1=External errorFB_ON BOOL IN 0 Feedback: 1=Motor runningREMOTE BOOL IN 0 1=Remote, 0=LocalQC_REMOTE BYTE IN 0 Quality code REMOTELOCAL_ON BOOL IN 0 Local mode when LOCAL_S=1: 1=OnLOCAL_OF BOOL IN 0 Local mode when LOCAL_S=1: 1=OffLOCAL_S BOOL IN 0 Local mode: 0=Track feedback, 1=ControlREPAIR BOOL IN 0 1=Repair switch in maintenance positionON_OP_EN BOOL IN 0 Enable: 1=Operator can switch onOFFOP_EN BOOL IN 0 Enable: 1=Operator can switch offMANOP_EN BOOL IN 0 Enable: 1=Operator can switch to manual modeAUTOP_EN BOOL IN 0 Enable: 1=Operator can switch to automatic modeLIOP_SEL BOOL IN 0 Selection: 1=Linking , 0=OperationAUT_L BOOL IN 0 Interconnectable input for MANUAL/AUTO modePERMIS INT IN 1 Switching authorityMONITOR BOOL IN 1 1=MONITORING ON, 0=MONITORING OFFSPEED_FB REAL IN 0 Feedback speedSAMPLE_T REAL IN 0 Sampling time in [s]RUNUPCYC INT IN 0 Number of startup cycles with message suppressionFAULT_OFF BOOL IN 0 1=In case of fault: Motor OFFMSS_OFF BOOL IN 0 1=In case of MCB fault: Motor OFFMSG_LOCK BOOL IN 1 Message lockL_MSGLCK BOOL IN 0 Interconnectable message lockABS_EN BOOL IN 0 Enable anti-blocking systemABS_PER REAL IN 0 Anti-blocking system activation period (days)ABS_DUR REAL IN 0 Anti-blocking system activation duration (sec)USTATUS BYTE IN 0 User status bitsSPEED_SP REAL IN 0 Speed setpointSP_LiOp BOOL IN 0 Select setpoint source via 1 = interconnection, 0 = operatorSP_ExtOp BOOL IN 1 1 = Select external setpoint (via operator)SP_IntOp BOOL IN 1 1 = Select internal setpoint (via operator)SP_ExtLi BOOL IN 0 1 = Select external setpoint (via interconnection)SP_IntLi BOOL IN 0 1 = Select internal setpoint (via interconnection)SP_Int REAL IN 1 Internal setpoint for operationSP_TrkFB BOOL IN 0 1 = Setpoint follows SPEED_FB in local modeSP_TrkExt BOOL IN 0 1 = Bumpless switchover from external to internal setpointHYS REAL IN 0 Hysteresis for speedRTIME_MON REAL IN 1 Monitoring time for ON [s]STIME_MON REAL IN 1 Monitoring time for OFF [s]

Motor and valve blocks7.6 S7MotSpdC - Frequency-controlled motor

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 183

Page 184: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionMAX_RUNT REAL IN 0 Maximum total run time before next preventive mainte‐

nanceMAX_STRT REAL IN 0 Maximum start cycles before next preventive maintenanceMIN_CMD REAL IN 0 Minimum time between start and stopMSUP_TMR REAL IN 0 Number of seconds for which messages are suppressed

following startupMAX_SPD REAL IN 0 Maximum speedMIN_SPD REAL IN 0 Minimum speedSPD_MIN_TMR REAL IN 0 Seconds before warning if running at minimum speedSPD_MAX_TMR REAL IN 0 Seconds before warning if running at maximum speedMSG_EVID1 DWORD IN 0 Message ID 1MSG_EVID2 DWORD IN 0 Message ID 2MSG_EVID3 DWORD IN 0 Message ID 3MSG_EVID4 DWORD IN 0 Message ID 4OP_ACTIVE BOOL IN 0 Operator panel control enabledOP_RESET BOOL IN 0 Operator panel input reset errorOP_AUT_ON BOOL IN 0 Operator panel input mode 1=AUTO, 0=OP MANUALOP_MAN_ON BOOL IN 0 Panel input: 1=Start motorMSG_FILTER DINT IN 0 Message filterAUX REAL IN 1 Associated valueBA_EN BOOL IN 1 Batch enableOCCUPIED BOOL IN 1 Occupied by batchBA_ID DWORD IN 1 Current batch ID (number)BA_NA STRING[3

2]IN 1 Batch name

STEP_NO DWORD IN 1 Batch step numberCMP_ID DWORD IN 0 Area codeSTARTCYC REAL IN_OUT 1 Start cyclesRUNTIME REAL IN_OUT 1 Run time counter in hoursRUNTOTAL REAL IN_OUT 1 Cumulated run time counter in daysSTOPTIME REAL IN_OUT 1 Stop time counter in hoursRESET BOOL IN_OUT 1 Operator input error resetRESETMR BOOL IN_OUT 1 Operator input error reset counter RESETOT BOOL IN_OUT 1 Operator input error reset RUNTOTALAUT_ON_OP BOOL IN_OUT 1 Operator input mode 1=AUTO, 0=MANUALMAN_ON BOOL IN_OUT 1 Operator input: 1=Motor onDATE_TMR DWORD IN_OUT 1 Date of last counter resetDATE_TOT DWORD IN_OUT 1 Date of last total resetENO BOOL OUT 0 QERR BOOL OUT 1 1=ErrorQMSS_ST BOOL OUT 0 Unacknowledged motor circuit breakerQMON_ERR BOOL OUT 0 1=Monitoring error

Motor and valve blocks7.6 S7MotSpdC - Frequency-controlled motor

PCS 7 Industry Library for S7184 Function Manual, 09/2015, A5E34977996-AA

Page 185: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionQGR_ERR BOOL OUT 0 1=Group errorQOP_ERR BOOL OUT 0 1=Operator errorQRUN BOOL OUT 0 1=Motor runningQSTOP BOOL OUT 0 1=Motor stopQON_OP BOOL OUT 1 Status: 1=Operator is permitted to switch onQOFF_OP BOOL OUT 1 Status: 1=Operator is permitted to switch offQMAN_AUT BOOL OUT 1 1=AUTO, 0=MANUAL modeQMANOP BOOL OUT 1 Status: 1=Operator enable for MANUALQAUTOP BOOL OUT 1 Status: 1=Operator enable for AUTOQMSG_ERR BOOL OUT 0 1=Message errorQMSG_SUP BOOL OUT 1 1=Message suppression activeMSG_STAT1 WORD OUT 0 Message: STATUS output 1MSG_STAT2 WORD OUT 0 Message: STATUS output 2MSG_STAT3 WORD OUT 0 Message: STATUS output 3MSG_STAT4 WORD OUT 0 Message: STATUS output 4MSG_ACK1 BOOL OUT 0 Message: ACK_STATE output 1MSG_ACK2 BOOL OUT 0 Message: ACK_STATE output 2MSG_ACK3 BOOL OUT 0 Message: ACK_STATE output 3MSG_ACK4 BOOL OUT 0 Message: ACK_STATE output 4QCSF BOOL OUT 0 1=External errorQAVAIL BOOL OUT 0 1=Motor availableQLOCAL BOOL OUT 1 1=Local, 0=RemoteQLOCAL_S BOOL OUT 0 Local modeQREPAIR BOOL OUT 0 1=Repair switch in maintenance positionQABS_ON BOOL OUT 0 Anti-blocking system is enabledQPM_MSG BOOL OUT 0 1=Preventive maintenance requiredQM_SUP BOOL OUT 0 1=Message suppression after switchoverQON BOOL OUT 0 Control output 1=Start motorQOFF BOOL OUT 0 Control output 1=Stop motorQRESET BOOL OUT 0 Reset motorQSPD_MIN_TMR BOOL OUT 0 1=Running at minimum speed for x hours >

MIN_SPD_TMR QSPD_MAX_TMR BOOL OUT 0 1=Running at maximum speed for x hours >

MAX_SPD_TMR QSTATUS BYTE OUT 0 Status of control elementOS_PermOut DWORD OUT 0 Display of operator permissions OS_PermOS_PermLog DWORD OUT 0 Operator permissions with settings changed by the block

algorithmLocAuthAct BOOL OUT 0 Local authorization activeQOS_STAT DWORD OUT 1 Status for WinCCQSPD_CMD REAL OUT 0 Speed commandSP REAL OUT 0 Active setpoint as calculated and used by controller

Motor and valve blocks7.6 S7MotSpdC - Frequency-controlled motor

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 185

Page 186: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionQSTARTCYC REAL OUT 0 Interconnectable: start cyclesQRUNTIME REAL OUT 0 Interconnectable run time counter in hoursQRUNTOTAL REAL OUT 0 Interconnectable cumulated run time counter in daysQSTOPTIME REAL OUT 0 Interconnectable stop time counter in hoursQOP_STAT STRUCT OUT 0 Panel statusQOP_STAT.UDT_IDENT BYTE OUT 0 UDT identifier for UDT_S7PMotSpdCQOP_STAT.QOP_RESET BOOL OUT 0 Status 1=Operator panel resetQOP_STAT.QOP_AUT_ON BOOL OUT 0 Status 1=Panel: 1=AUTO, 0=Manual modeQOP_STAT.QOP_MAN_ON BOOL OUT 0 Status 1=Panel 1=Motor runningQOP_STAT.QOS_STAT_F WORD OUT 0 Status for panel messagesQOP_STAT.QOS_STAT DWORD OUT 0 Status for WinCCStatus1 DWORD OUT 0 Status word 1, defined in the online helpStatus2 DWORD OUT 0 ReservedStatus3 DWORD OUT 0 Reserved

Status word assignment for QOS_STAT parameter

Status bit ParameterBit 0 Local modeBit 1 Manual modeBit 2 Motor in maintenanceBit 3 Operator panel modeBit 4 Automatic modeBit 5 -Bit 6 CSFBit 7 FaultBit 8 Motor runningBit 9 Motor stopped

Bit 10 - Bit 11 -Bit 12 Motor startingBit 13 Motor stoppingBit 14 Forced onBit 15 Forced off

Bit 16 - Bit 23 -Bit 24 – 31 USTATUS

Motor and valve blocks7.6 S7MotSpdC - Frequency-controlled motor

PCS 7 Industry Library for S7186 Function Manual, 09/2015, A5E34977996-AA

Page 187: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

7.6.10 Operator control & monitoring

7.6.10.1 Views of S7MotSpdCThe block provides the following views:

● Standard view

● Message view

● Maintenance view

● Parameter view

● Batch view

7.6.10.2 Standard view of S7MotSpdC

1

2

3

4

5

6

7

8

9

(1) Display and switch the status

● (1) Display and switchover of operating mode:This area provides information on the currently valid operating mode. The following operating modes can be shown here:

– Manual

– Automatic

● Starting and stopping the motor.This area shows you the default operating state for the motor. The following states can be shown and executed here:

– Start

– Stop

Motor and valve blocks7.6 S7MotSpdC - Frequency-controlled motor

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 187

Page 188: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

(2) Display and switch the setpoint

● Switch the setpoint internal/externalThis area shows how to specify the setpoint. The setpoint can be specified as follows:

– Using the application (“Automatic”)

– By the user directly in the faceplate (“Manual").

● Display and change the setpointThis area shows the current setpoint. To change the setpoint, the setpoint specification for this block needs to be set to “Manual".

● Display the readback valueThis area shows you the currently valid readback value.

(3) Reset the block

Click "Reset" in the event of errors that require a reset.

(4) Message lock enabled

(5) Display area for block states

This area provides additional information on the operating state of the block:

● Fault

(6) Display area for block states

This area provides additional information on the operating state of the block:

● Remote

● Local

(7) Display area for block states

This area provides additional information on the operating state of the block:

● Fault

● Maintenance

● Start

● Stop

● -> Start (Motor starting)

● -> Stop (Motor stopping)

● Forced start

● Forced stop

(8) Display area for block states

This area displays the active operating level of the block.

(9) Status display of motor

Motor and valve blocks7.6 S7MotSpdC - Frequency-controlled motor

PCS 7 Industry Library for S7188 Function Manual, 09/2015, A5E34977996-AA

Page 189: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

The current status of the motor is graphically displayed here:

● Green: Motor running

● Gray: Motor idle

● Red: A fault has occurred

7.6.10.3 Block icons of S7MotSpdC

Multi-instance block icons for use with the S7MV3P blockSome user-defined objects of the S7MotSpdC block are 1 – 4 multi-instances when called via the block icons, which means that objects in a CFC can be operated simultaneously from a multi-instance faceplate. The advantage is that it is not necessary to configure an OS user object for every operator-controlled object in a CFC. To interconnect these objects automatically using the Dynamic Wizard, the following condition must be met: The block name in the CFC must match the configured name of the user object.

This condition applies for the following blocks:

Multi-instance user object for Basic block in CFC Operator panel block in CFCS7MV3P LMN3P LMN3P_OPS7MotSpdC VSD VSD_OP

Changing the block name causes the faceplate to malfunction.

Motor and valve blocks7.6 S7MotSpdC - Frequency-controlled motor

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 189

Page 190: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

The standard view of the S7MotSpdC block shows the values SP and MV of the S7MV3P block in the multi-instance faceplate version.

Icons Selection of the block icon in CFC Special characteristics1

2 Reverse direction indicator for icon 1

3

4 Reverse direction indicator for icon 3

Separate block icons for detached usageThe S7MotSpdC block can also be used without a connection to the S7MV3P block. Block icons 5 to 8 are provided for this purpose.

Opened faceplates that were called via block icons 5 to 8 display the standard view and the values SPEED_SP and SPEED_FB of the S7MotSpdC block.

Icons Selection of the block icon in CFC Special characteristics5

6 Reverse direction indicator for icon 5

7

8 Reverse direction indicator for icon 7

Motor and valve blocks7.6 S7MotSpdC - Frequency-controlled motor

PCS 7 Industry Library for S7190 Function Manual, 09/2015, A5E34977996-AA

Page 191: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

7.7 S7MV3P -3-point final controlling element

7.7.1 FunctionThe block controls a final controlling element via the inputs "Up" (QCTRL_UP) and "Down" (QCTRL_DN).

7.7.2 Calling OBsThis is the cyclic interrupt OB in which you install the block (e.g. OB32). Additionally in OB100 (see Startup characteristics (Page 193)).

7.7.3 Time behaviorThe block must be called using a cyclic interrupt OB. The sampling time of the block is set in the SAMPLE_T parameter.

7.7.4 Operating modesTwo different modes are supported: remote (REMOTE = 1, QLOCAL = 0) and local (REMOTE = 0, QLOCAL = 1).

During remote operation, the block can be switched between manual operating mode (QMAN_AUT = 0) and automatic operating mode (QMAN_AUT = 1). Switchover can be locked separately (MANOP_EN = 0 or AUTOP_EN = 0).

During local operation, no operator control is possible. When switching from local operation to remote operation, the previous operating mode then becomes active.

7.7.5 Neutral positionThe neutral position of the controlled valve is indicated by the configuration of the SS_POS input (1: open / SP = 100%, 0: closed / SP = 0%).

7.7.6 Control outputsThe final controlling element is to traverse towards the setpoint when enabled (EN_LMN = TRUE). The position feedback PV is compared with the active setpoint SP.

If the absolute value of the control deviation (PV - SP) is greater than or equal to the LIMPULSE parameter, the corresponding control output is set statically. If the deviation is less than LIMPULSE, pulses with a pulse duration for ON = PULSE_ON and OFF= PULSEOFF are

Motor and valve blocks7.7 S7MV3P -3-point final controlling element

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 191

Page 192: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

output until the setpoint +/- hysteresis for positioning (HYS_POS) is reached. When the setpoint +/- hysteresis for runtime monitoring (HYS) is reached, the Q_SP_OK output is set.

Runtime monitoring is performed when input MONITOR = TRUE.

If the LOCK input is set, the final controlling element is moved to the safe position (SS_POS), regardless of operating mode.

7.7.7 SetpointIn manual operating mode, the operator setpoint SP_OP is active. If SP_OP_ON = 1, the setpoint can be controlled. In automatic operating mode, the SPEXON_L input is used to select whether the internal setpoint SP_INT (SPEXON_L = 0) or the external setpoint SP_EXT (SPEXON_L = 1) is to be used. The operator setpoint is updated.

The setpoint is limited by an upper limit (QSP_HLM) and a lower limit (QSP_LLM). The limits can be manipulated. QSP_HLM is preset with SP_HLM. If the final controlling element is not enabled (EN_LMN = FALSE), QSP_LLM = 0. Otherwise, it is equal to the lower limit SP_LLM.

In LOCK status, the operator setpoint is not updated unless the input TRK_LOCK is set.

7.7.8 Operator panelSo that various technological functions of the library can also be controlled and monitored from an operator panel, another "S7PMV3P" block is installed in the CFC for the actual technology block.

7.7.9 Switch permissionIt is possible to control the technological block from different operating levels. If the [OP_ACTIVE] input is set, manual/automatic switchover is performed via the [OP_AUT_ON] input and the setpoint is specified with the OP_SP input.

If the local WinCC variable "@Permission" matches the value set for the operating level at block parameter [PERMIS], the operator station is given switch permission. The different operating levels are indicated by a project-specific enumeration type. For this purpose, enumerations with the corresponding switch permissions have to be added to the “Global Declarations” folder in the SIMATIC Manager. The value range of the elements of the enumeration can be defined from 0 (no operating level available) up to 8. Higher values are not evaluated.

This type must be assigned to the "S7UsrM" blocks of the units and all [PERMIS] inputs of the technological blocks, as well as to the OP interface block "S7PMV3P".

Example

Select the units in the "process object view", filter by "I/O Name" "*PERMIS" and assign the corresponding type to all "enumerations".

Motor and valve blocks7.7 S7MV3P -3-point final controlling element

PCS 7 Industry Library for S7192 Function Manual, 09/2015, A5E34977996-AA

Page 193: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

7.7.10 Error handling / Message behaviorThe input for process control error CSF can be interconnected with an external error output. The error is not evaluated.

The QERR output links all error outputs. If the message is locked, it is not set.

Assignment of message text and message class to the block parameters

Message number

Block parame‐ter

Default message text Message class

1 QMON_ERR Feedback error AS control system message - fault

2 QCSF External error occurred AS control system message - fault

The messages can be locked centrally with MSG_LOCK (OS operation) or L_MSGLCK (program).

QMSG_SUP is set if the RUNUPCYC cycles have not finished running since the restart, MSG_LOCK or L_MSGLCK = TRUE.

7.7.11 Startup characteristicsThe RUNUPCYC parameter can be used to set how long (number of cycles) the control outputs are to remain disabled and the messages are to be suppressed.

Startup is not concluded until the SP_RSTRT input, which is supplied by the SplitRange block, is also reset.

Startup can be simulated with input RESTART.

7.7.12 AvailabilityWhen control of the control command is possible in automatic mode, the output QAVAIL is set to TRUE. This is the case under the following conditions.

● No local mode (QLOCAL = FALSE)

● Automatic mode (QMAN_AUT = TRUE)

● No interlock (LOCK = FALSE)

● No external faults (QCSF = FALSE)

Availability / Setpoint limits for S7SPLITRANGEContrary to the conditions described above, availability is always given for controlled operation.

In manual mode, local mode, interlock, or in the event of an external error, the setpoint limits are adjusted to the current setpoint.

The value of the GRAD input is transferred to the S7Splitrange via the output structure QSPLIT (QSPLIT.GRAD). The value has no effect on the operation of the S7MV3P block.

Motor and valve blocks7.7 S7MV3P -3-point final controlling element

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 193

Page 194: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

7.7.13 Called blocks

SFC6 RD_SINFOSFC107 ALARM_DQSFC19 ALARM_SCUDT52 UDT_S7SPLITRANGEUDT65 UDT_S7PMV3P

7.7.14 Block parameters

Block I/Os

Parameter Type IN/OUT OCM DescriptionEN BOOL IN 0 RESTART BOOL IN 0 Manual startupEN_LMN BOOL IN 1 1=Enable LMNSP_RSTRT BOOL IN 0 Split range in restartLOCK BOOL IN 1 1=LockedSS_POS BOOL IN 0 Safe position: 1=Open, 0=CloseCSF BOOL IN 0 Control system fault 1=External errorMANOP_EN BOOL IN 0 Enable: 1=Operator can switch to manual modeAUTOP_EN BOOL IN 0 Enable: 1=Operator can switch to automatic modeLIOP_SEL BOOL IN 0 Selection: 1=Linking , 0=OperationAUT_L BOOL IN 0 Interconnectable input for MANUAL/AUTO modePERMIS INT IN 1 Switching authoritySP_OP_ON BOOL IN 0 Enable: 1=Operator: setpoint inputSPEXON_L BOOL IN 0 Interconnectable input to select SP_EXTREMOTE BOOL IN 0 1=Remote, 0=LocalINV BOOL IN 0 1=LMN invertedTRK_LOCK BOOL IN 0 1=Let SP_OP equal PV_IN, if lockedLIMIT_OP BOOL IN 1 1=Limits enabled for operatorMONITOR BOOL IN 1 1=MONITORING ON, 0=MONITORING OFFPV_IN REAL IN 0 Process valueSP_EXT REAL IN 0 External setpointSP_INT REAL IN 0 Internal setpointLIMPULSE REAL IN 0 Limit for small pulsesSAMPLE_T REAL IN 0 Sampling time in [s]TIME_MON REAL IN 1 Monitoring time in [s]PULSE_ON REAL IN 0 Time for pulse on in [s]PULSEOFF REAL IN 0 Time for pulse off in [s]

Motor and valve blocks7.7 S7MV3P -3-point final controlling element

PCS 7 Industry Library for S7194 Function Manual, 09/2015, A5E34977996-AA

Page 195: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionMSG_EVID1 DWORD IN 0 Message ID 1MSG_EVID2 DWORD IN 0 Message ID 2RUNUPCYC INT IN 0 Number of startup cycles with message suppressionUSTATUS BYTE IN 0 User status bitsMSG_LOCK BOOL IN 1 Message lockL_MSGLCK BOOL IN 0 Interconnectable message lockFU BOOL IN 1 Symbol in faceplate 1=FU, 0=MV3P OP_ACTIVE BOOL IN 0 Operator panel control enabledOP_AUT_ON BOOL IN 0 Operator panel input mode 1=AUTO, 0=OP MANUALOP_SP REAL IN 0 Operator panel input setpointMSG_FILTER DINT IN 0 Message filterAUX REAL IN 1 Associated valueBA_EN BOOL IN 1 Batch enableOCCUPIED BOOL IN 1 Occupied by batchBA_ID DWORD IN 1 Current batch ID (number)BA_NA STRING[3

2]IN 1 Batch name

STEP_NO DWORD IN 1 Batch step numberCMP_ID DWORD IN 0 Area codeAUT_ON_OP BOOL IN_OUT 1 Operator input mode 1=AUTO, 0=MANUALSP_OP REAL IN_OUT 1 Operator input setpointSP_HLM REAL IN_OUT 1 Setpoint high limitSP_LLM REAL IN_OUT 1 Setpoint low limitHYS REAL IN_OUT 1 HysteresisHYS_POS REAL IN_OUT 1 Hysteresis for positioningGRAD REAL IN_OUT 1 GradientENO BOOL OUT 0 QCTRL_UP BOOL OUT 0 Control output: 1=UpQCTRL_DN BOOL OUT 0 Control output: 1=DownQINV BOOL OUT 0 1=LMN invertedQMAN_AUT BOOL OUT 1 1=AUTO, 0=MANUAL modeQ_SP_OK BOOL OUT 0 1=Setpoint reachedQLOCAL BOOL OUT 1 1=Local, 0=RemoteQERR BOOL OUT 1 1=ErrorQCSF BOOL OUT 0 1=External errorQMON_ERR BOOL OUT 1 1=Monitoring errorQOP_ERR BOOL OUT 0 1=Operator errorQMSG_SUP BOOL OUT 1 1=Message suppression activeQMSG_ERR BOOL OUT 0 1=Message errorQAUTOP BOOL OUT 1 Status: 1=Operator enable for AUTOQMANOP BOOL OUT 1 Status: 1=Operator enable for MANUAL

Motor and valve blocks7.7 S7MV3P -3-point final controlling element

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 195

Page 196: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionQSPEXTON BOOL OUT 1 AUTO setpoint: 1=External, 0=Internal modeQ_SP_OP BOOL OUT 1 Status: 1=Operator can enter manual setpointQAVAIL BOOL OUT 0 1=LMN availablePV REAL OUT 1 Process valueSP REAL OUT 1 SetpointQSP_HLM REAL OUT 1 Active setpoint high limitQSP_LLM REAL OUT 1 Active setpoint low limitQGRAD REAL OUT 1 GradientQSTATUS BYTE OUT 0 Status of control elementQOS_STAT DWORD OUT 1 Status for WinCCQSPLIT STRUCT OUT 0 Status for split rangeQSPLIT.SP_HLM REAL OUT 0 QSPLIT.SP_LLM REAL OUT 0 QSPLIT.GRAD REAL OUT 0 QSPLIT.STATUS BYTE OUT 0 MSG_STAT1 WORD OUT 0 Message: STATUS output 1MSG_STAT2 WORD OUT 0 Message: STATUS output 2MSG_ACK1 BOOL OUT 1 Message: ACK_STATE output 1MSG_ACK2 BOOL OUT 1 Message: ACK_STATE output 2QOP_STAT STRUCT OUT 0 Panel statusQOP_STAT.UDT_IDENT BYTE OUT 0 UDT identifier for UDT_S7PMV3PQOP_STAT.QOP_AUT_ON BOOL OUT 0 Status 1=Operator panel 1=AUTO, 0=Manual modeQOP_STAT.QOP_SP REAL OUT 0 Status panel setpointQOP_STAT.QSP_HLM REAL OUT 0 Active setpoint high limitQOP_STAT.QSP_LLM REAL OUT 0 Active setpoint low limitQOP_STAT.QOS_STAT_F WORD OUT 0 Status for panel messagesQOP_STAT.QOS_STAT DWORD OUT 0 Status for WinCC

Status word assignment for the QSTATUS parameter

Status bit ParameterBit 0 AvailableBit 1 InvertedBit 2 Closed (PV <= QSP_LLM + HYS)Bit 3 Open (PV > QSP_LLM + HYS)Bit 4 Startup done

Bit 5 – Bit 7 -

Motor and valve blocks7.7 S7MV3P -3-point final controlling element

PCS 7 Industry Library for S7196 Function Manual, 09/2015, A5E34977996-AA

Page 197: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Status word assignment for the QOS_STAT parameter

Status bit ParameterBit 0 Local modeBit 1 Manual modeBit 2 -Bit 3 Operator panel modeBit 4 Automatic modeBit 5 -Bit 6 FUBit 7 FaultBit 8 Open (PV >= QSP_HLM - HYS)Bit 9 Closed (PV <= QSP_LLM + HYS)

Bit 10 - > OpeningBit 11 -> ClosingBit 12 Control + (describes the behavior of the block and refers to the INV input)Bit 13 Control - (describes the behavior of the block and refers to the INV input)Bit 14 Forced openBit 15 Forced closedBit 16 Stop

Bit 17 - Bit 23 -Bit 24 – 31 USTATUS

Status word assignment for the QSPLIT.STATUS (partial) parameter

Status bit ParameterBit 2 Closed (SP <= HYS_POS)Bit 3 Open (SP > HYS_POS)

7.7.15 Operator control & monitoring

7.7.15.1 Views of S7MV3PThe block provides the following views:

● Standard view

● Message view

● Trend view

● Parameter view

● Batch view

Motor and valve blocks7.7 S7MV3P -3-point final controlling element

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 197

Page 198: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

7.7.15.2 Standard view of S7MV3P

MV3P (FU = 0) view

1

2

3

5

4

6

7

8

(1) Display and switch the operating mode and manipulated variable

● Display and switch the operating mode:This area provides information on the currently valid operating mode. The following operating modes can be shown here:

– Manual

– Automatic

● Display the manipulated variable:This area shows how to specify the manipulated variable. The setpoint can be specified as follows:

– Auto external

– Auto internal

– Internal

(2) Manipulated variable and readback value

● Display and change the manipulated variableThis area shows the current manipulated variable. To change the manipulated variable, the operating mode for this block needs to be set to “Manual".

● Display the readback valueThis area shows you the currently valid readback value.

(3) Message lock enabled

(4) Display area for block states

This area provides additional information on the operating state of the block:

● Fault

(5) Display area for block statesThis area provides additional information on the operating state of the block:

● Remote

● Local

Motor and valve blocks7.7 S7MV3P -3-point final controlling element

PCS 7 Industry Library for S7198 Function Manual, 09/2015, A5E34977996-AA

Page 199: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

(6) Display area for block statesThis area provides additional information on the operating state of the block.

● Fault

● Open

● Closed

● Open -> Close

● Close - > Open

● Forced open

● Forced close

(7) Display area for block states

This area displays the active operating level of the block.

(8) Status display of valve

The current status of the valve is graphically displayed here:

● Green: Valve is open

● Gray: Valve is closed

● Green/white: Valve stopped

● Red: A fault has occurred

FU (FU = 1) view

1

2

3

4

5

67

8

9

10

11

Motor and valve blocks7.7 S7MV3P -3-point final controlling element

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 199

Page 200: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

● Display and switch the operating mode:This area provides information on the currently valid operating mode. The following operating modes can be shown here:

– Manual

– Automatic

● Switch the manipulated variableThis area shows how to specify the manipulated variable. The setpoint can be specified as follows:

– Auto external

– Auto internal

– Internal

(2) Manipulated variable and manipulated variable

● Display and change the manipulated variableThis area shows the current manipulated variable. To change the manipulated variable, the operating mode for this block needs to be set to “Manual".

● Display the readback valueThis area shows you the currently valid readback value.

(3) Message lock active

(4) Display area for block states

This area provides additional information on the operating state of the block:

● Fault

(5) Display area for block statesThis area provides additional information on the operating state of the block:

● Remote

● Local

(6) Display area for block statesThis area provides additional information on the operating state of the block.

● Fault

● Open

● Closed

● Open -> Close

● Close - > Open

● Forced open

● Forced close

(7) Display area for block states

This area displays the active operating level of the block.

(8) Status display of frequency converter

Motor and valve blocks7.7 S7MV3P -3-point final controlling element

PCS 7 Industry Library for S7200 Function Manual, 09/2015, A5E34977996-AA

Page 201: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

The current status of the motor is graphically displayed here:

● Green: Frequency converter started

● Gray: Frequency converter stopped

● Red: A fault has occurred

7.7.15.3 Parameter view of S7MV3P

1

2

3

4

(1) Setpoint

● High limit in percent

● Low limit in percent

(2) Slope

● Slope in percent

(3) Monitoring

● Run time in seconds

● Monitoring enabled

(4) Hysteresis

● Positioning in percent

● Monitoring in percent

Motor and valve blocks7.7 S7MV3P -3-point final controlling element

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 201

Page 202: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

7.7.15.4 Block icons of S7MV3PThe OS Typicals are represented by an appropriately assigned technological icon (flap, motor, valve, etc.) and an analog indicator for the current manipulated variable.

Motor and valve blocks7.7 S7MV3P -3-point final controlling element

PCS 7 Industry Library for S7202 Function Manual, 09/2015, A5E34977996-AA

Page 203: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

7.8 S7VlvMot - Control of motor valve

7.8.1 Description of S7VlvMot

Object name (type + number) and familyType + number: FB 306

Family: Drives

Area of application of S7VlvMotThe block is used for the following applications:

● Motor valve control

How it works Various operating modes are available for controlling the motor-driven valve. This functionality allows you to set specific valve states. All changes of modes or states and faults occurring in this context are monitored, visualized in the faceplate and reported to the operator. Operators with suitable permissions can use the block icon and the faceplate to view the current states of the motor-driven valve and to operate it.

Configuration Install the block in a cyclic interrupt OB (OB30 toOB38) in the CFC Editor. The block is also installed automatically in the startup OB (OB100).

Startup characteristics Use the Feature Bit startup characteristics to define the startup characteristics of this block.

Following startup, the messages are suppressed for the number of cycles assigned in the RunUpCyc parameter.

After a startup without control (Open, Close = 0)", no monitoring of the feedback signals FbkOpen and FbkClose takes places during the V_MonTiStatic time. Changes to FbkOpen and FbkClose are applied. This means that the feedback is monitored again even in the stop state.

Status word assignment for the Status1 parameter

Status bit Parameter0 Occupied1 BatchEn2 Vibrate enabled

Motor and valve blocks7.8 S7VlvMot - Control of motor valve

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 203

Page 204: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Status bit Parameter3 OosAct4 OosLi5 AutoAct6 LocalAct7 0: Open padlock in block icon

1: Closed padlock in block icon8 Open9 Motor is stopped

10 Close11 Torque shutoff enabled (TorqOpen or TorqClose = 1)12 WarnAct or

IdleTimeactive13 Feedback error without control change 14 Feedback error due to control change15 Mode Switch Fail16 1 = Intlock is active17 1 = Permit is active18 1 = Protect is active19 Trip20 OpenForce21 StopForce22 CloseForce23 "Interlock" button is enabled24 0 = Display neutral position "Closed"

1 = Display neutral position "Closed"25 1 = Display neutral position "Stop"26 Bypass information from previous function block27 Bypass enabled (BypProt = 1) and Local.Act = 1 or SimOn = 128 Invalid signal status29 0 = Closed

1 = Open30 "Permission" button is enabled31 "Protection" button is enabled

Status word assignment for the Status2 parameter

Status bit Parameter0 MsgLock1 Vibrate successfully completed – Reset required2 MonStaErr or MonDynErr

3 - 9 Not used10 MV_TrkOn

Motor and valve blocks7.8 S7VlvMot - Control of motor valve

PCS 7 Industry Library for S7204 Function Manual, 09/2015, A5E34977996-AA

Page 205: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Status bit Parameter11 Torque shutoff open enabled12 Torque shutoff closed enabled

13 - 18 Not used19 1 = Input signals have no impact on "Local" mode when LocalSetting = 2 and

LocalSetting = 420 1 = Valve closes21 1 = Valve closed22 1 = Valve stopped23 1 = Valve opens24 1 = Valve open25 For the status display error in Valve closed26 For the status display error in Valve open27 Automatic preview for "Open"28 Automatic preview for "Close"29 Automatic preview for "Stop"30 Display for interlocks in block icon31 Not used

Status word assignment for the Status3 parameter

Status bit Parameter0 M_MonStaErr1 M_MonDynErr2 V_MonStaErr3 V_MonDynErr4 MonStaErr5 MonDynErr6 ER_AH_Act7 ER_AH_Act8 Reset request in automatic9 External error generated by FaultExt or external control system fault CSF with set

Feature bit 18 Error status enabled by external process control error CSF 10 RbkWH_Act11 RbkWH_Act12 RbkWL_Act13 RbkWH_En14 ER_AH_En15 ER_AL_En16 ER_AH_MsgEn

17 - 18 Not used19 1 = Enable for "Rapid stop" (Feature Bit Enable rapid stop via faceplate)20 RbkWL_En21 RbkWH_MsgEn

Motor and valve blocks7.8 S7VlvMot - Control of motor valve

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 205

Page 206: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Status bit Parameter22 RbkWL_MsgEn23 Command for "rapid stop"24 "Open" command output25 "Close" command output26 Show automatic preview in the standard view27 1 = Analog operating mode enabled (Feature bit 13 set)28 GrpErr29 RdyToStart

30 - 31 Not used

7.8.2 Operating modes of S7VlvMot

Operating modes of S7VlvMotLThe block supports all standard operating modes:

● Local mode

● Automatic mode

● Manual mode

● Out of service

The next section provides additional block-specific information relating to the general descriptions.

"Local mode"You can find general information on "Local mode", switching modes and bumpless switchover in the Local mode section. For more information see the APL Function Manual.You can control the following motor valve actions in "Local mode"

● "Open" (OpenLocal = 1)

● "Close" (CloseLocal = 1)

● "Stop" (StopLocal = 1).

A block operated in "Local mode" is controlled either by "Local" signals or by feedback signals (input parameters FbkOpen and FbkClose; if no position can be assigned, the last valid position is applied). You can configure the LocalSetting input parameter accordingly.

"Automatic" modeYou can find general information on "Automatic mode", switching modes and bumpless switchover in the section Manual and automatic mode for motors, valves and dosers. For more information see the APL Function Manual.

Motor and valve blocks7.8 S7VlvMot - Control of motor valve

PCS 7 Industry Library for S7206 Function Manual, 09/2015, A5E34977996-AA

Page 207: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

You can control the following motor valve actions in "Automatic" mode:

● "Open" (OpenAut = 1)

● "Close" (CloseAut = 1)

● "Stop" (StopAut = 1)

"Manual" modeYou can find general information on "Manual mode", switching modes and bumpless switchover in the section Manual and automatic mode for motors, valves and dosers. For more information see the APL Function Manual.

You can control the following motor valve actions in "Manual" mode:

With Feature.Bit13 = 0:

● "Open" (OpenMan = 1)

● "Close" (CloseMan = 1)

● "Stop" (StopMan = 1)

With Feature.Bit13 = 1:

● Open / Close or Stop via the MV_Int input

"Out of service"You can find general information about the "Out of service" mode in the Out of service section. For more information see the APL Function Manual.

7.8.3 Functions of S7VlvMot

Functions of S7VlvMot The functions for this block are listed below.

Operator authorizations This block provides the standard function, operator authorizations. For more information, refer to the APL Function Manual.The block has the following permissions for the OS_Perm parameter:

Bit Function0 1 = Operator can switch to "Automatic mode"1 1 = Operator can switch to "Manual mode"2 1 = Operator can switch to "Local mode"3 1 = Operator can switch to "Out of service" mode

Motor and valve blocks7.8 S7VlvMot - Control of motor valve

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 207

Page 208: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Bit Function4 1 = Operator can stop the motor5 1 = Operator can open the valve6 1 = Operator can close the valve7 1 = Operator can reset the valve8 1 = Operator can define the monitoring time for the valve startup9 1 = Operator can define the monitoring time for the valve run time

10 1 = Operator can activate the monitoring time of the valve (Bit 8 - 9)11 1 = Operator can define the monitoring time for the motor startup12 1 = Operator can define the monitoring time for the motor run time13 1 = Operator can enable the monitoring time function for the motor (bits 11 - 12)14 1 = Operator can define the monitoring time for startup15 1 = Operator can define the monitoring time for the run time16 1 = Operator can activate the monitoring time function (bits 14 - 15)

17 - 18 Not used19 1 = Operator can change the limit for the hysteresis

20 - 23 Not used24 1 = Operator can activate the message lock25 1 = Operator can reset the current run time26 1 = Operator can reset the total run time

27 - 30 Not used31 Reserved

The block has the following permissions for the OS1Perm parameter:

Bit Function0 - 6 Not used

7 1 = Operator can change the manual parameter Man8 - 9 Not used10 1 = Operator can change the high operating limit of the manipulated variable MV_HiLim11 1 = Operator can change the low operating limit of the manipulated variable MV_LoLim

12 - 19 Not used20 1 = Operator can enable manipulated variable tracking in "Manual mode" MV_TrkRbk21 1 = Operator can enable the bumpless switchover from external to internal MV_TrkExt

22 - 25 Not used26 1 = Operator can change the limit (control error) for the high alarm ER_AH_Lim27 1 = Operator can change the hysteresis (control error) ER_Hyst28 1 = Operator can change the limit (control error) for the low alarm ER_AL_Lim29 1 = Operator can change the limit (position feedback) for the high warning RbkWH_Lim30 1 = Operator can change the hysteresis (position feedback) RbkHyst31 1 = Operator can change the limit (position feedback) for the low warning RbkWL_Lim

Motor and valve blocks7.8 S7VlvMot - Control of motor valve

PCS 7 Industry Library for S7208 Function Manual, 09/2015, A5E34977996-AA

Page 209: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Note

If you interconnect a parameter that is also listed as a parameter in OS_Perm or OS1Perm, you have to reset the corresponding OS_Perm or OS1Perm bit.

Analog or binary operationThe block offers two operating modes. Binary and analog. You can set the operating mode using Feature.Bit13 analog signal input. If the bit is not set, binary operating mode is enabled.

● Binary mode:

In binary mode, the motor valve can be operated with the Open, Close, Stop and Rapid stop keys.

● Analog mode:

In analog mode, the motor can be set to the desired position using the manipulated variable (MV). The valve opens or closes pulsating (outputs P_Open, P_Close and P_Stop) until MV is equal to Rbk (+ / - RbkHyst). The pulse / pause ratio can be adjusted in seconds using the PulseWidth and PauseWidth inputs.

In manual mode, the block can also be controlled in analog mode via keys. In this case, clicking Open sets MV = MV_HiLim, clicking Close sets MV = Lo_Lim, and clicking Stop sets MV = Rbk.

The control deviation (MV – RbkOut) is made available at the ER output. If ER is <= ER_Hyst, ER = 0.0 is set.

The manipulated variable can be read in from various inputs. In automatic mode, the external manipulated variable (MV_Ext) is used, in manual mode the internal manipulated variable (MV_Int) is used, and in local mode (with LocalSetting = 1 or LocalSetting = 3), the local manipulated variable (MV_Local) is used. The manipulated variable currently in use is displayed at the MV output. The manipulated variable is limited by the limit pair MV_HiLim and MV_LoLim.

The MV_TrkOn input enables tracking of the manipulated variable MV. If MV_TrkRbk = 1, RbkOut is tracked to MV. If MV_TrkRbk = 0, MV_Trk is tracked to MV and MV_Int.

The input MV_TrkExt = 1 is used to write back the external manipulated variable (MV_Ext) to the internal manipulated variable (MV_Int) and thereby enables bumpless switchover from automatic mode to manual mode.

Restart lock after changing direction of rotation or switching off the motor Use the input parameter IdleTime to enter a restart lock for changing the direction of rotation or restarting the motor. When the "Stop" command is given, the motor goes immediately into "Stop" mode and IdleTime starts after the feedback (FbkOpening and FbkClosing = 0). The motor cannot be started again (open or close) until the IdleTime has expired.

Motor and valve blocks7.8 S7VlvMot - Control of motor valve

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 209

Page 210: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Suppress messages using the MsgLock parameter This block includes the standard function Suppress messages using the MsgLock parameter. For more information, refer to the APL Function Manual.

Interlocks This block provides the following interlocks:

● Activation enable

● Interlock without reset ("Interlock")

● Interlock with reset ("Protection")

Refer to the Interlocks section for more information. For more information, refer to the APL Function Manual.

Motor protection function This block provides the standard function, Motor protection function. For more information, refer to the APL Function Manual.

Rapid stop for motors This block provides the standard function, Rapid stop for motors. For more information, refer to the APL Function Manual.

Torque monitoring The block provides torque monitoring.

The signals of the torque monitoring switches are interconnected to input parameters TorqOpen for opening and TorqClose for closing the motor valve.

The Good state is indicated with the value 1 for this parameter .

Using Feature.Bit23 (Vibrate), you can define how to proceed in automatic mode when the torque has been reached.

Vibration disabled or not automatic mode:If the torque monitoring is enabled, the motor is stopped. You then have the option of moving the valve in the opposite direction.

If, for example, the torque shutoff is enabled when the valve opens, you can still close the valve.

Active torque shutoff appears in the standard view of the display area for block states.

When the "Seal valve" function is enabled via Feature.Bit8 , the torque shutoff for the closing TorqClose is also evaluated (see section Seal valve).

Vibration enabled and automatic mode:If torque monitoring is enabled, the motor runs in the opposite direction. After travelling VibrWidth seconds or VibrPerc %, the motor runs in the opposite direction again to solve

Motor and valve blocks7.8 S7VlvMot - Control of motor valve

PCS 7 Industry Library for S7210 Function Manual, 09/2015, A5E34977996-AA

Page 211: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

the cause of the torque shutoff by means of vibration. This procedure is repeated a maximum of VibrNo times.

In analog mode (Feature.Bit13 = 1), the motor runs VibrPerc % in the opposite direction. In binary mode (Feature.Bit13 = 0) VibrWidth seconds.

If torque shutoff is enabled for opening the valve in analog mode, for example, the motor valve returns to a value of RbkOut - ((MV_HiLim - MV_LoLim) / 100.0 x VibrPerc) . When this point is reached, the motor attempts to open to the previously set manipulated variable once again.

During reversing, the display area of the standard view "Vibrate enabled" is displayed.

After attempting to overcome the cause of the torque VibrNo times, the motor is stopped. The block must be reset before vibrating can be enabled again.

Seal valve This function is enabled using Featurebit 8 Seal valve. The seal valve function combines the query of the end position CLOSED via the input parameter FbkClose with the limit violation of the configured torque via the input parameter TorqClose. This ensures that the valve is sealed absolutely tight.

The valve is only considered completely sealed when the feedback of the end position CLOSED (0->1) and the torque shutoff for closed are enabled. The torque shutoff should not come before the feedback in this case. The FbkCloseOut output shows whether the valve is sealed tight:

FbkCloseOut := FbkClose.Value comes in (0->1) And "Torque shutoff closed is enabled" And "Torque shutoff closed is enabled" did not come before FbkClose (0->1)"Torque shutoff closed is enabled" means TorqClose = 0.

When "Torque shutoff closed is enabled" comes before the end position feedback closed, this is displayed in the faceplate in the standard view and the motor stops. Opening the valve is still possible.

Anti-blocking system enabled (ABS)Since more than one motor valve can run in the system and one of these only has a standby function, it is possible to start the standby motor valve periodically. The time period is set in days with the ABS_Per input.

Requirements:

● Feature.Bit7 Enable anti-blocking system is set

● S7VlvMot is in automatic mode

● NoFbkOpen = 0 and NoFbkClose = 0

● FbkOpen = 1 or FbkClose = 1

If Stoptime / StoptimeOut has reached the value of ABS_Per and the requirements are met, the following happens.

Motor and valve blocks7.8 S7VlvMot - Control of motor valve

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 211

Page 212: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

If S7VlvMot is closed (FbkClose = 1):

● Motor is started to open the motor valve

● Motor runs until FbkOpen = 1

● Motor is stopped

● Motor is started to close the motor valve

● Motor runs until FbkClose = 1

● Motor is stopped

If S7VlvMot is open (FbkOpen = 1) and ABS_Per is reached, the same happens in reverse direction.

Maintenance informationThe S7VlvMot block has the following inputs and outputs for the operating hour counter and an output for preventive maintenance. The input and the corresponding output always have the same value after startup.

Parameter MeaningRuntime / RuntimeOut Number of operating hours since the last motor startRuntotal / RuntotalOut Number of operating days since the last total resetStoptime / StoptimeOut Number of hours in standstill since the last motor stopStartcyc / StartcycOut Number of start cycles since the last total resetPM_Msg = 1, if

Runtotal / RuntotalOut > MaxRunt or Startcyc / StartcycOut > MaxStart

The parameters can be reset with edge-triggered reset of the inputs to zero. The AS time at the respective DateTmr and DateTot input is entered as the time stamp for the reset.

Note

The AS time may differ from the OS time.

Reset input Reset parameterRstTmrOp, RstTmrLi Runtime / RuntimeOut

Stoptime / StoptimeOutRstTotOp, RstTotLi Runtotal / RuntotalOut

Startcyc / StartcycOut

Disable interlocks This block provides the standard function, Disable interlocks. For more information, refer to the APL Function Manual.

Motor and valve blocks7.8 S7VlvMot - Control of motor valve

PCS 7 Industry Library for S7212 Function Manual, 09/2015, A5E34977996-AA

Page 213: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Reset the block in case of interlocks This block provides the standard function, Reset the block with interlocks or errors. For more information, refer to the APL Function Manual.

Group error This block includes the standard function, Group error. For more information, refer to the APL Function Manual.The following parameters are taken into consideration when forming the group error:

● CSF● Trip● V_MonDynErr● V_MonStaErr● M_MonDynErr● M_MonStaErr● MonDynErr● MonStaErr

Output a signal for ready to start This block provides the standard function, Output a signal for ready to start. For more information, refer to the APL Function Manual.

Form the group status for interlocks This block provides the standard function, Form group status for interlock information. For more information, refer to the APL Function Manual.

Force operating states This block provides the standard function, Force operating modes. For more information, refer to the APL Function Manual. The inputs OpenForce, CloseForce and StopForce force the block to open, close or stop.

Monitor the feedback signals This block provides the standard function, Feedback monitoring. For more information, refer to the APL Function Manual.The FbkOpen and FbkClose feedback signals are monitored for the valve; the FbKOpening and FbkClosing feedback signals are monitored for the motor.

The monitoring of the feedback for the valve is not enabled if it was stopped during opening or closing.

Motor and valve blocks7.8 S7VlvMot - Control of motor valve

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 213

Page 214: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Monitor valve feedbackThe monitoring of valve feedback is set using the V_Monitor parameter.

Startup characteristics are monitored by setting the V_MonTiDynamic parameter; the V_MonTiStatic parameter monitors compliance with the position.

Feedback errors are displayed at the corresponding parameters, V_MonDynErr or V_MonStaErr.

Note

After the motor valve stops in the intermediate position or end position or after a startup without control (Open, Close = 0), no monitoring of the feedback signals FbkOpen and FbkClose takes place during the time V_MonTiStatic. Changes to FbkOpen and FbkClose are applied. This means that the feedback is monitored again even in stop state.

Note

When the "Seal valve" function is enabled by means of Feature bit 8, the torque shutoff for the closing TorqClose is also evaluated (see section Seal valve).

Monitor the motor feedbackThe monitoring of motor feedback is set using the M_Monitor parameter.

Startup characteristics are monitored by setting the M_MonTiDynamic parameter; the M_MonTiStatic parameter monitors compliance with the position.

Feedback errors are displayed at the corresponding parameters, M_MonDynErr or M_MonStaErr.

Specify warning times for control functions This block provides the standard function, Specify warning times for motors and valves.

You can generate warning signals when, for example, valves open. Warning signals can be generated in the following modes:

● Manual mode (WarnTiMan input parameter)

● Automatic mode (WarnTiAut input parameter)

You specify the warning times in seconds using the input parameters WarnTiMan and WarnTiAut. If, for example, a valve opens, this is displayed at the output parameter with WarnAct = 1. The valve then opens after the set warning time has expired and WarnAct then returns to 0.

A corresponding warning is not output if the values specified for the warning times (WarnTiMan or WarnTiAut) are lower than the SampleTime parameter.

Note

The warning is activated for each actuation that causes the motor to start, even if this means that the valve is moved to the neutral position.

Motor and valve blocks7.8 S7VlvMot - Control of motor valve

PCS 7 Industry Library for S7214 Function Manual, 09/2015, A5E34977996-AA

Page 215: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Select a unit of measure This block provides the standard function, Select a unit of measure. For more information, refer to the APL Function Manual.

Neutral position This block provides the standard function, Neutral position for motors, valves and controllers. For more information, refer to the APL Function Manual.

Output signal as a pulse signal or static signal This block provides the standard function, Output signal as static signal or pulse signal. For more information, refer to the APL Function Manual. In addition to the static control outputs Open and Close the block also has pulse outputs P_Open, P_Close and P_Stop, which are dependent on the static control output.

Generate instance-specific messages This block provides the standard function, Generate instance-specific messages. For more information, refer to the APL Function Manual.

Configurable reactions using the Feature parameter The following characteristics are available for this block at the relevant bits:

Bit Function0 Set startup characteristics 1 Characteristics for the out of service mode 2 Reset the commands for switching the operating mode 3 Enable reset of commands for control 4 Set switch or button mode 7 Anti-blocking system enabled (ABS)8 Seal valve9 Reset via input signals in the event of interlocking (protection) or errors

10 Exit local mode 11 Enable run time for feedback signals 12 Motor feedback is not available 13 Enable analog operating mode14 Enable rapid stop via faceplate

15 - 16 Not assigned17 Enable bumpless switchover to automatic mode for valves, motors and dosers18 Enable error status for external process control error CSF 19 Reset even with locked state20 Not assigned21 Enable bumpless switchover to automatic mode for valves, motors and dosers22 Update acknowledgment and error status of the message call

Motor and valve blocks7.8 S7VlvMot - Control of motor valve

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 215

Page 216: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Bit Function23 Enable vibrate function24 Enable local operator authorization25 Suppress all messages26 Characteristics of the switching points in the "Out of service" operating mode27 Interlock display with LocalSetting 2 or 428 Disabling switching points29 Signal at limit violation30 Set reset depending on the operating mode or the LiOp parameter31 Enable reset of interlocks in manual mode

In switching mode (Bit 4 = 1), control is selected with the static signals OpenAut and CloseAut. If the OpenAut and CloseAut inputs are not set, the motor is stopped. Control via StopAut is not required. If the "Enable command reset for control" function is also enabled (Bit 3 = 1), the OpenAut and CloseAut inputs are reset to 0 after evaluation in the block.

SIMATIC BATCH functionality This block provides the standard function, SIMATIC BATCH functionality. For more information, refer to the APL Function Manual.

Disable feedback This block provides the standard function, Disable feedback for valves. For more information, refer to the APL Function Manual. Feedback monitoring can be disabled separately for each feedback with NoFbkOpen or NoFbkClose as required.

7.8.4 Troubleshooting S7VlvMot

Troubleshooting S7VlvMotRefer to the Troubleshooting section in the basic instructions to learn how to handle errors for all blocks. For more information, refer to the APL Function Manual.The following errors can be displayed for this block:

● Error numbers

● Mode switchover error

● Invalid input signals

Motor and valve blocks7.8 S7VlvMot - Control of motor valve

PCS 7 Industry Library for S7216 Function Manual, 09/2015, A5E34977996-AA

Page 217: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Overview of error numbers The ErrorNum I/O can be used to output the following error numbers:

Error number Meaning of the error number-1 Predefined value when inserting the block; the block is not processed0 There is no error.41 The value for the LocalSetting I/O is not within the approved limit from 0 to 4.42 LocalSetting = 0 or LocalSetting = 3 or LocalSetting = 4 and LocalLi = 151 OpenLocal = 1 and StopLocal = 1

CloseLocal = 1 and StopLocal = 1OpenLocal = 1 and CloseLocal = 1OpenAut = 1 and StopAut = 1CloseAut = 1 and StopAut = 1OpenAut = 1 and CloseAut = 1AutModLi = 1 and ManModLi = 1OpenForce = 1 and StopForce = 1CloseForce = 1 and StopForce = 1OpenForce = 1 and CloseForce = 1

Mode switchover error This error can be output by the block, see the Troubleshooting section. For more information, refer to the APL Function Manual.

Invalid input signals This error can be output by the block, see the Troubleshooting section. For more information, refer to the APL Function Manual.

7.8.5 Messaging of S7VlvMot

Message characteristics The following messages can be generated for this block:

● Control system fault

● Instance-specific messages

Motor and valve blocks7.8 S7VlvMot - Control of motor valve

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 217

Page 218: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Control system fault The following control system fault messages can be output:

Message ID Message class EventMsgEvId01 AS process control message - fault Motor feedback errorMsgEvId02 AS process control message - fault Motor protection triggeredMsgEvId03 AS process control message - fault Valve feedback errorMsgEvId04 AS process control message - fault External error occurredMsgEvId09 AS process control message - fault Torque shutoff open enabledMsgEvId10 AS process control message - fault Torque shutoff closed enabledMsgEvId11 AS process control message - fault Feedback error

Explanation:

You can interconnect an external fault (signal) to the input parameter CSF. If this signal changes to CSF = 1, a control system fault is triggered ((MsgEvId4)).

Process messages

Message ID Message class EventMsgEvId05 Alarm - high ER - Alarm high limit violatedMsgEvId06 Alarm - low ER - Alarm low limit violatedMsgEvId07 Warning - high Rbk - Warning high limit violatedMsgEvId08 Warning - low Rbk - Warning low limit violated

Associated values for the message instance

Data type Block parameterREAL AuxDWORD BatchIDDINT MsgFilter

7.8.6 I/Os of S7VlvMotI/Os of S7VlvMot

Input parameters

Parameter Description Type DefaultEN 1 = Called block is processed BOOL 1OpenAut 1 = Select Open valve in "Automatic

mode"BOOL 0

CloseAut 1 = Select Close valve in "Automatic mode"

BOOL 0

Motor and valve blocks7.8 S7VlvMot - Control of motor valve

PCS 7 Industry Library for S7218 Function Manual, 09/2015, A5E34977996-AA

Page 219: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Description Type DefaultStopAut 1 = Stop the motor in "Automatic mode" BOOL 0OpenMan 1 = Select Open valve in "Manual mode" BOOL 0CloseMan 1 = Select Close valve in "Manual mode" BOOL 0StopMan 1 = Stop the motor in "Manual mode" BOOL 0ModLiOp Toggle operation between: 0 = Operator,

1 = Interconnection or SFCBOOL 0

AutModOp 1 = "Automatic mode" via operator (con‐trolled by ModLiOp = 1)

BOOL 0

ManModOp 1= "Manual mode" via: OS operator (con‐trolled via ModLiOp = 0)

BOOL 1

AutModLi 1 = "Automatic mode" via interconnec‐tion or SFC (controlled via ModLiOp = 1)

BOOL 0

ManModLi 1 = Manual mode via interconnection or SFC (controlled via ModLiOp = 1)

BOOL 0

LocalLi 1 = Activate "Local mode" via plant signal BOOL 0LocalOp 1 = "Local mode" via operator BOOL 0OosOp 1 = "Out of service", via OS operator input BOOL 0OosLi 1 = "Out of service", via interconnection

or SFCBOOL 0

OpenLocal 1 = Open the valve in "Local mode" BOOL 0CloseLocal 1 = Close the valve in "Local mode" BOOL 0StopLocal 1 = Stop the valve in "Local mode" BOOL 0MV_Local "Local" manipulate variable REAL 0.0LocalSetting Properties for local mode INT 0MV_Int Internal manipulated variable REAL 0.0MV_Ext External manipulated variable REAL 0.0MV_HiLim Limit (high) for manipulated variable MV REAL 100.0MV_LoLim Limit (low) for manipulated variable MV REAL 0.0MV_OpScaleH OS display area for manipulated variable

MV HighREAL 100.0

MV_OpScaleL OS display area for manipulated variable MV Low

REAL 0.0

MV_Unit Unit of measure for manipulated variable INT 1342MV_TrkOn 1 = Tracking of manipulated variable MV BOOL 0MV_Trk Tracking value for manipulated variable

MVREAL 0.0

MV_TrkExt 1 = Bumpless switchover from external to internal manipulated variable active

BOOL 1

MV_TrkRbk 1 = Setpoint follows Rbk in "Manual mode" and with tracking

BOOL 0

Rbk Position feedback for display on OS REAL 0.0RbkWH_Lim Limit for position feedback of warning

(high)REAL 100.0

Motor and valve blocks7.8 S7VlvMot - Control of motor valve

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 219

Page 220: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Description Type DefaultRbkWL_Lim Limit for position feedback of warning

(low)REAL 0.0

RbkHyst Alarm hysteresis for position feedback REAL 1.0RbkWH_En 1 = Enable warning (high) for position

feedbackBOOL 1

RbkWL_En 1 = Enable warning (low) for position feedback

BOOL 1

RbkWH_MsgEn 1 = Enable messages for warning (high) for position feedback

BOOL 1

RbkWL_MsgEn 1 = Enable messages for warning (low) for position feedback

BOOL 1

ER_AH_Lim Alarm limit (high) for control error moni‐toring

REAL 100.0

ER_AL_Lim Alarm limit (low) for control error moni‐toring

REAL -100.0

ER_Hyst Alarm hysteresis for control error REAL 1.0ER_AH_En 1 = Enable alarm (high) for control error

monitoringBOOL 1

ER_AL_En 1 = Enable alarm (low) for control error monitoring

BOOL 1

ER_AH_MsgEn 1 = Enable messages for alarm (high) for control error monitoring

BOOL 1

ER_AL_MsgEn 1 = Enable messages for alarm (low) for control error monitoring

BOOL 1

FbkOpen 1 = Valve open feedback signal BOOL 0FbkClose 1 = Valve closed feedback signal BOOL 0FbkOpening 1 = Valve opening feedback signal BOOL 0FbkClosing 1 = Valve closing feedback signal BOOL 0NoFbkOpen 1 = No feedback for "Valve open" BOOL 0NoFbkClose 1 = No feedback for "Valve closed" BOOL 0Monitor 1 = Monitoring of feedback signals BOOL 1MonTiStatic Monitoring time for feedback errors with‐

out performed operation in [s]REAL 3.0

MonTiDynamic Monitoring time for feedback errors after performed operation in [s]

REAL 3.0

V_Monitor 1 = Monitoring valve feedback signals BOOL 1V_MonTiStatic Monitoring time for feedback errors of

the valve without performed operation in [s]

REAL 5.0

V_MonTiDynamic Monitoring time of the valve after per‐formed operation in [s]

REAL 5.0

M_Monitor 1 = Monitoring motor feedback signals BOOL 1M_MonTiStatic Monitoring time for feedback errors with‐

out performed operation in [s]REAL 3.0

M_MonTiDynamic Monitoring time of the motor after per‐formed operation in [s]

REAL 3.0

Motor and valve blocks7.8 S7VlvMot - Control of motor valve

PCS 7 Industry Library for S7220 Function Manual, 09/2015, A5E34977996-AA

Page 221: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Description Type DefaultMonSafePos 1 = Go to neutral position in the event of

monitoring errorsBOOL 1

SafePos Neutral position for valve: 0 = Closed, 1 = Open, 2 = Stop

INT 2

IdleTime Waiting for direction change or restart in [s]

REAL 5.0

PulseWidth Pulse width of control signal [s] REAL 3.0PauseWidth Pause width of control signal [s] REAL 3.0VibrWidth Vibration width [s] in binary mode REAL 3VibrPerc Vibration width [%] in analog mode REAL 5VibrNo Number vibration attempts INT 3WarnTiMan Prewarning of valve movement from

neutral position in "Manual mode" in [s]REAL 0.0

WarnTiAut Prewarning of valve movement from neutral position in "Automatic mode" in [s]

REAL 0.0

RapidStp Rapid stop for the motor 0 = Motor On, 1 = Motor Off

BOOL 0

RstOp 1 = Reset via operator BOOL 0RstLi 1 = Reset via interconnection BOOL 0ABS_Per Anti-blocking system activation period

(days)REAL 7

RstTmrOp 1 = Reset run time via operator BOOL 0RstTmrLi 1 = Reset run time via interconnection BOOL 0RstTotOp 1 = Reset total run time via operator BOOL 0RstTotLi 1 = Reset total run time via interconnec‐

tionBOOL 0

Startcyc Start counter REAL 0Runtime Run time counter in hours REAL 0.0Runtotal Cumulated run time counter in days REAL 0.0Stoptime Stop time counter in hours REAL 0.0DateTmr Date of last counter reset DWORD 0DateTot Date of last total reset DWORD 0MaxRunt Maximum total run time before next pre‐

ventive maintenanceREAL 365

MaxStart Maximum start cycles before next pre‐ventive maintenance

REAL 3000

BypProt 1 = Bypass interlock is enabled in "Local mode" and in simulation

BOOL 0

Trip 1 = Motor is in good state BOOL 1Permit 1 = Enable for Open / Close from the

neutral position, 0 = No OS activation enable for the valve

BOOL 1

Perm_En 1 = Activation enable (enable, Permit parameter) is enabled

BOOL 1

Motor and valve blocks7.8 S7VlvMot - Control of motor valve

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 221

Page 222: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Description Type DefaultIntlock 0 = Interlocking without reset in effect;

you can operate the block without reset once the interlocking condition has cleared, 1 = Interlock not in effect

BOOL 1

Intl_En 1 = Interlock without reset (interlock, Intlock parameter) is enabled

BOOL 1

Protect 0 = Protective interlocking in effect; once the interlocking condition has cleared, you have to reset the block, 1 = Protec‐tive interlock not in effect

BOOL 1

Prot_En 1 = Protective interlock (protection, Protect parameter) is enabled

BOOL 1

OpenForce 1 = Force Open valve BOOL 0CloseForce 1 = Force Close valve BOOL 0StopForce 1 = Force Stop motor BOOL 0TorqOpen 0 = Torque off enabled when opening, 1

= Good stateBOOL 1

TorqClose 0 = Torque off enabled when closing, 1 = Good state

BOOL 1

MsgLock 1 = Suppress process messages. BOOL 0SampleTime Sampling time [s] (assigned automatical‐

ly)REAL 0.1

RunUpCyc Number of cycles in startup; messages are suppressed during these cycles

INT 3

MsgEvId01 Message number (assigned automatical‐ly)

DWORD 16#00000000

MsgEvId02 Message number (assigned automatical‐ly)

DWORD 16#00000000

MsgEvId03 Message number (assigned automatical‐ly)

DWORD 16#00000000

MsgEvId04 Message number (assigned automatical‐ly)

DWORD 16#00000000

MsgEvId05 Message number (assigned automatical‐ly)

DWORD 16#00000000

MsgEvId06 Message number (assigned automatical‐ly)

DWORD 16#00000000

MsgEvId07 Message number (assigned automatical‐ly)

DWORD 16#00000000

MsgEvId08 Message number (assigned automatical‐ly)

DWORD 16#00000000

MsgEvId09 Message number (assigned automatical‐ly)

DWORD 16#00000000

MsgEvId10 Message number (assigned automatical‐ly)

DWORD 16#00000000

MsgEvId11 Message number (assigned automatical‐ly)

DWORD 16#00000000

BatchEn 1 = Enable allocation BOOL 0

Motor and valve blocks7.8 S7VlvMot - Control of motor valve

PCS 7 Industry Library for S7222 Function Manual, 09/2015, A5E34977996-AA

Page 223: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Description Type DefaultBatchID Batch number DWORD 16#00000000BatchName Batch name S7-String StepNo Batch step number DWORD 16#00000000Occupied 1 = In use by a batch BOOL 0MsgFilter Message filter DINT 0CmpID Area code DWORD 0Permis Switching authority INT 2FaultExt 1 = External error For more information

on this, see the APL Function Manual.BOOL 0

CSF 1 = External error (process control error) For more information on this, see the APL Function Manual.

BOOL 0

UserStatus Freely assignable bits for use in WinCC SCADA

BYTE 16#00

OS_Perm I/O for operator authorizations STRUCT● Bit 0: BOOL● …● Bit 31: BOOL

-● 1● 1● 1

OS1Perm I/O for operator authorizations STRUCT● Bit 0: BOOL● …● Bit 31: BOOL

-● 1● 1● 1

Feature I/O for additional functions STRUCT● Bit 0: BOOL● …● Bit 31: BOOL

-● 1● 1● 1

Feature2 I/O for additional functions STRUCT● Bit 0: BOOL● …● Bit 31: BOOL

-● 1● 1● 1

* Values can be written back to these inputs during processing of the block by the block algorithm.

Output parameters

Parameter Description Type DefaultENO 1 = Block algorithm completed without

errorsBOOL 0

MV Manipulated variable REAL 0.0MV_ExtOut External manipulated variable REAL 0.0MV_UnitOut Unit of measure for manipulated variable INT 0MonDynErr 1 = Feedback error due to control change BOOL 0

Motor and valve blocks7.8 S7VlvMot - Control of motor valve

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 223

Page 224: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Description Type DefaultMonStaErr 1 = Feedback error due to unexpected

feedback changeBOOL 0

V_MonDynErr 1 = Feedback error of the value due to control change

BOOL 0

V_MonStaErr 1 = Feedback error of the valve due to unexpected feedback change

BOOL 0

M_MonDynErr 1 = Feedback error of the motor due to control change

BOOL 0

M_MonStaErr 1 = Feedback error of the motor due to unexpected feedback change

BOOL 0

R_StpAct 1 = Rapid stop of motor enabled BOOL 0LockAct 1 = Interlock (Intlock, Permit,

Protect) or Trip is enabledBOOL 0

Reserved Reserved BOOL 0GrpErr 1 = Group error pending BOOL 0RdyToStart 1 = Ready to start pending BOOL 0RdyToReset 1 = Ready to reset via RstLi input or

commands in "Automatic mode"BOOL 0

WarnAct 1 = Prewarning for valve movement from neutral position active (WarnTiAut and WarnTiMan parameters)

BOOL 0

Open Control output: 1 = Open valve BOOL 0Close Control output 1 = Close valve BOOL 0P_Open 1 = Pulse signal to open the valve BOOL 0P_Close 1 = Pulse signal to close the valve BOOL 0P_Stop 0 = Pulse signal to stop the valve BOOL 1P_Rst 1= Pulse output for reset. The parameter

is pending for one cycle after a reset.BOOL 0

LocalAct 1 = "Local mode" enabled BOOL 0AutAct 1 = "Automatic mode" is enabled, 0 =

"Manual mode" is enabledBOOL 0

ManAct 1 = "Manual mode" is enabled BOOL 1OosAct 1 = Block is "Out of service" BOOL 0CascaCut Cascade connection: 1 = Control chain

from master controller to secondary valve is interrupted

BOOL 0

FbkOpenOut Feedback Valve open BOOL 0FbkCloseOut Feedback Valve closed BOOL 0FbkOpngOut Feedback Valve opening BOOL 0FbkClsgOut Feedback Valve closing BOOL 0Opened 1 = Valve is open BOOL 0Closed 1 = Valve is closed BOOL 0Opening 1 = Valve is opening BOOL 0Closing 1 = Valve is closing BOOL 0

Motor and valve blocks7.8 S7VlvMot - Control of motor valve

PCS 7 Industry Library for S7224 Function Manual, 09/2015, A5E34977996-AA

Page 225: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Description Type DefaultStop 1 = Motor stops and the valve is in inter‐

mediate positionBOOL 0

RbkOut Output for position feedback REAL 0.0RbkWH_Act 1 = Warning (high) for position feedback

enabled.BOOL 0

RbkWL_Act 1 = Warning (low) for position feedback enabled.

BOOL 0

PosReached 1 = Control valve has reached specified position

BOOL 0

ER Control deviation REAL 0.0ER_AH_Act 1 = Alarm limit (high) for control deviation

violated.BOOL 0

ER_AL_Act 1 = Alarm limit (low) for control deviation violated.

BOOL 0

ABS_On Anti-blocking system is enabled BOOL 0PM_Msg 1=Preventive maintenance required BOOL 0StartcycOut Interconnectable: Start cycles counter REAL 0.0RuntimeOut Interconnectable run time counter in

hoursREAL 0.0

RuntotalOut Interconnectable cumulated run time counter in days

REAL 0.0

StoptimeOut Interconnectable stop time counter in hours

REAL 0.0

OS_PermOut Display of OS_Perm DWORD 16#FFFFFFFFOS_PermLog Display of OS_Perm with settings

changed by the block algorithmDWORD 16#FFFFFFFF

OS1PermOut Display of OS1Perm DWORD 16#FFFFFFFFOS1PermLog Display of OS1Perm with settings

changed by the block algorithmDWORD 16#FFFFFFFF

LocAuthAct Local operator authorization enabled BOOL 0Status1 Status word 1 DWORD 16#00000000Status2 Status word 2 DWORD 16#00000000Status3 Status word 3 DWORD 16#00000000ErrorNum Output of current error number. For error

numbers that can be output by this block, see the error handling of S7VlvMot.

INT -1

QMsgErr 1 = Message error BOOL 0MsgStat01 Message status 1 WORD 16#0000MsgStat02 Message status 2 WORD 16#0000MsgStat03 Message status 3 WORD 16#0000MsgStat04 Message status 4 WORD 16#0000MsgStat05 Message status 5 WORD 16#0000MsgStat06 Message status 6 WORD 16#0000MsgStat07 Message status 7 WORD 16#0000

Motor and valve blocks7.8 S7VlvMot - Control of motor valve

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 225

Page 226: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Description Type DefaultMsgAck08 Message acknowledgment status 8 WORD 16#0000MsgAck09 Message acknowledgment status 9 WORD 16#0000MsgAck10 Message acknowledgment status 10 WORD 16#0000MsgAck11 Message acknowledgment status 11 WORD 16#0000

7.8.7 Operator control & monitoring

7.8.7.1 Views of S7VlvMot

Views of the S7VlvMot blockThe S7VlvMot block provides the following views:

● Standard view

● Message view

● Limit view

● Trend view

● Parameter view

● Maintenance view

● Preview

● Batch view

● Block icon

Not all fields are displayed with Feature.Bit13 = 0.

Motor and valve blocks7.8 S7VlvMot - Control of motor valve

PCS 7 Industry Library for S7226 Function Manual, 09/2015, A5E34977996-AA

Page 227: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

7.8.7.2 Standard view of S7VlvMot

Standard view of S7VlvMot

8

14

1

2

3

4

5

6

7

9

10

11

12

13

(1) Display and switchover the operating modeThis area provides information on the currently valid operating mode. The following operating modes can be shown here:

● Manual mode

● Automatic mode

● Local mode

● Out of service

(2) Open, close and stop the motor valveThis area shows you the default operating state for the motor valve. The following states can be shown and executed here:

● "Open"

● "Close"

● "Stop"

● "Rapid stop"

Motor and valve blocks7.8 S7VlvMot - Control of motor valve

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 227

Page 228: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

(3) Reset the blockClick "Reset" in the event of interlocks or errors. You can find additional information on this in the section Reset the block for interlocks or errors.

(4) Display and change the manipulated variableThis area shows the currently manipulated variable. You can only change the manipulated variable via the faceplate in manual mode. In preset automatic mode, the manipulated variable from the CFC block is applied and processed.

(5) Display for position feedbackThis area shows the current feedback of the manipulated variable.

(6) Bar display for manipulated variableThis area shows the current manipulated variable in the form of a bar graph. The visible area in the bar graph depends on the configuration in the engineering system (ES).

The external manipulated variable is identified with the letter "E".

(7) Bar display for position feedbackThis area shows the current position feedback in the form of a bar graph. The visible area in the bar graph depends on the configuration in the engineering system (ES). The limits for the "Open" and "Closed" positions are also indicated by two green lines.

(8) Operating area for the interlock functions of the blockThe following interlock types are available:

When the motor slider is stopped, the de-energized state is considered the neutral position. The neutral position is also reached by reaching one of the end positions, by activating a torque shutoff after several approaches, by the response to the run time monitoring, by activating the protection or interlock function.

● Activation enable ("Enable"): The activation enable makes it possible to leave the neutral position of the block in response to operator input or a command from the program (CFC).

● Interlock without reset ("Interlock"): An pending interlock condition brings the block to the neutral position. Once the interlock condition has cleared, the currently pending control becomes active again in automatic or local mode. In manual mode, the faceplate can be operated again once the interlocking condition is cleared.

● Option: Interlock with reset ("Protection"): An pending interlock condition brings the block to the neutral position. Once the interlock conditions are cleared, the operator or an activation sequence must perform a reset to once again enable activation of the control according to the input parameters.

Motor and valve blocks7.8 S7VlvMot - Control of motor valve

PCS 7 Industry Library for S7228 Function Manual, 09/2015, A5E34977996-AA

Page 229: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

(9) Activation/deactivation of message lockThe message lock can be enabled / disabled in this area.

(10) Display area for block statesThis area provides additional information on the operating state of the block:

● "Delay"

(11) Display area for block statesThis area provides additional information on the operating state of the block:

● "Motor protection"

● "Runtime error"

● "Control error"

● "Invalid signal"

● "Switchover error"

● "Torque switch enabled"

● "Vibrate enabled"

(12) Display area for block statesThis area provides additional information on the operating state of the block:

● "Forced open"

● "Forced close"

● "Forced stop"

● "Request 0/1": A reset to "Automatic mode" is expected.

(13) Display area for operating levelsThis area shows the current operating level of the block.

(14) Status display of the motor valveThe current status of the motor valve is graphically displayed here.

For additional information on this topic, refer to the section Block icon for S7VlvMot.

Motor and valve blocks7.8 S7VlvMot - Control of motor valve

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 229

Page 230: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

7.8.7.3 Limit view of S7VlvMot

Limit view of S7VlvMot You can set several values in this view by default:

● Control deviation limits

● Readback value limits

● Manipulated variable operating range

The toolbars of the faceplate and the block icon indicate when the limits are reached or violated.

1

2

3

4

(1) Control deviation limits (ER)In this area, you can enter the limits for the control deviation.

You can change the following limits:

● "H alarm": Alarm high

● "Hysteresis"

● "L alarm": Alarm low

(2) Readback value limits (RBK)In this area, you can enter the limits for the readback value.

Motor and valve blocks7.8 S7VlvMot - Control of motor valve

PCS 7 Industry Library for S7230 Function Manual, 09/2015, A5E34977996-AA

Page 231: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

You can change the following limits:

● "H warning": Warning high

● "Hysteresis"

● "L warning": Warning low

(3) Manipulated variable operating range (MV)In this area, you can enter the limits for the manipulated variable operating range.

You can change the following limits:

● "H range": Range high limit

● "L range": Range low limit

(4) Operator control enableThis area shows all operations for which special operator authorizations are assigned. They depend on the configuration in the engineering system (ES) that applies to this block.

Symbols for operator control enable:

● Green check mark: The OS operator may access this parameter

● Gray check mark: Access to this parameter is temporarily disabled for the OS operator due to process conditions

● Red cross: The OS operator cannot control this parameter due to the configured AS operator authorizations (OS_Perm or OS1Perm).

Motor and valve blocks7.8 S7VlvMot - Control of motor valve

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 231

Page 232: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

7.8.7.4 Parameter view of S7VlvMot

Parameter view of S7VlvMotL

1

2

3

4

5

(1) SettingsYou can enable the following functions for the controller in this area:

● "MV := Rbk in manual mode": Bumpless switchover from manual mode to automatic mode

● "MV := MV external": Bumpless switchover of the manipulated variable for manipulated variable switchover from "external" to "internal". The internal manipulated variable is tracked to the external one.

(2) Monitor valveIn this area, you change parameters and thereby influence the valve.

You can influence the following parameters:

● "Control": Monitoring time for the valve run time (dynamic)

● "Runtime": Monitoring time for maintaining the valve position (static)

Motor and valve blocks7.8 S7VlvMot - Control of motor valve

PCS 7 Industry Library for S7232 Function Manual, 09/2015, A5E34977996-AA

Page 233: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Enable monitoringYou enable monitoring by clicking the check box (☑).

(3) Monitor motor In this area, you change parameters and thereby influence the motor.

You can influence the following parameters:

● "Control": Monitoring time during starting and stopping of the motor (dynamic)

● "Runtime": Monitoring time for the motor operation characteristics (static)

Enable monitoringYou enable monitoring by clicking the check box (☑).

(4) Monitoring In this area, you change parameters and thereby influence the control valve.

You can influence the following parameters:

● "Control": Monitoring time during opening and closing of the control valve (dynamic)

● "Runtime": Monitoring time of the end position of the control valve (static)

Enable monitoring

You enable monitoring by clicking the check box (☑).

(5) Operator control enableThis area shows all operations for which special operator authorizations are assigned. They depend on the configuration in the engineering system (ES) that applies to this block.

Symbols for operator control enable:

● Green check mark: The OS operator may access this parameter

● Gray check mark: Access to this parameter is temporarily disabled for the OS operator due to process conditions

● Red cross: The OS operator cannot control this parameter due to the configured AS operator authorizations (OS_Perm or OS1Perm).

Motor and valve blocks7.8 S7VlvMot - Control of motor valve

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 233

Page 234: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

7.8.7.5 Preview of S7VlvMot

Preview of S7VlvMotThe preview shows you the parameters that you, as an OS operator, can control. You cannot control anything in this view, however.

8

9

1

2

3

4

5

6

7

(1) Automatic previewThis area shows you the block status after it has switched from manual mode to "Automatic mode".

If the block is in "Automatic mode", the current block state is displayed.

Motor and valve blocks7.8 S7VlvMot - Control of motor valve

PCS 7 Industry Library for S7234 Function Manual, 09/2015, A5E34977996-AA

Page 235: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

(2) External MVThis field displays the external manipulated variable (MV_Ext).

(3) Internal MVThis field displays the internal manipulated variable (MV_Int).

(4) Local MVThis field displays the local manipulated variable (MV_Local).

(5) Control deviationThis field displays the control deviation ((ER).

(6) Track MVThis field displays the MV tracking (MV_TrkOn).

(7) Track MVThis field displays the tracking value (MV_Trk).

(8) Operator control enablesThis area shows all operations for which special operator authorizations are assigned. They depend on the configuration in the engineering system (ES) that applies to this block.

Symbols for operator control enable:

● Green check mark: The OS operator may access this parameter

● Gray check mark: Access to this parameter is temporarily disabled for the OS operator due to process conditions

● Red cross: The OS operator cannot control this parameter due to the configured AS operator authorizations (OS_Perm or OS1Perm).

The following enabled operations are shown here:

● "Stop": You can stop the motor of the valve.

● "Open": You can open the motor valve.

● "Close": You can close the motor valve.

● "Reset": You can reset the motor valve if interlocks or errors occur.

● "Automatic": You can switch to "Automatic mode".

● "Manual": You can switch to "Manual mode".

● "Local": You can switch to "Local mode".

● "Out of service": You can switch to "Out of service" operating mode.

Motor and valve blocks7.8 S7VlvMot - Control of motor valve

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 235

Page 236: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

(9) Display current control signalsThis area shows the most important parameters for this block with the current control:

● "Enable":

– 0 = Motor valve activation not enabled on OS

– 1 = Enable for "opening" / "closing" from the neutral position

● "Protection":

– 0 = Protective interlocking in effect; once the interlocking condition has cleared, you have to reset the block

– 1 = Good state

● "Interlock":

– 0 = Interlocking without reset in effect; you can operate the block without reset once the interlocking condition has cleared

– 1 = Good state

● "Local correct": 1 = Control signal for "Local mode" (LocalLi) is enabled

● "Motor protection": 0 = Motor protection enabled

● "Bypass protection":

– 0 = Bypass disabled

– 1 = Bypassing interlock in "Local mode" and in simulation

● "Torque opening": 0 = Torque shutoff when opening

● "Torque closing": 0 = Torque shutoff when closing

● "Local stop": 1 = Stop the motor valve in "Local mode"

● "Local open": 1 = Open the motor valve in "Local mode"

● "Local close": 1 = Close the motor valve in "Local mode"

● "Feedback open": 1 = Motor valve is opened

● "Feedback close": 1 = Motor valve is closed

● "Open": 1 = Motor valve is opening

● "Close": 1 = Motor valve is closing

7.8.7.6 Block icons of S7VlvMot

Block icons for S7VlvMotLA variety of block icons are available with the following functions:

● Process tag type

● Limits (high/low)

● Violation of alarm, warning, and tolerance limits as well as control system faults

● Operating modes

Motor and valve blocks7.8 S7VlvMot - Control of motor valve

PCS 7 Industry Library for S7236 Function Manual, 09/2015, A5E34977996-AA

Page 237: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

● Display for bypassing interlocks

● Interlocks

● Valve status display

● Switching authority: Operator panel "OP", Local control center "LC" or Local OS (no icon)

The block icons from template @TemplateAPLV8.PDL:

Icons Selection of the block icon in CFC1

2

3

4

Valve status displayThe following valve states are shown here:

Icon Meaning Valve open Valve closed Error at valve Valve is opening Valve is closing Valve stops

Motor and valve blocks7.8 S7VlvMot - Control of motor valve

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 237

Page 238: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Motor and valve blocks7.8 S7VlvMot - Control of motor valve

PCS 7 Industry Library for S7238 Function Manual, 09/2015, A5E34977996-AA

Page 239: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Panel blocks 88.1 S7PCalcWatP - Operator panel interface for S7CalcWatP

8.1.1 FunctionThe "S7PCalcWatP" block acts as the interface between a "S7CalcWatP" technological block and the operator panel.

The OP_STAT input must be connected to the corresponding output of the S7CalcWatP block.

The MSG_FILTER output must be connected to the corresponding output of the S7CalacWatP block.

The IDBNR output has to point to an address of the PanelConDB data block. This area of the data block is needed to connect the panel.

8.1.2 OBs to be calledThis is the cyclic interrupt OB in which you install the block (OB32). Additionally in OB100 (see Startup characteristics (Page 239)).

8.1.3 Startup characteristicsThe RUNUPCYC parameter can be used to specify for how long (number of cycles) the messages are to be suppressed.

RESTART = TRUE can be used to simulate a restart.

8.1.4 Called blocks

SFC6 RD_SINFOUDTxx UDT_S7PCalcWatP

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 239

Page 240: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

8.1.5 Block parameters

Parameter Type IN/OUT OCM DescriptionEN BOOL IN 0 RESTART BOOL IN 0 Manual startupOP_MODE WORD IN 0 ReservedQOP_T_FORERN REAL IN 0 Supply temperature statusQOP_T_RETURN REAL IN 0 Return temperature statusQOP_V_FL_RT REAL IN 0 Flow rate statusQOP_QTH_POW REAL IN 0 Thermal power status QOP_QTH_ENGY REAL IN 0 Thermal energy statusQOP_QTH_ENGY2 REAL IN 0 ReservedQOP_QHEATING BOOL IN 0 Heating or cooling statusEN_AUX BOOL IN 0 Enable for associated valuesAUX1 REAL IN 0 Associated value 1AUX2 REAL IN 0 Associated value 2AUX3 REAL IN 0 Associated value 3AUX4 REAL IN 0 Associated value 4OS_STAT DWORD IN 0 Status WinCCOS_STAT_AL DWORD IN 0 Bit message procedureOP_MSG_FILTER DINT IN 0 Message filter for WinCC flexibleOP_PERM_LOG DWORD IN 0 Operator enableOP_VISIBILITY DWORD IN 0 Visibility in OPPERMIS INT IN 1 Switching authorityOP_PERMIS INT IN 0 Panel priorityBL_CONN ANY IN 0 ReservedRUNUPCYC INT IN 0 Number of startup cycles with message suppressionAS_NR INT IN 0 AS number for message filter (max. 999)OP_STAT STRUCT IN_OUT 0 StatusOP_STAT.UDT_IDENT BYTE IN_OUT 0 UDT identifier for UDT_S7PCalcWatPOP_STAT.QOP_T_FORERN REAL IN_OUT 0 Supply temperature statusOP_STAT.QOP_T_RETURN REAL IN_OUT 0 Return temperature statusOP_STAT.QOP_V_FL_RT REAL IN_OUT 0 Flow rate statusOP_STAT.QOP_QTH_POW REAL IN_OUT 0 Thermal power statusOP_STAT.QOP_QTH_ENGY REAL IN_OUT 0 Thermal energy statusOP_STAT.QOP_QHEATING BOOL IN_OUT 0 Status 1=Heating, 0=CoolingOP_STAT.QOP_QERR BOOL IN_OUT 0 Status 1=Operator panel error OP_STAT.QOS_STAT_F WORD IN_OUT 0 Status for panel messages ENO BOOL OUT 0 QOP_ACTIVE BOOL OUT 0 Status 1=Panel 1=Operator authorizationMSG_FILTER DINT OUT 0 Message filter

Panel blocks8.1 S7PCalcWatP - Operator panel interface for S7CalcWatP

PCS 7 Industry Library for S7240 Function Manual, 09/2015, A5E34977996-AA

Page 241: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionIDBNR INT OUT 0 InstanceDB - NumberQDB_CO_ERR BOOL OUT 0 Reserved

8.1.6 Operator control & monitoring

8.1.6.1 Views of S7CalcWatPThe block provides the following views:

● Standard view

● Message view

● Associated value view

8.1.6.2 Standard view of S7CalcWatP

8.1.6.3 Block icons of S7CalcWatP

Panel blocks8.1 S7PCalcWatP - Operator panel interface for S7CalcWatP

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 241

Page 242: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

8.2 S7PHxFct - Operator panel interface for S7HxFct

8.2.1 FunctionThe S7PHxFct block acts as the interface between a "S7HxFct" technological block and the operator panel.

The OP_STAT input must be connected to the corresponding output of the S7HxFct block.

The MSG_FILTER output must be connected to the corresponding output of the S7HxFct block.

The IDBNR output must point to an address in the PanelConDB data block. This area of the data block is needed to connect the panel.

8.2.2 OBs to be calledThis is the cyclic interrupt OB in which you install the block (OB32). Additionally in OB100 (see Startup characteristics (Page 242)).

8.2.3 Startup characteristicsThe RUNUPCYC parameter can be used to specify for how long (number of cycles) the messages are to be suppressed.

RESTART = TRUE can be used to simulate a restart.

8.2.4 Called blocks

SFC6 RD_SINFOUDTxx UDT_S7PHxFct

8.2.5 Block parameters

Parameter Type IN/OUT OCM DescriptionEN BOOL IN 0 RESTART BOOL IN 0 Manual startupOP_MODE WORD IN 0 RESERVED. Not used yet.QOP_T_CENTC REAL IN 0 Status temperatureQOP_H_REL REAL IN 0 Status humidityQOP_QENT REAL IN 0 Status enthalpy QOP_QH_ABS REAL IN 0 Status absolute humidity

Panel blocks8.2 S7PHxFct - Operator panel interface for S7HxFct

PCS 7 Industry Library for S7242 Function Manual, 09/2015, A5E34977996-AA

Page 243: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionQOP_QH_SAT REAL IN 0 Status saturated humidityEN_AUX BOOL IN 0 Activate associated values AUX1 REAL IN 0 AssociatedValue1AUX2 REAL IN 0 AssociatedValue2AUX3 REAL IN 0 AssociatedValue3AUX4 REAL IN 0 AssociatedValue4OS_STAT DWORD IN 0 Status WinCCOS_STAT_AL DWORD IN 0 Bit message procedureOP_MSG_FILTER DINT IN 0 Message filter for WinCC flexibleOP_PERM_LOG DWORD IN 0 Operator enableOP_VISIBILITY DWORD IN 0 Visibility in OPPERMIS INT IN 1 Switching authorityOP_PERMIS INT IN 0 Panel priorityBL_CONN ANY IN 0 ReservedRUNUPCYC INT IN 0 Number of cycles for which all messages are suppressed AS_NR INT IN 0 AS number for message filter (max. 999)OP_STAT STRUCT IN_OUT 0 Unit statusOP_STAT.UDT_IDENT BYTE IN_OUT 0 UDT identifier for UDT_S7PCalcWatPOP_STAT.QOP_T_CENTC REAL IN_OUT 0 Status temperatureOP_STAT.QOP_H_REL REAL IN_OUT 0 Status relative humidityOP_STAT.QOP_QENT REAL IN_OUT 0 Status enthalpyOP_STAT.QOP_QH_ABS REAL IN_OUT 0 Status absolute humidityOP_STAT.QOP_QH_SAT REAL IN_OUT 0 Status saturated humidityOP_STAT.QOP_QERR BOOL IN_OUT 0 Status 1=Operator panel error OP_STAT.QOS_STAT_F WORD IN_OUT 0 Status panel messages ENO BOOL OUT 0 QOP_ACTIVE BOOL OUT 0 Status operator panel 1=Operator enableMSG_FILTER DINT OUT 0 Message filterIDBNR INT OUT 0 InstanceDB - NumberQDB_CO_ERR BOOL OUT 0 Reserved

8.2.6 Operator control & monitoring

8.2.6.1 Views of S7PHxFctThe block provides the following views:

● Standard view

● Message view

● Associated value view

Panel blocks8.2 S7PHxFct - Operator panel interface for S7HxFct

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 243

Page 244: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

8.2.6.2 Standard view of S7PHxFct

8.2.6.3 Block icon of S7PHxFct

Panel blocks8.2 S7PHxFct - Operator panel interface for S7HxFct

PCS 7 Industry Library for S7244 Function Manual, 09/2015, A5E34977996-AA

Page 245: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

8.3 S7PMonAn - Operator panel interface for S7MonAn

8.3.1 FunctionThe S7PMonAn block acts as the interface between a "S7MonAn" technological block and the operator panel.

The OP_STAT input must be connected to the corresponding output of the S7MonAn block.

The MSG_FILTER output must be connected to the corresponding output of the S7MonAn block.

The IDBNR output must point to an address in the PanelConDB data block. This area of the data block is needed to connect the panel.

8.3.2 OBs to be calledThis is the cyclic interrupt OB in which you install the block (e.g. OB32). Additionally in OB100 (see Startup characteristics (Page 245)).

8.3.3 Startup characteristicsThe RUNUPCYC parameter can be used to specify for how long (number of cycles) the messages are to be suppressed.

RESTART = TRUE can be used to simulate a restart.

8.3.4 Called blocks

SFC6 RD_SINFOUDT69 UDT_S7PMonAn

8.3.5 Block parameters

Block I/Os

Parameter Type IN/OUT OCM DescriptionEN BOOL IN 0 RESTART BOOL IN 0 Manual startupOP_MODE WORD IN 0 RESERVED. Not used yet.QOP_V REAL IN 0 Process value status

Panel blocks8.3 S7PMonAn - Operator panel interface for S7MonAn

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 245

Page 246: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionQOP_MO_PVHR REAL IN 0 High range barQOP_V_AH REAL IN 0 ReservedQOP_V_WH REAL IN 0 ReservedQOP_V_WL REAL IN 0 ReservedQOP_V_AL REAL IN 0 ReservedQOP_MO_PVLR REAL IN 0 Low range barQOP_GRAD REAL IN 0 Gradient statusEN_AUX BOOL IN 0 Activate associated valuesAUX1 REAL IN 0 AssociatedValue1AUX2 REAL IN 0 AssociatedValue2AUX3 REAL IN 0 AssociatedValue3AUX4 REAL IN 0 AssociatedValue4OS_STAT DWORD IN 0 Status WinCC flexibleOS_STAT_AL DWORD IN 0 Bit message procedureOP_MSG_FILTER DINT IN 0 Message filter for WinCC flexibleOP_PERM_LOG DWORD IN 0 Operator enableOP_VISIBILITY DWORD IN 0 Visibility in OPPERMIS INT IN 1 Switching authorityOP_PERMIS INT IN 0 Panel priorityBL_CONN ANY IN 0 ReservedRUNUPCYC INT IN 0 Number of startup cycles with message suppression AS_NR INT IN 0 AS number for message filter (max. 999)OP_STAT STRUCT IN_OUT 0 Status for S7MonAnOP_STAT.UDT_IDENT BYTE IN_OUT 0 UDT identifier for UDT_S7PMonAnOP_STAT.QOP_V REAL IN_OUT 0 Measured value statusOP_STAT.MO_PVHR REAL IN_OUT 0 High range barOP_STAT.MO_PVLR REAL IN_OUT 0 Low range barOP_STAT.MAN_EN BOOL IN_OUT 0 Manual mode enabledOP_STAT.QOP_QERR BOOL IN_OUT 0 Status 1=Operator panel errorOP_STAT.QOS_STAT_F WORD IN_OUT 0 Status for panel messagesENO BOOL OUT 0 QOP_ACTIVE BOOL OUT 0 Status operator panel 1=Operator enableMSG_FILTER DINT OUT 0 Message filterIDBNR INT OUT 0 InstanceDB - NumberQDB_CO_ERR BOOL OUT 0 Reserved

Status word assignment for QOS_STAT parameter

Status bit ParameterBit 0 – Bit 2 -

Bit3 Panel active

Panel blocks8.3 S7PMonAn - Operator panel interface for S7MonAn

PCS 7 Industry Library for S7246 Function Manual, 09/2015, A5E34977996-AA

Page 247: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Status bit ParameterBit 4 – Bit 6 -

Bit7 FaultBit 8 – Bit 31 -

Status word assignment for QOS_STAT_AL parameter

Status bit ParameterBit0 External error occurred (CSF)Bit1 PV - Alarm high limit violatedBit2 PV - Alarm low limit violated

Bit3 – Bit 4 -Bit5 PV - Warning high limit violatedBit6 PV - Warning low limit violated

Bit 7 – Bit 31 -

8.3.6 Operator control & monitoring

8.3.6.1 Views of S7PMonAnThe block provides the following views:

● Standard view

● Message view

● Trend view

● Associated value view

8.3.6.2 Standard view of S7PMonAn

Panel blocks8.3 S7PMonAn - Operator panel interface for S7MonAn

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 247

Page 248: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

8.3.6.3 Block icons of S7PMonAn

Panel blocks8.3 S7PMonAn - Operator panel interface for S7MonAn

PCS 7 Industry Library for S7248 Function Manual, 09/2015, A5E34977996-AA

Page 249: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

8.4 S7PMonAn08 - Operator panel interface for S7MonAn08

8.4.1 FunctionThe S7PMonAn08 block acts as the interface between a "S7MonAn08" technological block and the operator panel.

The OP_STAT input must be connected to the corresponding output of the S7MonAn08 block.

The MSG_FILTER output must be connected to the corresponding output of the S7MonAn08 block.

The IDBNR output must point to an address in the PanelConDB data block. This area of the data block is needed to connect the panel.

8.4.2 OBs to be calledThis is the cyclic interrupt OB in which you install the block (e.g. OB32). Additionally in OB100 (see Startup characteristics (Page 249)).

8.4.3 Startup characteristicsThe RUNUPCYC parameter can be used to specify for how long (number of cycles) the messages are to be suppressed.

RESTART = TRUE can be used to simulate a restart.

8.4.4 Called blocks

SFC6 RD_SINFOUDT70 UDT_S7PMonAn08

8.4.5 Block parameters

Block I/Os

Parameter Type IN/OUT OCM DescriptionEN BOOL IN 0 RESTART BOOL IN 0 Manual startupOP_MODE WORD IN 0 RESERVED. Not used yet.QOP_V REAL IN 0 Process value status

Panel blocks8.4 S7PMonAn08 - Operator panel interface for S7MonAn08

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 249

Page 250: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionQOP_V_LIM_1 REAL IN 0 ReservedQOP_V_LIM_2 REAL IN 0 ReservedQOP_V_LIM_3 REAL IN 0 ReservedQOP_V_LIM_4 REAL IN 0 ReservedQOP_V_LIM_5 REAL IN 0 ReservedQOP_V_LIM_6 REAL IN 0 ReservedQOP_V_LIM_7 REAL IN 0 ReservedQOP_V_LIM_8 REAL IN 0 ReservedQOP_MO_PVHR REAL IN 0 High range barQOP_MO_PVLR REAL IN 0 Low range bar EN_AUX BOOL IN 0 Activate associated valuesAUX1 REAL IN 0 AssociatedValue1AUX2 REAL IN 0 AssociatedValue2AUX3 REAL IN 0 AssociatedValue3AUX4 REAL IN 0 AssociatedValue4OS_STAT DWORD IN 0 Status WinCC flexibleOS_STAT_AL DWORD IN 0 Bit message procedureOP_MSG_FILTER DINT IN 0 Message filter for WinCC flexibleOP_PERM_LOG DWORD IN 0 Operator enableOP_VISIBILITY DWORD IN 0 Visibility in OPPERMIS INT IN 1 Switching authorityOP_PERMIS INT IN 0 Panel priorityBL_CONN ANY IN 0 ReservedRUNUPCYC INT IN 0 Number of startup cycles with message suppression AS_NR INT IN 0 AS number for message filter (max. 999)OP_STAT STRUCT IN_OUT 0 Status for S7MonAn08OP_STAT.UDT_IDENT BYTE IN_OUT 0 UDT identifier for UDT_S7PMonAn08OP_STAT.QOP_V REAL IN_OUT 0 Measured value statusOP_STAT.MO_PVHR REAL IN_OUT 0 High range barOP_STAT.MO_PVLR REAL IN_OUT 0 Low range bar OP_STAT.MAN_EN BOOL IN_OUT 0 Manual mode enabledOP_STAT.QOP_QERR BOOL IN_OUT 0 Status 1=Operator panel errorOP_STAT.QOS_STAT_F WORD IN_OUT 0 Status panel messagesENO BOOL OUT 0 QOP_ACTIVE BOOL OUT 0 Status operator panel 1=Operator enableMSG_FILTER DINT OUT 0 Message filterIDBNR INT OUT 0 InstanceDB - NumberQDB_CO_ERR BOOL OUT 0 Reserved

Panel blocks8.4 S7PMonAn08 - Operator panel interface for S7MonAn08

PCS 7 Industry Library for S7250 Function Manual, 09/2015, A5E34977996-AA

Page 251: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Status word assignment for QOS_STAT parameter

Status bit ParameterBit 0 – Bit 2 -

Bit3 Panel activeBit 4 – Bit 6 -

Bit7 FaultBit 8 – Bit 31 -

Status word assignment for QOS_STAT_AL parameter

Status bit ParameterBit0 External error occurred (CSF)Bit1 Limit 1Bit2 Limit 2Bit3 Limit 3Bit4 Limit 4Bit5 Limit 5Bit6 Limit 6Bit7 Limit 7Bit8 Limit 8

Bit 9 – Bit 31 -

8.4.6 Operator control & monitoring

8.4.6.1 Views of S7PMonAn08The block provides the following views:

● Standard view

● Message view

● Trend view

● Associated value view

Panel blocks8.4 S7PMonAn08 - Operator panel interface for S7MonAn08

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 251

Page 252: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

8.4.6.2 Standard view of S7PMonAn08

8.4.6.3 Block icons of S7PMonAn08

Panel blocks8.4 S7PMonAn08 - Operator panel interface for S7MonAn08

PCS 7 Industry Library for S7252 Function Manual, 09/2015, A5E34977996-AA

Page 253: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

8.5 S7PMonAnDi - Operator panel interface for S7MonAnDi

8.5.1 FunctionThe S7PMonAnDi block acts as the interface between a "S7MonAnDi" technological block and the operator panel.

The OP_STAT input must be connected to the corresponding output of the S7MonAnDi block.

The MSG_FILTER output must be connected to the corresponding output of the S7MonAnDi block.

The IDBNR output must point to an address in the PanelConDB data block. This area of the data block is needed to connect the panel.

8.5.2 OBs to be calledThis is the cyclic interrupt OB in which you install the block (e.g. OB32). Additionally in OB100 (see Startup characteristics (Page 253)).

8.5.3 Startup characteristicsThe RUNUPCYC parameter can be used to specify for how long (number of cycles) the messages are to be suppressed.

RESTART = TRUE can be used to simulate a restart.

8.5.4 Called blocks

SFC6 RD_SINFOUDT71 UDT_S7PMonAnDi

8.5.5 Block parameters

Block I/Os

Parameter Type IN/OUT OCM DescriptionEN BOOL IN 0 RESTART BOOL IN 1 Manual startupOP_MODE WORD IN 0 RESERVED. Not used yet.QOP_V REAL IN 0 Process value status

Panel blocks8.5 S7PMonAnDi - Operator panel interface for S7MonAnDi

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 253

Page 254: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionQOP_V_AH REAL IN 0 ReservedQOP_V_WH REAL IN 0 ReservedQOP_V_WL REAL IN 0 ReservedQOP_V_AL REAL IN 0 ReservedQOP_MO_PVHR REAL IN 0 High range barQOP_MO_PVLR REAL IN 0 Low range barQ_AH BOOL IN 0 Limit error HHQ_WH BOOL IN 0 Limit error HQ_WL BOOL IN 0 Limit error LQ_AL BOOL IN 0 Limit error LLEN_AUX BOOL IN 0 Activate associated valuesAUX1 REAL IN 0 AssociatedValue1AUX2 REAL IN 0 AssociatedValue2AUX3 REAL IN 0 AssociatedValue3AUX4 REAL IN 0 AssociatedValue4OS_STAT DWORD IN 0 Status WinCC flexibleOS_STAT_AL DWORD IN 0 Bit message procedureOP_MSG_FILTER DINT IN 0 Message filter for WinCC flexibleOP_PERM_LOG DWORD IN 0 Operator enableOP_VISIBILITY DWORD IN 0 Visibility in OPPERMIS INT IN 1 Switching authorityOP_PERMIS INT IN 0 Panel priorityBL_CONN ANY IN 0 ReservedRUNUPCYC INT IN 0 Number of startup cycles with message sup‐

pression AS_NR INT IN 0 AS number for message filter (max. 999)OP_STAT STRUCT IN_OUT 0 Status for S7MonAnDiOP_STAT.UDT_IDENT BYTE IN_OUT 0 UDT identifier for UDT_S7PMonAnDiOP_STAT.QOP_V REAL IN_OUT 0 Measured value statusOP_STAT.MO_PVHR REAL IN_OUT 0 High range barOP_STAT.MO_PVLR REAL IN_OUT 0 Low range barOP_STAT.Q_AL BOOL IN_OUT 0 Limit error LLOP_STAT.Q_AH BOOL IN_OUT 0 Limit error HHOP_STAT.Q_WL BOOL IN_OUT 0 Limit error LOP_STAT.Q_WH BOOL IN_OUT 0 Limit error H OP_STAT.MAN_EN BOOL IN_OUT 0 Manual mode enabledOP_STAT.QOP_QERR BOOL IN_OUT 0 Status 1=Operator panel errorOP_STAT.QOS_STAT_F WORD IN_OUT 0 Status for panel messagesENO BOOL OUT 0 QOP_ACTIVE BOOL OUT 0 Status operator panel 1=Operator enableMSG_FILTER DINT OUT 0 Message filter

Panel blocks8.5 S7PMonAnDi - Operator panel interface for S7MonAnDi

PCS 7 Industry Library for S7254 Function Manual, 09/2015, A5E34977996-AA

Page 255: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionIDBNR INT OUT 0 InstanceDB - NumberQDB_CO_ERR BOOL OUT 0 Reserved

Status word assignment for QOS_STAT parameter

Status bit ParameterBit 0 – Bit 2 -

Bit3 Panel activeBit 4 – Bit 6 -

Bit7 FaultBit 8 – Bit 31 -

Status word assignment for QOS_STAT_AL parameter

Status bit ParameterBit0 External error occurred (CSF)Bit1 PV - Alarm high limit violatedBit2 PV - Alarm low limit violated

Bit3 – Bit 4 -Bit5 PV - Warning high limit violatedBit6 PV - Warning low limit violated

Bit 7 – Bit 31 -

8.5.6 Operator control & monitoring

8.5.6.1 Views of S7PMonAnDiThe block provides the following views:

● Standard view

● Message view

● Trend view

● Associated value view

Panel blocks8.5 S7PMonAnDi - Operator panel interface for S7MonAnDi

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 255

Page 256: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

8.5.6.2 Standard view of S7PMonAnDi

8.5.6.3 Block icons of S7PMonAnDi

Panel blocks8.5 S7PMonAnDi - Operator panel interface for S7MonAnDi

PCS 7 Industry Library for S7256 Function Manual, 09/2015, A5E34977996-AA

Page 257: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

8.6 S7PMonAnGrad - Operator panel interface for S7MonAnGrad

8.6.1 FunctionThe "S7PMonAnGrad" block acts as the interface between a "S7MonAnGrad" technological block and the operator panel.

The OP_STAT input must be connected to the corresponding output of the S7MonAnGrad block.

The MSG_FILTER output must be connected to the corresponding output of the S7MonAnGrad block.

The IDBNR output must point to an address in the PanelConDB data block. This area of the data block is needed to connect the panel.

8.6.2 Calling OBsThis is the cyclic interrupt OB in which you install the block (e.g. OB32). Additionally in OB100 (see Startup characteristics (Page 257)).

8.6.3 Startup characteristicsThe RUNUPCYC parameter can be used to specify for how long (number of cycles) the messages are to be suppressed.

RESTART = TRUE can be used to simulate a restart.

8.6.4 Called blocks

SFC6 RD_SINFOUDT73 UDT_S7PMonAnGrad

8.6.5 Block parameters

Block I/Os

Parameter Type IN/OUT OCM DescriptionEN BOOL IN 0 RESTART BOOL IN 0 Manual startupOP_MODE WORD IN 0 RESERVED. Not used yet.

Panel blocks8.6 S7PMonAnGrad - Operator panel interface for S7MonAnGrad

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 257

Page 258: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionQOP_V REAL IN 0 Process value statusQOP_V_AH REAL IN 0 ReservedQOP_V_WH REAL IN 0 ReservedQOP_V_WL REAL IN 0 ReservedQOP_V_AL REAL IN 0 ReservedQOP_MO_PVHR REAL IN 0 High range barQOP_MO_PVLR REAL IN 0 Low range barQOP_GRAD REAL IN 0 Gradient statusEN_AUX BOOL IN 0 Enable associated value viewAUX1 REAL IN 0 Associated value 1AUX2 REAL IN 0 Associated value 2AUX3 REAL IN 0 Associated value 3AUX4 REAL IN 0 Associated value 4OS_STAT DWORD IN 0 Status WinCC flexibleOS_STAT_AL DWORD IN 0 Bit message procedure OP_MSG_FILTER DINT IN 0 Message filter for WinCC flexibleOP_PERM_LOG DWORD IN 0 Operator enableOP_VISIBILITY DWORD IN 0 Visibility in OPPERMIS INT IN 1 Switching authorityOP_PERMIS INT IN 0 Panel priorityBL_CONN ANY IN 0 ReservedRUNUPCYC INT IN 0 Number of startup cycles with message suppres‐

sionAS_NR INT IN 0 AS number for message filter (max. 999)OP_STAT STRUCT IN_OUT 0 Status for SMEASGRADOP_STAT.UDT_IDENT BYTE IN_OUT 0 UDT identifier for UDT_S7PMonAnGradOP_STAT.QOP_V REAL IN_OUT 0 Measured value statusOP_STAT.MO_PVHR REAL IN_OUT 0 High range barOP_STAT.MO_PVLR REAL IN_OUT 0 Low range barOP_STAT.QOP_GRADIENT REAL IN_OUT 0 Gradient status OP_STAT.MAN_EN BOOL IN_OUT 0 Manual mode enabledOP_STAT.QOP_QERR BOOL IN_OUT 0 Status 1=Operator panel errorOP_STAT.QOS_STAT_F WORD IN_OUT 0 Status panel messagesENO BOOL OUT 0 QOP_ACTIVE BOOL OUT 0 Status operator panel 1=Operator enableMSG_FILTER DINT OUT 0 Message filterIDBNR INT OUT 0 InstanceDB - NumberQDB_CO_ERR BOOL OUT 0 Reserved

Panel blocks8.6 S7PMonAnGrad - Operator panel interface for S7MonAnGrad

PCS 7 Industry Library for S7258 Function Manual, 09/2015, A5E34977996-AA

Page 259: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Status word assignment for QOS_STAT parameter

Status bit ParameterBit 0 – Bit 2 -

Bit3 Panel activeBit 4 – Bit 6 -

Bit7 FaultBit 8 – Bit 31 -

Status word assignment for QOS_STAT_AL parameter

Status bit ParameterBit0 External error occurred (CSF)Bit1 PV - Alarm high limit violatedBit2 PV - Alarm low limit violated

Bit3 – Bit 4 Limit 3Bit5 PV - Warning high limit violated Bit6 PV - Warning low limit violated Bit7 Limit (high) positive gradientBit8 Limit (low) negative gradient

Bit 9 – Bit 31 -

8.6.6 Operator control & monitoring

8.6.6.1 Views of S7PMonAnGradThe block provides the following views:

● Standard view

● Message view

● Trend view

● Associated value view

Panel blocks8.6 S7PMonAnGrad - Operator panel interface for S7MonAnGrad

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 259

Page 260: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

8.6.6.2 Standard view of S7PMonAnGrad

8.6.6.3 Block icons of S7PMonAnGrad

Panel blocks8.6 S7PMonAnGrad - Operator panel interface for S7MonAnGrad

PCS 7 Industry Library for S7260 Function Manual, 09/2015, A5E34977996-AA

Page 261: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

8.7 S7PMonDi - Operator panel interface for S7MonDi

8.7.1 FunctionThe "S7PMonDi" block acts as the interface between a "S7MonDi" technological block and the operator panel.

The OP_STAT input must be connected to the output of the S7MonDi block.

The MSG_FILTER output must be connected to the input of the S7MonDi block.

The IDBNR output must point to an address in the PanelConDB data block. This area of the data block is needed to connect the panel.

8.7.2 Calling OBsThis is the cyclic interrupt OB in which you install the block (e.g. OB32). Additionally in OB100 (see Startup characteristics (Page 261)).

8.7.3 Startup characteristicsThe RUNUPCYC parameter can be used to specify for how long (number of cycles) the messages are to be suppressed.

RESTART = TRUE can be used to simulate a restart.

8.7.4 Called blocks

SFC6 RD_SINFOUDT67 UDT_S7PMonDi

8.7.5 Block parameters

Block I/Os

Parameter Type IN/OUT OCM DescriptionEN BOOL IN 0 RESTART BOOL IN 0 Manual startupOP_MODE WORD IN 0 RESERVED. Not used yet.QOP_Q BOOL IN 0 Process value statusEN_AUX BOOL IN 0 Enable associated value view

Panel blocks8.7 S7PMonDi - Operator panel interface for S7MonDi

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 261

Page 262: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionAUX1 REAL IN 0 Associated value 1 AUX2 REAL IN 0 Associated value 2 AUX3 REAL IN 0 Associated value 3 AUX4 REAL IN 0 Associated value 4 OS_STAT DWORD IN 0 Status WinCC flexibleOS_STAT_AL DWORD IN 0 Bit message procedureOP_MSG_FILTER DINT IN 0 Message filter for WinCC flexibleOP_PERM_LOG DWORD IN 0 Operator enableOP_VISIBILITY DWORD IN 0 Visibility in OPPERMIS INT IN 1 Switching authorityOP_PERMIS INT IN 0 Panel priorityBL_CONN ANY IN 0 ReservedRUNUPCYC INT IN 0 Number of startup cycles with message suppres‐

sionAS_NR INT IN 0 AS number for message filter (max. 999)OP_STAT STRUCT IN_OUT 0 Status for DIGMOOP_STAT.UDT_IDENT BYTE IN_OUT 0 UDT identifier for UDT_S7PMonDiOP_STAT.QOP_Q BOOL IN_OUT 0 Status 1=Operator panel output 1: 0=inactive, 1=ac‐

tive OP_STAT.MAN_EN BOOL IN_OUT 0 Manual mode enabledOP_STAT.QOP_QERR BOOL IN_OUT 0 Status 1=Operator panel error OP_STAT.QOS_STAT_F DWORD IN_OUT 0 Status panel messages ENO BOOL OUT 0 QOP_ACTIVE BOOL OUT 0 Status operator panel 1=Operator enableMSG_FILTER DINT OUT 0 Message filterIDBNR INT OUT 0 InstanceDB - NumberQDB_CO_ERR BOOL OUT 0 Reserved

Status word assignment for QOS_STAT parameter

Status bit ParameterBit 0 – Bit 2 -

Bit3 Panel activeBit 4 – Bit 6 -

Bit7 FaultBit 8 – Bit 31 -

Panel blocks8.7 S7PMonDi - Operator panel interface for S7MonDi

PCS 7 Industry Library for S7262 Function Manual, 09/2015, A5E34977996-AA

Page 263: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Status word assignment for QOS_STAT_AL parameter

Status bit ParameterBit0 External error occurred (CSF)Bit1 Out – Binary value set

Bit 2 – Bit 31 -

8.7.6 Operator control & monitoring

8.7.6.1 Views of S7PMonDiThe block provides the following views:

● Standard view

● Message view

● Associated value view

8.7.6.2 Standard view of S7PMonDi

8.7.6.3 Block icon of S7PMonDi

Panel blocks8.7 S7PMonDi - Operator panel interface for S7MonDi

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 263

Page 264: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

8.8 S7PMonDi08 - Operator panel interface for S7MonDi08

8.8.1 FunctionThe "S7PMonDi08" block acts as the interface between a "S7MonDi08" technological block and the operator panel.

The OP_STAT input must be connected to the corresponding output of the S7MonDi08 block.

The MSG_FILTER output must be connected to the corresponding output of the S7MonDi08 block.

The IDBNR output must point to an address in the PanelConDB data block. This area of the data block is needed to connect the panel.

8.8.2 Calling OBsThis is the cyclic interrupt OB in which you install the block (e.g. OB32). Additionally in OB100 (see Startup characteristics (Page 264)).

8.8.3 Startup characteristicsThe RUNUPCYC parameter can be used to specify for how long (number of cycles) the messages are to be suppressed.

RESTART = TRUE can be used to simulate a restart.

8.8.4 Called blocks

SFC6 RD_SINFOUDT68 UDT_S7PMonDi08

8.8.5 Block parameters

Block I/Os

Parameter Type IN/OUT OCM DescriptionEN BOOL IN 0 RESTART BOOL IN 0 Manual startupOP_MODE WORD IN 0 RESERVED. Not used yet.QOP_Q1 BOOL IN 0 Status process value 1

Panel blocks8.8 S7PMonDi08 - Operator panel interface for S7MonDi08

PCS 7 Industry Library for S7264 Function Manual, 09/2015, A5E34977996-AA

Page 265: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionQOP_Q2 BOOL IN 0 Status process value 2QOP_Q3 BOOL IN 0 Status process value 3QOP_Q4 BOOL IN 0 Status process value 4QOP_Q5 BOOL IN 0 Status process value 5QOP_Q6 BOOL IN 0 Status process value 6QOP_Q7 BOOL IN 0 Status process value 7QOP_Q8 BOOL IN 0 Status process value 8EN_AUX BOOL IN 0 Enable associated value viewAUX1 REAL IN 0 Associated value 1 AUX2 REAL IN 0 Associated value 2 AUX3 REAL IN 0 Associated value 3 AUX4 REAL IN 0 Associated value 4 OS_STAT DWORD IN 0 Status WinCC flexibleOS_STAT_AL DWORD IN 0 Bit message procedureOP_MSG_FILTER DINT IN 0 Message filter for WinCC flexibleOP_PERM_LOG DWORD IN 0 Operator enableOP_VISIBILITY DWORD IN 0 Visibility in OPPERMIS INT IN 1 Switching authorityOP_PERMIS INT IN 0 Panel priorityBL_CONN ANY IN 0 ReservedRUNUPCYC INT IN 0 Number of startup cycles with message suppressionAS_NR INT IN 0 AS number for message filter (max. 999)OP_STAT STRUCT IN_OUT 0 Status of S7MonDi08OP_STAT.UDT_IDENT BYTE IN_OUT 0 UDT identifier for UDT_S7PMonDi08OP_STAT.QOP_Q1 BOOL IN_OUT 0 Status 1=Operator panel output 1: 0=inactive, 1=ac‐

tiveOP_STAT.QOP_Q2 BOOL IN_OUT 0 Status 1=Operator panel output 2: 0=inactive, 1=ac‐

tiveOP_STAT.QOP_Q3 BOOL IN_OUT 0 Status 1=Operator panel output 3: 0=inactive, 1=ac‐

tiveOP_STAT.QOP_Q4 BOOL IN_OUT 0 Status 1=Operator panel output 4: 0=inactive, 1=ac‐

tiveOP_STAT.QOP_Q5 BOOL IN_OUT 0 Status 1=Operator panel output 5: 0=inactive, 1=ac‐

tiveOP_STAT.QOP_Q6 BOOL IN_OUT 0 Status 1=Operator panel output 6: 0=inactive, 1=ac‐

tiveOP_STAT.QOP_Q7 BOOL IN_OUT 0 Status 1=Operator panel output 7: 0=inactive, 1=ac‐

tiveOP_STAT.QOP_Q8 BOOL IN_OUT 0 Status 1=Operator panel output 8: 0=inactive, 1=ac‐

tiveOP_STAT.MAN_EN BOOL IN_OUT 0 Manual mode enabledOP_STAT.QOP_QERR BOOL IN_OUT 0 Status 1=Operator panel error OP_STAT.QOS_STAT_F DWORD IN_OUT 0 Status panel messages

Panel blocks8.8 S7PMonDi08 - Operator panel interface for S7MonDi08

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 265

Page 266: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionENO BOOL OUT 0 QOP_ACTIVE BOOL OUT 0 Status operator panel 1=Operator enableMSG_FILTER DINT OUT 0 Message filterIDBNR INT OUT 0 Instance DB number (WinCC flexible parameter)QDB_CO_ERR BOOL OUT 0 Reserved

Status word assignment for QOS_STAT parameter

Status bit ParameterBit 0 – Bit 2 -

Bit3 Panel activeBit 4 – Bit 6 -

Bit7 FaultBit 8 – Bit 31 -

Status word assignment for QOS_STAT_AL parameter

Status bit ParameterBit0 -Bit1 Signal change signal 1 has occurredBit2 Signal change signal 2 has occurredBit3 Signal change signal 3 has occurredBit4 Signal change signal 4 has occurredBit5 Signal change signal 5 has occurredBit6 Signal change signal 6 has occurredBit7 Signal change signal 7 has occurredBit8 Signal change signal 8 has occurred

Bit 9 – Bit 31 -

8.8.6 Operator control & monitoring

8.8.6.1 Views of S7PMonDi08The block provides the following views:

● Standard view

● Message view

● Associated value view

Panel blocks8.8 S7PMonDi08 - Operator panel interface for S7MonDi08

PCS 7 Industry Library for S7266 Function Manual, 09/2015, A5E34977996-AA

Page 267: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

8.8.6.2 Standard view of S7PMonDi08

8.8.6.3 Block icons of S7PMonDi08

Panel blocks8.8 S7PMonDi08 - Operator panel interface for S7MonDi08

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 267

Page 268: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

8.9 S7PMot - Operator panel interface for S7Mot

8.9.1 FunctionThe S7PMot block acts as the interface between a "S7Mot" technological block and an operator panel.

The OP_STAT input must be connected to the corresponding output of the S7Mot block.

The following outputs must be connected to the associated inputs of the S7Mot block:

● QOP_ACTIVE

● QOP_RESET

● QOP_AUT_ON

● QOP_MAN_ON

● MSG_FILTER

The IDBNR output must point to an address in the PanelConDB data block. This area of the data block is needed to connect the panel.

Only if the configured operating level OP_PERMIS and the current operator control permission for the unit PERMIS are identical is the QOP_ACTIVE output set and the technology function of S7PMot controlled.

8.9.2 OBs to be calledThis is the cyclic interrupt OB in which you install the block (e.g. OB32). Additionally in OB100 (see Startup characteristics (Page 269)).

8.9.3 How it worksThe S7PMot block checks if operator permission for the single-stage motor has been granted to the operator panel. If the operator panel has switch permission, all switching commands affecting the single-stage motor are sent from the operator panel. The commands are output at the motor control block S7Mot via the command outputs that are interconnected to the motor block S7Mot. The motor control block checks for error states. If no error states are found, the commands are output to the motor.

Switching commands cannot be sent from the operator panel in the following operating states:

● "Forced on"

● "Forced off"

● "Local operation"

If the operator panel does not have switch permission, all switching states are forwarded from the motor block S7Mot to the operator panel.

Panel blocks8.9 S7PMot - Operator panel interface for S7Mot

PCS 7 Industry Library for S7268 Function Manual, 09/2015, A5E34977996-AA

Page 269: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

If a relevant system error or state affecting the motor occurs, this is reported to the operator system by S7PMot.

8.9.4 Startup characteristicsThe RUNUPCYC parameter can be used to specify for how long (number of cycles) the messages are to be suppressed.

RESTART = TRUE can be used to simulate a restart.

8.9.5 Called blocks

SFC6 RD_SINFOUDT62 UDT_S7PMot

8.9.6 Block parameters

Block I/Os

Parameter Type IN/OUT OCM DescriptionEN BOOL IN 0 RESTART BOOL IN 0 Manual startupOP_MODE WORD IN 0 Operator modeOP_STOP_MAN BOOL IN 0 Operator panel input for manual stopOP_START_MAN BOOL IN 0 Operator panel input for manual stopOP_RESET BOOL IN 0 Operator panel input reset errorEN_AUX BOOL IN 0 Activate associated valuesAUX1 REAL IN 0 AssociatedValue1AUX2 REAL IN 0 AssociatedValue2AUX3 REAL IN 0 AssociatedValue3AUX4 REAL IN 0 AssociatedValue4OS_STAT DWORD IN 0 Status WinCC flexibleOS_STAT_AL DWORD IN 0 Bit message procedureOP_MSG_FILTER DINT IN 0 Message filter for WinCC flexibleOP_PERM_LOG DWORD IN 0 Operator enableOP_VISIBILITY DWORD IN 0 Visibility in OPPERMIS INT IN 1 Switching authorityOP_PERMIS INT IN 0 Panel priorityBL_CONN ANY IN 0 Reserved

Panel blocks8.9 S7PMot - Operator panel interface for S7Mot

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 269

Page 270: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionRUNUPCYC INT IN 0 Number of startup cycles with message suppres‐

sion AS_NR INT IN 0 AS number for message filter (max. 999)OP_STAT STRUCT IN_OUT 0 Status for SMOT1OP_STAT.UDT_IDENT BYTE IN_OUT 0 UDT identifier for UDT_S7PMotOP_STAT.QOP_RESET BOOL IN_OUT 0 Status 1=Operator panel resetOP_STAT.QOP_AUT_ON BOOL IN_OUT 0 Status 1=Operator panel 1=AUTO, 0=Manual modeOP_STAT.QOP_MAN_ON BOOL IN_OUT 0 Status 1=Panel 1=Motor runningOP_STAT.QOS_STAT_F WORD IN_OUT 0 Status for panel messagesOP_STAT.QOS_STAT DWORD IN_OUT 0 Status for WinCCENO BOOL OUT 0 QOP_ACTIVE BOOL OUT 0 Status operator panel 1=Operator enableQOP_RESET BOOL OUT 0 Status operator panel 1=Reset errorQOP_AUT_ON BOOL OUT 0 Status operator panel 1=AUTO, 0=Manual modeQOP_MAN_ON BOOL OUT 0 Status operator panel 1=Motor runningMSG_FILTER DINT OUT 0 Message filterIDBNR INT OUT 0 InstanceDB - NumberQDB_CO_ERR BOOL OUT 0 Reserved

Status word assignment for QOS_STAT_AL parameter

Status bit ParameterBit0 External error occurred (CSF)Bit1 Motor feedback errorBit2 -Bit3 Motor protection triggeredBit4 Repair

Bit5 – Bit31 -

8.9.7 Operator control & monitoring

8.9.7.1 Views of S7PMotThe block provides the following views:

● Standard view

● Message view

● Associated value view

Panel blocks8.9 S7PMot - Operator panel interface for S7Mot

PCS 7 Industry Library for S7270 Function Manual, 09/2015, A5E34977996-AA

Page 271: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

8.9.7.2 Standard view of S7PMot

8.9.7.3 Block icon of S7PMot

Panel blocks8.9 S7PMot - Operator panel interface for S7Mot

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 271

Page 272: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

8.10 S7PMotRev - Operator panel interface for S7MotRev

8.10.1 FunctionThe S7PMotRev block acts as the interface between a "S7MotRev" technological block and an operator panel.

The OP_STAT input must be connected to the corresponding output of the S7MotRev block.

The following outputs must be connected to the associated inputs of the S7MotRev block:

● QOP_ACTIVE

● QOP_RESET

● QOP_AUT_ON

● QOP_MOT_OFF

● QOP_FORW

● QOP_REV

● MSG_FILTER

The IDBNR output must point to an address in the PanelConDB data block. This area of the data block is needed to connect the panel.

Only if the configured operating level OP_PERMIS and the current operator control permission for the unit PERMIS are identical is the QOP_ACTIVE output set and the technology function of S7PMotRev controlled.

8.10.2 OBs to be calledThis is the cyclic interrupt OB in which you install the block (e.g. OB32). Additionally in OB100 (see Startup characteristics (Page 273)).

8.10.3 How it worksThe "S7PMotRev" block checks if operator permission for the reversing motor has been granted to the operator panel. If the operator panel has switch permission, all switching commands affecting the reversing motor are sent from the operator panel. The commands are sent at the motor control block S7MotRev via the command outputs that are interconnected to the motor block S7MotRev. The motor control block checks for error states. If no errors are found, the commands are sent to the motor.

Switching commands cannot be sent from the operator panel in the following operating states:

● "Forced on"

● "Forced off"

● "Local operation"

Panel blocks8.10 S7PMotRev - Operator panel interface for S7MotRev

PCS 7 Industry Library for S7272 Function Manual, 09/2015, A5E34977996-AA

Page 273: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

If the operator panel does not have switch permission, all switching states are forwarded from the motor block S7MotRev to the operator panel.

If a relevant system error or state affecting the motor occurs, this is reported to the operator system by S7PMotRev.

8.10.4 Startup characteristicsThe RUNUPCYC parameter can be used to specify for how long (number of cycles) the messages are to be suppressed.

RESTART = TRUE can be used to simulate a restart.

8.10.5 Called blocks

SFC6 RD_SINFOUDT74 UDT_S7PMotRev

8.10.6 Block parameters

Block I/Os

Parameter Type IN/OUT OCM DescriptionEN BOOL IN 0 RESTART BOOL IN 0 Manual startupOP_MODE WORD IN 0 Operator modeOP_MOT_OFF BOOL IN 0 Status operator panel 1=Motor OFFOP_FORW BOOL IN 0 Status operator panel 1=Motor forwardOP_REV BOOL IN 0 Status operator panel 1=Motor reverse OP_RESET BOOL IN 0 Operator panel input reset errorEN_AUX BOOL IN 0 Activate associated valuesAUX1 REAL IN 0 AssociatedValue1AUX2 REAL IN 0 AssociatedValue2AUX3 REAL IN 0 AssociatedValue3AUX4 REAL IN 0 AssociatedValue4OS_STAT DWORD IN 0 Status WinCC flexibleOS_STAT_AL DWORD IN 0 Bit message procedureOP_MSG_FILTER DINT IN 0 Message filter for WinCC flexibleOP_PERM_LOG DWORD IN 0 Operator enableOP_VISIBILITY DWORD IN 0 Visibility in OPPERMIS INT IN 1 Switching authority

Panel blocks8.10 S7PMotRev - Operator panel interface for S7MotRev

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 273

Page 274: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionOP_PERMIS INT IN 0 Panel priorityBL_CONN ANY IN 0 ReservedRUNUPCYC INT IN 0 Number of startup cycles with message suppres‐

sion AS_NR INT IN 0 AS number for message filter (max. 999)OP_STAT STRUCT IN_OUT 0 Status for SMOT1OP_STAT.UDT_IDENT BYTE IN_OUT 0 UDT identifier for UDT_S7PMotRevOP_STAT.QOP_RESET BOOL IN_OUT 0 Status 1=Operator panel resetOP_STAT.QOP_AUT_ON BOOL IN_OUT 0 Status 1=Operator panel 1=AUTO, 0=Manual modeOP_STAT.QOP_MOT_OFF BOOL IN_OUT 0 Status 1=Motor stoppedOP_STAT.QOP_FORW BOOL IN_OUT 0 Status 1=Operator panel 1=Motor running forwardOP_STAT.QOP_REV BOOL IN_OUT 0 Status 1=Operator panel 1=Motor running reverseOP_STAT.QOP_RES_1 BOOL IN_OUT 0 Reserved for external useOP_STAT.QOP_RES_2 BOOL IN_OUT 0 Reserved for external useOP_STAT.QOP_RES_3 BOOL IN_OUT 0 Reserved for external useOP_STAT.QOS_STAT_F WORD IN_OUT 0 Status for panel messagesOP_STAT.QOS_STAT DWORD IN_OUT 0 Status for WinCCENO BOOL OUT 0 QOP_ACTIVE BOOL OUT 0 Status operator panel 1=Operator enableQOP_RESET BOOL OUT 0 Status operator panel 1=Reset errorQOP_AUT_ON BOOL OUT 0 Status operator panel 1=AUTO, 0=Manual modeQOP_MOT_OFF BOOL OUT 0 Status operator panel 1=Motor OFFQOP_FORW BOOL OUT 0 Status operator panel 1=Motor forwardQOP_REV BOOL OUT 0 Status operator panel 1=Motor reverseMSG_FILTER DINT OUT 0 Message filterQERR BOOL OUT 0 1 = ErrorIDBNR INT OUT 0 InstanceDB - NumberQDB_CO_ERR BOOL OUT 0 Reserved

Status word assignment for QOS_STAT_AL parameter

Status bit ParameterBit0 External error occurred (CSF)Bit1 Motor feedback errorBit2 -Bit3 Motor protection triggeredBit4 Repair

Bit5 – Bit31 -

Panel blocks8.10 S7PMotRev - Operator panel interface for S7MotRev

PCS 7 Industry Library for S7274 Function Manual, 09/2015, A5E34977996-AA

Page 275: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

8.10.7 Operator control & monitoring

8.10.7.1 Views of S7PMotRevThe block provides the following views:

● Standard view

● Message view

● Associated value view

8.10.7.2 Standard view of S7PMotRev

8.10.7.3 Block icons of S7PMotRev

Panel blocks8.10 S7PMotRev - Operator panel interface for S7MotRev

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 275

Page 276: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

8.11 S7PMotSpd - Operator panel interface for S7MotSpd

8.11.1 FunctionThe S7PMotSpd block acts as the interface between a "S7MotSpd" technological block and the operator panel.

The OP_STAT input must be connected to the corresponding output of the S7MotSpd block.

The following outputs must be connected to the associated inputs of the S7MotSpd block:

● QOP_ACTIVE

● QOP_RESET

● QOP_AUT_ON

● QOP_MOT_OFF

● QOP_MANS1

● QOP_MANS2

● MSG_FILTER

The IDBNR output must point to an address in the PanelConDB data block. This area of the data block is needed to connect the panel.

Only if the configured operating level OP_PERMIS and the current operator control permission for the unit PERMIS are identical is the QOP_ACTIVE output set and the technology function of S7PMotSpd controlled.

8.11.2 Calling OBsThis is the cyclic interrupt OB in which you install the block (e.g. OB32). Additionally in OB100 (see Startup characteristics (Page 277)).

8.11.3 How it worksThe "S7PMotSpd" block checks if operator permission for the two-stage motor has been granted to the operator panel. If the operator panel has switch permission, all switching commands affecting the single-stage motor are output from the operator panel.

The commands are sent at the motor control block S7MotSpd via the command outputs that are interconnected to the motor block S7MotSpd. The motor control block checks for error states. If no errors are found, the commands are sent to the motor.

Switching commands cannot be sent from the operator panel in the following operating states:

● "Forced on"

● "Forced off"

● "Local operation"

Panel blocks8.11 S7PMotSpd - Operator panel interface for S7MotSpd

PCS 7 Industry Library for S7276 Function Manual, 09/2015, A5E34977996-AA

Page 277: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

If the operator panel does not have switch permission, all switching states are forwarded from the motor block S7MotSpd to the operator panel.

If a relevant system error or state affecting the motor occurs, this is reported to the operator system by S7PMotSpd.

8.11.4 Startup characteristicsThe RUNUPCYC parameter can be used to specify for how long (number of cycles) the messages are to be suppressed.

RESTART = TRUE can be used to simulate a restart.

8.11.5 Called blocks

SFC6 RD_SINFOUDT63 UDT_S7PMotSpd

8.11.6 Block parameters

Block I/Os

Parameter Type IN/OUT OCM DescriptionEN BOOL IN 0 RESTART BOOL IN 0 Manual startupOP_MODE WORD IN 0 Operator modeOP_MOT_OFF BOOL IN 0 Status operator panel 1=Motor OFFOP_MANS1 BOOL IN 0 Status operator panel 1=Motor speed 1OP_MANS2 BOOL IN 0 Status operator panel 1=Motor speed 2OP_RESET BOOL IN 0 Operator panel input reset errorEN_AUX BOOL IN 0 Activate associated valuesAUX1 REAL IN 0 AssociatedValue1AUX2 REAL IN 0 AssociatedValue2AUX3 REAL IN 0 AssociatedValue3AUX4 REAL IN 0 AssociatedValue4OS_STAT DWORD IN 0 Status WinCC flexibleOS_STAT_AL DWORD IN 0 Bit message procedureOP_MSG_FILTER DINT IN 0 Message filter for WinCC flexibleOP_PERM_LOG DWORD IN 0 Operator enableOP_VISIBILITY DWORD IN 0 Visibility in OPPERMIS INT IN 1 Switching authority

Panel blocks8.11 S7PMotSpd - Operator panel interface for S7MotSpd

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 277

Page 278: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionOP_PERMIS INT IN 0 Panel priorityBL_CONN ANY IN 0 ReservedRUNUPCYC INT IN 0 Number of startup cycles with message suppres‐

sion AS_NR INT IN 0 AS number for message filter (max. 999)OP_STAT STRUCT IN_OUT 0 Status for SMOT2OP_STAT.UDT_IDENT BYTE IN_OUT 0 UDT identifier for UDT_S7PMotSpdOP_STAT.QOP_RESET BOOL IN_OUT 0 Status 1=Panel resetOP_STAT.QOP_AUT_ON BOOL IN_OUT 0 Status 1=Operator panel 1=AUTO, 0=Manual modeOP_STAT.QOP_MOT_OFF BOOL IN_OUT 0 Status 1=Motor stoppedOP_STAT.QOP_MANS1 BOOL IN_OUT 0 Status 1=Operator panel 1=Motor running speed 1OP_STAT.QOP_MANS2 BOOL IN_OUT 0 Status 1=Operator panel 1=Motor running speed 2OP_STAT.QOP_RES_1 BOOL IN_OUT 0 Reserved for external useOP_STAT.QOP_RES_2 BOOL IN_OUT 0 Reserved for external useOP_STAT.QOP_RES_3 BOOL IN_OUT 0 Reserved for external useOP_STAT.QOS_STAT_F WORD IN_OUT 0 Status for panel messagesOP_STAT.QOS_STAT DWORD IN_OUT 0 Status for WinCCENO BOOL OUT 0 QOP_ACTIVE BOOL OUT 0 Status operator panel 1=Operator enableQOP_RESET BOOL OUT 0 Status operator panel 1=Reset errorQOP_AUT_ON BOOL OUT 0 Status operator panel 1=AUTO, 0=Manual modeQOP_MOT_OFF BOOL OUT 0 Status operator panel 1=Motor OFFQOP_MANS1 BOOL OUT 0 Status operator panel 1=Motor running at speed 1QOP_MANS2 BOOL OUT 0 Status operator panel 1=Motor running at speed 2MSG_FILTER DINT OUT 0 Message filterQERR BOOL OUT 0 1 = ErrorIDBNR INT OUT 0 InstanceDB - NumberQDB_CO_ERR BOOL OUT 0 Reserved

Status word assignment for QOS_STAT_AL parameter

Status bit ParameterBit0 External error occurred (CSF)Bit1 Motor feedback errorBit2 -Bit3 Motor protection triggeredBit4 Repair

Bit5 – Bit31 -

Panel blocks8.11 S7PMotSpd - Operator panel interface for S7MotSpd

PCS 7 Industry Library for S7278 Function Manual, 09/2015, A5E34977996-AA

Page 279: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

8.11.7 Operator control and monitoring

Block icon

ViewsThe block provides the following views:

● Standard view

● Message view

● Associated value view

Standard view

Panel blocks8.11 S7PMotSpd - Operator panel interface for S7MotSpd

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 279

Page 280: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

8.12 S7PMotSpdC - Operator panel interface for S7MotSpdC

8.12.1 FunctionThe S7PMotSpdC block acts as the interface between a "S7MotSpdC" technological block and the operator panel.

The OP_STAT input must be connected to the corresponding output of the S7MotSpdC block.

The following outputs must be connected to the associated inputs of the S7MotSpdC block:

● QOP_ACTIVE

● QOP_RESET

● QOP_AUT_ON

● QOP_MAN_ON

● MSG_FILTER

The IDBNR output must point to an address in the PanelConDB data block. This area of the data block is needed to connect the panel.

Only if the configured operating level OP_PERMIS and the current operator control permission for the unit PERMIS are identical is the QOP_ACTIVE output set and the technology function of S7PMotSpdC controlled.

8.12.2 Calling OBsThis is the cyclic interrupt OB in which you install the block (e.g. OB32). Additionally in OB100 (see Startup characteristics (Page 281)).

8.12.3 How it worksThe "S7PMotSpdC" block checks if operator permission for the frequency-controlled motor has been granted to the operator panel. If the operator panel has switch permission, all switching commands affecting the frequency-controlled motor are output from the operator panel.

The commands are sent at the motor control block S7MOTSPDC via the command outputs that are interconnected to the motor block S7MotSpdC. The motor control block checks for error states. If no errors are found, the commands are sent to the motor.

Switching commands cannot be sent from the operator panel in the following operating states:

● "Forced on"

● "Forced off"

● "Local operation"

If the operator panel does not have switch permission, all switching states are forwarded from the motor block S7MotSpdC to the operator panel.

Panel blocks8.12 S7PMotSpdC - Operator panel interface for S7MotSpdC

PCS 7 Industry Library for S7280 Function Manual, 09/2015, A5E34977996-AA

Page 281: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

If a relevant system error or state affecting the motor occurs, this is reported to the operator system by S7PMotSpdC.

8.12.4 Startup characteristicsThe RUNUPCYC parameter can be used to specify for how long (number of cycles) the messages are to be suppressed.

RESTART = TRUE can be used to simulate a restart.

8.12.5 Called blocks

SFC6 RD_SINFOUDT66 UDT_S7PMotSpdC

8.12.6 Block parameters

Block I/Os

Parameter Type IN/OUT OCM DescriptionEN BOOL IN 0 RESTART BOOL IN 0 Manual startupOP_MODE WORD IN 0 Operator modeOP_MAN_ON BOOL IN 0 Panel input: 1=Start motorOP_FORW BOOL IN 0 Not usedOP_REV BOOL IN 0 Not usedOP_RESET BOOL IN 0 Operator panel input reset errorOP_SP_EXT REAL IN 0 Operator panel input external setpointOP_SP_HL REAL IN 0 Operator panel input external setpoint high limitOP_SP_LL REAL IN 0 Operator panel input external setpoint low limitEN_AUX BOOL IN 0 Activate associated valuesAUX1 REAL IN 0 AssociatedValue1AUX2 REAL IN 0 AssociatedValue2AUX3 REAL IN 0 AssociatedValue3AUX4 REAL IN 0 AssociatedValue4OS_STAT DWORD IN 0 Status WinCC flexibleOS_STAT_AL DWORD IN 0 Bit message procedureOP_MSG_FILTER DINT IN 0 Message filter for WinCC flexibleOP_PERM_LOG DWORD IN 0 Operator enableOP_VISIBILITY DWORD IN 0 Visibility in OP

Panel blocks8.12 S7PMotSpdC - Operator panel interface for S7MotSpdC

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 281

Page 282: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionPERMIS INT IN 1 Switching authorityOP_PERMIS INT IN 0 Panel priorityBL_CONN ANY IN 0 ReservedRUNUPCYC INT IN 0 Number of startup cycles with message suppres‐

sion SP_EXT REAL IN 0 Analog setpointSP_HL REAL IN 0 High limitSP_LL REAL IN 0 Low limitAS_NR INT IN 0 AS number for message filter (max. 999)OP_STAT STRUCT IN_OUT 0 Status for SVSDOP_STAT.UDT_IDENT BYTE IN_OUT 0 UDT identifier for UDT_S7PMotSpdCOP_STAT.QOP_RESET BOOL IN_OUT 0 Status 1=Panel resetOP_STAT.QOP_AUT_ON BOOL IN_OUT 0 Status 1=Operator panel 1=AUTO, 0=Manual modeOP_STAT.QOP_MAN_ON BOOL IN_OUT 0 Status 1=Panel 1=Motor runningOP_STAT.QOS_STAT_F WORD IN_OUT 0 Status for panel messagesOP_STAT.QOS_STAT DWORD IN_OUT 0 Status for WinCCENO BOOL OUT 0 QOP_ACTIVE BOOL OUT 0 Status operator panel 1=Operator enableQOP_RESET BOOL OUT 0 Status operator panel 1=Reset errorQOP_AUT_ON BOOL OUT 0 Status operator panel 1=AUTO, 0=Manual modeQOP_MAN_ON BOOL OUT 0 Status operator panel 1=Motor runningMSG_FILTER DINT OUT 0 Message filterQOP_SP REAL OUT 0 SetpointQOP_SP_HL REAL OUT 0 Setpoint high limitQOP_SP_LL REAL OUT 0 Setpoint low limit QERR BOOL OUT 0 1 = ErrorIDBNR INT OUT 0 InstanceDB - NumberQDB_CO_ERR BOOL OUT 0 Reserved

Status word assignment for QOS_STAT_AL parameter

Status bit ParameterBit0 External error occurred (CSF)Bit1 Motor feedback errorBit2 -Bit3 Motor protection triggeredBit4 Repair

Bit5 – Bit31 -

Panel blocks8.12 S7PMotSpdC - Operator panel interface for S7MotSpdC

PCS 7 Industry Library for S7282 Function Manual, 09/2015, A5E34977996-AA

Page 283: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

8.12.7 Operator control & monitoring

8.12.7.1 Views of S7PMotSpdCThe block provides the following views:

● Standard view

● Message view

● Associated value view

8.12.7.2 Standard view of S7PMotSpdC

8.12.7.3 Block icons of S7PMotSpdC

Panel blocks8.12 S7PMotSpdC - Operator panel interface for S7MotSpdC

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 283

Page 284: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

8.13 S7PPID - Operator panel interface for S7PIDCon

8.13.1 FunctionThe "S7PPID" block acts as the interface between the "S7PIDCon" technological block and the operator panel.

8.13.2 Configuration notesThe "BlockConnector" input of the "S7PPID" block must be interconnected with any output of the "S7PIDCon" block.

The data that is of relevance to the panel block (such as status information) is automatically evaluated and displayed by the panel block.

Exception

The ENO output must not be used for interconnection with the "BlockConnector" input.

The IDBNo output must point to an address in the PanelConDB data block. This area of the data block is needed to connect the panel.

8.13.3 Calling OBsThis is the cyclic interrupt OB in which you install the block (e.g. OB32). Additionally in OB100 (see Startup characteristics (Page 284)).

8.13.4 Startup characteristicsThe RunUpCyc parameter can be used to specify for how long (number of cycles) the messages are to be suppressed.

Restart = TRUE can be used to simulate a restart.

8.13.5 Called blocks

SFC6 RD_SINFOSFC24 TEST_DB

Panel blocks8.13 S7PPID - Operator panel interface for S7PIDCon

PCS 7 Industry Library for S7284 Function Manual, 09/2015, A5E34977996-AA

Page 285: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

8.13.6 Block parameters

Block I/Os

Parameter Type IN/OUT OCM DescriptionEN BOOL IN 0 1 = Called block is processedRestart BOOL IN 0 Manual startupOp_Mode WORD IN 0 Operating mode (WinCC flexible parameter)Op_MV REAL IN 0 Operator input manipulated variable (WinCC flexi‐

ble parameter)Op_MVHL REAL IN 0 Operator input high limit manipulated variable

(WinCC flexible parameter)Op_MVLL REAL IN 0 Operator input low limit manipulated variable

(WinCC flexible parameter)Op_ScMVHL REAL IN 0 OpScale value (high limit) for manipulated variableOp_ScMVLL REAL IN 0 OpScale value (low limit) for manipulated variableOp_Rbk REAL IN 0 Operator input read-back value (WinCC flexible pa‐

rameter)Op_PV REAL IN 0 Operator input process value (WinCC flexible pa‐

rameter)Op_SP_Ext BOOL IN 0 Operator input setpoint "External" (WinCC flexible

parameter)Op_SP_Int BOOL IN 0 Operator input setpoint "Internal" (WinCC flexible

parameter)Op_SP REAL IN 0 Operator input setpoint (WinCC flexible parameter)Op_SPHL REAL IN 0 Operator input high limit setpoint (WinCC flexible

parameter)Op_SPLL REAL IN 0 Operator input low limit setpoint (WinCC flexible pa‐

rameter)Op_ScPVHL REAL IN 0 OpScale value (high limit) for process valueOp_ScPVLL REAL IN 0 OpScale value (low limit) for process valueEnAux BOOL IN 0 Enable associated value view (WinCC flexible pa‐

rameter)Aux1 REAL IN 0 Associated value 1 (WinCC flexible parameter)Aux2 REAL IN 0 Associated value 2 (WinCC flexible parameter)Aux3 REAL IN 0 Associated value 3 (WinCC flexible parameter)Aux4 REAL IN 0 Associated value 4 (WinCC flexible parameter)OSStat DWORD IN 0 Status WinCCOSStatAl DWORD IN 0 Bit message procedure (WinCC flexible parameter)Op_MsgFilter DINT IN 0 Message filter for WinCC flexibleOp_PermLog DWORD IN 0 Operator authorizationOp_Visibility DWORD IN 0 Object visibilitySwitchPerm DWORD IN 1 Switching authorityPanelPerm DWORD IN 0 Panel operating levelBlockConnector ANY IN 0 Connection to S7PIDCon block

Panel blocks8.13 S7PPID - Operator panel interface for S7PIDCon

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 285

Page 286: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionRunUpCyc INT IN 0 Number of startup cycles with message suppressionAS_Nr INT IN 0 AS number for message filter (max. 999)ENO BOOL OUT 0 SwitchPerm_Out DWORD OUT 1 Switching authority outputOSStat_Out DWORD OUT 0 Status WinCCOSStatAl_Out DWORD OUT 0 Bit message procedure (WinCC flexible parameter)PanelAct BOOL OUT 0 Panel activeMsgFilter DINT OUT 0 Message filterIDBNo STRUCT OUT 0 Instance DB number (WinCC flexible parameter)DB_ConnErr BOOL OUT 0 Data block connection error

Status word assignment for OSStatAl and OSStatAl_Out parameters

Parameter Type IN/OUT OCM DescriptionBit0 - Bit4 BOOL External error occurred (CSF)Bit1 BOOL PV - Alarm high limitBit2 BOOL PV - Warning high limitBit3 BOOL -Bit5 BOOL PV - Warning low limitBit6 BOOL PV - Alarm low limitBit7 BOOL ER - Alarm high limitBit8 BOOL ER - Alarm low limitBit9 BOOL Rbk - Warning high limitBit10 BOOL Rbk - Warning low limit… Bit31 BOOL -

Status word assignment for OSStat and OSStat_Out parameters

Parameter Type IN/OUT OCM DescriptionBit0 BOOL -Bit1 BOOL ManActBit2 BOOL -Bit3 BOOL Panel activeBit4 BOOL Auto activeBit5 - Bit6 BOOL -Bit7 BOOL Error (CSF)Bit8 BOOL FbkOpenedBit9 BOOL FbkClosedBit10 - Bit11 BOOL -Bit12 BOOL Control + (NegGain = 0)

Panel blocks8.13 S7PPID - Operator panel interface for S7PIDCon

PCS 7 Industry Library for S7286 Function Manual, 09/2015, A5E34977996-AA

Page 287: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionBit13 BOOL Control – (NegGain = 1)Bit14 BOOL MV_ForOnBit15 - Bit16 BOOL -Bit17 BOOL SP_LiOpBit18 - Bit19 BOOL -Bit20 BOOL AdvCoActMVBit21 BOOL AdvCoActSPBit22 BOOL OosActBit23 BOOL SP_Ext…

8.13.7 Operator control & monitoring WinCC flexible

8.13.7.1 Views of S7PPIDThe block provides the following views:

● Standard view

● Message view

● Trend view

● Associated value view

8.13.7.2 Standard view of S7PPID

Panel blocks8.13 S7PPID - Operator panel interface for S7PIDCon

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 287

Page 288: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

8.13.7.3 Trend view of S7PPID

Note

The trend view is only available in IL for flexible.

Note

For the trend view, the variables must first be connected (see documentation "Industry Library" - "Panel" - "General information about panel blocks").

8.13.7.4 Block icons of S7PPID

Panel blocks8.13 S7PPID - Operator panel interface for S7PIDCon

PCS 7 Industry Library for S7288 Function Manual, 09/2015, A5E34977996-AA

Page 289: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

8.14 S7PMV3P - Operator Panel Interface for S7MV3P

8.14.1 FunctionThe S7PMV3P block acts as the interface between a "S7MV3P" technological block and an operator panel.

The OP_STAT input must be connected to the corresponding output of the S7MV3P block.

The following outputs must be connected to the associated inputs of the S7MV3P block:

● QOP_ACTIVE

● QOP_AUT_ON

● QOP_SP

● MSG_FILTER

The IDBNR output must point to an address in the PanelConDB data block. This area of the data block is needed to connect the panel.

Only if the configured operating level OP_PERMIS and the current operator control permission for the unit PERMIS are identical is the QOP_ACTIVE output set and the technology function of S7PMV3P controlled.

8.14.2 OBs to be calledThis is the cyclic interrupt OB in which you install the block (e.g. OB32). Additionally in OB100 (see Startup characteristics (Page 290)).

8.14.3 How it worksThe "S7PMV3P" block checks if operator permission for the valve has been granted to the operator panel.

If the operator panel has switch permission, all switching commands affecting the valve are sent from the operator panel. The commands are sent at the valve control block S7MV3P via the command outputs that are interconnected to the valve block S7MV3P. The valve control block checks for error states. If no errors are found, the commands are sent to the valve.

Switching commands cannot be sent from the operator panel in the following operating states:

● "Forced open"

● "Forced close"

● "Local operation"

If the operator panel does not have switch permission, all switching states are forwarded from the valve block S7MV3P to the operator panel.

If a relevant system error or state affecting the valve occurs, this is reported to the operator system by S7PMV3P.

Panel blocks8.14 S7PMV3P - Operator Panel Interface for S7MV3P

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 289

Page 290: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

8.14.4 Startup characteristicsThe RUNUPCYC parameter can be used to specify for how long (number of cycles) the messages are to be suppressed.

RESTART = TRUE can be used to simulate a restart.

8.14.5 Called blocks

SFC6 RD_SINFOUDT65 UDT_S7PMV3P

8.14.6 Block parameters

Block I/Os

Parameter Type IN/OUT OCM DescriptionEN BOOL IN 0 RESTART BOOL IN 0 Manual startupOP_MODE WORD IN 0 Operator modeOP_SP_EXT REAL IN 0 Operator panel input external setpointOP_SP_HLM REAL IN 0 Operator input setpoint high limitOP_SP_LLM REAL IN 0 Operator input setpoint low limitOP_PV REAL IN 0 Process valueEN_AUX BOOL IN 0 Activate associated valuesAUX1 REAL IN 0 AssociatedValue1AUX2 REAL IN 0 AssociatedValue2AUX3 REAL IN 0 AssociatedValue3AUX4 REAL IN 0 AssociatedValue4OS_STAT DWORD IN 0 Status WinCC flexibleOS_STAT_AL DWORD IN 0 Bit message procedureOP_MSG_FILTER DINT IN 0 Message filter for WinCC flexibleOP_PERM_LOG DWORD IN 0 Operator enableOP_VISIBILITY DWORD IN 0 Visibility in OPPERMIS INT IN 1 Switching authorityOP_PERMIS INT IN 0 Panel priorityBL_CONN ANY IN 0 ReservedRUNUPCYC INT IN 0 Number of startup cycles with message suppres‐

sion AS_NR INT IN 0 AS number for message filter (max. 999)OP_STAT STRUCT IN_OUT 0 Status for S7MV3P

Panel blocks8.14 S7PMV3P - Operator Panel Interface for S7MV3P

PCS 7 Industry Library for S7290 Function Manual, 09/2015, A5E34977996-AA

Page 291: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionOP_STAT.UDT_IDENT BYTE IN_OUT 0 UDT identifier for UDT_S7PMV3POP_STAT.QOP_AUT_ON BOOL IN_OUT 0 Status 1=Operator panel 1=AUTO, 0=Manual modeOP_STAT.QOP_SP REAL IN_OUT 0 Status panel setpointOP_STAT.QSP_HLM REAL IN_OUT 0 Active setpoint high limitOP_STAT.QSP_LLM REAL IN_OUT 0 Active setpoint low limitOP_STAT.QOS_STAT_F WORD IN_OUT 0 Status for panel messagesOP_STAT.QOS_STAT DWORD IN_OUT 0 Status for WinCCENO BOOL OUT 0 QOP_ACTIVE BOOL OUT 0 Status operator panel 1=Operator enableQOP_AUT_ON BOOL OUT 0 Status operator panel 1=AUTO, 0=Manual modeQOP_SP REAL OUT 0 Status panel setpointMSG_FILTER DINT OUT 0 Message filterQERR BOOL OUT 0 1 = ErrorQDB_ERR BOOL OUT 0 1 = Error data block write-protected / too shortIDBNR INT OUT 0 InstanceDB - NumberQDB_CO_ERR BOOL OUT 0 Reserved

Status word assignment for QOS_STAT_AL parameter

Status bit ParameterBit0 External error occurred (CSF)Bit1 Feedback error

Bit2 – Bit31 -

8.14.7 Operator control & monitoring

8.14.7.1 Views of S7PMV3PThe block provides the following views:

● Standard view

● Message view

● Associated value view

Panel blocks8.14 S7PMV3P - Operator Panel Interface for S7MV3P

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 291

Page 292: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

8.14.7.2 Standard view of S7PMV3P

8.14.7.3 Block icon of S7PMV3P

Panel blocks8.14 S7PMV3P - Operator Panel Interface for S7MV3P

PCS 7 Industry Library for S7292 Function Manual, 09/2015, A5E34977996-AA

Page 293: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

8.15 S7POpA - Operator panel interface for S7OpA

8.15.1 FunctionThe S7POpA block acts as the interface between a "S7OpA" technological block and the operator panel.

The OP_STAT input must be connected to the corresponding output of the S7OpA block.

The following outputs must be connected to the associated inputs of the S7OpA block:

● QOP_ACTIVE

● QOP_U

The IDBNR output must point to an address in the PanelConDB data block. This area of the data block is needed to connect the panel.

Only if the configured operating level OP_PERMIS and the current operator control permission for the unit PERMIS are identical is the QOP_ACTIVE output set and the technology function of S7POpA controlled.

8.15.2 OBs to be calledThis is the cyclic interrupt OB in which you install the block (e.g. OB32). Additionally in OB100 (see Startup characteristics (Page 293)).

8.15.3 Startup characteristicsThe RUNUPCYC parameter can be used to specify for how long (number of cycles) the messages are to be suppressed.

RESTART = TRUE can be used to simulate a restart.

8.15.4 Called blocks

SFC6 RD_SINFOUDT76 UDT_S7POpA

Panel blocks8.15 S7POpA - Operator panel interface for S7OpA

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 293

Page 294: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

8.15.5 Block parameters

Block I/Os

Parameter Type IN/OUT OCM DescriptionEN BOOL IN 0 RESTART BOOL IN 0 Manual startupOP_MODE WORD IN 0 RESERVED. Not used yet.OP_SP REAL IN 0 Operator panel setpointOP_VHL REAL IN 0 High limit UOP_VLL REAL IN 0 Low limit UOP_FB_U REAL IN 0 Status 1=Operator panel feedback 1: 0=inactive,

1=active EN_AUX BOOL IN 0 Activate associated valuesAUX1 REAL IN 0 AssociatedValue1AUX2 REAL IN 0 AssociatedValue2AUX3 REAL IN 0 AssociatedValue3AUX4 REAL IN 0 AssociatedValue4OS_STAT DWORD IN 0 Status WinCC flexibleOS_STAT_AL DWORD IN 0 Bit message procedureOP_MSG_FILTER DINT IN 0 Message filter for WinCC flexibleOP_PERM_LOG DWORD IN 0 Operator enableOP_VISIBILITY DWORD IN 0 Visibility in OPPERMIS INT IN 0 Switching authorityOP_PERMIS INT IN 0 Panel priorityBL_CONN ANY IN 0 ReservedRUNUPCYC INT IN 0 Number of startup cycles with message suppres‐

sion OP_STAT STRUCT IN_OUT 0 Status for SOP_AOP_STAT.UDT_IDENT BYTE IN_OUT 0 UDT identifier for UDT_S7POpAOP_STAT.QOP_Link BOOL IN_OUT 0 Status 1=LINK is active <=> "Automatic"OP_STAT.QOP_EN BOOL IN_OUT 0 Status 1=Operator can enterOP_STAT.QOP_U REAL IN_OUT 0 Operator enable for operator panel OP_STAT.QOP_VHL REAL IN_OUT 0 Operator panel high limit UOP_STAT.QOP_VLL REAL IN_OUT 0 Operator panel low limit U ENO BOOL OUT 0 QOP_ACTIVE BOOL OUT 0 Status operator panel 1=Operator enableQOP_U REAL OUT 0 Operator panel entryIDBNR INT OUT 0 InstanceDB - NumberQDB_CO_ERR BOOL OUT 0 Reserved

Panel blocks8.15 S7POpA - Operator panel interface for S7OpA

PCS 7 Industry Library for S7294 Function Manual, 09/2015, A5E34977996-AA

Page 295: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Status word assignment for QOS_STAT parameter

Status bit ParameterBit0 Bit2 -

Bit3 Panel activeBit4 – Bit31 -

8.15.6 Operator control & monitoring

8.15.6.1 Views of S7POpAThe block provides the following views:

● Standard view

● Associated value view

8.15.6.2 Standard view of S7POpA

8.15.6.3 Block icons of S7POpA

Panel blocks8.15 S7POpA - Operator panel interface for S7OpA

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 295

Page 296: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

8.16 S7POpD - Operator panel interface for S7OpD

8.16.1 FunctionThe S7POpD block acts as the interface between a "S7OpD" technological block and the operator panel.

The OP_STAT input must be connected to the corresponding output of the S7OpD block.

The following outputs must be connected to the associated inputs of the S7OpD block:

● QOP_ACTIVE

● QOP_IO

The IDBNR output must point to an address in the PanelConDB data block. This area of the data block is needed to connect the panel.

Only if the configured operating level OP_PERMIS and the current operator control permission for the unit PERMIS are identical is the QOP_ACTIVE output set and the technology function of S7POpD controlled.

8.16.2 Calling OBsThis is the cyclic interrupt OB in which you install the block (e.g. OB32). Additionally in OB100 (see Startup characteristics (Page 296)).

8.16.3 Startup characteristicsThe RUNUPCYC parameter can be used to specify for how long (number of cycles) the messages are to be suppressed.

RESTART = TRUE can be used to simulate a restart.

8.16.4 Called blocks

SFC6 RD_SINFOUDT75 UDT_S7POpD

Panel blocks8.16 S7POpD - Operator panel interface for S7OpD

PCS 7 Industry Library for S7296 Function Manual, 09/2015, A5E34977996-AA

Page 297: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

8.16.5 Block parameters

Block I/Os

Parameter Type IN/OUT OCM DescriptionEN BOOL IN 0 RESTART BOOL IN 0 Manual startupOP_MODE WORD IN 0 RESERVED. Not used yet.OP_Q BOOL IN 0 Status 1=Operator panel output 1: 0=inactive, 1=ac‐

tive OP_FB_ON BOOL IN 0 Status 1=Operator panel feedback 1: 0=inactive,

1=active EN_AUX BOOL IN 0 Activate associated valuesAUX1 REAL IN 0 AssociatedValue1AUX2 REAL IN 0 AssociatedValue2AUX3 REAL IN 0 AssociatedValue3AUX4 REAL IN 0 AssociatedValue4OS_STAT DWORD IN 0 Status WinCC flexibleOP_PERM_LOG DWORD IN 0 Operator enableOP_VISIBILITY DWORD IN 0 Visibility in OPPERMIS INT IN 0 Switching authorityOP_PERMIS INT IN 0 Panel priorityBL_CONN ANY IN 0 ReservedRUNUPCYC INT IN 0 Number of startup cycles with message suppres‐

sion OP_STAT STRUCT IN_OUT 0 Status for OP_DOP_STAT.UDT_IDENT BYTE IN_OUT 0 UDT identifier for UDT_S7POpDOP_STAT.QOP_Q BOOL IN_OUT 0 Status 1=Operator panel output 1: 0=inactive, 1=ac‐

tive OP_STAT.QOP_EN0 BOOL IN_OUT 0 Status 1=Operator can set 0OP_STAT.QOP_EN1 BOOL IN_OUT 0 Status 1=Operator can set 1OP_STAT.QOP_LINK BOOL IN_OUT 0 Status 1=LINK is active <=> "Automatic" ENO BOOL OUT 0 QOP_ACTIVE BOOL OUT 0 Status operator panel 1=Operator enableQOP_I0 BOOL OUT 0 Operator panel entryIDBNR INT OUT 0 InstanceDB - NumberQDB_CO_ERR BOOL OUT 0 Reserved

Panel blocks8.16 S7POpD - Operator panel interface for S7OpD

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 297

Page 298: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Status word assignment for QOS_STAT parameter

Status bit ParameterBit0 Bit2 -

Bit3 Panel activeBit4 – Bit31 -

8.16.6 Operator control & monitoring

8.16.6.1 Views of S7POpDThe block provides the following views:

● Standard view

● Associated value view

8.16.6.2 Standard view of S7POpD

Static (S7OpD MODE = 1)

Panel blocks8.16 S7POpD - Operator panel interface for S7OpD

PCS 7 Industry Library for S7298 Function Manual, 09/2015, A5E34977996-AA

Page 299: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Pulse (S7OpD MODE = 0)

8.16.6.3 Block icons of S7POpD

Static (S7OpD MODE = 1)

Pulse (S7OpD MODE = 0)

Panel blocks8.16 S7POpD - Operator panel interface for S7OpD

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 299

Page 300: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

8.17 S7PVlv - Operator panel interface for S7Vlv

8.17.1 FunctionThe S7PVlv block acts as the interface between a "S7Vlv" technological block and the operator panel.

The OP_STAT input must be connected to the corresponding output of the S7Vlv block.

The following outputs must be connected to the associated inputs of the S7Vlv block:

● QOP_ACTIVE

● QOP_RESET

● QOP_AUT_OC

● QOP_MAN_OC

● MSG_FILTER

The IDBNR output must point to an address in the PanelConDB data block. This area of the data block is needed to connect the panel.

Only if the configured operating level OP_PERMIS and the current operator control permission for the unit PERMIS are identical is the QOP_ACTIVE output set and the technology function of S7PVlv controlled.

8.17.2 Calling OBsThis is the cyclic interrupt OB in which you install the block (e.g. OB32). Additionally in OB100 (see Startup characteristics (Page 301)).

8.17.3 How it worksThe "S7PVlv" checks if the operator panel has permission to switch the valve. If the operator panel has switch permission, all switching commands affecting the valve are sent from the operator panel. The commands are sent to the valve control block S7Vlv via the command outputs that are interconnected to the valve block S7Vlv. The valve control block checks for error states. If no errors are found, the commands are sent to the valve.

Switching commands cannot be sent from the operator panel in the following operating states:

● "Forced open"

● "Forced close"

● "Local operation"

If the operator panel does not have switch permission, all switching states are forwarded from the valve block S7Vlv to the operator panel.

If a relevant system error or state affecting the valve occurs, this is reported to the operator system by S7PVlv.

Panel blocks8.17 S7PVlv - Operator panel interface for S7Vlv

PCS 7 Industry Library for S7300 Function Manual, 09/2015, A5E34977996-AA

Page 301: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

8.17.4 Startup characteristicsThe RUNUPCYC parameter can be used to specify for how long (number of cycles) the messages are to be suppressed.

RESTART = TRUE can be used to simulate a restart.

8.17.5 Called blocks

SFC6 RD_SINFOUDT64 UDT_S7PVlv (UDT_OP_SVALVE)

8.17.6 Block parameters

Block I/Os

Parameter Type Class HMI MeaningEN BOOL IN 0 RESTART BOOL IN 0 Manual startupOP_MODE WORD IN 0 Operator modeOP_OPEN_MAN BOOL IN 0 Operator panel input for manual openOP_CLOSE_MAN BOOL IN 0 Operator panel input for manual closeOP_RESET BOOL IN 0 Operator panel input reset errorEN_AUX BOOL IN 0 Activate associated valuesAUX1 REAL IN 0 AssociatedValue1AUX2 REAL IN 0 AssociatedValue2AUX3 REAL IN 0 AssociatedValue3AUX4 REAL IN 0 AssociatedValue4OS_STAT DWORD IN 0 Status WinCC flexibleOS_STAT_AL DWORD IN 0 Bit message procedureOP_MSG_FILTER DINT IN 0 Message filter for WinCC flexibleOP_PERM_LOG DWORD IN 0 Operator enableOP_VISIBILITY DWORD IN 0 Visibility in OPPERMIS INT IN 1 Switching authorityOP_PERMIS INT IN 0 Panel priorityBL_CONN ANY IN 0 ReservedRUNUPCYC INT IN 0 Number of startup cycles with message suppres‐

sion AS_NR INT IN 0 AS number for message filter (max. 999)OP_STAT STRUCT IN_OUT 0 Status for S7VlvOP_STAT.UDT_IDENT BYTE IN_OUT 0 UDT identifier for UDT_S7PVlv

Panel blocks8.17 S7PVlv - Operator panel interface for S7Vlv

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 301

Page 302: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type Class HMI MeaningOP_STAT.QOP_RESET BOOL IN_OUT 0 Status 1=Operator panel resetOP_STAT.QOP_AUT_OC BOOL IN_OUT 0 Status 1=Operator panel 1=AUTO, 0=Manual modeOP_STAT.QOP_MAN_OC BOOL IN_OUT 0 Status 1=Panel 1=Valve openingOP_STAT.QOS_STAT_F WORD IN_OUT 0 Status for panel messagesOP_STAT.QOS_STAT DWORD IN_OUT 0 Status for WinCCENO BOOL OUT 0 QOP_ACTIVE BOOL OUT 0 Status operator panel 1=Operator enableQOP_RESET BOOL OUT 0 Status operator panel 1=Reset errorQOP_AUT_OC BOOL OUT 0 Status operator panel 1=AUTO, 0=Manual modeQOP_MAN_OC BOOL OUT 0 Status operator panel 1=Motor runningMSG_FILTER DINT OUT 0 Message filterQERR BOOL OUT 0 1 = ErrorIDBNR INT OUT 0 InstanceDB - NumberQDB_CO_ERR BOOL OUT 0 Reserved

Status word assignment for QOS_STAT_AL parameter

Status bit ParameterBit0 External error occurred (CSF)Bit1 Feedback error

Bit2 – Bit31 -

8.17.7 Operator control & monitoring

8.17.7.1 Views of S7PVlvThe block provides the following views:

● Standard view

● Message view

● Associated value view

Panel blocks8.17 S7PVlv - Operator panel interface for S7Vlv

PCS 7 Industry Library for S7302 Function Manual, 09/2015, A5E34977996-AA

Page 303: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

8.17.7.2 Standard view of S7PVlv

8.17.7.3 Block icons of S7PVlv

Panel blocks8.17 S7PVlv - Operator panel interface for S7Vlv

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 303

Page 304: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

8.18 S7PVlvMot - Operator panel interface for S7VlvMot

8.18.1 FunctionThe ""S7PVlvMot"" block acts as the interface between the ""S7VlvMot"" technological block and the operator panel.

The "BlockConnector" input of "S7PVlvMot"" must be connected to any given ""S7VlvMot"" output.

The relevant data for the panel block (for example, status information or messages) are then automatically processed via the panel block and displayed accordingly.

Exception:The ENO output cannot be used for the interconnection to the "Block connector".

The IDBNo output must point to an address in the PanelConDB data block. This location in the data block is required for connecting the panel.

8.18.2 Calling OBsThe cyclic interrupt OB into which you install the block (for example, OB32). Additionally in OB100 (see Startup characteristics).

8.18.3 Startup characteristicsThe RunUpCyc parameter can be used to set for how long (number of cycles) messages are to be suppressed.

Restart = TRUE can be used to simulate a restart.

8.18.4 Called blocks

SFC6 RD_SINFOSFC24 TEST_DB

Panel blocks8.18 S7PVlvMot - Operator panel interface for S7VlvMot

PCS 7 Industry Library for S7304 Function Manual, 09/2015, A5E34977996-AA

Page 305: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

8.18.5 Block parameter

Block I/Os

Parameter Type IN/OUT OCM DescriptionEN BOOL IN 0 1 = Called block is processedRestart BOOL IN 0 Manual startupOp_Mode WORD IN 0 Operator input operating mode (WinCC flexible pa‐

rameter)Op_OpenMan BOOL IN 0 Operator input manual: Open (WinCC flexible pa‐

rameter)Op_CloseMan BOOL IN 0 Operator input manual: Close (WinCC flexible pa‐

rameter)Op_StopMan BOOL IN 0 Operator input manual: Stop (WinCC flexible pa‐

rameter)Op_Rbk REAL IN 0 Readback value (WinCC flexible parameter)Op_MV REAL IN 0 Operator input manipulated variable (WinCC flexi‐

ble parameter)Op_MVHL REAL IN 0 High limit manipulated variable (WinCC flexible pa‐

rameter)Op_MVLL REAL IN 0 Low limit manipulated variable (WinCC flexible pa‐

rameter)Op_ScMVHL REAL IN 0 OpScale value (high limit) for manipulated variableOp_ScMVLL REAL IN 0 OpScale value (low limit) for manipulated variableOp_Reset BOOL IN 0 Operator input reset error (WinCC flexible parame‐

ter)EnAux BOOL IN 0 Enable associated value view (WinCC flexible pa‐

rameter)Aux1 REAL IN 0 Associated value 1 (WinCC flexible parameter)Aux2 REAL IN 0 Associated value 2 (WinCC flexible parameter)Aux3 REAL IN 0 Associated value 3 (WinCC flexible parameter)Aux4 REAL IN 0 Associated value 4 (WinCC flexible parameter)OSStat DWORD IN 0 Status WinCCOSStatAl DWORD IN 0 Bit message procedure (WinCC flexible parameter)Op_MsgFilter DINT IN 0 Message filter for WinCC flexibleOp_PermLog DWORD IN 0 Operator authorizationOp_Visibility DWORD IN 0 Object visibilitySwitchPerm DWORD IN 1 Switching authorityPanelPerm DWORD IN 0 Panel operating levelBlockConnector ANY IN 0 Connection to S7VlvMot blockRunUpCyc INT IN 0 Number of startup cycles with message suppressionAS_Nr INT IN 0 AS number for message filter (max. 999)ENO BOOL OUT 0 SwitchPerm_Out DWORD OUT 1 Switching authority output

Panel blocks8.18 S7PVlvMot - Operator panel interface for S7VlvMot

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 305

Page 306: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionOSStat_Out DWORD OUT 0 Status WinCCOSStatAl_Out DWORD OUT 0 Bit message procedure (WinCC flexible parameter)PanelAct BOOL OUT 0 Panel activeIDBNo STRUCT OUT 0 Instance DB number (WinCC flexible parameter)DB_ConnErr BOOL OUT 0 Data block connection error

Status word assignment for OSStatAl and OSStatAl_Out parameters

Status bit ParameterBit0 External error occurred (CSF)Bit1 Motor feedback errorBit2 Motor protection triggeredBit3 Valve feedback errorBit4 Feedback error

Bit5 - Bit6 -Bit7 ER - Alarm high limitBit8 ER - Alarm low limitBit9 Rbk - Warning high limit

Bit10 Rbk - Warning low limitBit11 - Bit15 -

Bit16 Torque shutoff open enabledBit17 Torque shutoff closed enabled

Bit18 - Bit31 -

Status word assignment for OSStat and OSStat_Out parameters

Status bit ParameterBit0 LocalActBit1 ManActBit2 -Bit3 Panel activeBit4 AutoAct

Bit5 - Bit6 Bit7 ErrorBit8 OpenBit9 ClosedBit10 StoppedBit11 -Bit12 OpenBit13 CloseBit14 Forced openBit15 Forced close

Panel blocks8.18 S7PVlvMot - Operator panel interface for S7VlvMot

PCS 7 Industry Library for S7306 Function Manual, 09/2015, A5E34977996-AA

Page 307: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Status bit ParameterBit16 Forced stopBit17 Output open commandBit18 Display errorsBit19 Output close commandBit20 Command for rapid stopBit21 Output stop commandBit22 OosActBit23 MV_Ext

Bit24 - Bit31 -

8.18.6 Operator control & monitoring

8.18.6.1 Views of S7VlvMotThe block provides the following views:

● Standard view

● Message view

● Associated value view

8.18.6.2 Standard view of S7PVlvMot

Display when calling via block icon without MV (S7VlvMot Feature.Bit13 = 0)

Panel blocks8.18 S7PVlvMot - Operator panel interface for S7VlvMot

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 307

Page 308: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Display when calling via block icon with MV (S7VlvMot Feature.Bit13 = 1)

8.18.6.3 Block icons of S7PVlvMotThere are two versions of each block icon. One version for the binary mode (S7VlvMot Feature.Bit13 = 0) and one version for analog mode (S7VlvMot Feature.Bit13 = 1).

The versions for analog mode have "MV" in their name.

Both versions of the block icons look identical. The difference is in the display of the standard view of the called faceplate.

Panel blocks8.18 S7PVlvMot - Operator panel interface for S7VlvMot

PCS 7 Industry Library for S7308 Function Manual, 09/2015, A5E34977996-AA

Page 309: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Controller blocks 99.1 S7PIDCon - Continuous PID controller

9.1.1 Description of S7PIDCon

Object name (type + number) and familyType and number: FB 265

Family: Control

Area of application for S7PIDConThe block is used for the following applications:

● Fixed setpoint control

● Cascade control

● Ratio control

● Split-range control

● Smith predictor closed-loop control

● Override control (override)

How it worksThe block is a PID controller with continuous output signal (manipulated variable). It is used to activate a final controlling element with continuous action input.

The block functions following the PID algorithm with a delayed D action and an integrator with double precision.

The block is suitable for controlling sluggish control loops, for example, for temperatures and filling levels, and high-speed control loops, for example, for flow rates and speed. For a given CPU, a compromise has to be made between the number of controllers and the frequency with which the individual controllers have to be processed. The faster the modulated control loops are (i.e., the more frequently the manipulated variables have to be calculated per time unit), the lower the number of controllers that can be installed.

ConfigurationUse the CFC editor to install the block in a cyclic interrupt OB (OB30 to OB38). The block is also installed automatically in the startup OB (OB100).

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 309

Page 310: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

For the control loop monitoring to work as planned in the trend view of the controller faceplates, the S7_archive:='shortterm' attributes in the process tag types for control loops at the controller function blocks must be set for the following variables:

● Output parameters

– MV

– RbkOut

– SP

– PV_Out

Startup characteristicsUse the startup characteristics Feature bit to define the startup characteristics for this block. The messages are suppressed after startup for the number of cycles set at RunUpCyc.

Status word assignment for Status1 parameter

Status bit Parameter0 Occupied1 BatchEn2 Not used3 OosAct4 OosLi5 AutAct6 Not used7 ManAct8 SP_ExtAct9 MV_ForOn10 MV_TrkOn AND NOT (ManAct OR OosAct OR MV_ForOn)11 MV > ManLoLim

12 - 18 Not used19 AdvCoAct20 Not used21 NegGain22 Not used23 OptimEn24 OptimOcc

25 - 31 Not used

Status word assignment for Status2 parameter

Status bit Parameter0 MsgLock1 PV_AH_Act

Controller blocks9.1 S7PIDCon - Continuous PID controller

PCS 7 Industry Library for S7310 Function Manual, 09/2015, A5E34977996-AA

Page 311: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Status bit Parameter2 PV_WH_Act3 Not used4 Not used5 PV_WL_Act6 PV_AL_Act7 PV_AH_En8 PV_WH_En9 Not used10 Not used11 PV_WL_En12 PV_AL_En13 PV_AH_MsgEn14 PV_WH_MsgEn15 Not used16 Not used17 PV_WL_MsgEn18 PV_AL_MsgEn19 ER_AH_Act20 ER_AL_Act21 ER_AH_En22 ER_AL_En23 ER_AH_MsgEn24 ER_AL_MsgEn25 RbkWH_Act26 RbkWL_Act27 RbkWH_En28 RbkWL_En29 RbkWH_MsgEn30 RbkWL_MsgEn31 Not used

Status word assignment for Status3 parameter

Status bit Parameter0 - 26 Not used

27 SP_UpRaAct, SP_DnRaAct limits enabled for gradient mode (SP_RateOn = 1)28 GrpErr29 RdyToStart

30 - 31 Not used

Controller blocks9.1 S7PIDCon - Continuous PID controller

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 311

Page 312: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

9.1.2 Modes supported by S7PIDConThe block can be operated using the following modes:

● Automatic mode

● Manual mode

● Program mode for controllers

● Out of service

9.1.3 FunctionsThe functions for this block are listed below.

Generation of manipulated variablesThe manipulated variable MV can be generated as follows:

MV_ForOn MV = Limit monitor‐ing

State ManAct

MV_TrkOn AdvCoAct AND

NOT AdvCo‐ModSP

1 - - - MV_Forced

none Forced tracking through con‐straint without limitation

0 1 - - Man ManHiLimManLoLim

Manual mode, set by the opera‐tor

0 0 1 - MV_Trk MV_HiLimMV_LoLim

Tracking with limitation

0 0 0 1 AdvCoMV MV_HiLimMV_LoLim

Higher-level program mode

0 0 0 0 P_Part + I_Part + D_Part + FFwd

MV_HiLimMV_LoLim

Automatic mode (PID algorithm)

If the controller is in "Out of service" mode, the output parameter MV is set to the last valid value in manual mode or the neutral position manipulated variable depending on the Feature bit (neutral position manipulated variable takes effect at startup).

Tracking and limiting a manipulated variableThe block provides the standard function Tracking and limiting a manipulated variable.

For more information see the APL Function Manual.

Controller blocks9.1 S7PIDCon - Continuous PID controller

PCS 7 Industry Library for S7312 Function Manual, 09/2015, A5E34977996-AA

Page 313: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Neutral positionThe block provides the standard function Neutral position for motors, valves, and controllers. For more information see the APL Function Manual.

Group errorThis block includes the standard function, Group error. For more information see the APL Function Manual.The following parameters are taken into consideration when generating the group error:

● CSF

Output a signal for ready to startThis block provides the standard function, Output a signal for ready to start. For more information see the APL Function Manual.

"Final controlling element active" informationIf the manipulated variable MV is greater than the minimum manual limit ManLoLim, this is recognized as final controlling element active. This status can be used to display a custom icon in the process image, for example, and is saved in the status word (see Status word section in description of S7PIDCon (Page 309)).

Limit monitoring of position feedbackThe block provides the standard function Limit monitoring of feedback. For more information see the APL Function Manual.

External/internal setpoint specificationThe block provides the standard function Setpoint specification - internal/external. For more information see the APL Function Manual.

Setpoint limiting for external setpoints DThe block provides the standard function Setpoint limiting for external setpoints. For more information see the APL Function Manual.

Gradient limit of the setpointThe block provides the standard function Gradient limit of the setpoint. For more information see the APL Function Manual.

Using setpoint rampThe block provides the standard function Using setpoint ramp. For more information see the APL Function Manual.

Controller blocks9.1 S7PIDCon - Continuous PID controller

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 313

Page 314: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Tracking setpoint in manual modeThe block provides the standard function Tracking setpoint in manual mode. For more information see the APL Function Manual.

Limit monitoring of the process valueThe block provides the standard function Limit monitoring of the process value. For more information see the APL Function Manual.

Control error generation and dead bandThe block provides the standard function Control deviation generation and dead band. For more information see the APL Function Manual.Feature bit 14 can be used to feedforward an external control error ER_Ext. When the external control error is activated, ER_Ext affects both the dead band and the control error alarm generation.

Delay alarm for control deviation at setpoint step changes

Limit monitoring of control errorThe block provides the standard function Limit monitoring of setpoint, manipulated variable, and control deviation. For more information see the APL Function Manual.

Inverting control directionThe block provides the standard function Inverting control direction. For more information see the APL Function Manual.

Physical standardization of setpoint, manipulated variable, and process valueController gain is entered either using a physical variable or as standardized value.

Gain as physical variable:

The standardized variables retain their default values:

● NormPVH = 100 and NormPVL = 0

● NormMVH = 100 and NormMVL = 0

The effective gain is:

GainEff = Gain

Entering a standardized Gain (dimensionless):

Controller blocks9.1 S7PIDCon - Continuous PID controller

PCS 7 Industry Library for S7314 Function Manual, 09/2015, A5E34977996-AA

Page 315: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Change the standardized variables to the actual range of the process values and manipulated variables.

● Internal and external setpoints; the process value and corresponding parameters are entered according to the physical measuring range of the process value.

● The manual value, the tracking value of the manipulated variable, feedforward control, and the corresponding parameters are set according to the physical measuring range of the manipulated variable.

The effective gain is:

● GainEff = (NormMVH - NormMVL) / (NormPVH - NormPVL) • Gain

Select a unit of measureThe block provides the standard function Selecting a unit of measure. For more information see the APL Function Manual.

PID algorithmThe manipulated variable is generated in automatic mode according to the following algorithm:

● MV = Gain • (1 + 1 / (TI • s) + (TD • s) / (1 + TD / DiffGain • s)) • ER

Where:

● s = Complex number

The following step response occurs:

Controller blocks9.1 S7PIDCon - Continuous PID controller

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 315

Page 316: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Note

This formula describes a standard application where the P, I, and D component is activated and the P and D components are not in the feedback circuit (PropSel = 1,TI <> 0,DiffToFbk = 0andPropFacSP = 1).

The D component delay is derived from TD / DiffGain.

● The P component is at the P_Part I/O and can be deactivated using PropSel = 0.

● The I component is displayed at the I_Part I/O and can be deactivated using TI = 0.

● The D component is displayed at the D_Part I/O and can be deactivated using TD = 0.

Structure segmentation at controllersThe block provides the standard function Structure segmentation at controllers. For more information see the APL Function Manual.

Feedforwarding and limiting disturbance variablesThe block provides the standard function Feedforwarding and limiting disturbance variables. For more information see the APL Function Manual.

Control zoneThe block provides the standard function Using control zones. For more information see the APL Function Manual.

Configurable reactions using the Feature parameter

The following characteristics are available for this block at the relevant bits:

Bit Function0 Set startup characteristics1 Characteristics for the out of service mode2 Reset the commands for switching the operating mode4 Set switch or button mode12 Control zone with specified I component 13 Control zone with frozen I component 14 External control error 15 Neutral position manipulated variable takes effect with "Out of service" operating

mode16 Neutral position manipulated variable takes effect at startup 18 Disabling bumpless switchover to automatic mode for controllers 22 Update acknowledgment and error status of the message call

Controller blocks9.1 S7PIDCon - Continuous PID controller

PCS 7 Industry Library for S7316 Function Manual, 09/2015, A5E34977996-AA

Page 317: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Bit Function24 Enable local operator authorization 25 Suppress all messages 26 Characteristics of the switching points in the "Out of service" operating mode 28 Disabling switching points 29 Signal at limit violation

Operator authorizationsThe block provides the standard function Operator authorizations. For more information see the APL Function Manual.

The block has the following permissions for the OS_Perm parameter:

Bit Function0 1 = Operator can switch to "Automatic mode" AutModOp1 1 = Operator can switch to "Manual mode" ManModOp2 1 = Operator can switch to "Out of service" mode OosOp3 1 = Operator can switch to "program mode" AdvCoEn4 1 = Operator can switch the setpoint to "external" SP_ExtOp5 1 = Operator can switch the setpoint to "internal" SP_IntOp6 1 = Operator can change the internal setpoint SP_Int7 1 = Operator can change the manual parameter Man8 1 = Operator can change maximum usage limit of the setpoint SP_InHiLim9 1 = Operator can change minimum usage limit of the setpoint SP_InLoLim10 1 = Operator can change maximum operating limit of the manipulated variable Man‐

HiLim11 1 = Operator can change minimum operating limit of the manipulated variable Man‐

LiLim12 1 = Operator can use the setpoint's gradient limitation function SP_RateOn 13 1 = Operator can change the setpoint's high limit for the ramp SP_UpRaLim14 1 = Operator can change the setpoint's low limit for the ramp SP_DnRaLim15 1 = Operator can change between the time value or the value for the ramp

SP_RmpModTime16 1 = Operator can change the ramp time SP_RmpTime17 1 = Operator can change the target setpoint SP_RmpTarget for the setpoint ramp18 1 = Operator can activate the setpoint ramp function SP_RmpOn 19 1 = Operator can permit the PID optimization function OptimEn20 1 = Operator can activate the track setpoint in "Manual mode" function SP_TrkPV21 1 = Operator can enable the bumpless switchover from external to internal SP_TrkExt22 1 = Operator can change the gain parameter Gain23 1 = Operator can change the integral action time parameter TI24 1 = Operator can change the derivative action time parameter TD25 1 = Operator can change the derivative gain parameter DiffGain

Controller blocks9.1 S7PIDCon - Continuous PID controller

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 317

Page 318: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Bit Function26 1 = Operator can change the dead band parameter DeadBand27 1 = Operator can change the control zone parameter ConZone

28 - 31 Not used

The block has the following permissions for the OS1Perm parameter:

Bit Function0 1 = Operator can change the limit (process value) for the high alarm PV_AH_Lim1 1 = Operator can change the limit (process value) for the high warning PV_WH_Lim2 Not used3 1 = Operator can change the hysteresis (process value) PV_Hyst4 Not used5 1 = Operator can change the limit (process value) for the low warning PV_WL_Lim6 1 = Operator can change the limit (process value) for the low alarm PV_AL_Lim7 1 = Operator can change the limit (control error) for the high alarm ER_AH_Lim8 1 = Operator can change the hysteresis (control error) ER_Hyst9 1 = Operator can change the limit (control error) for the low alarm ER_AL_Lim10 1 = Operator can change the limit (position feedback) RbkWH_Lim for the high

warning11 1 = Operator can change the hysteresis (position feedback) RbkHyst12 1 = Operator can change the limit (position feedback) for the low warning RbkWL_Lim

13 - 15 Not used16 1 = Operator can change MsgLock

17 - 31 Not used

Note

If you interconnect a parameter that is also listed as a parameter in OS_Perm, you have to reset the corresponding OS_Perm.Bit.

Specifying the display area for process and setpoint values as well as operationsSpecifying the display area for process and setpoint values as well as operations

SIMATIC BATCH functionalityThis block provides the standard function, SIMATIC BATCH functionality. For more information see the APL Function Manual.

Controller blocks9.1 S7PIDCon - Continuous PID controller

PCS 7 Industry Library for S7318 Function Manual, 09/2015, A5E34977996-AA

Page 319: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

9.1.4 Error handlingThe following errors can be displayed for this block:

● Error numbers

Overview of error numbers

Error number Meaning of the error number-1 Predefined value when inserting the block; the block is not processed0 There is no error.60 |TI| < SampleTime / 261 |TD| < SampleTime62 DiffGain < 1 or DiffGain > 1063 TD / DiffGain < SampleTime / 264 PropFacSP < 0 or PropFacSP > 166 NormPV_High = NormPV_Low

9.1.5 Messaging

Message characteristicsThe following messages can be generated for this block:

● Control system fault

● Process messages

Control system faultThe following messages can be output for process control errors:

Message instance Message class EventMsgEvId09 AS process control message - fault External error occurred

You can interconnect an external fault (signal) to input parameter CSF. If this signal changes to CSF = 1, a process control error is triggered (MsgEvId09).

Process messages

Message instance Message class EventMsgEvId01 Alarm - high PV - Alarm high limit violatedMsgEvId02 Warning - high PV - Warning high limit violatedMsgEvId03 Warning - low PV - Warning low limit violatedMsgEvId04 Alarm - low PV - Alarm low limit violatedMsgEvId05 Alarm - high ER - Alarm high limit violatedMsgEvId06 Alarm - low ER - Alarm low limit violated

Controller blocks9.1 S7PIDCon - Continuous PID controller

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 319

Page 320: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Message instance Message class EventMsgEvId07 Warning - high Rbk - Warning high limit violatedMsgEvId08 Warning - low Rbk - Warning low limit violated

Associated value structure for message instances

Data type Block parameterREAL AuxDWORD BatchIDDINT MsgFilter

9.1.6 I/Os

Input parameters

Parameter Description Type DefaultEN 1 = Called block is processed BOOL 1NegGain 0 = Positive controller gain: ER = Gain · (SP - PV), 1 = Negative

controller gain: ER = Gain · (PV - SP)BOOL 0

Gain Proportional gain REAL 1.0NormPVH Process value range (PV)) for standardizing the proportional gain

(GAIN) highREAL 100.0

NormPVL Process value range (PV) for standardizing the proportional gain (GAIN) low

REAL 0.0

NormMVH Manipulated variable range (MV) for standardizing the proportional gain (GAIN) high

REAL 100.0

NormMVL Manipulated variable range (MV) for standardizing the proportional gain (GAIN) low

REAL 0.0

TI Integral time [s] REAL 100.0IntHoldPos 1 = Integrator cannot run in positive direction BOOL 0IntHoldNeg 1 = Integrator cannot run in negative direction BOOL 0TD Derivative time [s] REAL 0.0DiffGain Gain of differentiator [1..10] DiffGain = TD / (delay time of D com‐

ponent)REAL 5.0

PropSel 1 = Activate P component BOOL 1DiffToFbk 1 = D component is placed in the feedback BOOL 0IntSel Reserved BOOL 0DiffSel Reserved BOOL 0PropFacSP Applying the P component to the feedback [0..1]. 0 = P component

fully in feedbackREAL 1.0

DeadBand Width of dead band REAL 0.0ConZone Width of control zone REAL 0.0

Controller blocks9.1 S7PIDCon - Continuous PID controller

PCS 7 Industry Library for S7320 Function Manual, 09/2015, A5E34977996-AA

Page 321: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Description Type DefaultSP_LiOp Select setpoint source (internal/external): 1 = Interconnection, 0 =

OperatorBOOL 0

SP_ExtOp 1 = Select external setpoint (via operator) BOOL 0SP_IntOp 1 = Select internal setpoint (via operator) BOOL 0SP_ExtLi 1 = Select external setpoint (via interconnection) BOOL 0SP_IntLi 1 = Select internal setpoint (via interconnection) BOOL 0SP_Int Internal setpoint for operation REAL 0.0SP_InHiLim Limit (high) of internal setpoint REAL 100.0SP_InLoLim Limit (low) of internal setpoint REAL 0.0SP_Ext external setpoint - (to interconnection) REAL 0.0SP_ExHiLim Limit (high) for external setpoint REAL 100.0SP_ExLoLim Limit (low) for external setpoint REAL 0.0SP_TrkPV 1 = Setpoint follows PV in "Manual mode" and with tracking BOOL 0SP_TrkExt 1 = Bumpless switchover from external to internal setpoint active BOOL 1SP_RateOn 1 = Activate limitation of setpoint gradients BOOL 0SP_RmpOn 1 = Activate setpoint ramp to target setpoint SP_RmpTarget BOOL 0SP_RmpMod‐Time

1 = Use time (SP_RmpTime) for setpoint ramp, 0 = Use gradient BOOL 0

SP_UpRaLim Gradient limit (high) for the setpoint [SP_Unit/s] REAL 100.0SP_DnRaLim Limit (low) for the gradient of the setpoint [SP_Unit/s] REAL 100.0SP_RmpTime Time for setpoint ramp [s] from current SP up to SP_RmpTarget REAL 0.0SP_RmpTarget Target setpoint for setpoint ramp REAL 0.0PV Process value (controlled variable) REAL 0.0PV_AH_Lim Limit PV alarm (high) REAL 95.0PV_WH_Lim Limit PV warning (high) REAL 90.0PV_WL_Lim Limit PV warning (low) REAL 10.0PV_AL_Lim PV alarm limit (low) REAL 5.0PV_Hyst Hysteresis for PV alarm and warning limits REAL 1.0PV_A_DC Delay time for incoming PV alarms [s] REAL 0.0PV_A_DG Delay time for outgoing PV alarms [s] REAL 0.0PV_W_DC Delay time for incoming PV warnings [s] REAL 0.0PV_W_DG Delay time for outgoing PV warnings [s] REAL 0.0PV_AH_En 1 = Enable PV alarm limit (high) BOOL 1PV_WH_En 1 = Enable PV warning limit (high) BOOL 1PV_WL_En 1 = Enable PV warning limit (low) BOOL 1PV_AL_En 1 = Enable PV alarm limit (low) BOOL 1PV_AH_MsgEn 1 = Enable PV alarm (high) message BOOL 1PV_WH_MsgEn 1 = Enable PV warning (high) message BOOL 1PV_WL_MsgEn 1 = Enable PV warning (low) message BOOL 1PV_AL_MsgEn 1 = Enable PV alarm (low) message BOOL 1ER_Ext External control error REAL 0.0ER_AH_Lim Alarm limit (high) for control error monitoring REAL 100.0

Controller blocks9.1 S7PIDCon - Continuous PID controller

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 321

Page 322: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Description Type DefaultER_AL_Lim Alarm limit (low) for control error monitoring REAL -100.0ER_Hyst Alarm hysteresis for control error REAL 1.0ER_A_DC Delay for incoming alarms during control error monitoring REAL 0.0ER_A_DG Delay for outgoing alarms during control error monitoring REAL 0.0ER_AH_DFac Delay factor for positive setpoint step changes for incoming alarms

during control error monitoring ER_AH_LimREAL 0.0

ER_AL_DFac Delay factor for negative setpoint step changes for incoming alarms during control error monitoring ER_AL_Lim

REAL 0.0

ER_AH_En 1 = Enable alarm (high) for control error monitoring BOOL 1ER_AL_En 1 = Enable alarm (low) for control error monitoring BOOL 1ER_AH_MsgEn 1 = Enable messages for alarm (high) for control error monitoring BOOL 1ER_AL_MsgEn 1 = Enable messages for alarm (low) for control error monitoring BOOL 1MV_Offset Manipulated variable for ER=0, operating point for controller with

deactivated I componentREAL 0.0

FFwd Input for additive disturbance variable activation REAL 0.0FFwdHiLim Limit (high) for additive disturbance variable activation REAL 100.0FFwdLoLim Limit (low) for additive disturbance variable activation REAL -100.0MV_TrkOn 1 = Tracking of manipulated variable MV BOOL 0MV_Trk Tracking value for the manipulated variable MV REAL 0.0ModLiOp Operating mode switchover between: 0 = Operator, 1 = Intercon‐

nection or SFCBOOL 0

AutModOp 1 = "Automatic mode" via operator (controlled by ModLiOp = 0) BOOL 0ManModOp 1 = "Manual mode" via OS operator (controlled by ModLiOp = 0) BOOL 1AutModLi 1 = "Automatic mode" via interconnection or SFC (controlled by

ModLiOp = 1)BOOL 0

ManModLi 1 = "Manual mode" via interconnection or SFC (controlled by Mod‐LiOp = 1)

BOOL 0

AdvCoEn 1 = Enable "program mode" via interconnection BOOL 0AdvCoOn 1 = Enable "program mode" via faceplate BOOL 0AdvCoModSP Type of "program mode": 1 = Setpoint target, 0 = Manipulated vari‐

able targetBOOL 1

AdvCoMstrOn Activate (0-1) or deactivate (1-0) "program mode" via edge transition BOOL 0AdvCoMV Specified value from the external program REAL 0.0OosOp 1 = "Out of service", via OS operation BOOL 0OosLi 1 = "Out of service", via interconnection or SFC (0-1 edge transition) BOOL 0OptimEn 1 = Enable optimization of PID parameters by PID tuner BOOL 0OptimOcc 1 = Optimization running BOOL 0CPI_In Reserved REAL 0.0RefStdDevIn Reference value of PV standard deviation (sigma) in defined "good"

state of control loopREAL 0.0

Man Manual specification for the manipulated variable REAL 0.0ManHiLim Limit (high) for manual parameter Man REAL 100.0ManLoLim Limit (low) for manual parameter Man REAL 0.0

Controller blocks9.1 S7PIDCon - Continuous PID controller

PCS 7 Industry Library for S7322 Function Manual, 09/2015, A5E34977996-AA

Page 323: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Description Type DefaultMV_HiLim Limit (high) for manipulated variable MV REAL 100.0MV_LoLim Limit (low) for manipulated variable MV REAL 0.0MV_ForOn 1 = Output forced manipulated variable MV_Forced unlimited at out‐

put MVBOOL 0

MV_Forced Forced manipulated variable that is not limited and assumes top priority

REAL 0.0

SafePos 1 = Neutral position for controller manipulated variable is ManHiLim, 0 = Neutral position for controller manipulated variable is ManLoLim

BOOL 0

Rbk Position feedback for display on OS REAL 0.0RbkWH_Lim Limit for position feedback of warning (high) REAL 100.0RbkWL_Lim Limit for position feedback of warning (low) REAL 0.0RbkHyst Alarm hysteresis for position feedback REAL 1.0RbkWH_En 1 = Enable warning (high) for position feedback BOOL 1RbkWL_En 1 = Enable warning (low) for position feedback BOOL 1RbkWH_MsgEn 1 = Enable messages for warning (high) for position feedback BOOL 1RbkWL_MsgEn 1 = Enable messages for warning (low) for position feedback BOOL 1PV_OpScaleH Limit for scale in PV bar graph of faceplate high REAL 100.0PV_OpScaleL Limit for scale in PV bar graph of faceplate low REAL 0.0MV_OpScaleH OS display area for manipulated variable MV high REAL 100.0MV_OpScaleL OS display area for manipulated variable MV low REAL 0.0PV_Unit Unit of measure for process value INT 1001MV_Unit Unit of measure for manipulated variable INT 1342SampleTime Sampling time [s] (assigned automatically) REAL 0.1TimeFactor Time unit: 0 = seconds, 1 = minutes, 2 = hours INT 0UserStatus Freely assignable bits for use in WinCC SCADA BYTE 16#00RunUpCyc Number of cycles in startup; messages are suppressed during these

cyclesINT 3

MsgEvId01 Message number (assigned automatically) DWORD 16#00000000MsgEvId02 Message number (assigned automatically) DWORD 16#00000000MsgEvId03 Message number (assigned automatically) DWORD 16#00000000MsgEvId04 Message number (assigned automatically) DWORD 16#00000000MsgEvId05 Message number (assigned automatically) DWORD 16#00000000MsgEvId06 Message number (assigned automatically) DWORD 16#00000000MsgEvId07 Message number (assigned automatically) DWORD 16#00000000MsgEvId08 Message number (assigned automatically) DWORD 16#00000000MsgEvId09 Message number (assigned automatically) DWORD 16#00000000Aux Associated value REAL 0.0BatchEn 1 = Batch enable for batch control BOOL 0BatchID Batch number DWORD 16#00000000BatchName Batch name STRING[32] StepNo Batch step number DWORD 16#00000000Occupied 1 = Occupied by batch control BOOL 0

Controller blocks9.1 S7PIDCon - Continuous PID controller

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 323

Page 324: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Description Type DefaultMsgFilter Message filter DINT 0CmpID Reserved DWORD 16#00000000Permis Switching authority INT 2CSF 1 = External error (process control error) BOOL 0MsgLock 1 = Suppress process messages. BOOL 0OS_Perm I/O for operator authorizations STRUCT

● Bit 0: BOOL …

● Bit 31: BOOL

-● 1● 1● 1

OS1Perm I/O for operator authorizations STRUCT● Bit 0: BOOL

…● Bit 31: BOOL

-● 1● 1● 1

Feature I/O for additional functions STRUCT● Bit 0: BOOL

…● Bit 31: BOOL

-● 0● 0● 0

Feature2 I/O for additional functions STRUCT● Bit 0: BOOL

…● Bit 31: BOOL

-● 0● 0● 0

* Values can be written back to these inputs during processing of the block by the block algorithm.

Output parameters

Parameter Description Type DefaultENO 1 = Block algorithm completed without errors BOOL 0MV Manipulated variable REAL 0.0MV_HiAct 1 = Limit (high) of manipulated variable violated BOOL 0MV_LoAct 1 = Limit (low) of manipulated variable violated BOOL 0ManHiOut Limit (high) for "Manual mode", corresponds to input parameter

ManHiLimREAL 100.0

ManLoOut Limit (low) for "Manual mode", corresponds to input parameter Man‐LoLim

REAL 0.0

RbkOut Output for position feedback REAL 0.0RbkWH_Act 1 = Warning (high) for position feedback enabled. You can change

the response for this parameter by setting Feature bit 28 (deactivate trigger points) and Feature bit 29 (signal limit overshoot/undershoot) accordingly.

BOOL 0

Controller blocks9.1 S7PIDCon - Continuous PID controller

PCS 7 Industry Library for S7324 Function Manual, 09/2015, A5E34977996-AA

Page 325: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Description Type DefaultRbkWL_Act 1 = Warning (low) for position feedback enabled. You can change

the response for this parameter by setting Feature bit 28 (deactivate trigger points) and Feature bit 29 (signal limit overshoot/undershoot) accordingly.

BOOL 0

GrpErr 1 = Group error pending BOOL 0RdyToStart 1 = Ready to start pending BOOL 0OosAct 1 = Block is "Out of service" BOOL 0ManAct 1 = "Manual mode" is enabled BOOL 1AutAct 1 = "Automatic mode" is active BOOL 0LoopClosed 1 = Control loop closed, 0 = Control loop opened BOOL 0SP_ExtAct 1 = External setpoint active; 0 = Internal setpoint active BOOL 0AdvCoAct 1 = "Program mode" is active BOOL 0AdvCoRdy 1 = "Program mode" available BOOL 0CascaCut Cascade connection: 1 = Control chain from primary to secondary

controller is interruptedBOOL 0

SP Setpoint used by controller REAL 0.0SP_ExtOut External setpoint, corresponds to input parameter SP_Ext REAL 0.0SP_RateTarget Target setpoint for the gradient limitation REAL 0.0SP_ExHiAct 1 = Limit (high) for external setpoint has been reached BOOL 0SP_ExLoAct 1 = Limit (low) for external setpoint has been reached BOOL 0SP_UpRaAct 1 = Positive gradient limiting of setpoint is active BOOL 0SP_DnRaAct 1 = Negative gradient limiting of setpoint is active BOOL 0SP_InHiOut Limit (high) for SP_Int corresponds to input parameter SP_InHiLim REAL 100.0SP_InLoOut Limit (low) for SP_Int corresponds to input parameter SP_InLoLim REAL 0.0PV_Out Output for process value REAL 0.0PV_AH_Act 1 = PV alarm (high) active. You can change the response for this

parameter by setting Feature bit 28 (deactivate trigger points) and Feature bit 29 (signal limit overshoot/undershoot) accordingly.

BOOL 0

PV_WH_Act 1 = PV warning (high) active. You can change the response for this parameter by setting Feature bit 28 (deactivate trigger points) and Feature bit 29 (signal limit overshoot/undershoot) accordingly.

BOOL 0

PV_WL_Act 1 = PV warning (low) active. You can change the response for this parameter by setting Feature bit 28 (deactivate trigger points) and Feature bit 29 (signal limit overshoot/undershoot) accordingly.

BOOL 0

PV_AL_Act 1 = PV alarm (low) active. You can change the response for this parameter by setting Feature bit 28 (deactivate trigger points) and Feature bit 29 (signal limit overshoot/undershoot) accordingly.

BOOL 0

PV_ToleHi Reserved REAL 0.0PV_ToleLo Reserved REAL 0.0ER Control deviation REAL 0.0ER_AH_Act 1 = Alarm limit (high) for control deviation violated. You can change

the response for this parameter by setting Feature bit 28 (deactivate trigger points) and Feature bit 29 (signal limit overshoot/undershoot) accordingly.

BOOL 0

Controller blocks9.1 S7PIDCon - Continuous PID controller

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 325

Page 326: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Description Type DefaultER_AL_Act 1 = Alarm limit (low) for control deviation violated. You can change

the response for this parameter by setting Feature bit 28 (deactivate trigger points) and Feature bit 29 (signal limit overshoot/undershoot) accordingly.

BOOL 0

ER_A_DCOut Effective delay time [s] for incoming alarms during control error monitoring

REAL 0.0

FFwdHiAct 1 = Limit (high) for additive disturbance variable activation violated BOOL 0FFwdLoAct 1 = Limit (low) for additive disturbance variable activation violated BOOL 0SumMsgAct 1 = Active hardware interrupt BOOL 0GainEff Effective proportional gain, depends on Gain, NormPV and NormMV REAL 1.0PV_UnitOut Unit of measure for process value INT 0MV_UnitOut Unit of measure for manipulated variable INT 0P_Part P component of PID algorithm REAL 0.0I_Part I component of PID algorithm REAL 0.0D_Part D component of PID algorithm REAL 0.0ErrorNum Output of current error number. For error numbers that can be output

by this block, see the error handling of S7PIDCon.INT -1

Status1 Status word 1 DWORD 16#00000000Status2 Status word 2 DWORD 16#00000000Status3 Status word 3 DWORD 16#00000000OS_PermOut Display of OS_Perm with settings changed by the block algorithm DWORD 16#FFFFFFFFOS_PermLog Display of OS_Perm DWORD 16#FFFFFFFFOS1PermOut Display of OS1Perm with settings changed by the block algorithm DWORD 16#FFFFFFFFOS1PermLog Display of OS1Perm DWORD 16#FFFFFFFFLocAuthAct Local operator authorization enabled BOOL 0QMsgErr 1 = Message error BOOL 0MsgStat01 Message status 1 WORD 16#0000MsgStat02 Message status 2 WORD 16#0000MsgStat03 Message status 3 WORD 16#0000MsgStat04 Message status 4 WORD 16#0000MsgStat05 Message status 5 WORD 16#0000MsgStat06 Message status 6 WORD 16#0000MsgStat07 Message status 7 WORD 16#0000MsgStat08 Message status 8 WORD 16#0000MsgStat09 Message status 9 WORD 16#0000MsgAck01 Message acknowledgment status 1 BOOL 16#0000MsgAck02 Message acknowledgment status 2 BOOL 16#0000MsgAck03 Message acknowledgment status 3 BOOL 16#0000MsgAck04 Message acknowledgment status 4 BOOL 16#0000MsgAck05 Message acknowledgment status 5 BOOL 16#0000MsgAck06 Message acknowledgment status 6 BOOL 16#0000MsgAck07 Message acknowledgment status 7 BOOL 16#0000

Controller blocks9.1 S7PIDCon - Continuous PID controller

PCS 7 Industry Library for S7326 Function Manual, 09/2015, A5E34977996-AA

Page 327: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Description Type DefaultMsgAck08 Message acknowledgment status 8 BOOL 16#0000MsgAck09 Message acknowledgment status 9 BOOL 16#0000

Calculation of the output parameter ER_A_DCOutER_A_DC is assigned by default to the output before a setpoint change.

● ER_A_DCOut = ER_A_DC

In the case of a setpoint change in the positive direction during automatic mode, the output is calculated as follows:

● ER_A_DCOut = Maximum (ER_A_DC, ER_AH_DFac * Setpoint difference)

In the case of a setpoint change in the negative direction during automatic mode, the output is calculated as follows:

● ER_A_DCOut = Maximum (ER_A_DC, -1*ER_AH_DFac * Setpoint difference)

Once the control loop has stabilized again, i.e., (ER_AL_Lim + ER_Hyst) <= ER <= (ER_AH_Lim – ER_Hyst) and the delay time for outgoing alarms ER_A_DG has expired, the output is reset to ER_A_DC:

● ER_A_DCOut = ER_A_DC

Activating and deactivating the functionThe function is deactivated (default) when the following applies: ER_AH_DFac = 0.0 and

ER_AL_DFac = 0.0

9.1.7 Views of S7PIDConThe block S7PIDCon provides the following views:

● Standard view

● Message view

● Limit view

● Trend view

● Ramp view

● Parameter view

● Preview

● Batch view

● Block icon

Controller blocks9.1 S7PIDCon - Continuous PID controller

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 327

Page 328: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

9.1.8 Operator control & monitoring

9.1.8.1 Views of S7PIDConThe block S7PIDCon provides the following views:

● Standard view

● Message view

● Limit view

● Trend view

● Ramp view

● Parameter view

● Preview

● Batch view

● Block icon

9.1.8.2 Standard view of S7PIDCon

12

13

14

15

16

17

19

18

9

1

2

3

4

5

3

6

7

8

11

6

10

(1) Display and switch the operating mode

This area provides information on the currently valid operating mode. The following operating modes can be shown here:

● Manual mode

● Automatic mode

● Program mode for controllers

● Out of service

Controller blocks9.1 S7PIDCon - Continuous PID controller

PCS 7 Industry Library for S7328 Function Manual, 09/2015, A5E34977996-AA

Page 329: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

(2) Displaying and switching the setpoint specification

This area shows how to specify the setpoint. The setpoint can be specified as follows:

● By the application ("External", CFC/SFC)

● By the user directly in the faceplate ("Internal").

(3) High and low scale range for the process value

These values provide information on the display range for the bar graph of the process value. The scale range is defined in the engineering system.

(4) Display of the process value

This area shows the current process value.

(5) Display and change the setpoint

This area shows the current setpoint.

(6) High and low scale range for the setpoint

This area is already set and cannot be changed.

(7) Display and change the manipulated variable

This area shows the current manipulated variable.

(8) Display of the position feedback

This area shows the current feedback of the manipulated variable.

(9) Bar graph for the manipulated variable

This area shows the current manipulated variable in the form of a bar graph. The visible area in the bar graph depends on the configuration in the engineering system (ES).

(10) Bar graph for position feedback

This area shows the current position feedback in the form of a bar graph. The visible area in the bar graph depends on the configuration in the engineering system (ES).

(11) Message lock enabled

(12) Display area for block states

This area provides additional information on the operating state of the block (from high to low according to priority):

● "Optimizing"

● "Tracking"

● "Forced tracking"

(13) Display area for operating levels

This area shows the current operating level of the block.

(14) Limit display

These colored triangles indicate the configured limits in the respective bar graph:

● Red: Alarm

● Yellow: Warning

Controller blocks9.1 S7PIDCon - Continuous PID controller

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 329

Page 330: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

(15) Bar graph for the process value

This area shows the current process value in the form of a bar graph. The visible area in the bar graph depends on the configuration in the engineering system (ES).

(16) Bar graph for the setpoint

This area shows the current setpoint in the form of a bar graph. The visible area in the bar graph depends on the configuration in the engineering system (ES).

(17) Display of external setpoint

This display [E] is only visible when you have selected "internal" setpoint specification. It shows the external setpoint that would apply if you were to change the setpoint specification to "external".

(18) Display for the target setpoint of the setpoint ramp

This display [R] shows you the target setpoint and is only visible if you have enabled ramp generation in the ramp view.

(19) Limit display for the setpoint

These triangles show SP_HiLim and SP_LoLim limits which can be configured for the setpoint in the engineering system ES.

Controller blocks9.1 S7PIDCon - Continuous PID controller

PCS 7 Industry Library for S7330 Function Manual, 09/2015, A5E34977996-AA

Page 331: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

9.1.8.3 Limit view of S7PIDCon

1

6

2

3

4

5

You can set several values in this view by default:

● Process value limits

● Control deviation limits

● Readback value limits

● Setpoint operating range

● Manipulated variable operating range

The toolbars of the faceplate and the block icon indicate when the limits are reached or violated.

(1) "Process value limits (PV)"

In this area, you can enter the limits for the process value.

You can change the following limits:

● "H alarm": Alarm high

● "H warning": Warning high

● "Hysteresis"

Controller blocks9.1 S7PIDCon - Continuous PID controller

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 331

Page 332: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

● "L warning": Warning low

● "L alarm": Alarm low

(2) "Control deviation limits (ER)"

In this area, you can enter the limits for the control deviation.

You can change the following limits:

● "H alarm": Alarm high

● "Hysteresis"

● "L alarm": Alarm low

(3) "Readback limits (RBK)"

In this area, you can enter the limits for the readback value.

You can change the following limits:

● "H warning": Warning high

● "Hysteresis"

● "L warning": Warning low

(4) Setpoint operating range (SP)

In this area, you can enter the limits for the setpoint operating range.

You can change the following limits:

● "H range": Range high limit

● "L range": Range low limit

(5) Manipulated variable operating range

In this area, you can enter the limits for the manipulated variable operating range.

You can change the following limits:

● "H range": Range high limit

● "L range": Range low limit

(6) "Operator control enable"

This area shows all operations for which special operator authorizations are assigned. They depend on the configuration in the engineering system (ES) that applies to this block.

Symbols for operator control enable:

● Green check mark: the OS operator can control this parameter

● Gray check mark: the OS operator cannot control this parameter at this time due to the process

● Red cross: the OSoperator cannot control this parameter due to the configured AS operator authorizations (OS_Perm or OS1Perm)

Controller blocks9.1 S7PIDCon - Continuous PID controller

PCS 7 Industry Library for S7332 Function Manual, 09/2015, A5E34977996-AA

Page 333: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

9.1.8.4 Ramp view of S7PIDCon

1

4

2

3

(1) Enable "gradient limit"

Use this check box to enable "gradient limit" for the setpoint. "Gradient limit" can be set separately for positive or negative setpoint changes ("Gradient +" or "Gradient -").

(2) "Ramp function"

In this area, you can set the type of ramp function for the setpoint.

You can set the following types of ramp function:

● "Time duration"

● "Target setpoint"

You can set the time duration and the target setpoint.

(3) Enable "Ramp"

You can use this control to enable or disable the configured function in the ramp function for the setpoint change.

You can only enable this when the setpoint specification is set to "internal" in the standard view of the block. The enable is only valid for one setpoint change and is subsequently disabled again.

(4) "Operator control enable"

This area shows all operations for which special operator authorizations are assigned. They depend on the configuration in the engineering system (ES) that applies to this block.

Symbols for operator control enable:

● Green check mark: the OS operator can control this parameter

● Gray check mark: the OS operator cannot control this parameter at this time due to the process

● Red cross: the OS operator cannot control this parameter due to the configured AS operator authorizations (OS_Perm or OS1Perm)

Controller blocks9.1 S7PIDCon - Continuous PID controller

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 333

Page 334: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

9.1.8.5 Parameter view of S7PIDCon

1

3

4

2

(1) "Settings"

You can enable the following functions for the controller in this area:

● "PID optimization": ☑ Activate controller optimization

● "SP := PV in manual mode": ☑ Bumpless switchover from manual mode to automatic mode

● "SP := SP external": ☑ Bumpless switchover of the setpoint for setpoint switchover from "external" to "internal" The internal setpoint is tracked to the external one.

(2) "Parameters"

In this area, you change parameters and, therefore, influence the controller.

You can influence the following parameters:

● "Gain": Proportional gain

● "Integral time" Integral action time in [s]

● "Derivative time TD": Derivative action time in [s]

● "Derivative gain": Gain of the derivative action

● "Dead band": Width of dead band

● "Control zone": Width of control zone

(3) "Delay factor"

In this area, you set the following delay factors for the controller:

● "ER H Alarm": Factor for high alarm in [s/PV_Unit]

● "ER L Alarm": Factor for high alarm in [s/PV_Unit]

(4) "Operator control enable"

Controller blocks9.1 S7PIDCon - Continuous PID controller

PCS 7 Industry Library for S7334 Function Manual, 09/2015, A5E34977996-AA

Page 335: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

This area shows all operations for which special operator authorizations are assigned. They depend on the configuration in the engineering system (ES) that applies to this block.

Symbols for operator control enable:

● Green check mark: the OS operator can control this parameter

● Gray check mark: the OS operator cannot control this parameter at this time due to the process

● Red cross: the OS operator cannot control this parameter due to the configured AS operator authorizations (OS_Perm or OS1Perm).

9.1.8.6 Preview of S7PIDCon

3

2

1

The preview shows you the parameters that you, as an OS operator, can control. You cannot control anything in this view, however.

(1) Process value

This area shows the real process value (PV).

(2) Preview area

This area shows you a preview for the following values:

● "SP external": currently applicable external setpoint

● "SP internal": currently applicable internal setpoint

● "Control deviation": Current control deviation

● "Program value": specified value for program mode

● "Disturbance variable": additive value for feedforward control

Controller blocks9.1 S7PIDCon - Continuous PID controller

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 335

Page 336: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

● "Track MV": track manipulated variable (value is 1)

● "Tracking value": effective manipulated variable for "Track manipulated variable"

(3) Operator control enables

This area shows all operations for which special operator authorizations are assigned. They depend on the configuration in the engineering system (ES) that applies to this block.

Symbols for operator control enable:

● Green check mark: the OS operator can control this parameter

● Gray check mark: the OS operator cannot control this parameter at this time due to the process

● Red cross: the OS operator cannot control this parameter due to the configured AS operator authorizations (OS_Perm or OS1Perm).

The following enabled operations are shown here:

● "SP external": You can feedforward the external setpoint.

● "SP internal": You can feedforward the internal setpoint.

● "Change SP": You can change the setpoint.

● "Change MV": You can change the manipulated variable.

● "Program mode": You can switch to "program mode".

● "Automatic": You can switch to "Automatic mode".

● "Manual": You can switch to "Manual mode".

● "Out of service": You can switch to "Out of service" operating mode.

9.1.8.7 Block icons of S7PIDConA variety of block icons are available with the following functions:

● Violation of alarm and warning limits as well as the process control error CSF

● Operating modes

● Internal and external setpoint specification

● Process value (black)

● Setpoint (blue)

Controller blocks9.1 S7PIDCon - Continuous PID controller

PCS 7 Industry Library for S7336 Function Manual, 09/2015, A5E34977996-AA

Page 337: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

● Feedback value (red), not available for types 3 and 4

● Switching authority: Operator panel “OP”, local control station "LCS" or local OS (no icon)

Controller blocks9.1 S7PIDCon - Continuous PID controller

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 337

Page 338: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Controller blocks9.1 S7PIDCon - Continuous PID controller

PCS 7 Industry Library for S7338 Function Manual, 09/2015, A5E34977996-AA

Page 339: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

System blocks 1010.1 S7ASTimeBCD - Output the CPU time in BCD format

10.1.1 FunctionThe block calls the SFC READ_CLK system function and transfers the read time stamp (date and time) to the output in BCD format.

10.1.2 OBs to be calledThis is the cyclic interrupt -OB in which you install the block (e.g. OB32).

10.1.3 Called blocks

SFC1 READ_CLK

10.1.4 Block parameters

Parameter Type IN/OUT OCM DescriptionEN BOOL IN 0 ENO BOOL OUT 0 YEAR BYTE OUT 0 Output year in "Integer" formatMONTH BYTE OUT 0 Output month in "Integer" formatDAY BYTE OUT 0 Output day in "Integer" formatHOUR BYTE OUT 0 Output hour in "Integer" formatMINUTE BYTE OUT 0 Output minute in "Integer" formatSECOND BYTE OUT 0 Output second in "Integer" formatMSEC WORD OUT 0 Output millisecond in "Integer" format

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 339

Page 340: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

10.2 S7MVLd - Retrieving the manipulated variable for the controller

10.2.1 FunctionDuring startup, the block supplies the controller with the state data before the controller stops and restores this state.

10.2.2 Calling OBsThis is the cyclic interrupt OB in which you install the block (e.g. OB32). Additionally in OB100 (see How it works / Startup characteristics (Page 340)).

10.2.3 Time behaviorThe block must be called using a cyclic interrupt OB. The sampling time of the block is set in the SAMPLE_T parameter.

10.2.4 How it works / Startup characteristicsAfter startup the block briefly sets the output LMN_SEL for the controller to reactivate the old manipulated variable (before the STOP state). In addition, the old setting, selection of external / internal setpoint value, is output. To ensure that the controller accepts the values, the startup cycles (RUNUPCYC) of the S7MVLD block must be longer than those of the controller block.

10.2.5 Called blocks

SFC6 RD_SINFO

10.2.6 Block parameters

Parameter Type IN/OUT OCM DescriptionEN BOOL IN 0 RUNUPCYC INT IN 0 Number of startup cycles with message suppressionRESTART BOOL IN 0 Manual startupMAN_AUT BOOL IN 0 AUTO / MANUAL operation of PID LOOPSPEXTON BOOL IN 0 External / internal setpoint mode of PIDLOOPLMN REAL IN 0 PID LOOP output of manipulated variableS_LMN REAL IN_OUT 0 Saved manip. value

System blocks10.2 S7MVLd - Retrieving the manipulated variable for the controller

PCS 7 Industry Library for S7340 Function Manual, 09/2015, A5E34977996-AA

Page 341: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionS_MAN_AUT BOOL IN_OUT 0 Saved modeS_SPEXTON BOOL IN_OUT 0 Saved setpoint modeENO BOOL OUT 0 LMN_TRK REAL OUT 0 External value for PID LoopLMN_SEL BOOL OUT 0 Select external LMN valueLIOP_SEL BOOL OUT 0 Selection: 1=Linking , 0=OperationAUT_L BOOL OUT 0 1=AUTO, 0=MANUAL modeSPEXON_L BOOL OUT 0 Setpoint 1=External, 0=Internal modeQRESTART BOOL OUT 0 1=Restart

System blocks10.2 S7MVLd - Retrieving the manipulated variable for the controller

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 341

Page 342: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

10.3 S7SplitRange - Split range for control

10.3.1 FunctionThe block divides the manipulated variable of a controller into a maximum of 4 final controlling elements and, if necessary, changes the controller manipulated variable to bypass deadbands.

10.3.2 Calling OBsThis is the cyclic interrupt OB in which you install the block (e.g. OB32). Additionally in OB100 (see Startup characteristics (Page 343)).

10.3.3 Time behaviorThe block must be called using a cyclic interrupt OB. The sampling time of the block is set in the SAMPLE_T parameter.

10.3.4 Interconnection in the CFC

System blocks10.3 S7SplitRange - Split range for control

PCS 7 Industry Library for S7342 Function Manual, 09/2015, A5E34977996-AA

Page 343: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

10.3.5 Supplying the manipulated variablesWhen the startup of the split range block is finished and the controller enable is present, the manipulated variables are output for the final controlling elements.

Final controlling elements that are not available are assigned the configured lower limit as a manipulated variable.

Manipulated variables are calculated for final controlling elements that are available based on the "inverted" state, the slope, and the ranges of the final controlling elements and the manipulated variable of the controller.

If the manipulated variable of the controller is outside the limits determined by the block, the value is limited internally.

10.3.6 Adjusting the controllerIf the active manipulated variable of the controller is in a standby area, the manipulated variable of the controller is adjusted in order to skip this standby area. This means that a jump to the higher or lower limit of the next final controlling element takes place. A deadband is taken into consideration to prevent cyclic switching on and off of the final controlling elements. The controller is adjusted; if it was not, the next final controlling element would not be activated due to limitation of the final controlling elements. If the manipulated variable of the controller exceeds the limits determined by the block, it is adjusted to the limits.

10.3.7 Error handlingThe sequence of the final controlling elements is checked for plausibility. An uninverted final controlling element must not be followed by an inverted final controlling element.

The lower limit of the final controlling elements must not be less than 0.0.

If an error occurs, the QERR output is set. The manipulated variables are set to their lower limits.

10.3.8 Startup characteristicsDuring startup, the outputs for the enabled manipulated variables are set to their lower limits. When the startup cycles are finished, the block waits for the feedback from the final controlling elements indicating that their startup phase is complete. It is only at this point that calculation of the manipulated variables commences.

The RUNUPCYC parameter can be used to set how long (number of cycles) the outputs are to be disabled for the manipulated variables.

10.3.9 Message behaviorNo message behavior is applicable to the S7SplitRange block.

System blocks10.3 S7SplitRange - Split range for control

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 343

Page 344: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

10.3.10 Diagram of a split range control processThe example in the diagram uses 2 inverted and 2 uninverted final controlling elements. The manipulated variable of the final controlling elements is shown on the y axis (LMN_x: 0 – 100%).

The x axis shows the manipulated variable which is output by the controller block (PID controller, e.g., CONT_C). The range of the manipulated variable of the controller is determined by the S7SPLITRANGE block and calculated from the individual ranges of the final controlling elements.

The ranges of the LMN_x_INIT final controlling elements are determined from:

● LMN_[x]_INIT = LMN_[x-1]_INIT + (100 / STATUS_x.GRAD)

(STATUS_X.GRAD = slope of the final controlling element). These limits are determined cyclically and stored internally. If a final controlling element is not enabled or not available (EN_x = FALSE), the range = 0 and thus LMN_[x]_INIT = LMN_[x+1]_INIT.

The following is calculated for the controller.

● Upper limit LMN_HLM = Σ (100 / STATUS_x.GRAD) of the uninverted final controlling elements.

● Lower limit LMN_LLM = Σ (100 / STATUS_x.GRAD) of the uninverted final controlling elements.

The final controlling elements are limited to their respective limits STATUS_x.SP_HLM and STATUS_x.SP_LLM. This would mean that a deadband would be created for a controller manipulated variable between x1 and x2 in which there would be no change in the final controlling elements. To prevent this from happening, waiting for a configured deadband (DEADB_W) is incorporated after violations of SP_HLM / SP_LLM and then a jump is made to the limit of the next final controlling element.

Example

LMN_PID > x1 + DEADB_W and control deviation is positive

System blocks10.3 S7SplitRange - Split range for control

PCS 7 Industry Library for S7344 Function Manual, 09/2015, A5E34977996-AA

Page 345: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

⇒ LMN_PID is adjusted x2 by setting output LMN_TRK = x2 and LMN_SEL = TRUE for EXT_T seconds.

10.3.11 Called blocks

UDT52 UDT_S7SPLITRANGESFC6 RD_SINFO

10.3.12 Block parameters

Block I/Os

Parameter Type IN/OUT OCM DescriptionEN BOOL IN 0 RUNUPCYC INT IN 0 Number of startup cycles with message suppres‐

sionRESTART BOOL IN 0 Manual startupLMN_PID REAL IN 0 PID LOOP output of final controlling elementER_PID REAL IN 0 PID LOOP output of control deviationDEADB_W REAL IN 0 DeadbandEN_CTRL BOOL IN 0 Enable PID LOOPEN_1 BOOL IN 0 Enable LMN1EN_2 BOOL IN 0 Enable LMN2EN_3 BOOL IN 0 Enable LMN3EN_4 BOOL IN 0 Enable LMN4STATUS_1 STRUCT IN 0 Status byte LMN1STATUS_1.SP_HLM REAL IN 0 STATUS_1.SP_LLM REAL IN 0 STATUS_1.GRAD REAL IN 0 STATUS_1.STATUS BYTE IN 0 STATUS_2 STRUCT IN 0 Status byte LMN2STATUS_2.SP_HLM REAL IN 0 STATUS_2.SP_LLM REAL IN 0 STATUS_2.GRAD REAL IN 0 STATUS_2.STATUS BYTE IN 0 STATUS_3 STRUCT IN 0 Status byte LMN3STATUS_3.SP_HLM REAL IN 0 STATUS_3.SP_LLM REAL IN 0 STATUS_3.GRAD REAL IN 0 STATUS_3.STATUS BYTE IN 0

System blocks10.3 S7SplitRange - Split range for control

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 345

Page 346: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionSTATUS_4 STRUCT IN 0 Status byte LMN4STATUS_4.SP_HLM REAL IN 0 STATUS_4.SP_LLM REAL IN 0 STATUS_4.GRAD REAL IN 0 STATUS_4.STATUS BYTE IN 0 EXT_T REAL IN 0 Adjustment time for LMN_SELSAMPLE_T REAL IN 0 Sampling time in [s]ENO BOOL OUT 0 LMN_1 REAL OUT 0 Assigned final controlling element 1LMN_2 REAL OUT 0 Assigned final controlling element 2LMN_3 REAL OUT 0 Assigned final controlling element 3LMN_4 REAL OUT 0 Assigned final controlling element 4LMN_HLM REAL OUT 0 High limit LMN for PID loopLMN_LLM REAL OUT 0 Low limit LMN for PID loopLMN_TRK REAL OUT 0 External value for PID loopLMN_SEL BOOL OUT 0 Select external LMN valueQERR BOOL OUT 0 1=Group errorQRESTART BOOL OUT 0 1=Restart

Status word assignment for STATUS_x.STATUS parameter

Status bit ParameterBit 0 AvailableBit 1 InvertedBit 2 Closed (PV = 0%)Bit 3 Open (PV = 100%)Bit 4 Startup done

Bit 5 – Bit 7 -

Status word assignment for UDT_S7SPLITRANGE

Parameter Type DescriptionSP_HLM REAL High limit of final controlling elementSP_LLM REAL Low limit of final controlling elementGRAD REAL Slope of final controlling elementSTATUS BYTE Status of final controlling element

Example

The following example contains 3 final controlling elements with the following data:

Final controlling elements 1 – 3 are available and enabled:

● EN_x = TRUE, STATUS_x.STATUS Bit 0 = TRUE

System blocks10.3 S7SplitRange - Split range for control

PCS 7 Industry Library for S7346 Function Manual, 09/2015, A5E34977996-AA

Page 347: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Final controlling element 4 is not used:

● EN_4 = FALSE.

Final controlling el‐ement

Variable Value

1 STATUS_1.SP_HLM 80%STATUS_1.SP_LLM 20%STATUS_1.GRAD 1STATUS_1.STATUS Bit 1 Invertiert TRUE

2 STATUS_2.SP_HLM 80%STATUS_2.SP_LLM 20%STATUS_2.GRAD 0,5STATUS_2.STATUS Bit 1 Invertiert FALSE

3 STATUS_3.SP_HLM 90%STATUS_3.SP_LLM 30%STATUS_3.GRAD 1STATUS_3.STATUS Bit 1 Invertiert FALSE

General information

Variable ValueDEADB_W 5%

System blocks10.3 S7SplitRange - Split range for control

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 347

Page 348: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

ScenariosThe following scenarios apply to the example:

LMN_PID ER_PID LMN_1 LMN_2 LMN_3 LMN_TRK LMN_SEL-100 x 80% 20% 30% -80.0 TRUE-50 x 50% 20% 30% X FALSE-20 x 20% 20% 30% X FALSE-16 x 20% 20% 30% X FALSE-14 + 20% 20% 30% 40.1 TRUE

- 20% 20% 30% -20.1 TRUE0 20% 20% 30% X FALSE

2 + 20% 20% 30% 40.1 TRUE- 20% 20% 30% -20.1 TRUE0 20% 20% 30% X FALSE

46 x 20% 23% 30% X FALSE140 x 20% 70% 30% X FALSE162 x 20% 80% 30% X FALSE167 + 20% 80% 30% 230.1 TRUE

- 20% 80% 30% 159.9 TRUE0 20% 80% 30% X FALSE

228 x 20% 80% 30% X FALSE270 x 20% 80% 70% X FALSE300 x 20% 80% 90% 290.0 TRUE

x: Irrelevant+: Positive control deviation-: Negative control deviation

System blocks10.3 S7SplitRange - Split range for control

PCS 7 Industry Library for S7348 Function Manual, 09/2015, A5E34977996-AA

Page 349: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Monitoring blocks 1111.1 S7MonAn - Measured value monitoring

11.1.1 FunctionThe block is used to monitor a measured value (analog signal) with the following limit values:

● Warning limit (high/low)

● Alarm limit (high/low)

11.1.2 OBs to be calledIn the same OB that accompanies and follows the block whose measured value is to be monitored. Additionally in OB100 (see Startup characteristics (Page 350)).

11.1.3 Time behaviorThe block must be called using a cyclic interrupt OB. The sampling time of the block is set in the SAMPLE_T parameter.

11.1.4 How it worksThe block monitors the measured value connected to the U input. If a limit value is overshot/undershot, this is indicated at a corresponding output and, if necessary, reported (see Message behavior (Page 350)).

11.1.5 Output VThe measured analog value appears on output V. The analog value can be specified by the process (U), manually (MAN_EN, U_MAN) or via a substitution value (SUBST_EN, U_SUBST) when CSF is queued. If the manual value has been activated, it is given the highest priority.

The output V is generated as shown in the following table.

MAN_EN SUBST_EN CSF V0 0 0 V = U1 x x V = U_MAN

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 349

Page 350: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

MAN_EN SUBST_EN CSF V0 1 0 V = U0 1 1 V = U_SUBST

The following applies, in general: MAN_EN has priority over SUBST_EN

11.1.6 Operator panelSo that various technological functions of the library can also be controlled and monitored from an operator panel, the "S7PMonAn" block is installed in the CFC for the actual technology block.

11.1.7 Error handlingWhen an arithmetic error occurs, ENO = 0 or QERR = 1 is set.

11.1.8 Startup characteristicsFollowing startup, the messages are suppressed until the number of cycles configured in value RUNUPCYC is reached.

11.1.9 Message behaviorThe S7MonAn block uses the ALARM_DQ block for generating messages.

Message triggers are:

● Functions for monitoring the measured value limits

● The CSF signal (QCSF)

The signaling of the messages can be delayed by the time configured in the DELAY_T parameter.

Assignment of message text and message class to the block parameters

Message number

Block param‐eter

Default message text

Message class Can be suppressed by MSG_LOCK orL_MSGLCK or

1 Q_AL Alarm low Alarm low M_SUP_AL2 Q_AH Alarm high Alarm high M_SUP_AH3 Q_WL Warning low Warning low M_SUP_WL4 Q_WH Warning high Warning high M_SUP_WH5 QCSF External error AS control system Fault -

Monitoring blocks11.1 S7MonAn - Measured value monitoring

PCS 7 Industry Library for S7350 Function Manual, 09/2015, A5E34977996-AA

Page 351: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

The messages for limit value violations can be suppressed individually via the appropriate M_SUP_xx inputs. The messages can be locked centrally with MSG_LOCK (OS operation) or L_MSGLCK (program).

QMSG_SUP is set if the RUNUPCYC cycles have not finished running since the restart, or if MSG_LOCK or L_MSGLCK = TRUE.

11.1.10 Called blocks

SFC6 RD_SINFOSFC107 ALARM_DQSFC19 ALARM_SCUDT69 UDT_S7PMonAn (UDT_OP_SMEAS)

11.1.11 Block parameters

Parameter Type IN/OUT OCM DescriptionEN BOOL IN 0 ENABLE BOOL IN 0 Block enableRESTART BOOL IN 0 Manual startupU REAL IN 0 Measured valueMO_PVLR REAL IN 1 Low range bar graphMO_PVHR REAL IN 1 High range bar graphDELAY_T REAL IN 0 Delay time for limit monitoring hysteresisU_MAN REAL IN 1 Manual valueU_SUBST REAL IN 1 Substitution valueCSF BOOL IN 0 External error (process value channel error)MAN_EN BOOL IN 1 Manual value enableSUBST_EN BOOL IN 1 Substitution value enableM_SUP_AL BOOL IN 1 1=Suppress LL alarmM_SUP_AH BOOL IN 1 1=Suppress HH alarmM_SUP_WL BOOL IN 1 1=Suppress L alarmM_SUP_WH BOOL IN 1 1=Suppress H alarmLIMIT_OP BOOL IN 1 1=Limits enabled for operatorMSG_LOCK BOOL IN 1 Message lockL_MSGLCK BOOL IN 0 Interconnectable message lockSAMPLE_T REAL IN 0 Sampling time in [s]RUNUPCYC INT IN 0 Number of startup cycles with message suppressionMSG_EVID_1 DWORD IN 0 Message IDMSG_EVID_2 DWORD IN 0 Message IDMSG_EVID_3 DWORD IN 0 Message ID

Monitoring blocks11.1 S7MonAn - Measured value monitoring

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 351

Page 352: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionMSG_EVID_4 DWORD IN 0 Message IDMSG_EVID_5 DWORD IN 0 Message IDMSG_FILTER DINT IN 0 Message filterAUX REAL IN 1 Associated valueBA_EN BOOL IN 1 Batch enableOCCUPIED BOOL IN 1 Occupied by batchBA_ID DWORD IN 1 Current batch ID (number)BA_NA STRING[3

2]IN 1 Batch name

STEP_NO DWORD IN 1 Batch step numberCMP_ID DWORD IN 0 Area codePERMIS INT IN 1 Switching authorityU_AL REAL IN_OUT 1 Limit value LLU_AH REAL IN_OUT 1 Limit value HHU_WL REAL IN_OUT 1 Limit value LU_WH REAL IN_OUT 1 Limit value HHYS REAL IN_OUT 1 HysteresisENO BOOL OUT 0 V REAL OUT 1 Measured valueV_AL REAL OUT 0 Limit value LLV_AH REAL OUT 0 Limit value HHV_WL REAL OUT 0 Limit value LV_WH REAL OUT 0 Limit value HQCSF BOOL OUT 1 External errorQMSG_7 BOOL OUT 0 Message 7QMSG_8 BOOL OUT 0 Message 8QERR BOOL OUT 0 Group errorQSIM BOOL OUT 1 1=Simulation activeQ_AL BOOL OUT 0 Limit error LLQ_AH BOOL OUT 0 Limit error HHQ_WL BOOL OUT 0 Limit error LQ_WH BOOL OUT 0 Limit error H QMSG_ERR BOOL OUT 0 Message errorQMSG_SUP BOOL OUT 1 Message suppressedMSG_STAT_1 WORD OUT 0 Message statusMSG_STAT_2 WORD OUT 0 Message statusMSG_STAT_3 WORD OUT 0 Message statusMSG_STAT_4 WORD OUT 0 Message statusMSG_STAT_5 WORD OUT 0 Message statusMSG_ACK_1 BOOL OUT 0 Message acknowledge statusMSG_ACK_2 BOOL OUT 0 Message acknowledge status

Monitoring blocks11.1 S7MonAn - Measured value monitoring

PCS 7 Industry Library for S7352 Function Manual, 09/2015, A5E34977996-AA

Page 353: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionMSG_ACK_3 BOOL OUT 0 Message acknowledge statusMSG_ACK_4 BOOL OUT 0 Message acknowledge statusMSG_ACK_5 BOOL OUT 0 Message acknowledge statusQOP_STAT STRUCT OUT 0 Panel statusQOP_STAT.UDT_IDENT BYTE OUT 0 UDT identifier for UDT_S7PMonAn08QOP_STAT.QOP_V REAL OUT 0 Measured value statusQOP_STAT.MO_PVHR REAL OUT 0 High range barQOP_STAT.MO_PVLR REAL OUT 0 Low range barQOP_STAT.MAN_EN BOOL OUT 0 Manual mode enabledQOP_STAT.QOP_QERR BOOL OUT 0 Status 1=Operator panel errorQOP_STAT.QOS_STAT_F WORD OUT 0 Status for panel messages

11.1.12 Operator control & monitoring

11.1.12.1 Views of S7MonAnThe block provides the following views:

● Standard view

● Message view

● Limit view

● Trend view

● Maintenance view

● Batch view

11.1.12.2 Standard view of S7MonAn

3

2

1

4

5

(1) Measured value

Monitoring blocks11.1 S7MonAn - Measured value monitoring

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 353

Page 354: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

(2) Hysteresis

(3) Message lock enabled

(4) Display area for block states

This area provides additional information on the operating state of the block:

● LocalOS

(5) Bar graph for the process valueThis area shows the current process value in the form of a bar graph. The visible area in the bar graph depends on the configuration in the engineering system (ES).

11.1.12.3 Limit view of S7MonAn

1

2

3

(1)

● AH

● WH

(2)

● WL

● AL

(3) Bar graph for the process value

This area shows the current process value in the form of a bar graph. The visible area in the bar graph depends on the configuration in the engineering system (ES).

Monitoring blocks11.1 S7MonAn - Measured value monitoring

PCS 7 Industry Library for S7354 Function Manual, 09/2015, A5E34977996-AA

Page 355: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

11.1.12.4 Maintenance view of S7MonAn

1

2

(1) Simulation value

● Simulation value temperature

● Simulation value selection

(2) Substitute value

● Substitute value temperature

● Substitute value selection

11.1.12.5 Trend view of S7MonAn

The procedure for configuring trends is described in the document titled "Block description – General".

11.1.12.6 Block icons of S7MonAn

Monitoring blocks11.1 S7MonAn - Measured value monitoring

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 355

Page 356: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

11.2 S7MonAn08 - Measured value monitoring with 8 limits

11.2.1 FunctionThe block monitors the measured value connected at input U. Up to 8 limits can be configured by the user.

The violation of the limits is indicated at the output (Q_LIM_x). (See Message behavior (Page 357)).

11.2.2 Calling organization blocksIn the same OB that accompanies and follows the block whose measured value is to be monitored. Additionally in OB100 (see Startup characteristics (Page 356)).

11.2.3 Time behaviorThe block must be called using a cyclic interrupt OB. The sampling time of the block is set in the SAMPLE_T parameter.

11.2.4 Startup characteristicsFollowing startup, the messages are suppressed until the number of cycles configured in value RUNUPCYC is reached. Startup can be simulated with input RESTART.

11.2.5 Output VThe measured analog value appears at the V output. The analog value can be specified by the process (U), manually (MAN_EN, U_MAN), or via a substitution value (SUBST_EN, U_SUBST) when CSF is queued.

11.2.6 Error handlingThe input for process control error CSF can be interconnected with an external error output. The error is not evaluated. A message is generated at the ALARM_DQ block.

Monitoring blocks11.2 S7MonAn08 - Measured value monitoring with 8 limits

PCS 7 Industry Library for S7356 Function Manual, 09/2015, A5E34977996-AA

Page 357: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

11.2.7 Measured value monitoringThe V output is monitored for the observance of a maximum of 8 limits. The limits can be configured by the user. Message output can be delayed with the DELAY_Tx input (x = 1 to 8). The behavior of each limit is specified in a parameter MODE_x in more detail.

The specification of the MODE_x parameter is bit-coded:

Bit 0: 0=Monitoring for low limit / 1= Monitoring for high limitBit 1: 1=Message type is a status (color = violet)Bit 2: 1=Message type is an alarm (color = red)Bit 3: 1= Message type is a warning (color = yellow)Bit 4,5,6: not assignedBit 7: Input is active/not active

The hexadecimal values for input in CFC are derived from this:

16#85: High alarm (HHH)16#89: High warning (HH)16#83: High status (H)16#81: High switching point16#80: Low switching point16#82: Low status (L)16#88: Low warning (LL)16#84: Low alarm (LLL)

11.2.8 Operator panelSo that various technological functions can also be controlled and monitored from an operator panel, the S7MonAn08 block is installed in the CFC for the actual technology block S7PMonAn08.

11.2.9 Message behaviorThe S7MonAn08 block uses two ALARM_DQ blocks for generating messages. Message triggers are:

● Functions for monitoring the measured value limits

● The CSF signals (QCSF), which are obtained as process control errors through connection.

The signaling of the messages can be delayed by the time configured in the DELAY_T parameter.

Assignment of message text and message class to the block parameters

Message number

Block param‐eter

Default message text

Message class Can be suppressed by MSG_LOCK orL_MSGLCK

1 Q_LIM_1 Limit 1 Warning high M_SUP_12 Q_LIM_2 Limit 2 Warning high M_SUP_2

Monitoring blocks11.2 S7MonAn08 - Measured value monitoring with 8 limits

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 357

Page 358: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Message number

Block param‐eter

Default message text

Message class Can be suppressed by MSG_LOCK orL_MSGLCK

3 Q_LIM_3 Limit 3 Warning high M_SUP_34 Q_LIM_4 Limit 4 Warning high M_SUP_45 Q_LIM_5 Limit 5 Warning high M_SUP_56 Q_LIM_6 Limit 6 Warning high M_SUP_67 Q_LIM_7 Limit 7 Warning high M_SUP_78 Q_LIM_8 Limit 8 Warning high M_SUP_89 QCSF External error AS control system

fault-

The messages for limit value violations can be suppressed individually via the appropriate M_SUP_x inputs. The messages can be locked centrally with MSG_LOCK (OS operation) or L_MSGLCK (program).

QMSG_SUP is set if the RUNUPCYC cycles have not finished running since the restart, MSG_LOCK or L_MSGLCK = TRUE.

11.2.10 Block parameters

Block I/Os

Parameter Type IN/OUT OCM DescriptionEN BOOL IN 0 ENABLE BOOL IN 0 Block enableRESTART BOOL IN 0 Manual startupU REAL IN 0 Measured valueMO_PVLR REAL IN 1 Low range bar graphMO_PVHR REAL IN 1 High range bar graphHYS REAL IN 1 HysteresisDELAY_T1 REAL IN 0 Limit monitoring delay time for limit 1DELAY_T2 REAL IN 0 Limit monitoring delay time for limit 2DELAY_T3 REAL IN 0 Limit monitoring delay time for limit 3DELAY_T4 REAL IN 0 Limit monitoring delay time for limit 4DELAY_T5 REAL IN 0 Limit monitoring delay time for limit 5DELAY_T6 REAL IN 0 Limit monitoring delay time for limit 6DELAY_T7 REAL IN 0 Limit monitoring delay time for limit 7DELAY_T8 REAL IN 0 Limit monitoring delay time for limit 8MODE_1 BYTE IN 1 Mode for limit 1MODE_2 BYTE IN 1 Mode for limit 2MODE_3 BYTE IN 1 Mode for limit 3MODE_4 BYTE IN 1 Mode for limit 4

Monitoring blocks11.2 S7MonAn08 - Measured value monitoring with 8 limits

PCS 7 Industry Library for S7358 Function Manual, 09/2015, A5E34977996-AA

Page 359: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionMODE_5 BYTE IN 1 Mode for limit 5MODE_6 BYTE IN 1 Mode for limit 6MODE_7 BYTE IN 1 Mode for limit 7MODE_8 BYTE IN 1 Mode for limit 8U_MAN REAL IN 1 Manual valueU_SUBST REAL IN 1 Substitution valueCSF BOOL IN 0 External error (process control error)MAN_EN BOOL IN 1 Manual value enableSUBST_EN BOOL IN 1 Substitution value enableM_SUP_1 BOOL IN 1 Suppress alarm 1M_SUP_2 BOOL IN 1 Suppress alarm 2M_SUP_3 BOOL IN 1 Suppress alarm 3M_SUP_4 BOOL IN 1 Suppress alarm 4M_SUP_5 BOOL IN 1 Suppress alarm 5M_SUP_6 BOOL IN 1 Suppress alarm 6M_SUP_7 BOOL IN 1 Suppress alarm 7M_SUP_8 BOOL IN 1 Suppress alarm 8MSG_LOCK BOOL IN 1 Message lockL_MSGLCK BOOL IN 0 Interconnectable message lockLIMIT_OP BOOL IN 1 1=Limits enabled for operatorSAMPLE_T REAL IN 0 Sampling time in [s]RUNUPCYC INT IN 0 Number of startup cycles with message sup‐

pressionMSG_EVID_1 DWORD IN 0 Message ID1MSG_EVID_2 DWORD IN 0 Message ID2MSG_EVID_3 DWORD IN 0 Message ID3MSG_EVID_4 DWORD IN 0 Message ID4MSG_EVID_5 DWORD IN 0 Message ID5MSG_EVID_6 DWORD IN 0 Message ID6MSG_EVID_7 DWORD IN 0 Message ID7MSG_EVID_8 DWORD IN 0 Message ID8MSG_EVID_9 DWORD IN 0 Message ID9MSG_FILTER DINT IN 0 Message filterAUX REAL IN 1 Associated valueBA_EN BOOL IN 1 Batch enableOCCUPIED BOOL IN 1 Occupied by batchBA_ID DWORD IN 1 Current batch ID (number)BA_NA STRING[32] IN 1 Batch nameSTEP_NO DWORD IN 1 Batch step numberCMP_ID DWORD IN 0 Area codePERMIS INT IN 1 Switching authority

Monitoring blocks11.2 S7MonAn08 - Measured value monitoring with 8 limits

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 359

Page 360: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionU_LIM_1 REAL IN_OUT 1 Limit 1U_LIM_2 REAL IN_OUT 1 Limit 2U_LIM_3 REAL IN_OUT 1 Limit 3U_LIM_4 REAL IN_OUT 1 Limit 4U_LIM_5 REAL IN_OUT 1 Limit 5U_LIM_6 REAL IN_OUT 1 Limit 6U_LIM_7 REAL IN_OUT 1 Limit 7U_LIM_8 REAL IN_OUT 1 Limit 8ENO BOOL OUT 0 V REAL OUT 1 Measured valueQCSF BOOL OUT 1 External errorQERR BOOL OUT 0 Group errorQ_LIM_1 BOOL OUT 0 Limit 1 activeQ_LIM_2 BOOL OUT 0 Limit 2 activeQ_LIM_3 BOOL OUT 0 Limit 3 activeQ_LIM_4 BOOL OUT 0 Limit 4 activeQ_LIM_5 BOOL OUT 0 Limit 5 activeQ_LIM_6 BOOL OUT 0 Limit 6 activeQ_LIM_7 BOOL OUT 0 Limit 7 activeQ_LIM_8 BOOL OUT 0 Limit 8 activeV_LIM_1 REAL OUT 0 Limit 1V_LIM_2 REAL OUT 0 Limit 2V_LIM_3 REAL OUT 0 Limit 3V_LIM_4 REAL OUT 0 Limit 4V_LIM_5 REAL OUT 0 Limit 5V_LIM_6 REAL OUT 0 Limit 6V_LIM_7 REAL OUT 0 Limit 7V_LIM_8 REAL OUT 0 Limit 8QOS_STAT BYTE OUT 1 Status mask of the Q_LIM_x outputsQMSG_ERR BOOL OUT 0 Message errorQMSG_SUP BOOL OUT 1 Message suppressedMSG_STAT_1 WORD OUT 0 Message statusMSG_STAT_2 WORD OUT 0 Message statusMSG_STAT_3 WORD OUT 0 Message statusMSG_STAT_4 WORD OUT 0 Message statusMSG_STAT_5 WORD OUT 0 Message statusMSG_STAT_6 WORD OUT 0 Message statusMSG_STAT_7 WORD OUT 0 Message statusMSG_STAT_8 WORD OUT 0 Message statusMSG_STAT_9 WORD OUT 0 Message statusMSG_ACK_1 BOOL OUT 0 Message acknowledge status

Monitoring blocks11.2 S7MonAn08 - Measured value monitoring with 8 limits

PCS 7 Industry Library for S7360 Function Manual, 09/2015, A5E34977996-AA

Page 361: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionMSG_ACK_2 BOOL OUT 0 Message acknowledge statusMSG_ACK_3 BOOL OUT 0 Message acknowledge statusMSG_ACK_4 BOOL OUT 0 Message acknowledge statusMSG_ACK_5 BOOL OUT 0 Message acknowledge statusMSG_ACK_6 BOOL OUT 0 Message acknowledge statusMSG_ACK_7 BOOL OUT 0 Message acknowledge statusMSG_ACK_8 BOOL OUT 0 Message acknowledge statusMSG_ACK_9 BOOL OUT 0 Message acknowledge statusQOP_STAT STRUCT OUT 0 Panel statusQOP_STAT.UDT_IDENT BYTE OUT 0 UDT identifier for UDT_S7PMonAn08QOP_STAT.QOP_V REAL OUT 0 Measured value statusQOP_STAT.MO_PVHR REAL OUT 0 High range barQOP_STAT.MO_PVLR REAL OUT 0 Low range barQOP_STAT.MAN_EN BOOL OUT 0 Manual mode enabledQOP_STAT.QOP_QERR BOOL OUT 0 Status 1=Operator panel errorQOP_STAT.QOS_STAT_F WORD OUT 0 Status for operator panel messages

Status word assignment for the QOS_Stat parameter

Status bit ParameterBit 0 Limit 1 violatedBit 1 Limit 2 violatedBit 2 Limit 3 violatedBit 3 Limit 4 violatedBit 4 Limit 5 violatedBit 5 Limit 6 violatedBit 6 Limit 7 violatedBit 7 Limit 8 violated

Status word assignment for the MODE_x parameter

Status bit ParameterBit 0 0=Monitoring for lower limit

1=Monitoring for upper limitBit 1 1=Message type is status (color = violet)Bit 2 1=Message type is alarm (color = red)Bit 3 1=Message type is warning (color = yellow)

Bit 4 – Bit 6 -Bit 7 0=Input is not active

1=Input is active (default setting)

Monitoring blocks11.2 S7MonAn08 - Measured value monitoring with 8 limits

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 361

Page 362: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

11.2.11 Called blocks

SFC6 RD_SINFOSF107 ALARM_DQSFC19 ALARM_SCUDT70 UDT_S7PMonAn08

11.2.12 Operator control & monitoring

11.2.12.1 Views of S7MonAn08The views of the faceplate differ from the faceplate of S7MonAn only in the limit view.

The block provides the following views:

● Standard view

● Message view

● Limit view

● Trend view

● Maintenance view

● Batch view

Monitoring blocks11.2 S7MonAn08 - Measured value monitoring with 8 limits

PCS 7 Industry Library for S7362 Function Manual, 09/2015, A5E34977996-AA

Page 363: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

11.2.12.2 Limit view of S7MonAn08

1

2

(1)

● High limit

● Low limit

(2)

● Limits 1 to 8

● Limits 1 to 8

● Message lock 1 to 8

11.2.12.3 Block icons of S7MonAn08

Monitoring blocks11.2 S7MonAn08 - Measured value monitoring with 8 limits

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 363

Page 364: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

11.3 S7MonAnDi - Measured value monitoring for 4 analog and binary limits

11.3.1 FunctionThe block is used to monitor a measured value (analog signal) with the following limit values:

● Warning limit (high/low) as analog and binary limits

● Alarm limit (high/low) as analog and binary limits

11.3.2 Calling OBsIn the same OB that accompanies and follows the block whose measured value is to be monitored. Additionally in OB100 (see Startup characteristics (Page 365)).

11.3.3 Time behaviorThe block must be called using a cyclic interrupt OB. The sampling time of the block is set in the SAMPLE_T parameter.

11.3.4 How it worksThe block monitors the measured value at input U. If a limit value is overshot/undershot or a limit input is triggered, this is indicated at a corresponding output and, if necessary, reported (see Message behavior (Page 365)).

11.3.5 Output VThe measured analog value appears on output V. The analog value can be specified by the process (U), manually (MAN_EN, U_MAN) or via a substitution value (SUBST_EN, U_SUBST) when CSF is queued. The manual value has the highest priority as soon as it was activated.

The output V is generated as shown in the following table.

MAN_EN SUBST_EN CSF V0 0 0 V = U1 X x V = U_MAN0 1 0 V = U0 1 1 V = U_SUBST

The following applies, in general: MAN_EN has priority over SUBST_EN.

Monitoring blocks11.3 S7MonAnDi - Measured value monitoring for 4 analog and binary limits

PCS 7 Industry Library for S7364 Function Manual, 09/2015, A5E34977996-AA

Page 365: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

11.3.6 Operator panelSo that various technological functions of the library can also be controlled and monitored from an operator panel, the "S7PMonAnDi" block is installed in the CFC for the actual technology block.

11.3.7 Error handlingWhen an arithmetic error occurs, ENO = 0 or QERR = 1 is set.

11.3.8 Startup characteristicsFollowing startup, the messages are suppressed until the number of cycles configured in value RUNUPCYC is reached.

11.3.9 Message behaviorThe S7MonAnDi block uses the ALARM_DQ block for generating messages.

Message triggers are:

● Functions for monitoring the measured value limits

● The CSF signal

The signaling of the messages can be delayed by the time configured in the DELAY_T parameter.

Assignment of message text and message class to the block parameters

Message number

Block param‐eter

Default message text Message class Can be suppressed by MSG_LOCK orL_MSGLCK or

1 Q_AL Alarm low Alarm low M_SUP_AL2 Q_AH Alarm high Alarm high M_SUP_AH3 Q_WL Warning low Warning low M_SUP_WL4 Q_WH Warning high Warning high M_SUP_WH5 QCSF External error AS control system

Fault-

The messages for limit value violations can be suppressed individually via the appropriate M_SUP_xx inputs. The messages can be locked centrally with MSG_LOCK (OS operation) or L_MSGLCK (program).

QMSG_SUP is set if the RUNUPCYC cycles have not finished running since the restart, or if MSG_LOCK or L_MSGLCK = TRUE.

Monitoring blocks11.3 S7MonAnDi - Measured value monitoring for 4 analog and binary limits

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 365

Page 366: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

11.3.10 Called blocks

SFC6 RD_SINFOSFC107 ALARM_DQSFC19 ALARM_SCUDT71 UDT_S7PMonAnDi (UDT_OP_SMEASB)

11.3.11 Block parameters

Parameter Type IN/OUT OCM DescriptionEN BOOL IN 0 ENABLE BOOL IN 0 Block enableRESTART BOOL IN 0 Manual startupU REAL IN 0 Measured valueAL BOOL IN 0 1=Limit LL AH BOOL IN 0 1=Limit HHWL BOOL IN 0 1=Limit L WH BOOL IN 0 1=Limit HMO_PVLR REAL IN 1 Low range bar graphMO_PVHR REAL IN 1 High range bar graphDELAY_T REAL IN 0 Delay time for limit monitoringU_MAN REAL IN 1 Manual valueU_SUBST REAL IN 1 Substitution valueCSF BOOL IN 0 External error #1MAN_EN BOOL IN 1 Manual value enableSUBST_EN BOOL IN 1 Substitution value enableM_SUP_AL BOOL IN 1 1=Suppress LL alarmM_SUP_AH BOOL IN 1 1=Suppress HH alarmM_SUP_WL BOOL IN 1 1=Suppress L alarmM_SUP_WH BOOL IN 1 1=Suppress H alarmLIMIT_OP BOOL IN 1 1=Limits enabled for operatorMSG_LOCK BOOL IN 1 Message lockL_MSGLCK BOOL IN 0 Interconnectable message lockSAMPLE_T REAL IN 0 Sampling time in [s]RUNUPCYC INT IN 0 Number of startup cycles with message suppres‐

sionMSG_EVID_1 DWORD IN 0 Message IDMSG_EVID_2 DWORD IN 0 Message IDMSG_EVID_3 DWORD IN 0 Message IDMSG_EVID_4 DWORD IN 0 Message IDMSG_EVID_5 DWORD IN 0 Message ID

Monitoring blocks11.3 S7MonAnDi - Measured value monitoring for 4 analog and binary limits

PCS 7 Industry Library for S7366 Function Manual, 09/2015, A5E34977996-AA

Page 367: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionMSG_FILTER DINT IN 0 Message filterAUX REAL IN 1 Associated valueBA_EN BOOL IN 1 Batch enableOCCUPIED BOOL IN 1 Occupied by batchBA_ID DWORD IN 1 Current batch ID (number)BA_NA STRING[32] IN 1 Batch nameSTEP_NO DWORD IN 1 Batch step numberCMP_ID DWORD IN 0 Area codePERMIS INT IN 1 Switching authorityU_AL REAL IN_OUT 1 Limit value LLU_AH REAL IN_OUT 1 Limit value HHU_WL REAL IN_OUT 1 Limit value LU_WH REAL IN_OUT 1 Limit value HHYS REAL IN_OUT 1 HysteresisENO BOOL OUT 0 V REAL OUT 1 Measured valueV_AL REAL OUT 0 Limit value LLV_AH REAL OUT 0 Limit value HHV_WL REAL OUT 0 Limit value LV_WH REAL OUT 0 Limit value HQCSF BOOL OUT 1 External errorQERR BOOL OUT 0 Group errorQ_AL BOOL OUT 1 Limit error LLQ_AH BOOL OUT 1 Limit error HHQ_WL BOOL OUT 1 Limit error LQ_WH BOOL OUT 1 Limit error H QMSG_ERR BOOL OUT 0 Message errorQMSG_SUP BOOL OUT 1 Message suppressedMSG_STAT_1 WORD OUT 0 Message statusMSG_STAT_2 WORD OUT 0 Message statusMSG_STAT_3 WORD OUT 0 Message statusMSG_STAT_4 WORD OUT 0 Message statusMSG_STAT_5 WORD OUT 0 Message statusMSG_ACK_1 BOOL OUT 0 Message acknowledge statusMSG_ACK_2 BOOL OUT 0 Message acknowledge statusMSG_ACK_3 BOOL OUT 0 Message acknowledge statusMSG_ACK_4 BOOL OUT 0 Message acknowledge statusMSG_ACK_5 BOOL OUT 0 Message acknowledge statusQOP_STAT STRUCT OUT 0 Panel statusQOP_STAT.UDT_IDENT BYTE OUT 0 UDT identifier for UDT_S7PMonAnDiQOP_STAT.QOP_V REAL OUT 0 Measured value status

Monitoring blocks11.3 S7MonAnDi - Measured value monitoring for 4 analog and binary limits

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 367

Page 368: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionQOP_STAT.MO_PVHR REAL OUT 0 High range barQOP_STAT.MO_PVLR REAL OUT 0 Low range barQOP_STAT.Q_AL BOOL OUT 0 Limit error LLQOP_STAT.Q_AH BOOL OUT 0 Limit error HHQOP_STAT.Q_WL BOOL OUT 0 Limit error LQOP_STAT.Q_WH BOOL OUT 0 Limit error H QOP_STAT.MAN_EN BOOL OUT 0 Manual mode enabledQOP_STAT.QOP_QERR BOOL OUT 0 Status 1=Operator panel errorQOP_STAT.QOS_STAT_F WORD OUT 0 Status for panel messages

11.3.12 Operator control & monitoring

11.3.12.1 Views of S7MonAnDiThe views of the faceplate differ from the faceplate of S7MonAn only in the standard view and the limit view.

The block provides the following views:

● Standard view

● Message view

● Limit view

● Trend view

● Maintenance view

● Batch view

11.3.12.2 Standard view of S7MonAnDi

3

2

1

4

5

(1) Measured value

Monitoring blocks11.3 S7MonAnDi - Measured value monitoring for 4 analog and binary limits

PCS 7 Industry Library for S7368 Function Manual, 09/2015, A5E34977996-AA

Page 369: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

(2) Hysteresis

(3) Message lock enabled

(4) Display area for block states

This area provides additional information on the operating state of the block:

● LocalOS

(5) Bar graph for the process value

This area shows the current process value in the form of a bar graph. The visible area in the bar graph depends on the configuration in the engineering system (ES).

11.3.12.3 Limit view of S7MonAnDi

1

2

3

(1)

● AH

● WH

(2)

● WL

● AL

(3) Bar graph for the process value

This area shows the current process value in the form of a bar graph. The visible area in the bar graph depends on the configuration in the engineering system (ES).

11.3.12.4 Block icons of S7MonAnDi

Monitoring blocks11.3 S7MonAnDi - Measured value monitoring for 4 analog and binary limits

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 369

Page 370: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

11.4 S7MonAnGrad - Measured value monitoring with gradient function

11.4.1 FunctionThe block is used to monitor a measured value (analog signal) with the following limit values:

● Warning limit (high/low)

● Alarm limit (high/low)

● Gradient (high/low)

11.4.2 Calling OBsIn the same OB that accompanies and follows the block whose measured value is to be monitored. Additionally in OB100 (see Startup characteristics (Page 370)).

11.4.3 Time behaviorThe block must be called using a cyclic interrupt OB. The sampling time of the block is set in the SAMPLE_T parameter.

11.4.4 How it worksThe block monitors the measured value at input U. If a limit value is overshot/undershot, this is indicated at a corresponding output and, if necessary, reported (see Message behavior (Page 371)).

11.4.5 Startup characteristicsFollowing startup, the messages are suppressed until the number of cycles configured in value RUNUPCYC is reached.

Gradient monitoring does not start until the second measuring interval.

Startup can be simulated with input RESTART.

11.4.6 Error handlingWhen an arithmetic error occurs, ENO=0 or QERR=1 is set.

Monitoring blocks11.4 S7MonAnGrad - Measured value monitoring with gradient function

PCS 7 Industry Library for S7370 Function Manual, 09/2015, A5E34977996-AA

Page 371: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

11.4.7 Output VThe measured analog value appears on output V. It is specified by the process (U), manually (MAN_EN, U_MAN), or via a substitution value (SUBST_EN, U_SUBST) when CSF is queued.

The output V is generated as shown in the following table.

MAN_EN SUBST_EN CSF V0 0 0 V = U1 x x V = U_MAN0 1 0 V = U0 1 1 V = U_SUBST

As a general rule, MAN_EN has priority over SUBST_EN.

11.4.8 Message behaviorThe S7MonAnGrad block uses the ALARM_DQ block for generating messages. Message triggers are:

● Functions for monitoring the measured value limits

● The CSF signal provided by the interconnection as the process control error (QCSF).

The signaling of the messages can be delayed by the time configured in the DELAY_T parameter.

Assignment of message text and message class to the block parameters

Message number

Block param‐eter

Default message text Message class Can be suppressed by MSG_LOCK orL_MSGLCK

1 QCSF External error AS control system Fault

-

2 Q_AL Alarm low Alarm low M_SUP_AL3 Q_AH Alarm high Alarm high M_SUP_AH4 Q_WL Warning low Warning low M_SUP_WL5 Q_WH Warning high Warning high M_SUP_WH6 Q_GN Violation, gradient low Warning low M_SUP_GN7 Q_GP Violation, gradient high Warning high M_SUP_GP

The messages for limit value violations can be suppressed individually via the appropriate M_SUP_xx inputs. The messages can be locked centrally with MSG_LOCK (OS operation) or L_MSGLCK (program).

QMSG_SUP is set if the RUNUPCYC cycles have not finished running since the restart, or if MSG_LOCK or L_MSGLCK = TRUE.

Monitoring blocks11.4 S7MonAnGrad - Measured value monitoring with gradient function

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 371

Page 372: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

11.4.9 Measured value monitoringOutput V is monitored for adherence to 4 limits. The limits can be configured by the user. The message output can be delayed via input DELAY_T.

11.4.10 Gradient monitoringGradient monitoring is activated via the inputs L_GRAD_EN and GRAD_EN. Monitoring of the individual limits can be enabled or disabled individually (M_SUP_GN, M_SUP_GP).

The gradient is calculated from the change of input U within the configured time DELTA_T. Message output can be delayed with the parameter DELAY_GR.

The gradients must be always entered as positive values.

When the positive/negative gradient limit is exceeded, the message is not marked as outgoing until the measured value U no longer violates the upper/lower warning limit.

11.4.11 Operator panelSo that various technological functions of the library can also be controlled and monitored from an operator panel, the "S7PMonAnGrad" block is installed in the CFC for the actual technology block.

11.4.12 Called blocks

SFC6 RD_SINFOSFC107 ALARM_DQSFC19 ALARM_SCUDT73 UDT_S7PMonAnGrad (UDT_OP_SMEASGRAD)

11.4.13 Block parameters

Parameter Type IN/OUT OCM DescriptionEN BOOL IN 0 ENABLE BOOL IN 0 Block enableRESTART BOOL IN 0 Manual startupU REAL IN 0 Measured valueMO_PVLR REAL IN 1 Low range bar graphMO_PVHR REAL IN 1 High range bar graphDELTA_T REAL IN 1 Time basis for gradient monitoringDELAY_GR REAL IN 0 Delay time for gradient monitoring

Monitoring blocks11.4 S7MonAnGrad - Measured value monitoring with gradient function

PCS 7 Industry Library for S7372 Function Manual, 09/2015, A5E34977996-AA

Page 373: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionDELAY_T REAL IN 0 Delay time for limit monitoringU_MAN REAL IN 1 Manual valueU_SUBST REAL IN 1 Substitution valueCSF BOOL IN 0 External errorMAN_EN BOOL IN 1 Manual value enableSUBST_EN BOOL IN 1 Substitution value enableGRAD_EN BOOL IN 1 Gradient monitoring enableM_SUP_AL BOOL IN 1 1=Suppress LL alarmM_SUP_AH BOOL IN 1 1=Suppress HH alarmM_SUP_WL BOOL IN 1 1=Suppress L alarmM_SUP_WH BOOL IN 1 1=Suppress H alarmM_SUP_GN BOOL IN 1 1=Suppress negative gradient alarmM_SUP_GP BOOL IN 1 1=Suppress positive gradient alarmLIMIT_OP BOOL IN 1 1=Limits enabled for operatorMSG_LOCK BOOL IN 1 Message lockL_MSGLCK BOOL IN 0 Interconnectable message lockL_GRAD_EN BOOL IN 0 Interconnectable input gradient mon enable SAMPLE_T REAL IN 0 Sampling time in [s]RUNUPCYC INT IN 0 Number of startup cycles with message suppres‐

sionMSG_EVID_1 DWORD IN 0 Message ID 1MSG_EVID_2 DWORD IN 0 Message ID 2MSG_EVID_3 DWORD IN 0 Message ID 3MSG_EVID_4 DWORD IN 0 Message ID 4MSG_EVID_5 DWORD IN 0 Message ID 5MSG_EVID_6 DWORD IN 0 Message ID 6MSG_EVID_7 DWORD IN 0 Message ID 7MSG_FILTER DINT IN 0 Message filterAUX REAL IN 1 Associated valueBA_EN BOOL IN 1 Batch enableOCCUPIED BOOL IN 1 Occupied by batchBA_ID DWORD IN 1 Current batch ID (number)BA_NA STRING[32] IN 1 Batch nameSTEP_NO DWORD IN 1 Batch step numberCMP_ID DWORD IN 0 Area codePERMIS INT IN 1 Switching authorityU_AL REAL IN_OUT 1 Limit value LLU_AH REAL IN_OUT 1 Limit value HHU_WL REAL IN_OUT 1 Limit value LU_WH REAL IN_OUT 1 Limit value HU_GRAD_N REAL IN_OUT 1 Limit value negative gradient

Monitoring blocks11.4 S7MonAnGrad - Measured value monitoring with gradient function

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 373

Page 374: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionU_GRAD_P REAL IN_OUT 1 Limit value positive gradientHYS REAL IN_OUT 1 HysteresisENO BOOL OUT 0 V REAL OUT 1 Measured valueV_AL REAL OUT 0 Limit value LLV_AH REAL OUT 0 Limit value HHV_WL REAL OUT 0 Limit value LV_WH REAL OUT 0 Limit value HV_GN REAL OUT 0 Limit value negative gradient V_GP REAL OUT 0 Limit value positive gradientGRADIENT REAL OUT 1 Gradient valueQCSF BOOL OUT 1 External errorQERR BOOL OUT 1 Group errorQ_AL BOOL OUT 0 Limit error LLQ_AH BOOL OUT 0 Limit error HHQ_WL BOOL OUT 0 Limit error LQ_WH BOOL OUT 0 Limit error H Q_GN BOOL OUT 0 Negative grad errorQ_GP BOOL OUT 0 Positive grad errorQMSG_ERR BOOL OUT 0 Message errorQMSG_SUP BOOL OUT 1 Message suppressedMSG_STAT_1 WORD OUT 0 Message statusMSG_STAT_2 WORD OUT 0 Message statusMSG_STAT_3 WORD OUT 0 Message statusMSG_STAT_4 WORD OUT 0 Message statusMSG_STAT_5 WORD OUT 0 Message statusMSG_STAT_6 WORD OUT 0 Message statusMSG_STAT_7 WORD OUT 0 Message statusMSG_ACK_1 BOOL OUT 0 Message acknowledge statusMSG_ACK_2 BOOL OUT 0 Message acknowledge statusMSG_ACK_3 BOOL OUT 0 Message acknowledge statusMSG_ACK_4 BOOL OUT 0 Message acknowledge statusMSG_ACK_5 BOOL OUT 0 Message acknowledge statusMSG_ACK_6 BOOL OUT 0 Message acknowledge statusMSG_ACK_7 BOOL OUT 0 Message acknowledge statusQOP_STAT STRUCT OUT 0 Panel statusQOP_STAT.UDT_IDENT BYTE OUT 0 UDT identifier for UDT_S7PMonAnGradQOP_STAT.QOP_V REAL OUT 0 Measured value statusQOP_STAT.MO_PVHR REAL OUT 0 High range barQOP_STAT.MO_PVLR REAL OUT 0 Low range bar

Monitoring blocks11.4 S7MonAnGrad - Measured value monitoring with gradient function

PCS 7 Industry Library for S7374 Function Manual, 09/2015, A5E34977996-AA

Page 375: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionQOP_STAT.QOP_GRADI‐ENT

REAL OUT 0 Gradient status

QOP_STAT.QOP_QERR BOOL OUT 0 Status 1=Operator panel errorQOP_STAT.MAN_EN BOOL OUT 0 Manual mode enabledQOP_STAT.QOS_STAT_F WORD OUT 0 Status for panel messages

11.4.14 Operator control & monitoring

11.4.14.1 Views of S7MonAnGradThe block provides the following views:

● Standard view

● Message view

● Limit view

● Trend view

● Maintenance view

● Parameter view

● Batch view

11.4.14.2 Parameter view of S7MonAnGrad

1

2

3

(1)

● Time base in seconds

● Time base selection

(2)

● Gradients below in °C

● Gradients above selection

Monitoring blocks11.4 S7MonAnGrad - Measured value monitoring with gradient function

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 375

Page 376: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

(3)

● Gradients above in C

● Gradient selection

11.4.14.3 Block icons of S7MonAnGrad

Monitoring blocks11.4 S7MonAnGrad - Measured value monitoring with gradient function

PCS 7 Industry Library for S7376 Function Manual, 09/2015, A5E34977996-AA

Page 377: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

11.5 S7MonDi - Monitoring of a binary process tag

11.5.1 FunctionThe block monitors a binary input signal.

11.5.2 Calling OBsThis is the cyclic interrupt OB in which you install the block (e.g. OB32). Additionally in OB100 (see Startup characteristics (Page 379)).

11.5.3 Time behaviorThe block must be called using a cyclic interrupt OB. The sampling time of the block is set in the SAMPLE_T parameter.

11.5.4 Output QA message is sent to WinCC on a positive edge at the output Q. When a negative edge occurs, the message assumes the status "departed." The output Q is generated; it is dependent on the input type configured at the N_OP_CL parameter (break contact/make contact).. The output Q always indicates the state triggering the message, except when HOLD_EN = TRUE. In this case, the output Q is set and stored when the state triggering the message is queued. The output remains queued when the state triggering the message departs and is not reset until a positive edge occurs on the acknowledgment input L_RESET.

If the MAN_EN input is set to TRUE, the output Q is set based on the I_MAN parameter, which is controlled in the faceplate of WinCC. In this case, a queued message is marked as departed. The message path is then suppressed.

If SUBST_EN = TRUE, the substitute value I_SUBST is forwarded to the output Q in the event of an external error (CSF = TRUE). MANUAL mode (MAN_EN = TRUE) has higher priority. If manual mode is not selected, the I_MAN input is adjusted to the output Q to permit bumpless switchover to manual mode.

The output Q is output as not malfunctioning if LOCK = TRUE, regardless of input I.

Output Q is generated as shown in the following tables.

HOLD_EN MAN_EN SUBST_EN CSF N_OP_CL LOCK Q0 0 0 0 0 0 Q=I0 0 0 0 1 0 Q= NOT Ix 1 x x x 0 Q=I_MANx 0 1 0 0 0 Q=Ix 0 1 1 x 0 Q=I_SUBSTx x x x x 1 Q=0

Monitoring blocks11.5 S7MonDi - Monitoring of a binary process tag

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 377

Page 378: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

If MAN_EN, SUBST_EN and LOCK = FALSE, then:

HOLD_EN L_RESET Q old I Q new1 0 0 0 Q=01 0 0 1 Q=11 0 1 0 Q=11 0⇒1 1 0 Q=0

11.5.5 Monitoring the process tagThe block monitors the digital value at the input I for changes. The suppression timer is restarted on each edge of the input signal (only in malfunctioning state). The input value I is sent time-delayed to the output Q once the wait time configured in SUPPTIME has expired.

If SUPPTIME < SAMPLE_T, the input signal I is forwarded to the output Q without a time delay.

In manual operation (MAN_EN = TRUE) or when the substitute value is activated, the output Q is written without the suppression time.

The N_OP_CL input can be used to set whether the signal to be monitored is a make-contact signal (N_OP_CL = 0) or a break-contact signal (N_OP_CL = 1).

11.5.6 Operator panelSo that various technological functions of the library can also be controlled and monitored from an operator panel, the "S7PMonDi" block is installed in the CFC for the actual technology block.

11.5.7 Message behaviorA message is generated when the output Q is TRUE (see above).

In manual mode and with use of the substitution value, the message of the binary value is locked.

Assignment of message text and message class to the block parameters

Message number

Block parame‐ter

Default message text Message class

1 Q Alarm high Alarm high2 CSF / QERR External error AS control system Fault

The messages can be locked centrally with MSG_LOCK (OS operation) or L_MSGLCK (program).

QMSG_SUP is set if the RUNUPCYC cycles have not finished running since the restart, MSG_LOCK or L_MSGLCK = TRUE.

Monitoring blocks11.5 S7MonDi - Monitoring of a binary process tag

PCS 7 Industry Library for S7378 Function Manual, 09/2015, A5E34977996-AA

Page 379: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

11.5.8 Startup characteristicsThe RUNUPCYC parameter is used to specify for how long (number of cycles) the messages are to be suppressed.

RESTART = TRUE can be used to simulate a restart.

11.5.9 Called blocks

SFC6 RD_SINFOSFC107 ALARM_DQSFC19 ALARM_SCUDT67 UDT_S7PMonDi (UDT_OP_SDIGMO)

11.5.10 Block parameters

Parameter Type IN/OUT OCM DescriptionEN BOOL IN 0 RESTART BOOL IN 0 Manual startupSAMPLE_T REAL IN 0 Sampling time in [s]SUPPTIME REAL IN 1 Suppression time [s]I BOOL IN 1 Input signalI_SUBST BOOL IN 1 Substitution signalMAN_EN BOOL IN 1 Manual signal enable SUBST_EN BOOL IN 1 Substitution signal enableHOLD_EN BOOL IN 0 Enable 1=Signal is set holdingN_OP_CL BOOL IN 0 =0 Break contact; =1 Make contactLOCK BOOL IN 1 1=Lock: Output OKCSF BOOL IN 0 Control system error 1=External errorL_RESET BOOL IN 0 Interconnectable input resetMSG_LOCK BOOL IN 1 Message lockL_MSGLCK BOOL IN 1 Interconnectable message lockMSG_EVID_1 DWORD IN 0 Message ID_1MSG_EVID_2 DWORD IN 0 Message ID_2RUNUPCYC INT IN 0 Number of startup cycles with message suppres‐

sionMSG_FILTER DINT IN 0 Message filterAUX REAL IN 1 Associated valueBA_EN BOOL IN 1 Batch enableOCCUPIED BOOL IN 1 Occupied by batchBA_ID DWORD IN 1 Current batch ID (number)

Monitoring blocks11.5 S7MonDi - Monitoring of a binary process tag

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 379

Page 380: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionBA_NA STRING[32] IN 1 Batch nameSTEP_NO DWORD IN 1 Batch step numberCMP_ID DWORD IN 0 Area codePERMIS INT IN 1 Switching authorityI_MAN BOOL IN_OUT 1 Manual signalI_ST BOOL IN_OUT 1 Standard inputI_HOLD BOOL IN_OUT 0 Input signal set holdingENO BOOL OUT 0 QERR BOOL OUT 1 1=ErrorQ BOOL OUT 1 Output: 0=inactive, 1=activeQSIM BOOL OUT 1 1=Simulation activeQMSG_SUP BOOL OUT 1 Message suppressedQMSG_ERR BOOL OUT 0 Message errorMSG_STAT_1 WORD OUT 0 Message: STATUS outputMSG_STAT_2 WORD OUT 0 Message: STATUS output MSG_ACK_1 BOOL OUT 0 Message: ACK_STATE outputMSG_ACK_2 BOOL OUT 0 Message: ACK_STATE output QOP_STAT STRUCT OUT 0 Panel statusQOP_STAT.UDT_IDENT BYTE OUT 0 UDT identifier for UDT_S7PMonDiQOP_STAT.QOP_Q BOOL OUT 0 Panel status output: 0=inactive, 1=activeQOP_STAT.MAN_EN BOOL OUT 0 Manual mode enabledQOP_STAT.QOP_QERR BOOL OUT 0 Status 1=Operator panel error QOP_STAT.QOS_STAT_F DWORD OUT 0 Status for panel messages

11.5.11 Operator control & monitoring

11.5.11.1 Views of S7MonDiThe block provides the following views:

● Standard view

● Message view

● Maintenance view

● Batch view

Monitoring blocks11.5 S7MonDi - Monitoring of a binary process tag

PCS 7 Industry Library for S7380 Function Manual, 09/2015, A5E34977996-AA

Page 381: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

11.5.11.2 Standard view of S7MonDi

1

3

2

4

5

(1)

● Input

● Output

● Normalization

(2) Suppression time

(3) Message lock enabled

(4) Display area for block states

This area provides additional information on the operating state of the block:

● Enabled

(5) Display area for block states

This area provides additional information on the operating state of the block:

● LocalOS

11.5.11.3 Maintenance view of S7MonDi

1

2

(1) Simulation value

(2) Substitute value

Monitoring blocks11.5 S7MonDi - Monitoring of a binary process tag

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 381

Page 382: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

11.5.11.4 Block icons of S7MonDi

Monitoring blocks11.5 S7MonDi - Monitoring of a binary process tag

PCS 7 Industry Library for S7382 Function Manual, 09/2015, A5E34977996-AA

Page 383: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

11.6 S7MonDi08 - Monitoring of 8 binary process tags

11.6.1 FunctionThe block monitors up to 8 connected input signals.

11.6.2 Calling OBsThis is the cyclic interrupt OB in which you install the block (e.g. OB32). Additionally in OB100 (see Startup characteristics (Page 385)).

11.6.3 Time behaviorThe block must be called using a cyclic interrupt OB. The sampling time of the block is set in the SAMPLE_T parameter.

11.6.4 Outputs QxA message is generally sent to WinCC when a positive edge occurs on one of the outputs Qx. When a negative edge occurs, the message assumes the status "departed." The outputs Qx are generated at parameter N_OP_CLx (break contact/make contact) based on the configured input type. However, the outputs Qx always indicate the status which triggered the message.

When the MAN_ENx inputs are set to TRUE, the outputs Qx are not supplied by the inputs Ix but by the I_MANx parameter which is controlled in the WinCC faceplate. A queued message is marked as departed and no more messages are generated.

If SUBSTENx = TRUE, the substitute value Ix_SUBST is forwarded to the output Qx in the event of an external error (CSFx = TRUE). MANUAL mode (MAN_ENx = TRUE) has higher priority. If MANUAL mode is not selected, the I_MANx input is adjusted to the corresponding output Qx to permit bumpless switchover to manual mode.

If LOCK = TRUE or the corresponding enable EN_Ix = FALSE, the outputs Qx are output as not malfunctioning, regardless of the input.

The output Qx is generated as shown in the following table.

MAN_ENx SUBSTENx CSFx N_OP_CLx LOCK EN_Ix Qx0 0 0 0 0 1 Qx=Ix0 0 0 1 0 1 Qx=NOT Ix1 x x x 0 1 Qx=I_MANx0 1 0 0 0 1 Qx=Ix0 1 1 x 0 1 Qx=Ix_SUBSTx x x x 1 x Qx=0x x x x x 0 Qx=0

Monitoring blocks11.6 S7MonDi08 - Monitoring of 8 binary process tags

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 383

Page 384: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

11.6.5 Monitoring the process tagThe digital value at the inputs Ix is monitored for changes. The timer is started again with each edge of the input signal (only in malfunctioning status). After expiration of the wait time configured in SUPPTIME, the input value Ix is sent to the corresponding output Qx.

This ensures that only signals which are queued for at least as long as specified under SUPPTIME are forwarded to the output. If SUPPTIME < SAMPLE_T, the input signal Ix is forwarded to the output Qx without a time delay.

During manual operation (MAN_ENx = TRUE) or when the substitute value is active, the corresponding output Qx is written without the suppression time.

11.6.6 Operator panelSo that various technological functions of the library can also be controlled and monitored from an operator panel, the "S7PMonDi08" block is installed in the CFC for the actual technology block.

11.6.7 Message behaviorA message is generated when the output Qx is TRUE (see above).

In MANUAL mode and when the substitute value is used, the message of the binary value is locked.

Assignment of message text and message class to the block parameters

Message number

Block parame‐ter

Default message text Message class

1 Q1 Input 1 Alarm high2 Q2 Input 2 Alarm high3 Q3 Input 3 Alarm high4 Q4 Input 4 Alarm high5 Q5 Input 5 Alarm high6 Q6 Input 6 Alarm high7 Q7 Input 7 Alarm high8 Q8 Input 8 Alarm high9 QERR External error AS control system Fault

The messages can be locked centrally with MSG_LOCK (OS operation) or L_MSGLCK (program).

QMSG_SUP is set if the RUNUPCYC cycles have not finished running since the restart, or if MSG_LOCK or L_MSGLCK = TRUE.

Monitoring blocks11.6 S7MonDi08 - Monitoring of 8 binary process tags

PCS 7 Industry Library for S7384 Function Manual, 09/2015, A5E34977996-AA

Page 385: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

11.6.8 Startup characteristicsThe RUNUPCYC parameter is used to specify for how long (number of cycles) the messages are to be suppressed.

RESTART = TRUE can be used to simulate a restart.

11.6.9 Called blocks

SFC6 RD_SINFOSFC107 ALARM_DQSFC19 ALARM_SCUDT68 UDT_S7PMonDi08

11.6.10 Block parameters

Parameter Type IN/OUT OCM DescriptionEN BOOL IN 0 RESTART BOOL IN 0 Manual startupSAMPLE_T REAL IN 0 Sampling time in [s]SUPPTIME REAL IN 1 Suppression time [s]I1 BOOL IN 1 Input signal 1I2 BOOL IN 1 Input signal 2I3 BOOL IN 1 Input signal 3I4 BOOL IN 1 Input signal 4I5 BOOL IN 1 Input signal 5I6 BOOL IN 1 Input signal 6I7 BOOL IN 1 Input signal 7I8 BOOL IN 1 Input signal 8EN_I1 BOOL IN 1 Signal 1 enable EN_I2 BOOL IN 1 Signal 2 enable EN_I3 BOOL IN 1 Signal 3 enable EN_I4 BOOL IN 1 Signal 4 enable EN_I5 BOOL IN 1 Signal 5 enable EN_I6 BOOL IN 1 Signal 6 enable EN_I7 BOOL IN 1 Signal 7 enable EN_I8 BOOL IN 1 Signal 8 enable I1_SUBST BOOL IN 1 Substitution signal 1I2_SUBST BOOL IN 1 Substitution signal 2I3_SUBST BOOL IN 1 Substitution signal 3I4_SUBST BOOL IN 1 Substitution signal 4

Monitoring blocks11.6 S7MonDi08 - Monitoring of 8 binary process tags

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 385

Page 386: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionI5_SUBST BOOL IN 1 Substitution signal 5I6_SUBST BOOL IN 1 Substitution signal 6I7_SUBST BOOL IN 1 Substitution signal 7I8_SUBST BOOL IN 1 Substitution signal 8MAN_EN1 BOOL IN 1 Manual signal 1 enable MAN_EN2 BOOL IN 1 Manual signal 2 enable MAN_EN3 BOOL IN 1 Manual signal 3 enable MAN_EN4 BOOL IN 1 Manual signal 4 enable MAN_EN5 BOOL IN 1 Manual signal 5 enable MAN_EN6 BOOL IN 1 Manual signal 6 enable MAN_EN7 BOOL IN 1 Manual signal 7 enable MAN_EN8 BOOL IN 1 Manual signal 8 enable SUBSTEN1 BOOL IN 1 Substitution signal 1 enable SUBSTEN2 BOOL IN 1 Substitution signal 2 enable SUBSTEN3 BOOL IN 1 Substitution signal 3 enable SUBSTEN4 BOOL IN 1 Substitution signal 4 enable SUBSTEN5 BOOL IN 1 Substitution signal 5 enable SUBSTEN6 BOOL IN 1 Substitution signal 6 enable SUBSTEN7 BOOL IN 1 Substitution signal 7 enable SUBSTEN8 BOOL IN 1 Substitution signal 8 enable N_OP_CL1 BOOL IN 0 =0 Break contact; =1 Make contact signal 1N_OP_CL2 BOOL IN 0 =0 Normally open; = 1 Normally closed signal 2N_OP_CL3 BOOL IN 0 =0 Normally open; = 1 Normally closed signal 3N_OP_CL4 BOOL IN 0 =0 Normally open; = 1 Normally closed signal 4N_OP_CL5 BOOL IN 0 =0 Normally open; = 1 Normally closed signal 5N_OP_CL6 BOOL IN 0 =0 Normally open; = 1 Normally closed signal 6N_OP_CL7 BOOL IN 0 =0 Normally open; = 1 Normally closed signal 7N_OP_CL8 BOOL IN 0 =0 Normally open; = 1 Normally closed signal 8LOCK BOOL IN 1 1=Lock: Output OKCSF1 BOOL IN 0 Control system error 1=External control error 1CSF2 BOOL IN 0 Control system error 1=External control error 2CSF3 BOOL IN 0 Control system error 1=External control error 3CSF4 BOOL IN 0 Control system error 1=External control error 4CSF5 BOOL IN 0 Control system error 1=External control error 5CSF6 BOOL IN 0 Control system error 1=External control error 6CSF7 BOOL IN 0 Control system error 1=External control error 7CSF8 BOOL IN 0 Control system error 1=External control error 8MSG_LOCK BOOL IN 1 Message lockL_MSGLCK BOOL IN 1 Interconnectable message lockMSG_EVID_1 DWORD IN 0 Message ID_1MSG_EVID_2 DWORD IN 0 Message ID_2

Monitoring blocks11.6 S7MonDi08 - Monitoring of 8 binary process tags

PCS 7 Industry Library for S7386 Function Manual, 09/2015, A5E34977996-AA

Page 387: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionMSG_EVID_3 DWORD IN 0 Message ID_3MSG_EVID_4 DWORD IN 0 Message ID_4MSG_EVID_5 DWORD IN 0 Message ID_5MSG_EVID_6 DWORD IN 0 Message ID_6MSG_EVID_7 DWORD IN 0 Message ID_7MSG_EVID_8 DWORD IN 0 Message ID_8MSG_EVID_9 DWORD IN 0 Message ID_9RUNUPCYC INT IN 0 Number of startup cycles with message suppressionMSG_FILTER DINT IN 0 Message filterAUX REAL IN 1 Associated valueBA_EN BOOL IN 1 Batch enableOCCUPIED BOOL IN 1 Occupied by batchBA_ID DWORD IN 1 Current batch ID (number)BA_NA STRING[32] IN 1 Batch nameSTEP_NO DWORD IN 1 Batch step numberCMP_ID DWORD IN 0 Area codePERMIS INT IN 1 Switching authorityI_MAN1 BOOL IN_OUT 1 Manual signal 1I_MAN2 BOOL IN_OUT 1 Manual signal 2I_MAN3 BOOL IN_OUT 1 Manual signal 3I_MAN4 BOOL IN_OUT 1 Manual signal 4I_MAN5 BOOL IN_OUT 1 Manual signal 5I_MAN6 BOOL IN_OUT 1 Manual signal 6I_MAN7 BOOL IN_OUT 1 Manual signal 7 I_MAN8 BOOL IN_OUT 1 Manual signal 8I_ST1 BOOL IN_OUT 1 Standard input 1I_ST2 BOOL IN_OUT 1 Standard input 2I_ST3 BOOL IN_OUT 1 Standard input 3I_ST4 BOOL IN_OUT 1 Standard input 4I_ST5 BOOL IN_OUT 1 Standard input 5I_ST6 BOOL IN_OUT 1 Standard input 6I_ST7 BOOL IN_OUT 1 Standard input 7I_ST8 BOOL IN_OUT 1 Standard input 8ENO BOOL OUT 0 QERR BOOL OUT 1 1=ErrorQ1 BOOL OUT 1 Output 1: 0=inactive, 1=activeQ2 BOOL OUT 1 Output 2: 0=inactive, 1=activeQ3 BOOL OUT 1 Output 3: 0=inactive, 1=activeQ4 BOOL OUT 1 Output 4: 0=inactive, 1=activeQ5 BOOL OUT 1 Output 5: 0=inactive, 1=activeQ6 BOOL OUT 1 Output 6: 0=inactive, 1=active

Monitoring blocks11.6 S7MonDi08 - Monitoring of 8 binary process tags

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 387

Page 388: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionQ7 BOOL OUT 1 Output 7: 0=inactive, 1=activeQ8 BOOL OUT 1 Output 8: 0=inactive, 1=activeQMAN BOOL OUT 1 1=At least 1 signal in manual modeQMSG_SUP BOOL OUT 1 Message suppressedQMSG_ERR BOOL OUT 0 Message errorMSG_STAT_1 WORD OUT 0 Message: STATUS outputMSG_STAT_2 WORD OUT 0 Message: STATUS outputMSG_STAT_3 WORD OUT 0 Message: STATUS outputMSG_STAT_4 WORD OUT 0 Message: STATUS outputMSG_STAT_5 WORD OUT 0 Message: STATUS outputMSG_STAT_6 WORD OUT 0 Message: STATUS outputMSG_STAT_7 WORD OUT 0 Message: STATUS outputMSG_STAT_8 WORD OUT 0 Message: STATUS outputMSG_STAT_9 WORD OUT 0 Message: STATUS outputMSG_ACK_1 BOOL OUT 0 Message: ACK_STATE outputMSG_ACK_2 BOOL OUT 0 Message: ACK_STATE outputMSG_ACK_3 BOOL OUT 0 Message: ACK_STATE outputMSG_ACK_4 BOOL OUT 0 Message: ACK_STATE outputMSG_ACK_5 BOOL OUT 0 Message: ACK_STATE outputMSG_ACK_6 BOOL OUT 0 Message: ACK_STATE outputMSG_ACK_7 BOOL OUT 0 Message: ACK_STATE outputMSG_ACK_8 BOOL OUT 0 Message: ACK_STATE outputMSG_ACK_9 BOOL OUT 0 Message: ACK_STATE outputQOP_STAT STRUCT OUT 0 Panel statusQOP_STAT.UDT_IDENT BYTE OUT 0 UDT identifier for UDT_S7PMonDi08QOP_STAT.QOP_Q1 BOOL OUT 0 Status 1=Operator panel output 1: 0=inactive, 1=ac‐

tive QOP_STAT.QOP_Q2 BOOL OUT 0 Status 1=Operator panel output 2: 0=inactive, 1=ac‐

tive QOP_STAT.QOP_Q3 BOOL OUT 0 Status 1=Operator panel output 3: 0=inactive, 1=ac‐

tive QOP_STAT.QOP_Q4 BOOL OUT 0 Status 1=Operator panel output 4: 0=inactive, 1=ac‐

tive QOP_STAT.QOP_Q5 BOOL OUT 0 Status 1=Operator panel output 5: 0=inactive, 1=ac‐

tive QOP_STAT.QOP_Q6 BOOL OUT 0 Status 1=Operator panel output 6: 0=inactive, 1=ac‐

tive QOP_STAT.QOP_Q7 BOOL OUT 0 Status 1=Operator panel output 7: 0=inactive, 1=ac‐

tive QOP_STAT.QOP_Q8 BOOL OUT 0 Status 1=Operator panel output 8: 0=inactive, 1=ac‐

tive QOP_STAT.MAN_EN BOOL OUT 0 Manual mode enabledQOP_STAT.QOP_QERR BOOL OUT 0 Status 1=Operator panel error

Monitoring blocks11.6 S7MonDi08 - Monitoring of 8 binary process tags

PCS 7 Industry Library for S7388 Function Manual, 09/2015, A5E34977996-AA

Page 389: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Parameter Type IN/OUT OCM DescriptionQOP_STAT.QOS_STAT_F DWORD OUT 0 Status for panel messagesENABLED BYTE OUT 1 Display of enabled inputsON BYTE OUT 1 Inputs on display

11.6.11 Operator control & monitoring

11.6.11.1 Views of S7MonDi08The block provides the following views:

● Standard view

● Message view

● Maintenance view

● Batch view

11.6.11.2 Standard view of S7MonDi08

1

2

3

4

5

6

Monitoring blocks11.6 S7MonDi08 - Monitoring of 8 binary process tags

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 389

Page 390: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

(1)

● Inputs 1 to 8

● Input signal 1 to 8 Off

● Output signal 1 to 8 Off

(2) Suppression time

(3) Message lock enabled

(4)

(5) Display area for block states

This area provides additional information on the operating state of the block:

● Enabled

(6) Display area for block states

This area provides additional information on the operating state of the block:

● LocalOS

11.6.11.3 Maintenance view of S7MonDi08

1

(1) Inputs 1 to 8

● Sim. 1 to 8

● Sub. 1 to 8

● Enabled 1 to 8

Monitoring blocks11.6 S7MonDi08 - Monitoring of 8 binary process tags

PCS 7 Industry Library for S7390 Function Manual, 09/2015, A5E34977996-AA

Page 391: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

11.6.11.4 Block icons of S7MonDi08

● : Signal not enabled

● : Signal enabled and signal state = Off

● : Signal state = On

Monitoring blocks11.6 S7MonDi08 - Monitoring of 8 binary process tags

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 391

Page 392: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Monitoring blocks11.6 S7MonDi08 - Monitoring of 8 binary process tags

PCS 7 Industry Library for S7392 Function Manual, 09/2015, A5E34977996-AA

Page 393: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Index

PPanel blocks

Views, 38

PCS 7 Industry Library for S7Function Manual, 09/2015, A5E34977996-AA 393

Page 394: PCS 7 Industry Library for S7...Basics 1 Operation blocks 2 HVAC blocks 3 Communication blocks 4 Logic blocks 5 Mathematical blocks 6 Motor and valve blocks 7 Panel blocks 8 Controller

Index

PCS 7 Industry Library for S7394 Function Manual, 09/2015, A5E34977996-AA