Professional Documents
Culture Documents
Efficient engineering of
interlocking with
PCS 7 Logic Matrix
SIMATIC PCS 7 V8.2, PCS 7 Logic Matrix V8.2
https://support.industry.siemens.com/cs/ww/en/view/109482621
Warranty and liability
We do not accept any liability for the information contained in this document.
Any claims against us – based on whatever legal reason – resulting from the use of
the examples, information, programs, engineering and performance data etc.,
described in this Application Example shall be excluded. Such an exclusion shall
not apply in the case of mandatory liability, e.g. under the German Product Liability
Act (“Produkthaftungsgesetz”), in case of intent, gross negligence, or injury of life,
body or health, guarantee for the quality of a product, fraudulent concealment of a
Siemens AG 2018 All rights reserved
Security Siemens provides products and solutions with industrial security functions that
informa- support the secure operation of plants, solutions, machines, equipment and/or
tion networks. They are important components in a holistic industrial security
concept. With this in mind, Siemens’ products and solutions undergo continuous
development. Siemens recommends strongly that you regularly check for
product updates.
For the secure operation of Siemens products and solutions, it is necessary to
take suitable preventive action (e.g. cell protection concept) and integrate each
component into a holistic, state-of-the-art industrial security concept. Third-party
products that may be in use should also be considered. For more information
about industrial security, visit http://www.siemens.com/industrialsecurity.
To stay informed about product updates as they occur, sign up for a product-
specific newsletter. For more information, visit
http://support.industry.siemens.com.
Table of contents
Warranty and liability ................................................................................................... 2
1 Task and solution .............................................................................................. 4
1.1 Task ...................................................................................................... 4
1.2 Solution................................................................................................. 4
1.2.1 Learning objectives .............................................................................. 5
1.2.2 Logic Matrix .......................................................................................... 5
1.3 Description of the example project ....................................................... 6
1.4 Hardware and software components ................................................... 7
2 Basics ................................................................................................................. 9
2.1 PCS 7 Logic Matrix ............................................................................... 9
2.2 Logical operations ................................................................................ 9
3 Configuring the Logic Matrix .......................................................................... 11
3.1 Creating the Logic Matrix ................................................................... 12
3.2 Editing the properties of Logic Matrix ................................................. 12
3.3 Configuring the connection of cause/effect to a process tag ............. 14
3.3.1 Direct connection ................................................................................ 14
3.3.2 Input and Output tag selection ........................................................... 17
3.4 Generating the Matrix CFCs .............................................................. 28
3.5 Final configuring work ........................................................................ 28
Siemens AG 2018 All rights reserved
1.2 Solution
This application example describes the creation and visualization of interlocking
using the PCS 7 Logic Matrix. It provides step-by-step instructions and an example
Siemens AG 2018 All rights reserved
Benefits
The creation of the interlocking with PCS 7 Logic Matrix offers the following
benefits:
Clear display of interlocking using the Logic Matrix Editor according to the
causes and effects principle.
Simple modification and optimization of interlocking
More efficiency compared to the "standard" interlock at CFC level
Integrated alarm messages for status changes of cause and effect
Clear representation of interlocking in the OS Runtime
Filter options for rapid location of the interlocking cause within the OS Runtime
Time and cost savings in engineering and operation
Delimitation
The following topics are not described in this application example:
How to create the PCS 7 project
How to install the PCS 7 Logic Matrix software components
Physical relationships between, for example, temperature and fill level are not
taken into account in the simulation
Required knowledge
Fundamental knowledge of the following specialist fields is a prerequisite:
Configuring with SIMATIC PCS 7
Basic knowledge of process technology
CFC
Good understanding of the type/instance concept of PCS 7 in the form of
process tag types / control module types (CMT)
1.2.1 Learning objectives
PCS 7 Interlock blocks are available for configuring the interlocking. As of PCS 7
V8.2, interlocking can be defined in the form of cause/effect matrices using logic
operations, as customary in the process engineering planning.
In PCS 7, the Logic Matrix Editor is the tool used for creating and optimizing the
Siemens AG 2018 All rights reserved
interlocking.
In this application example, the Logic Matrix is used for the creation of the
interlocking functions. It is based on the PCS 7 project of a stirred tank reactor.
The following logical operations are realized for the stirred tank reactor:
1. Valves in the inflow close if:
– alarm limit of fill level is reached
– temperature in the reactor is too high
2. Reactor agitator is locked if fill level is too low
3. Pumps in the inflow stop if:
– valves are closed
– alarm limit of fill level is reached
– temperature in the reactor is too high
4. Pumps in heating circuit stop if temperature is too high
5. Valve in heating circuit closes if temperature is too high
6. Pumps in the inflow stop if valve is closed
Project structure
The PCS 7 example project contains a stirred tank reactor with the following
functions:
Agitator
Inflow
Discharge
Temperature control
Level measurement
Hardware components
Component Note
SIMATIC PCS 7 ES/OS IPC847D W7 For the PCS 7 V8.2 example project
Note In case of different hardware, please take heed of the minimum requirements for
installing the software components. The minimum requirements can be found in
the Readme file of the SIMATIC PCS 7.
Siemens AG 2018 All rights reserved
Software components
Component Note
SIMATIC PCS 7 V8.2 Part of SIMATIC PCS 7 ES/OS IPC847D W7
S7 PLCSIM The license does not form part of SIMATIC
PCS 7 ES/OS IPC847D W7
APL library Part of SIMATIC PCS 7 V8.2
SIMATIC Logic Matrix ES pack Not part of SIMATIC PCS 7 V8.2
SIMATIC Logic Matrix Editor
SIMATIC Logic Library
SIMATIC Logic Matrix OS pack Not part of SIMATIC PCS 7 V8.2
SIMATIC Logic Viewer
Licensing
The following licenses are required:
per matrix = 1 PO
per cause = 1 PO
per effect = 1 PO
1 license per operating station (e.g., OS client) for the Logic Matrix Viewer
The currently used POs can be determined in the Matrix settings.
Siemens AG 2018 All rights reserved
2 Basics
2.1 PCS 7 Logic Matrix
The PCS 7 Logic Matrix is a tool for creating and visualizing interlocking with up to
125 causes and up to 125 effects. A cause represents a logical function with up to
six inputs (three analog and three digital), whose result is good or bad, and whose
effect can be transmitted via so-called nodes (intersections) to effects with one or
more outputs. This allows each cause to act on each effect or even on just a part of
the effects.
Siemens AG 2018 All rights reserved
Note A detailed description of the concepts and components of the Logic Matrix can
be found in chapter 1.3 "Term definitions" of the Equipment Manual "Process
Control System PCS 7 Logic Matrix".
The figure below describes the mode of operation by means of the interlock of the
agitator.
Stop Stearing
Effect
Cause
Cause002 In Effect002
In Result In In Result
In
CM CM
Cause125 Effect125
In Result In Result
An instance of the function block (FB) "LM Cause" is created for each cause.
The causes are connected to its inputs. In the example above, it is the process
value of the level sensor "LS103". The FB "LM_Cause" processes these values
according to the set parameters and passes on the processing result to the FB
"LM_Matrix" of the matrix (an instance of the FB "LM_Matrix" is applied to each
matrix). The instance of the "LM_Matrix" FB creates the logic operation between
cause and effect depending on the configured nodes. The described logic
operation example is a non-latching logic operation "N". An instance of the FB
"LM_Effect" is created for each effect. This is where the post processing of the
nodes (such as Bypass, Delay,etc.) is carried out. The result is interconnected to
the process tags. In the above example, it causes the motor of the agitator (NS107)
to lock at low level (LS103).
Note The matrix described in the demo project has already been created and fully
configured. The following section describes the configuration procedure.
In order to carry out the described configuration steps, first you have to retrieve
the example project on your Engineering System. To do this, follow the
instructions in chapter. 4.1 "Preparation". Then remove the existing Logic Matrix
as described below:
1. Right click on "Reactor_MP > Reactor_AS > AS410 > CPU 410-5H > S7
Program > Logic Matrix" and select the menu command "Delete".
2. In the dialog that opens, click the "Yes" button.
The Logic Matrix Editor opens.
3. Click the "Yes" button in the Dialog "Matrix LM_R100 delete".
The Logic Matrix and all associated data is deleted.
4. Confirm "Matrix LM_R100 deleted" by clicking on "OK".
5. Close the Logic Matrix Editor.
6. Open any CFC and compile the AS program (in the CFC editor)
Siemens AG 2018 All rights reserved
Requirement
For configuring with Logic Matrix, it is required to have first created the project
structure in SIMATIC Manager.
Recommendation
For efficient engineering with the Logic Matrix Editor, you should use a type
instance concept with the master data library. The Logic Matrix works with the CFC
types (process tag type and CMTs) of the master data library. These should be
already created before the Logic Matrix is configured.
Then, the Logic Matrix can be renamed. In this example project: in "LM_R100".
Procedure
1. Open the multiproject in the "Component view".
2. Right-click the S7 program in the AS project.
3. Select the menu item "Insert New Object > Logic Matrix".
A new folder "Logic Matrices" is created with the Logic Matrix inside the S7
program folder.
4. Rename it (in the example project: LM_R100).
General procedure
1. Double-click on the LM to open it.
2. Select the menu command "Edit > Read project data".
The command "Read project data" reads the current information from the PCS
7 project that contains the Logic Matrix (e.g. process tag types and control
module types from the master data library).
3. Select the menu command "Edit > Properties".
4. Go to the "Plant hierarchy" field in the "General" tab and select the hierarchy
folder where you want to generate the Matrix CFC.
5. In the "Matrix cycle time" field, select the cyclic interrupt OB in which the
Matrix CFC is to be integrated.
6. In the "Intersection DB" field, select the DB where Logix Matrix stores the
information.
7. Adjust the other properties according to your project requirements.
Note A detailed description of the properties and settings can be found in chapter 5.3
"Editing the properties of Logic Matrix" of the Equipment Manual "Process
Control System PCS 7 – Logic Matrix".
Note Messages for causes, effects and the matrix can be configured globally in
the Matrix properties and for individual causes and effects, if needed.
General tab:
Alarms tab:
Siemens AG 2018 All rights reserved
Requirement
Process tags must be created in advance if they are to be directly connected to
a cause or an effect.
Cause Effect
LS102 active YS101, YS102 and YS103 close, NS101,
NS102, NS103 stop
Procedure as an example
1. Open the Logic Matrix in the Logic Matrix Editor.
2. Go to the "Input-Tag" column, right click in the first row and select "Direct
connection...".
The window "Select direct link" is displayed.
Siemens AG 2018 All rights reserved
4. Go to the "Output-Tag" column, right click in the first row and select "Direct
connection...".
11. In the mode field, enter "Deenergized to trip" and then click on "OK".
12. At the intersection of the created cause and effect, enter "N" for a non-latching
logical operation.
Siemens AG 2018 All rights reserved
Note N – non-latching means that the logical operation is a simple transition function.
If the cause is active, the effect is tripped.
You can find detailed information about the intersections in chapter 5.7
"Configuring the intersections" of the the Equipment Manual "Process Control
System PCS 7 – Logic Matrix".
You have now created the first cause and effect by means of direct connections.
3.3.2 Input and Output tag selection
Requirements
Process tags must be created in advance if they are to be directly connected
to an Input or Output tag.
Process tags are instances of CFC types (process tag types and control
module types)
Cause and effect links are created
Cause Effect
YS101 closed NS101 is stopped and locked
YS102 closed NS102 is stopped and locked
YS103 closed NS103 is stopped and locked
YS104 closed NS106 is stopped and locked
Note A detailed description of the links and the Link Editor can be found in chapter 5.6
"Configuring the links" of the Equipment Manual "Process Control System PCS 7
- Logic Matrix".
Siemens AG 2018 All rights reserved
1. Open the Logic Matrix "R100" with the Logic Matrix Editor.
2. Select the menu command "Edit > Links…".
The "Cause links" tab opens in the Link Editor.
Note Remove any links that may be present. To do this, select link after link and click
on the "Delete link" button.
3. Select "Link1".
4. Enter "VALFbkClosed" in the "Name" field (1).
5. Enter "Valve closed" in the "OS displayed Name" field (1).
6. Select the "Tag type" option (2) in the "Scope" area.
7. Select the following process tag types in the dropdown menu (2):
– VAL__Std
– VAL_An_AfbSplitSlave
8. In the "Connection" area, select the "V" block and the "FbkCloseOut"
connection for the "Dig*" connection (3).
9. Click on "Commit".
3
Siemens AG 2018 All rights reserved
3
Siemens AG 2018 All rights reserved
After creating the links, you can configure the Input and Output tags.
1. Right click on the second cause in the "Input-Tag" column and select "Select
Input-Tag...".
3. Right click on the second effect in the "Output-Tag" row and select "Select
Output-Tag...".
The "Output-Tag Selection" window is displayed.
5. At the intersection of the created cause and effect, enter "N" for a non-latching
logical operation.
6. Repeat steps 1 to 5 for the tags "YS102" and "NS102", "YS103" and "NS103"
as well as "YS104" and "NS106".
The causes, effects and logic operations for Example 1 have now been created.
Cause Effect
LS103 active NS107 is stopped and locked
Procedure, Example 2
Besides the Output tag for the drive, which you have already created in Example 1,
to stop and lock the agitator you also require an Input tag for the digital monitoring
of process tag "LS103".
1. Open the Logic Matrix "R100" with the Logic Matrix Editor.
2. Select the menu command "Edit > Links…".
The "Cause links" tab opens in the Link Editor.
3. Click the "New link" button.
A new link called "Link1" is added.
4. Select this link.
5. Enter "DOMON" in the "Name" field.
6. Enter "Digital Monitoring" in the "Displayed name" field.
7. Select the "Tag type" option in the "Scope" area.
8. Select "DMON__Std" as the process tag type.
9. In the Connection area, enter the values shown in the following figure.
After creating the digital link "DMON", you can then configure the cause and effect
for Example 2.
1. Right click on the sixth cause in the "Input-Tag" column and select "Select
Input-Tag...".
This opens the "Input-Tag Selection" window.
2. Select the tag "LS103" in the "Input-Tag selection" window and then click on
"Select".
3. Right click on the sixth effect in the "Output-Tag" row and select "Select
Output-Tag...".
The "Output-Tag Selection" window is displayed.
4. In the "Output-Tag selection" window, select the tag "NS107".
5. At the intersection of the created cause and effect, enter "V" for an overridable
logical operation.
Note V - overridable means that the tripping of the effect can be overridden. If the
cause is active, the effect is tripped and can be overridden as long as the cause
is active. Either by means of a manual intervention or by setting a configured tag.
If the cause becomes active again, even the effect is reactivated.
Siemens AG 2018 All rights reserved
You can find detailed information about the intersections in chapter 5.7
"Configuring the intersections" of the the Equipment Manual "Process Control
System PCS 7 – Logic Matrix".
Cause, effect and logical operation for Example 2 have now been created.
Cause Effect
LS101 Alarm High active YS101, YS102 and YS103 close and lock,
(extension of the cause from ch. 3.3.1) NS101, NS102, NS103 stop and lock
LS101 Alarm Low active NS107 is stopped and locked
(expansion of the cause from Example 2)
Procedure, Example 3
An analog cause link must be created for Example 3.
1. Open the Logic Matrix "R100" with the Logic Matrix Editor.
2. Select the menu command "Edit > Links…".
The "Cause links" tab opens in the Link Editor.
3. Click the "New link" button.
A new link called "Link 1" is shown.
4. Select this link.
5. In the "General" area, select the "Analog link" option.
6. Enter "AMONhigh" in the "Name" field.
7. Enter "Analog Monitoring" in the "Displayed name" field.
8. Select the "Tag type" option in the "Scope" area.
9. Select "AMON__Std" as the process tag type.
10. In the Connection area, enter the values shown in the following figure.
Siemens AG 2018 All rights reserved
Cause Effect
2oo3 TI111, TI12 or TI113 Alarm High YC131 close and lock,
active NS104 stop and close
Procedure, Example 4
All the links required for the logical operation of Example 4 have already been
created in the previous examples. Only the corresponding cause and the
corresponding effect together with the logical operation must be configured.
1. Right click on the seventh cause in the "Input-Tag" column and select "Select
Input-Tag...".
This opens the "Input-Tag Selection" window.
2. Select the tag "TI111" and then click on "Select".
3. Right click on the seventh cause in the "Input-Tag" column and select
"Add Cause Input".
A new cause Input is added for the seventh cause.
4. Right click on this cause Input and select "Select Input-Tag...".
This opens the "Input-Tag Selection" window.
5. Select the tag "TI112" and then click on "Select".
At least two of the three input tags exceed the upper alarm limits (2oo3).
Two of the three input tags deviate above the deviation limit from the mean
value (2oo3).
9. Right click on the seventh effect in the "Output-Tag" row and select "Select
Output-Tag...".
The "Output-Tag Selection" window is displayed.
10. Select the tag "NS104" and then click on "Select".
11. Right click on the seventh effect in the "Output-Tag" row and select "Add Effect
Output".
A new effect Output is added for the seventh effect.
12. Right click on this effect output and select "Select Output-Tag...".
The "Output-Tag Selection" window is displayed.
13. Select the tag "YC131" and then click on "Select".
14. At the intersection of the created cause and effect, enter "S" for latching logical
operation.
Note S – latching means that if the cause is active, the effect is tripped. The effect
remains active even if the cause is no longer active and has to be reset by the
operator or by configuring a Reset tag.
You can find detailed information about the intersections in chapter 5.7
"Configuring the intersections" of the the Equipment Manual "Process Control
System PCS 7 – Logic Matrix".
Cause, effect and logical operation for Example 4 have now been created.
Cause Effect
TI121 Alarm High active YS101, YS102 and YS103 close and lock,
NS101, NS102, NS103 stop and lock
Siemens AG 2018 All rights reserved
Procedure, Example 5
A cause is created for each of the temperature sensors "TI121", "TI122" and
"TI123". "TI121" acts directly on the effect 1 (already created). "TI122" and "TI123"
act on the effect according to the majority principle. All necessary links have
already been created in the previous examples.
1. Right click on the eight cause in the "Input-Tag" column and select "Select
Input-Tag...".
This opens the "Input-Tag Selection" window.
2. Select the tag "TI121" and then click on "Select".
3. In the intersection between cause 8 and effect 1 enter "N" for a non-latching
logical operation.
4. Right click on the ninth cause in the "Input-Tag" column and select "Select
Input-Tag...".
This opens the "Input-Tag Selection" window.
5. Select the tag "TI122" and then click on "Select".
6. In the intersection between cause 9 and effect 1 enter "2 N" for a non-latching
logical operation according to the majority principle.
7. Right click on the tenth cause in the "Input-Tag" column and select "Select
Input-Tag...".
This opens the "Input-Tag Selection" window.
8. Select the tag "TI123" and then click on "Select".
9. In the intersection between cause 10 and effect 1 enter "2 N" for a non-latching
logical operation according to the majority principle.
Note XooN (e.g. 2 N) causes are allocated according to the majority principle.
X is entered by the User. N is the number of intersections with X as coefficient
(X ≥ N). The effect is active if N of X causes are active.
You can find detailed information about the intersections in chapter 5.7
"Configuring the intersections" of the the Equipment Manual "Process Control
System PCS 7 – Logic Matrix".
Causes and logical operation for Example 5 have now been created.
The figure below shows the ready configured Logic Matrix for the "R100" reactor.
Siemens AG 2018 All rights reserved
Note A detailed description for the generation of Matrix CFCs can be found in
chapter 6 "Transferring the Logic Matrix" of the the Equipment Manual "Process
Control System PCS 7 – Logic Matrix".
Procedure
1. Select the menu command "Generation > Generate CFC".
The "Matrix generation" window is displayed.
Siemens AG 2018 All rights reserved
Note If the OS cannot establish a connection with the AS (grayed out faceplates),
select the logical device name "CP_H1_1:" and restart the OS.
4.2 Commissioning
The following instructions describe how the application is initialized.
For commissioning, SIMATIC Manager must be already open and the project must
be selected in the component view.
Explorer menu.
3. In the "System Login" dialog, enter the user "Unit" and "Template" as the
password; confirm with "OK".
4. In the area of the Unit Template, select "R100".
Note The plant is already in the production state because the AS program execution
(SIMATIC PLCSIM) has already started.
Note A detailed description of the block icons and faceplates of the Logic Matrix can
be found in chapter 7 "Operator control and monitoring" of the Equipment
Siemens AG 2018 All rights reserved
You will only be shown the causes with the "Valve Closed" link.
level.
2. Open the Logic Matrix Viewer.
3. Set "Status = active" as a filter.
You will now see the active causes.
Cause 1 is active. Causes 2 to 4 are active as a result of cause 1. To resolve the
cause for the activation of cause 1, the fill level must be lowered again.
4. Start pump "NS106".
5. Stop pump "NS106" after the maximum fill level is undershot again.
Cause 1 and effect 1 become inactive, as the "Maximum level" cause is no longer
active. The causes 2 to 4 and the effects 2 to 4 are still active, because the valves
have not been reopened.
6. Open the valves "YS101", "YS102" and "YS103" to deactivate all causes and
effects.
Note The logged in operator must have the appropriate authorization to change the
limits.
Detailed information on the operator authorization of Logic Matrix can be found in
chapter 5.2.3 "OS Connection" of the Equipment Manual "Process Control
System PCS 7 Logic Matrix".
Cause 1 is a OR logic operation of "LS102" and "LI101". In the faceplate, you can
identify the current fill level.
6. Click on "Override".
7. Click on "Set".
8. Click on "OK".
The effect is overridden.
6 References
Table 6-1
Topic
\1\ Siemens Industry Online Support
http://support.industry.siemens.com
\2\ https://support.industry.siemens.com/cs/ww/en/view/109482621
\3\ SIMATIC Process Control System PCS 7 Readme V8.2 (online)
https://support.industry.siemens.com/cs/ww/en/view/109478781
\4\ Configuration manual SIMATIC Process Control System PCS 7 Logic Matrix
https://support.industry.siemens.com/cs/ww/en/view/109748784
7 History
Table 7-1
Version Date Change
V1.0 05/2016 First edition
V1.1 06/2018 Update of a screenshot
Siemens AG 2018 All rights reserved