Upload
hhaabbde-sybaritz
View
231
Download
0
Embed Size (px)
Citation preview
8/10/2019 21626985 Verbindungen DOKU v30 e
1/83
Tool on Communication
Calculator for the Calculation of the ConnectionBalance for typical Associations of an S7-CPU
8/10/2019 21626985 Verbindungen DOKU v30 e
2/83
Warranty, Liability and Support
We do not accept any liability for the information contained in thisdocument.
Any claims against us - based on whatever legal reason - resultingfrom the use of the examples, information, programs, engineeringand performance data etc., described in this document shall beexcluded. Such an exclusion shall not apply in the case ofmandatory liability, e.g. under the German Product Liability Act(Produkthaftungsgesetz), in case of intent, gross negligence, orinjury of life, body or health, guarantee for the quality of a product,fraudulent concealment of a deficiency or breach of a conditionwhich goes to the root of the contract (wesentlicheVertragspflichten). However, claims arising from a breach of acondition which goes to the root of the contract shall be limited to
the foreseeable damage which is intrinsic to the contract, unlesscaused by intent or gross negligence or based on mandatoryliability for injury of life, body or health. The above provisions doesnot imply a change in the burden of proof to your detriment.
The Application Examples are not binding and do not claim to becomplete regarding the circuits shown, equipping and anyeventuality. They do not represent customer-specific solutions.They are only intended to provide support for typical applications.You are responsible in ensuring that the described products arecorrectly used. These Application Examples do not relieve you ofthe responsibility in safely and professionally using, installing,
operating and servicing equipment. When using these ApplicationExamples, you recognize that Siemens cannot be made liable forany damage/claims beyond the liability clause described above.We reserve the right to make changes to these ApplicationExamples at any time without prior notice. If there are anydeviations between the recommendations provided in theseApplication Examples and other Siemens publications - e.g.Catalogs - then the contents of the other documents have priority.
Copyright 2005 Siemens A&D. It is not permissib le totransfer or copy these Application Examples or excerpts ofthem without first having prior authorization from Siemens
A&D in wr it ing.
For questions about this document please use the followinge-mail-address:
mailto:[email protected]:[email protected]8/10/2019 21626985 Verbindungen DOKU v30 e
3/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004 3/83
CopyrightS
iem
ensAG2
005
Allrightsreserved
21626985_
verbindungen_
DOKU_
v30_
e.doc
A&
D
ASCS3KM
Content
1 Guide through the Documentation ........................................................... 5
2 Downloads and Versions of the Connection Calcu lator ........................ 6
2.1 Overview downloads.................................................................................... 6
2.2 Overview versions........................................................................................ 6
3 Field of Application .................................................................................... 7
4 Characteris tics ........................................................................................... 8
4.1 Properties of the calculator .......................................................................... 8
4.2 Operating principle of the calculator............................................................. 9
4.3 Structure of the calculator .......................................................................... 10
5 Scope of Validi ty and Restrict ions ......................................................... 11
5.1 Entering associations................................................................................. 115.1.1 Entering with the calculator possible.......................................................... 115.1.2 Entering with the calculator NOT possible ................................................. 12
5.2 Creating the connection balance................................................................ 13
5.3 Criteria NOT checked by the calculator ..................................................... 14
5.4 Versions of the components used in the calculator.................................... 14
6 Mapping the Problem in the Calculator ................................................. 15
6.1 Explanation of important terms .................................................................. 156.1.1 Association................................................................................................. 156.1.2 End point.................................................................................................... 176.1.3 In/out point ................................................................................................. 176.1.4 Subnet transition (routing).......................................................................... 18
6.2 Mapping the components........................................................................... 196.2.1 User interface............................................................................................. 196.2.2 Data base................................................................................................... 21
6.3 Mapping the associations........................................................................... 22
6.3.1
Test object (S7-CPU) is involved in an end point relation.......................... 23
6.3.2 Test object (S7-CPU) is involved in an in/out point relation....................... 26
7 Structure of the User Interface ............................................................... 27
7.1 Overview user interface ............................................................................. 27
7.2 Section test object ................................................................................... 31
7.3 Section associations ................................................................................ 347.3.1 Test object (S7-CPU) is end point.............................................................. 347.3.2 Test object (S7-CPU) is in/out point........................................................... 38
7.4 Section logbook ....................................................................................... 41
8/10/2019 21626985 Verbindungen DOKU v30 e
4/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004 4/83
CopyrightS
iem
ensAG2
005
Allrightsreserved
21626985_
verbindungen_
DOKU_
v30_
e.doc
A&
D
ASCS3KM
8 Operation .................................................................................................. 43
8.1 Creating a new configuration ..................................................................... 44
8.2 Entering associations................................................................................. 458.2.1 S7-CPU is end point................................................................................... 468.2.2 S7-CPU is in/out point................................................................................ 49
8.3 Saving a session with the calculator .......................................................... 52
8.4 Changing / deleting a logbook entry........................................................... 53
9 Appl ication Example................................................................................ 54
9.1 Task ........................................................................................................... 55
9.2 Entering an end point relation .................................................................... 56
9.3 Entering an in/out point relation ................................................................. 59
9.4 Results ....................................................................................................... 63
10 Background Information ......................................................................... 64
10.1 Connection types ....................................................................................... 64
10.2 Unilateral and bilateral connections ........................................................... 68
10.3 Allocation of connections ........................................................................... 6910.3.1 Allocation by configuration ......................................................................... 6910.3.2 Allocation by programming......................................................................... 7110.3.3 Allocation by test, startup, and diagnostics ................................................ 7210.3.4 Allocation by operator control and monitoring............................................ 7210.3.5 Effect of the time sequence on the allocation ............................................ 72
10.4 Multiplexing of connections ........................................................................ 73
11 Range of Values of all Input and Output Fields..................................... 74
11.1 Section: Test object.................................................................................... 74
11.2 Section: Association for end points ............................................................ 76
11.3 Section: Association for in/out points ......................................................... 80
12 Appendix ................................................................................................... 83
12.1 Abbreviations ............................................................................................. 83
8/10/2019 21626985 Verbindungen DOKU v30 e
5/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004 5/83
CopyrightS
iem
ensAG2
005
Allrightsreserved
21626985_
verbindungen_
DOKU_
v30_
e.doc
A&
D
ASCS3KM
1 Guide through the Documentation
This documentation describes the calculator.
An overview of the chapters and the contents of the chapters is listed in thetable below.
Table 1-1 Chapters and contents of the documentation
Chapter Title The following questions are answered:
1 Guide through the Documentation What is the content of the documentation?
2 Downloads and Versions of theConnection Calculator
Which downloads are available for the connection calculator?
What are the versions of the downloads?
3 Field of Application Which problems are solved with the connection calculator?
4 Characteristics What are the most important characteristics of the connectioncalculator?
5 Scope of Validity and Restrictions What does the connection calculator perform?
What does the connection calculator not perform?
6 Mapping the Problem in the Calculator What are association, in/out point and end point?
Which information does the calculator use?
How can you enter typical associations with the calculator?Which rules have to be observed?
7 Structure of the User Interface How is the user interface set up?
Which input and output sections are available and what is theirsignificance?
8 Operation Description of the individual operating steps:
What is to be done?
What has to be observed during operation?
9 Application Example For a specific application example:
How do I use the calculator?
10 Background Information Valuable information on connections:
Which connection types exist?
How are connections allocated?
What is multiplexing of connections?
11 Range of Values of all Input and OutputFields
For all fields in the user interface of the calculator:
Which specific inputs and outputs exist?
What is the specific meaning of these fields?
12 Appendix Warranty, support, feedback form
This table enables you to decide which chapter you want to read:
Table 1-2 Aid to decision-making
Question Chapter Number of pages
What is the purpose of the calculator and how does it work? 3, 4, 5 Approx. 5 pages
How do I use the calculator? 6, 7, 8, 9 Approx. 50 pages
What are the basics regarding the subject connections? 10 Approx. 10 pages
8/10/2019 21626985 Verbindungen DOKU v30 e
6/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004 6/83
CopyrightS
iem
ensAG2
005
Allrightsreserved
21626985_
verbindungen_
DOKU_
v30_
e.doc
A&
D
ASCS3KM
2 Downloads and Versions of the Connection Calculator
2.1 Overview downloads
The following downloads are available for the connection calculator:
Table 2-1 Overview of downloads of the connection calculator
Download File type Content
Calculator Excelfile
User interface for the connection calculator:
Entering the associations of the test object(S7-CPU).
Calculation of the required connections perassociation.
Calculation of the available connections in thetest object (S7-CPU).
Documentation PDFdocument
Description of the connection calculator:
Field of application
Operation
Application example
Background information
Product Information PDFdocument
Short description of the connection calculator.
Guided Tour Film Animated representation illustrating how to operate thecalculator.
The download Documentation is available to you.
2.2 Overview versions
This table lists an overview of the versions of the connection calculator.
Table 2-2 Versions of the connection calculator
Version Release Components version
V3.0 June 2004 Early 2004
Difference between V3.0 and V2.0
This is the first version.
Replacement strategy
This is the first version.
8/10/2019 21626985 Verbindungen DOKU v30 e
7/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004 7/83
CopyrightS
iem
ensAG2
005
Allrightsreserved
21626985_
verbindungen_
DOKU_
v30_
e.doc
A&
D
ASCS3KM
3 Field of Appl ication
This chapter answers the following question:
Which specific problems can be solved using the calculator?
For the meaning of the terms association, end point, and in/out point,please refer to chapter 6.1.
Starting point
SIMATIC S7-CPUs perform extensive communication tasks. The S7-CPUsare end point or in/out point of a large number of associations. For thispurpose, the S7-CPU requires connections. Each S7- CPU provides amaximum number of such connections.
Problem
The following questions have to be answered reliably already during theconcept phase of an automation project.
Can the planned associations be realized using the plannedS7-CPU?
Does the S7-CPU provide sufficient connections forall associations?
If it is only detected during commissioning that the associations cannot berealized, this usually results in scheduling delays and additional costs:
reprogramming is often not sufficient
the concept of the system has to be modified
different modules have to be used.
Solution
In order to answer the above questions we have developed a tool whichcan be used to quickly evaluate and calculate your possibilities. Because ofthe simple principle, no special knowledge on communication is required tooperate the tool.
The intuitively operable input interface allows you to systematically enterall planned associations of the S7-CPU.
With the calculator essentially only those associations can be enteredwhich can actually be realized with the S7-CPU.
The tool updates the connection balance of the S7-CPU after eachentered association.
8/10/2019 21626985 Verbindungen DOKU v30 e
8/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004 8/83
CopyrightS
iem
ensAG2
005
Allrightsreserved
21626985_
verbindungen_
DOKU_
v30_
e.doc
A&
D
ASCS3KM
4 Characteristics
This chapter answers the following questions:
What are the most important characteristics of the calculator?
What are the essential features of operation?
How can the basic structure be described?
4.1 Properties of the calculator
Task
The calculator checks whether all planned associations can be realizedwith a specific S7-CPU.
Input
Via an interactive user interface all associations in which the S7-CPU isinvolved are entered systematically. The calculator accepts onlyassociations which can actually be realized with the S7-CPU.
Output
The calculator calculates the required connections for each enteredassociation.
In a connection balance, the available connections of the S7-CPU aredisplayed for all entered associations.
Data required by the calculator
For the calculation of the required connections the calculator uses thefollowing information:
Technical data
of the S7-CPU and
of the CP plugged at the S7-CPU (only in end point relations)
Calculation rules to assign connections
Information on the feasibility of associations.
Summary
The calculator provides the user with two kinds of information:
The entered associations can be realizedwith the S7-CPU.
The required connections in the S7-CPU are or are not available for allentered associations.
8/10/2019 21626985 Verbindungen DOKU v30 e
9/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004 9/83
CopyrightS
iem
ensAG2
005
Allrightsreserved
21626985_
verbindungen_
DOKU_
v30_
e.doc
A&
D
ASCS3KM
4.2 Operating princip le of the calculator
In order to operate the calculator, perform the following steps:Table 4-1 Operation of the calculator principle
Step Action Operationcalculator
1 Drawing of a block diagram with all associations.
2 Planning the isolation of an S7-CPU (test object).
3 Selection of the test object (S7-CPU). x
4 Entering all associationsin which the test object is end point.
x
5 Entering all associations
in which the test object is in/out point.
x
6 Evaluating the connection balance of the test object (S7-CPU). x
7 Considering the next test object (S7-CPU);repeating the process starting with step 2.
The figure below illustrates the procedure described above.
Fig. 4-1 Operation of the calculator principle
Calculator
Connection balance of the S7-CPU x
S7-CPU x
Step 6
Steps 3, 4 and 5
Associations o f a SIMATIC S7-CPU:
S7-CPU x FM CP
PG
In/out point relation
End point relationStep 2
Step 1
8/10/2019 21626985 Verbindungen DOKU v30 e
10/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004 10/83
CopyrightS
iem
ensAG2
005
Allrightsreserved
21626985_
verbindungen_
DOKU_
v30_
e.doc
A&
D
ASCS3KM
4.3 Structure of the calculator
The calculator is realized as Excel file. This file contains the followingspreadsheets:
Table 4-2 Spreadsheets of the calculator
Spreadsheet Content Purpose
UI in/out points User interface forassociationsin which the S7-CPUis in/out point.
UI end points User interface forassociations
in which the S7-CPUis end point.
Entry of the associations by theuser
Technical data Technical data of the S7-CPUs,focus on communicationand connections.
Used by the calculator to calculatethe connections.
CP data Technical data of the CPs focusing oncommunications services.
Used by the calculator to select theassociations available and tocorrectly calculate the connectionson the S7-CPU.
8/10/2019 21626985 Verbindungen DOKU v30 e
11/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004 11/83
CopyrightS
iem
ensAG2
005
Allrightsreserved
21626985_
verbindungen_
DOKU_
v30_
e.doc
A&
D
ASCS3KM
5 Scope of Validi ty and Restr ict ions
This chapter answers the following questions:
What does the calculator perform?
What does the calculator not perform?
Since the calculator performs two worksteps, the answers are given perworkstep:
Entering associations
Creating the connection balance.
5.1 Entering associations
In the first step you enter the planned associations with the calculator. Youwill see that certain associations can be entered with the calculator andothers cant.
5.1.1 Entering with the calculator possible
If you want to enter a specific association with the calculator, this meansthe following:
This association is permissible from the view of the calculator; basically,it can thus be realized with the selected SIMATIC components.
When evaluating this statement, the differences with regard to test object(S7-CPU) and partner have to be taken into consideration.
Test object (S7-CPU)
The statement is as follows:
The selected test object (S7-CPU) can comply with the parameters of theassociation.
Parameters in hardware perspective / device perspective of the testobject
Parameters in software perspective of the test object.
Partner:
Unlike the test object (fully specified), the partner is only roughly specified.The partner is described using classes.
Here, the statement is as follows:
In the selected class there are components which can basically be used torealize the association. It may occur that certain modules do not meet therequirements. You have to check this in individual cases.
8/10/2019 21626985 Verbindungen DOKU v30 e
12/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004 12/83
CopyrightS
iem
ensAG2
005
Allrightsreserved
21626985_
verbindungen_
DOKU_
v30_
e.doc
A&
D
ASCS3KM
Example
The following association can be entered and calculated in the calculatorand is thus feasible.
Using AG_SEND / AG_RCV (via FDL connection), CPU315-2DP (testobject) communicates with an S5 station via a PB-CP.
Fig. 5-1 Association entered with the calculator
The statement is as follows:
The association can be realized with the test object (S7-CPU ) if the S5station also meets the requirements.
This means that the planned S5 station must be connectable to Profibusas well as addressable with AG_SEND / AG_RCV.
5.1.2 Entering with the calculator NOT possible
If it is not possible to calculate an association with the calculator, this mayhave the following reasons:
Main reason
The association is actually not feasible.
Other reasons
The association is a trivial association.
Example: A master-slave communication in which only the slaves I/Odata are accessed.
The association is theoretically possible, but it represents a special case(e.g. MAP).
The test object (S7-CPU) does not comply with the criterion of either anend point or an in/out point.For more information on these criteria, please refer to chapter 6.1.
The communication path between communication partner andtest object (S7-CPU) involves several CPs or subnets.
8/10/2019 21626985 Verbindungen DOKU v30 e
13/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004 13/83
CopyrightS
iem
ensAG2
005
Allrightsreserved
21626985_
verbindungen_
DOKU_
v30_
e.doc
A&
D
ASCS3KM
5.2 Creating the connection balance
Examining the worst case
In order to make sure that no miscalculations are made, the calculatoralways assumes the following:
All associations are always active simultaneously.
This means:
Temporary connections (as in case of the X/I connections) areconsidered to be connections that are always existent.
Associations disconnected with regard to time which successively usethe same connection are not considered.
Such associations can e.g. be PUT and GET calls which occur insuccession with the same configured S7 connection.
Thus, the worst case in the connection balance of the test object (S7-CPU)is examined.
Exception: Multiplexing of connections in CPs
In the CPs 342-5DA02 and 343-1EX11/1EX20, all TD/OP and S7connections are considered as multiplexed in the calculator. Thiscorresponds to the default setting of the CPs.
In this case, the connection balance is a best-case examination.
In special cases it is possible not to use multiplexing. If this is done, moreconnections are used on the S7-CPU.
Example: The S7-CPU is addressed directly with TSAP. This is e.g.required if the communication partner is not in the same STEP7 project.
8/10/2019 21626985 Verbindungen DOKU v30 e
14/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004 14/83
CopyrightS
iem
ensAG2
005
Allrightsreserved
21626985_
verbindungen_
DOKU_
v30_
e.doc
A&
D
ASCS3KM
5.3 Criteria NOT checked by the calculator
The calculator does not check the following criteria: Resources of the communication partners (maximum connections of the
CPs, )
Number of connectable CPs in the S7 station (maximum number CPx,as DP master, ...)
Some of the technical data of the test object (S7-CPU) from the area ofcommunication:
Maximum number of connectable CPs
Number of OS that can be connected
Number of GD circles Technical data of the test object (S7-CPU) from other areas:
Memory space required
Runtime behavior
... and other data.
5.4 Versions of the components used in the calculator
In general, only current components are considered in the calculator.Current components are components which were available at the time thecalculator was developed. This applies particularly to test object (S7-CPU)and CPs.
8/10/2019 21626985 Verbindungen DOKU v30 e
15/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004 15/83
CopyrightS
iem
ensAG2
005
Allrightsreserved
21626985_
verbindungen_
DOKU_
v30_
e.doc
A&
D
ASCS3KM
6 Mapping the Problem in the Calculator
This chapter answers the following questions:
What do important terms used in the environment of the calculatormean?
How are components mapped in the calculator?
How is an association mapped in the calculator?
Which rules have to be observed during mapping?
6.1 Explanation of important terms
Below, important terms used in the environment of the connectioncalculator are explained.
6.1.1 Association
If modules inter-communicate they have form an association.
An association is usually defined by the following properties:
End points:An association always has two end points. Data (e.g. user data,diagnostics data) are exchanged between the two end points.
Communication path:Describes the data path.
Service:Describes the user interface.
8/10/2019 21626985 Verbindungen DOKU v30 e
16/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004 16/83
CopyrightS
iem
ensAG2
005
Allrightsreserved
21626985_
verbindungen_
DOKU_
v30_
e.doc
A&
D
ASCS3KM
These terms can best be illustrated using an example:
Fig. 6-1 Example of an association
The following applies for the example:
Association:
Data are exchanged between two S7-CPUs.End points:S7-CPUx is one end point of the association. S7-CPUy is the other endpoint.
Communication path:The communication path is described by the transmission path of the data.The transmission direction is not of importance:S7-CPUx with IE-CP S7-CPUy with IE-CP.
User interface:The BSEND / BRCV service is used.
Subnet IE
S7- CPUx
call SFB BSEND
CP
S7- CPUy
call SFB BRCV
CPAssociation
User interface
User interface
End point of the association
End point of the association
8/10/2019 21626985 Verbindungen DOKU v30 e
17/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004 17/83
CopyrightS
iem
ensAG2
005
Allrightsreserved
21626985_
verbindungen_
DOKU_
v30_
e.doc
A&
D
ASCS3KM
The table lists examples for associations in which the test object (S7-CPUx)is somehow involved:
In the following, these examples are used for explanations.
Table 6-1 Examples of associations (Ass.)
Communication pathAss.
End point In/out point End point
User interface Connection type
1 From S7-CPUy --- to S7-CPUx BSEND / BRCV S7 connection
2 From PG(engineering stat.)
--- to S7-CPUx Status variable PG connection
3 From OP(HMI device)
through S7-CPUx to FM Operator control and monitoring OP connection
6.1.2 End point
An association always has two end points. Usually, connections arerequired. Every module with communications capability can be end point ofan association.
Transfer to the calculator:
The test object (S7-CPUx) is en d point in the associations (Ass.) 1 and 2listed table 6-1.
Associations in which the test object is end point are also termed as end
point relations.
6.1.3 In/out point
It is not required that an association between two modules withcommunications capability is realized directly; it may also be realized via athird module.
If, in this third module, the association is supported by the operatingsystem, this is referred to as in/out point. This means that the user doesnot have to perform any programming for the association. In this case, themodule does not interpret the data but only forwards them.
Transfer to the calculator:
The test object (S7- CPUx) is in/out point in association 3 listed in table 6-1.
Associations in which the test object is in/out point are also termed asin/out point relations.
8/10/2019 21626985 Verbindungen DOKU v30 e
18/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004 18/83
CopyrightS
iem
ensAG2
005
Allrightsreserved
21626985_
verbindungen_
DOKU_
v30_
e.doc
A&
D
ASCS3KM
6.1.4 Subnet transition (routing)
In an S7-CPU, there are two types of in/out point relations:
without subnet transition
with subnet transition.
If an S7-CPU realizes an in/out point relation with subnet transition, this isreferred to as routing.
S7-CPU without subnet transit ion
Example: One end point is the MPI interface of a CPU315-2 DP, the otherend point is the K bus of the same S7-CPU.
Via the partyline, the MPI subnet and the K bus are connected physically;thus, a subnet transition does not take place.
S7-CPU with subnet transition (routing)
For subnet transitions (routing), connections are used on the S7-CPU. Thiswill be described in the following.
Subnet transi tion (rout ing) in S7-300 CPUs (without CPU 318):
S7-CPUs which support routing feature a pool of additional connections.This pool is used exclusively for subnet transitions.
Depending on the S7-CPU type, the number of additional connectionsdiffers.
CPU317 2-DP: 16 connections for routing CPU 317 PN/DP: 32 connections for routing
all other S7-CPUs: 8 connections for routing
2 of these connections are used per subnet transition.
Subnet transition (routing) in S7-400 CPUs (with CPU318):
These S7-CPUs do not feature an additional pool. The connectionsrequired for a subnet transition are taken from the pool of connections.
2 connections are used per subnet transition.
End point
S7-CPU
End pointSubnet X
End point
End pointSubnet YSubnet X
S7-CPU
8/10/2019 21626985 Verbindungen DOKU v30 e
19/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004 19/83
CopyrightS
iem
ensAG2
005
Allrightsreserved
21626985_
verbindungen_
DOKU_
v30_
e.doc
A&
D
ASCS3KM
6.2 Mapping the components
This chapter answers the following questions: Which information does the calculator require?
Which information does the calculator use internally for calculation?
6.2.1 User interface
You inform the calculator of the properties of the planned association viathe user interface. Only as much information is entered as is required tobasically answer the following questions:
Can the planned association be realized?
How many connections does this association use on the test object (S7-CPU)?
Regarding the selectivity of the entered information the consequence is thefact that the specifications of the entries have to be more or less precise.
Entering end point relations
It is required to fully specify the test object (S7-CPU) and the CP on thetest object. They are entered via your MLFB.
It is sufficient to roughly specify the communication partners. They areentered via classes.
Entering in/out point relations
It is required to fully specify the test object (S7-CPU). It is entered viayour MLFB.
It is sufficient to roughly specify communication partners and CPs onthe test object. They are entered via classes.
The following example illustrates the class formation.
8/10/2019 21626985 Verbindungen DOKU v30 e
20/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004 20/83
CopyrightS
iem
ensAG2
005
Allrightsreserved
21626985_
verbindungen_
DOKU_
v30_
e.doc
A&
D
ASCS3KM
Example for class formation
The real association below is to be given:
PB
315-2417-4
PUT
Fig. 6-2 Block diagram reality
This association is mapped in the connection calculator as follows:
PB
S7-300417-4
PUT
Fig. 6-3 Block diagram connection calculator
The communication partner 315-2is mapped on the S7-300class.
Test object Communication partnerAssociation
User interface
Medium
Reality
Test object Communication partnerAssociation
User interface
Medium
Calculator
8/10/2019 21626985 Verbindungen DOKU v30 e
21/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004 21/83
CopyrightS
iem
ensAG2
005
Allrightsreserved
21626985_
verbindungen_
DOKU_
v30_
e.doc
A&
D
ASCS3KM
6.2.2 Data base
Aside from a complex internal regulator the calculator uses an extensivedata base for the verification of the permissibility of an association and thecalculation of the connection balance.
This data base consists of:
Data of the S7-CPUs relevant for connections
Data of the CPs relevant for connections.
For each S7-CPU, data concerning the following topic areas are stored:
Module-specific data
Communication via CP
Interface-specific data
Resources for external interfaces (CP and IM).
For each CP, data concerning the following topic areas are stored:
TD/OP multiplexing
Supported communications services or connection types.
8/10/2019 21626985 Verbindungen DOKU v30 e
22/83
8/10/2019 21626985 Verbindungen DOKU v30 e
23/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004 23/83
CopyrightS
iem
ensAG2
005
Allrightsreserved
21626985_
verbindungen_
DOKU_
v30_
e.doc
A&
D
ASCS3KM
6.3.1 Test object (S7-CPU) is involved in an end point relation
6.3.1.1 Communication via integrated interface of the test object
The rules for mapping associations are explained using a number ofexamples.
Table 6-2 Mapping real associations (Ass.) in the calculator
Real associations Mapping in theconnection calculator
Case Functional model
Note: IDxsymbolizes a (configured / not configured) connection.
NumberofAss
Linesin thelogbook
Rule
1 1 1 1 association results in 1entry in the logbook
2 2 2
3 2 2
X associations result in xentries in the logbook.
From the view of the testobject, it is irrelevantwhether the associationsend in identical or differentpartners.
4 --- --- This case is notconsideredby the connectioncalculator.
Since either the PUT or theGET relation can be activeat a time, this case is to beconsidered as case 1.
PB
417-4
PUT
315-2
417-4
PUT
GET
315-2
ID2
ID1
417-4
PUT
AG_SEND
414-4 315-2
AG RCV
PB
ID2
ID1
417-4
PUT
GET
315-2
ID1
PB
PB
8/10/2019 21626985 Verbindungen DOKU v30 e
24/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004 24/83
CopyrightS
iem
ensAG2
005
Allrightsreserved
21626985_
verbindungen_
DOKU_
v30_
e.doc
A&
D
ASCS3KM
6.3.1.2 Communication via CP (on test object)
If associations in which the test object communicates via a CP are entered
in the calculator, it has to be known whether this CP has already been usedor not. Depending on the response the number of required connectionsmay differ.
Basically, the calculator is operated as described below:
You enter the association (with CP on the test object)
Subsequently, you try to apply the association into the logbook. Thefollowing query is displayed:
Is the CP already integrated into the logbook?
Depending on the response, case 1 or case 2 occur:
Case 1: Response is Yes .
That means that this CP is already included in an association of thelogbook.
A list with all CPs currently included in the logbook is displayed. Selectthe respective CP from this list.
The new association is applied into the logbook, operation is completed.
Case 2: Response is No .
That means that this CP is used in an association of the logbook for the firsttime.
The new association is applied into the logbook, operation is completed.
Selecting identical CPs
To provide greater clarity, the CP highlights the CPs in the logbook in color:
For all associations in which the communication is performed via the same
CPx, the CP names are shaded in the same colorx.
8/10/2019 21626985 Verbindungen DOKU v30 e
25/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004 25/83
CopyrightS
iem
ensAG2
005
Allrightsreserved
21626985_
verbindungen_
DOKU_
v30_
e.doc
A&
D
ASCS3KM
6.3.1.3 Communication to an engineering stat ion (PG)
Rules:
Exactly as many associations have to be entered in the logbook as areonline on the CPU:X window on PG -> x lines in the logbook
The rules for mapping associations are explained using a number ofexamples.
Table 6-3 Mapping real associations (Ass.) in the calculator
Real associations Mapping in theconnection calculator
Case Functional model Numb
erofAss
Linesin the
logbook
Rule
1 1 1 1 association results in 1entry in the logbook
2 2 2
3 2 2
X associations result in xentries in the logbook.
From the view of the testobject, it is irrelevantwhether the associationsend in identical or differentPGs.
6.3.1.4 Communication to an HMI device (OS)
Rules:
Exactly one association is viewed per HMI device.
The calculator does not view several associations per HMI device.
417-4
PB
417-4
417-4PG 1
Status
PB
PB
PG
Status
PG
Status 1
Status 2
PG 2
Status
8/10/2019 21626985 Verbindungen DOKU v30 e
26/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004 26/83
CopyrightS
iem
ensAG2
005
Allrightsreserved
21626985_
verbindungen_
DOKU_
v30_
e.doc
A&
D
ASCS3KM
6.3.2 Test object (S7-CPU) is involved in an in/out point relation
6.3.2.1 Communication to an engineering stat ion (PG)
Rules:
Exactly as many associations have to be entered in the logbook as areonline on the end point:X window on PG -> x lines in the logbook
The rules for mapping associations are explained using a number ofexamples.
Table 6-4 Mapping real associations (Ass.) in the calculator
Real associations Mapping in the
connection calculator
Case Functional model NumberofAss
Linesin thelogbook
Rule
1 1 1 1 association results in 1entry in the logbook
2 2 2
3 2 2
X associations result in xentries in the logbook.
From the view of the testobject, it is irrelevantwhether the associationsend in identical or differentPGs.
6.3.2.2 Communication to an HMI device (OS)
Rules:
Exactly one association is viewed per HMI device.
The calculator does not view several associations per HMI device.
417-4
PB
417-4
417-4PG
Status 2
PB
PB
PG
Status
PG
Status 1
Status 2
Status 1
End point 1
End point
End point
End point 2
8/10/2019 21626985 Verbindungen DOKU v30 e
27/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004
Copyright Siemens AG 2005 All rights reserved21626985_verbindungen_DOKU_v30_e.doc
A&D AS CS3 KM
7 Structure of the User Interface
This chapter answers the following question: How is the user interface set up?
7.1 Overview user interface
The user interface is used to enter the associations and to display the connection balance of the tes
Spreadsheets
The user interface is available in two spreadsheets of the Excel file:
Table 7-1 Spreadsheets
Spreadsheet Purpose
UI end point Calculation of the end point relations and display of the connection balance
UI in/out points Calculation of the in/out point relations and display of the connection balance
Sections
Each spreadsheet is divided into three sections:
Table 7-2 Sections
Section Purpose
Test object Selection of the test object (S7-CPU) and display of the connection balance identical fo
Association Calculation of the association different fo
Logbook Display of the calculated association different fo
8/10/2019 21626985 Verbindungen DOKU v30 e
28/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004
Copyright Siemens AG 2005 All rights reserved21626985_verbindungen_DOKU_v30_e.doc
A&D AS CS3 KM
Input fields / output fields
The sections contain input fields and output fields:
Table 7-3 Input and output fields
Field Purpose
Input fields You select alternatives offered by the calculator depending on the context.
Output fields Here, the calculator displays the results (information, connection balance).
Excel comments are available for some input and output fields. These comments are marked with aComments are available in the following cases:
The meaning of the field depends on the situation
The outputs include special characters.
The figure below shows a screenshot of the user interface for end points (spreadsheet UI end point
8/10/2019 21626985 Verbindungen DOKU v30 e
29/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004
Copyright Siemens AG 2005 All rights reserved21626985_verbindungen_DOKU_v30_e.doc
A&D AS CS3 KM
Screenshot of the user interface UI end points
Fig. 7-1 Overview user interface (example: UI end points)
Section: Testob ect
Section: Association
8/10/2019 21626985 Verbindungen DOKU v30 e
30/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004
Copyright Siemens AG 2005 All rights reserved21626985_verbindungen_DOKU_v30_e.doc
A&D AS CS3 KM
The input and output fields of the three sections will be briefly described in the following:
Section test object
Section associations
Section logbook.
The structure of the descriptions for the three sections is identical:
Screenshot of the section
Meaning of groups / fields.
Three tables with different levels of information are used to describe the groups / fields:
Table 7-4 Tables for the description of groups / fields
Name of the table Content
General description This table provides a general description of the groups or fields.
If there are further details, a link is entered in the Details column.
This link refers to the table Detailed description.
Detailed description This table provides a detailed description of the groups or fields.
If there is a defined range of values, a link (Vx) is entered in the Values column
This link refers to the table Range of values.
Range of values This table lists the exact range of values of the fields.
It is available in chapter 11.
8/10/2019 21626985 Verbindungen DOKU v30 e
31/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004
Copyright Siemens AG 2005 All rights reserved21626985_verbindungen_DOKU_v30_e.doc
A&D AS CS3 KM
7.2 Section test object
On the left, you select the S7-CPU (test object); on the right, the connection balance is displayed. Inconnections of the test object which are still available are displayed. The connection balance depenbeen entered and calculated so far (see section associations, chapter 7.3).
Meaning and content of the section test object are identical in both spreadsheets (UI end points, U
The section test object is divided into groups or fields. These groups or fields are circled in red in t
Screenshot of the section test object
Fig. 7-2 Section test object (identical for UI end points and UI in/out points)
Available connections of the S7-CPU (connection balance)Selecting S7-CPU (test object)
8/10/2019 21626985 Verbindungen DOKU v30 e
32/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004
Copyright Siemens AG 2005 All rights reserved21626985_verbindungen_DOKU_v30_e.doc
A&D AS CS3 KM
Meaning of groups / fields
Table 7-5 General description: Section test object (identical for UI end points and UI in/out points)
Group / Field Meaning Comment
Selection of the S7-CPU(test object)
Input:
Selection of the S7-CPU to be checked
---
Connections of the S7-CPUwhich are still available(connection balance)
Output:
Connections of the selected S7-CPU which are stillavailable
If no association has been entered so fnumber of possible associations is disp
Meaning of the colors in the output fields:
Green: Available connections
Yellow: Used connections
Red: More connections required than available
It can thus be read immediately whethedoes or does not provide sufficient con
8/10/2019 21626985 Verbindungen DOKU v30 e
33/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004
Copyright Siemens AG 2005 All rights reserved21626985_verbindungen_DOKU_v30_e.doc
A&D AS CS3 KM
Table 7-6 Detailed description: Section test object (identical for UI end points and UI in/out points)
Group / Field Field Name Values
(*1)
Meaning
Selection of the S7-CPU
CPU V1 Selection of the test object ---
Connections of theS7-CPU which arestill available(connectionbalance)
Total V2 Displays the connections which are still available.
The displayed value is calculated as follows:
Total number of connections S7-CPUMINUS
reserved PG connectionsMINUS
reserved OP connectionsMINUS
connections required for the association
The following reservations are
PG connections: 1
OP connections: 1
X/I connections: 0
CP V3 Displays the CP connections still available. Relevant only in case of:
S7-400 CPU
Routing V4 Displays the resources for S7 routing which are stillavailable.
Relevant only in case of:
S7-300 CPU without CPU 318
IF1
IF2
IF3
IF4
V5 Displays the connections of the integrated interfaceIFx of the test object which are still available.
The number of reserved PG/Oonce it is clear via which IFx iestablished.
Due to this, deviations betweecontent of the field Total ma
(*1): See table 11-1,column Vx. The exact value ranges are described in this table.
8/10/2019 21626985 Verbindungen DOKU v30 e
34/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004
Copyright Siemens AG 2005 All rights reserved21626985_verbindungen_DOKU_v30_e.doc
A&D AS CS3 KM
7.3 Section associations
Associations is divided into two sections:
In the upper part of this section (communication path) the association of the test object is entere
In the lower part of this section (block diagram) the calculator displays a block diagram of the ethis block diagram you can quickly verify whether the associations were entered correctly.
Depending on whether the test object (S7-CPU) is end point or in/out point of the association, use tin/out points to enter the association. The structure of the section associations is different in eachfollowing, the section will be described for both spreadsheets.
7.3.1 Test object (S7-CPU) is end point
The section associations is divided into groups or fields. These groups or fields are circled in red in
8/10/2019 21626985 Verbindungen DOKU v30 e
35/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004
Copyright Siemens AG 2005 All rights reserved21626985_verbindungen_DOKU_v30_e.doc
A&D AS CS3 KM
Screenshot of the section association for end points
Figure 7-3 UI end points: Section association for end points
Hardware parameters test object (S7-CPU) Hardware parameters partner Software parameters test o
Required connectionsComments
8/10/2019 21626985 Verbindungen DOKU v30 e
36/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004
Copyright Siemens AG 2005 All rights reserved21626985_verbindungen_DOKU_v30_e.doc
A&D AS CS3 KM
Meaning of groups / fields
Table 7-7 General description: Section association / UI end points
Group / Field Meaning Comment
Hardware parameterstest object (S7-CPU)
Input:Device perspective of the test object (end point)
Hardware parameterspartner
Input:Device perspective of the partner (end point)
Here, you enter the communication phardware (device) perspective:
From one end point to another end p
Software parameterstest object (S7-CPU)
Input:User interface from the test object perspective
Here, you select the user interface offrom the test object (S7-CPU) perspe
Comment Output:
Important notes on the association.
Notes that should be considered durapplication.
Required connections Output:
Number of required connections for the entered association.Block diagram Output:
Block diagram with a graphic representation of the association ondevice level.
You can check your entries one morefinally apply the association into the
8/10/2019 21626985 Verbindungen DOKU v30 e
37/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004
Copyright Siemens AG 2005 All rights reserved21626985_verbindungen_DOKU_v30_e.doc
A&D AS CS3 KM
Table 7-8 Detailed description: Section association / UI end points
Group / Field Field Name Values(*1)
Meaning
CPU --- Selected test object. The value is only displayed in this field.It was already entered in the section test object.
IF V20 Selection of the interface which is used by the association.
Medium V21 Selection of the subnet which is used by the association.
Hardwareparameterstest object (S7-CPU)
Slave V22 Defining whether the test object is slave on Profibus.
Class V23 Selection of the device class of the communication partner.
Sub-class V24 Selection of an additional classification of the communication partner.
Via V25 Selection via which component the communication partner is connected to th
Hardwareparameterspartner
Slave V26 Defining whether the communication partner is slave on Profibus.
Connection Type Application Example
V27 Selection of a communication alternative:
All connection types that are possible in this configuration from the test objecuser interface (SFB,) are displayed per connection type.
In case of several options one communication alternative has to be selected.
Softwareparameterstest object (S7-
CPU)
Client / Server V28 Indication whether the test object has to run as client or as server.
No selection required, the output is for information only.
Note Comment V29 Notes to be taken into consideration during realizing the association.
CR total V30 Display of the connections which are required for the association in the test oRequiredconnections CR CP V31 Display of the CP connections which are required in the test object for the as
Relevant only in case of: S7-400 CPU
(*1): See table 11-2, columnVx. The exact value ranges are described in this table.
8/10/2019 21626985 Verbindungen DOKU v30 e
38/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004
Copyright Siemens AG 2005 All rights reserved21626985_verbindungen_DOKU_v30_e.doc
A&D AS CS3 KM
7.3.2 Test object (S7-CPU) is in/out point
The section associations is divided into groups or fields. These groups or fields are circled in red in
Screenshot of the section association for in/out points
Figure 7-4 UI end points: Section association for in/out points
Hardware parameters test object (S7-CPU) Hardware parameters partner 2
Bloc
Hardware parameters partner 1
Required connections
8/10/2019 21626985 Verbindungen DOKU v30 e
39/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004
Copyright Siemens AG 2005 All rights reserved21626985_verbindungen_DOKU_v30_e.doc
A&D AS CS3 KM
Meaning of groups / fields
Table 7-9 General description: Section association / UI in/out points
Group / Field Meaning Comment
Hardware parameterspartner 1
Input:Device perspective of partner 1 (end point)
Hardware parameterstest object (S7-CPU)
Input:
Device perspective of the test object (in/out point)
Hardware parameterspartner 2
Input:Device perspective of partner 2 (end point)
Here, you enter the communicationhardware (device) perspective:From one end point to another endtest object (S7-CPU).
Software parameterspartner 1
Output:User interface from the perspective of partner 1.
Informs on the user interface of theperspective of partner 1.
Required connections Output:
Number of required connections.
Block diagram Output:
Block diagram with a graphic representation of the association ondevice level.
You can check your entries one mofinally apply the association into the
8/10/2019 21626985 Verbindungen DOKU v30 e
40/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004
Copyright Siemens AG 2005 All rights reserved21626985_verbindungen_DOKU_v30_e.doc
A&D AS CS3 KM
Table 7-10 Detailed description: Section associations / UI in/out point
Group / Field Field Name Values
(*1)
Bedeutung
Class V40 Selection of the device class of communication partner 1.
Sub-class V41 Selection of an additional classification of communication partner 1.
Hardwareparameterspartner 1
Via V42 Selection via which component communication partner 1 is connected to the
Medium V43 Selection of the subnet via which the association with partner 1 is realized.
IF V44 Selection of the interface via which the association with partner 1 is realized.
CPU --- Selected test object. The value is only displayed in this field. It was already e
IF V45 Selection of the interface via which the association with partner 2 will be real
Hardwareparameterstest object (S7-CPU)
Medium V46 Selection of the subnet via which the association with partner 2 is realized.
Class V47 Selection of the device class of communication partner 2.
Sub-class V48 Selection of an additional classification of communication partner 2.
Hardwareparameterspartner 2
Via V49 Selection via which component communication partner 2 is connected to the
Connection Type---Application Example
V50 Selection of a communication alternative:
All connection types which are possible in this configuration from the perspethe user interface (SFB,) are displayed per connection type. In case of sevhas to be selected.
Softwareparameterspartner 1
Client / Server V51 Indication whether partner 1 has to run as client or as server.
No selection required, the output is for information only.
CR total V52 Display of the connections which are required for the association in the test oRequiredconnections CR routing V53 Display of the routing resources which are required in the test object for the e
Relevant only in case of: S7-300 CPU without CPU 318
(*1): See table 11-3.The exact value ranges are described in this table.
8/10/2019 21626985 Verbindungen DOKU v30 e
41/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004
Copyright Siemens AG 2005 All rights reserved21626985_verbindungen_DOKU_v30_e.doc
A&D AS CS3 KM
7.4 Section logbook
The logbook contains all associations that were so far entered in the calculator. This gives you an oany time.
You find all information that has been entered on an association. The structure of the logbook is idecorresponding section for entering the association:
In the spreadsheet UI end points the logbook is structured as the section associations
In the spreadsheet UI in/out points the logbook is structured as the section associations
This means that there is a logbook for end points and a logbook for in/out points.
The section logbook is divided into groups or fields. These groups or fields are circled in red in the fexplains the meaning of the groups or fields.
8/10/2019 21626985 Verbindungen DOKU v30 e
42/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004
Copyright Siemens AG 2005 All rights reserved21626985_verbindungen_DOKU_v30_e.doc
A&D AS CS3 KM
Screenshot of the section logbook
Fig. 7-5 Section logbook (Example: UI end points)
Meaning of groups / fields
Table 7-11 General description: Section logbook
Group / Field Meaning Co
Association
Comment
Required connections
All entered associations are displayed together withtheir properties.
For the meaning of the fields, please refer to sectionassociations chapter 7.3.
There are two separate logbooks:
S7-CPU is end point of the associatio
S7-CPU is in/out point of the associat
Association
Required connections
Comments
8/10/2019 21626985 Verbindungen DOKU v30 e
43/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004
Copyright Siemens AG 2005 All rights reserved21626985_verbindungen_DOKU_v30_e.doc
A&D AS CS3 KM
8 Operation
This chapter answers the following questions: What is to be done?
What has to be observed during operation?
The following operating steps are described:
Creating a new configuration
Entering an association: S7-CPU (test object) is end point
Entering an association: S7-CPU (test object) is in/out point
Saving a session with the calculator
Changing / deleting a logbook entry.
8/10/2019 21626985 Verbindungen DOKU v30 e
44/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004
Copyright Siemens AG 2005 All rights reserved21626985_verbindungen_DOKU_v30_e.doc
A&D AS CS3 KM
8.1 Creating a new conf iguration
Table 8-1 Operating steps: Creating a new configuration
Step Instruction Comment
1 Open Excel file calculator.
Select spreadsheet UIIn/out Points or UI EndPoints.
Option 1:
Via selecting the spreadsheet in the Excel sheet overview:
UI In/out Points
UI End Points
You have two options:
Option 2:
Via the field InOut Points:
Checkmark set: Sheet UI In/out Points selected
Checkmark not set: Sheet UI End Points selected
2 Click the New button. This button has the same effect independent of the spreadsheet inwhich it is clicked.
All entries are deleted:
CPU type, associations,
!Warning:
The New button reinitializes all sections. The data which have been entered during the current session are d
If you want to save the data of the old session, copy the data into a separate spreadsheet.
You can then save or print this spreadsheet (see chapter 8.3).
8/10/2019 21626985 Verbindungen DOKU v30 e
45/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004
Copyright Siemens AG 2005 All rights reserved21626985_verbindungen_DOKU_v30_e.doc
A&D AS CS3 KM
8.2 Entering associations
Via an interactive user interface, you enter the planned associations in the calculator by clicking susection provides important information on how to operate the calculator.
Order of input
The input fields always have to be filled out from left to right. This is required to ensure the correct mHowever, a communication direction is not defined during this process. If the communication directithe connections, this is displayed by the calculator (see field Client / Server and Comment).
User guidance
During all entries you are guided by the calculator:
You select from a range of options suggested by the calculator.
Each entry controls the options suggested for the following entries. This means that the options aby the calculator change dynamically depending on the previous input.
If there is only one selection option the calculator automatically completes the input field.
The calculator only suggests entries which can actually be realized.
The calculator only records as many entries as are required for an exact calculation of the connethe feasibility.
Changing data already entered into fields
If data which have already been entered into a field are changed this usually affects the entries thatfields. Each time changes are made the calculator retrospectively checks the permissibility of all othentries are deleted and have to be newly selected.
8/10/2019 21626985 Verbindungen DOKU v30 e
46/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004
Copyright Siemens AG 2005 All rights reserved21626985_verbindungen_DOKU_v30_e.doc
A&D AS CS3 KM
Changing the S7-CPU (test object)
Changing the S7-CPU is only possible if the change is made within the same family (S7-300, S7-40associations available in the logbook.
If this is not the case, a message is displayed indicating the logbook entry which is not supported.
8.2.1 S7-CPU is end point
An end point relation is entered as follows:
Step A:
First, enter the device parameters for the association:
Hardware parameters of the test object (end point)
Hardware parameters of the partner (end point)
Step B:
This results in the permissible alternatives for the user interface of the test object.These alternatives are suggested by the calculator. You select one of these alternatives.
Software parameters of the test object
8/10/2019 21626985 Verbindungen DOKU v30 e
47/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004
Copyright Siemens AG 2005 All rights reserved21626985_verbindungen_DOKU_v30_e.doc
A&D AS CS3 KM
Table 8-2 Operating steps: S7-CPU is end point of an association
Step Instruction Comment
1 Select the UI End Pointssheet.
Make sure that InOutPoints is not checked.
Using the field InOut Points you decide whether you want to enter anassociation for in/out points or for end points.
2 Enter the hardwareparameters of the test object(S7-CPU):
CPU type
Interface
Media
Slave yes/no
The hardware parameters describe the end point of the association in thetest object from the device perspective.
Example in the picture:
Test object is a CPU315-2DP
The integrated interface 1 is used
Interface 1 is used as MPI
Test object is not a slave
3 Enter the hardwareparameters of the partner(Partner2):
Class
Sub-class
Via
Slave yes/no
The hardware parameters describe the end point of the association in thepartner from the device perspective.
Example in the picture:
An engineering station (ES) is the communication partner.
In case of an ES no further hardware parameters are required.
8/10/2019 21626985 Verbindungen DOKU v30 e
48/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004
Copyright Siemens AG 2005 All rights reserved21626985_verbindungen_DOKU_v30_e.doc
A&D AS CS3 KM
Step Instruction Comment
4 Enter the software
parameters of the test object(S7-CPU)
After the hardware parameters of the two end points were entered in step
2 and step 3, the calculator displays the permissible software parametersof the test object. The software parameters describe the end point of theassociation in the test object from the user interface perspective. Onevariant has to be selected from the offered alternatives.
Example in the picture:
Connection Type: PG
Application Example: Going online
5 Verifying the association The block diagram is displayed automatically. It visualizes the association.
6 Applying the association intothe logbook
The association is applied into the logbook and the connection balance ofthe test object is updated.
Note: In case of S7-CPUs in which the first integrated interface can beused as MPI or Profibus interface, the input area is reinitialized as soon asit is defined how the first integrated interface will be used. This is definedonce the data are applied into the logbook.
8/10/2019 21626985 Verbindungen DOKU v30 e
49/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004
Copyright Siemens AG 2005 All rights reserved21626985_verbindungen_DOKU_v30_e.doc
A&D AS CS3 KM
8.2.2 S7-CPU is in/out point
An in/out point relation is entered as follows:
Step A:
First, enter the device parameters for the association:
Hardware parameters of partner 1 (end point)
Hardware parameters of the test object (in/out point)
Hardware parameters of partner 2 (end point)
Step B:
This results in the permissible alternatives for the user interface of partner 1.These alternatives are displayed by the calculator. This is an output.
8/10/2019 21626985 Verbindungen DOKU v30 e
50/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004
Copyright Siemens AG 2005 All rights reserved21626985_verbindungen_DOKU_v30_e.doc
A&D AS CS3 KM
Table 8-3 Operating steps: S7-CPU is in/out point of an association
Step Instruction Comment
1 Select the UI In/outPoints sheet.
Make sure that InOutPoints is checked.
Using the field InOut Points you decide whether you want toenter an association for in/out points or for end points.
2 Enter the hardwareparameters of the firstcommunication partner:
Class
Sub-class
Via
The hardware parameters describe one of the end points ofthe association.
Example in the picture:
Partner 1 is an engineering station
3 Enter the hardwareparameters of the testobject:
Medium + interfaceto partner 1
CPU type
Medium + interfaceto partner 2
The hardware parameters describe the in/out point of theassociation.
Example in the picture:
Connection to partner 1 via MPI using the integratedinterface 1
Test object is a CPU315-2DP
Connection to partner 2 via the backplane bus
4 Enter the hardwareparameters of the secondcommunication partner:
Class
Sub-class
Via
The hardware parameters describe the other end point of theassociation.
The second communication partner represents the target (orthe source) for the first communication partner.
Example in the picture:
Partner 2 is an FM
Connection to test object via backplane bus
8/10/2019 21626985 Verbindungen DOKU v30 e
51/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004
Copyright Siemens AG 2005 All rights reserved21626985_verbindungen_DOKU_v30_e.doc
A&D AS CS3 KM
Step Instruction Comment
5 Enter the software
parameters of the firstcommunication partner
After the hardware parameters of the two end points and the
in/out point were entered in steps 2,3 and 4, the calculatordisplays the software parameters of partner 1. The softwareparameters describe the end point of the association inpartner 1 from the user interface perspective.
6 Verifying the association The block diagram is displayed automatically. It visualizes theassociation.
7 Applying the associationinto the logbook
The association is applied into the logbook and theconnection balance of the test object is updated.
Note: In case of S7-CPUs in which the first integratedinterface can be used as MPI or Profibus interface, the inputarea is reinitialized as soon as it is defined how the first
integrated interface will be used. This is defined once the dataare applied into the logbook.
8/10/2019 21626985 Verbindungen DOKU v30 e
52/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004
Copyright Siemens AG 2005 All rights reserved21626985_verbindungen_DOKU_v30_e.doc
A&D AS CS3 KM
8.3 Saving a session with the calculator
In the current version it is notpossible to save a session.
In order to be able to access the entered associations at any time , you should proceed as follows:
Open a new Excel file
Copy the logbook lines of the end point relations into the Excel file
Copy the logbook lines of the in/out point relations into the Excel file
Save the created Excel file.
Note If you save the Excel file connection calculator, inconsistent status in the Excel macros may occur causin
would then be required to newly download the connection calculator from the intranet page of SEC.
Due to the fact that the option of saving already entered associations is not available, all associations to besession.
No internal information is saved when using the procedure described above, i.e. copying the logbook files.
8/10/2019 21626985 Verbindungen DOKU v30 e
53/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004
Copyright Siemens AG 2005 All rights reserved21626985_verbindungen_DOKU_v30_e.doc
A&D AS CS3 KM
8.4 Changing / deleting a logbook entry
The logbook may only be changed via the following buttons:
Apply button
Delete communication association x button.
In order to change the properties of an association already available in the logbook, proceed as follo
1. Enter the association in the section associations
2. Delete the association (Delete communication association x button, see table below)
3. Apply the association (Apply button).
Table 8-4 Operating steps: Deleting a logbook entry
Step Instruction Comment
1 Enter the number of the association you want toremove from the logbook.
-
2 Click the Delete communication association xbutton
Both logbook and resource section are updated.
!Warning:You must never edit the entries in the logbook (lines of the logbook) directly!
Editing results in inconsistencies between internal data structures and logbook entries so that the function of tlonger be guaranteed! It is then only possible to set the calculator to a consistent status by clicking New. All previously will subsequently be deleted!
8/10/2019 21626985 Verbindungen DOKU v30 e
54/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004
Copyright Siemens AG 2005 All rights reserved21626985_verbindungen_DOKU_v30_e.doc
A&D AS CS3 KM
9 Appl ication Example
This chapter answers the following questions:
How do I use the calculator in a real application example?
The application example is processed in the following steps:
Clarifying the task (without using the calculator):
Creating the block diagram with all planned associations
Solving the task (using the calculator):
Entering the end point relation
Entering an in/out point relation
Evaluating the results.
8/10/2019 21626985 Verbindungen DOKU v30 e
55/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004
Copyright Siemens AG 2005 All rights reserved21626985_verbindungen_DOKU_v30_e.doc
A&D AS CS3 KM
9.1 Task
In order to clarify the task, it is useful to create a block diagram and enter the planned associations:
Fig. 9-1 Block diagram application example
In the example, 3 associations for the test object CPU 315-2 DP are planned:
Test object is in/out point: OS communicates with ET200.Test object is end point: Test object communicates with S7-CPU.Test object is in/out point: Programming device communicates with ET200.
CPU315-
2
CP
343-1
IT
FM
354
FM
354
FM
354
FM
354
Profibus
ET 200 ET 200 ET 200
CPU315-
2
CP
343-1
TCP
F
3
ET 20
...to packaPackaging machine 1 (PM 1)...
Telephonenetwork
Industrial EthernetTest obj.!
8/10/2019 21626985 Verbindungen DOKU v30 e
56/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004
Copyright Siemens AG 2005 All rights reserved21626985_verbindungen_DOKU_v30_e.doc
A&D AS CS3 KM
9.2 Entering an end point relation
The block diagram indicates that the S7-CPU is end point of an association:
Test object communicates with S7-CPU (blue association)
This association is now entered in the connection calculator.
Table 9-1 Entering the association: S7-CPU is end point
Step Instruction Explanation User interface of th
1 Open the end pointinterface.
-
2 Select the testobject
In this case a CPU3152DP The interface sets the selected S7-CPU and displays
3 Select the interface The connection is realized via a CP. When selecting CP, the subsequent field Medium
4 Select the medium The subnet is Industrial Ethernet. The parameters of the test object are now complete.The CP cannot be parameterized as slave since the s
8/10/2019 21626985 Verbindungen DOKU v30 e
57/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004
Copyright Siemens AG 2005 All rights reserved21626985_verbindungen_DOKU_v30_e.doc
A&D AS CS3 KM
Step Instruction Explanation User interface of th
5 Select the partners
class
The partner is an S7-CPU.
6 Select the partnerssub-class.
The partner is anS7-300 type (CPU315-2DP)
Selecting 300-CPU automatically determines all par
An S7-300 CPU (except for CPU 317) can only be copossible to configure the partner as slave on this sub
7 Select theconnection type ofthe test object
This parameter is not displayed in the blockdiagram.
The selection field displays the possible typesand also lists examples of possible blocks.
For the present case we assume that an S7connection is to be realized with the blocksBSEND/BRCV.
The remaining fields are automatically completed in t
There are no further restrictions to be observed. The required connections.
8 Check theassociation usingthe block diagram
-
It can be seen that the above block diagram shows a diagram of the application example.
8/10/2019 21626985 Verbindungen DOKU v30 e
58/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004
Copyright Siemens AG 2005 All rights reserved21626985_verbindungen_DOKU_v30_e.doc
A&D AS CS3 KM
Step Instruction Explanation User interface of th
9 Apply the data into
the logbook
- By applying the association, a new line is added to th
The display of the Available Resources is updated:
The number of connection resources has decreased
As the test object was connected via a CP all connec
8/10/2019 21626985 Verbindungen DOKU v30 e
59/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004
Copyright Siemens AG 2005 All rights reserved21626985_verbindungen_DOKU_v30_e.doc
A&D AS CS3 KM
9.3 Entering an in/out point relation
The block diagram indicates that the S7-CPU is in/out point of two associations:
Programming device for ET200, via the test object (green association)
OS for ET200, via the test object (brown association)
The green association is now entered in the connection calculator.
Table 9-2 Entering the association: S7-CPU is in/out point
Step Instruction Explanation User interface of the c
1 Open the in/outpoint interface
-
Since the test object has already been entered as end point, tSpecifics of the Test Object:
2 Enter the classofcommunicationpartner 1
The PG is used to realize an onlinefunctionality. It must therefore be enteredas class engineering system (ES)
Since no further specifications are necessary for the ES partpartner 1 are automatically entered.
The field Medium of the test object now has to be completed
Note:The fact that the PG (ES) is connected to Industrial Ethernet vcalculation of the connections .
8/10/2019 21626985 Verbindungen DOKU v30 e
60/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004
Copyright Siemens AG 2005 All rights reserved21626985_verbindungen_DOKU_v30_e.doc
A&D AS CS3 KM
Step Instruction Explanation User interface of the c
3 Enter the
medium frompartner 1 to testobject
Industrial Ethernet is selected as subnet.
Warning:The medium refers to the test object! Thismeans that the medium to which the testobject is connected has to be entered.
The medium IE simultaneously determines the interface of th
integrated IE interface. The connection to the subnet has to beNote:In the case of in/out point connections, the CP is notspecified
The entry 1st
integrated interface requires MPI as mediumHowever, this would be wrong.
4 Enter the 2nd
interface viawhich theassociation isrealized
The block diagram indicates that anintegrated interface is used.
Viewing the subnet it becomes clear whichinterface is used.
As Profibus is selected, only the 2nd
integrated interface of the test object canbe used since the 1
stinterface merely
supports the MPI network.
The entry 2nd
integrated interface requires PB (Profibus) as
This is correct.
8/10/2019 21626985 Verbindungen DOKU v30 e
61/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004
Copyright Siemens AG 2005 All rights reserved21626985_verbindungen_DOKU_v30_e.doc
A&D AS CS3 KM
Step Instruction Explanation User interface of the c
5 Enter the class
of partner 2
Only an ET200 is entered in the block
diagram.The tool does not differentiate between anintelligent slave or a standard slave.
If it is assumed that the ET200 is anET200M module it is also possible that theend point is an FM. The tool does notdifferentiate between an FM or an SM asthis is irrelevant for the resources.
In this case we assume that partner 2 isan ET200B module. CPU has to beentered.
The field Sub-class does not contain any further specificatio
automatically.
6 Entercomponent via
which partner 2is connected tothe subnet
In step 5 it was assumed that an ET200Bmodule is used.
Accordingly, an integrated interface hasto be entered.
The fields Connection Type and Client / Server do not cont
7 Check theblock diagram
-
A section of the block diagram of the application example can
8/10/2019 21626985 Verbindungen DOKU v30 e
62/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004
Copyright Siemens AG 2005 All rights reserved21626985_verbindungen_DOKU_v30_e.doc
A&D AS CS3 KM
Step Instruction Explanation User interface of the c
8 Apply the data
into the logbook
- By applying the association, a new line is added to the
logbook:
The display of the Available Resources is updated:
As routing connections were required the number of resource2.
In order to enter the brown association with the operator station, proceed as described above:
Enter HMI instead of ES.
8/10/2019 21626985 Verbindungen DOKU v30 e
63/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004
Copyright Siemens AG 2005 All rights reserved21626985_verbindungen_DOKU_v30_e.doc
A&D AS CS3 KM
9.4 Results
Logbook in/out points
Fig. 9-2 Logbook for in/out points
Logbook end points
Fig. 9-3 Logbook for end points
End result
Fig. 9-4 Overview after entering all associations
Results of the calculation:
The selected S7-CPU can be used to realize all planned associations since they could be entere
The selected S7-CPU provides sufficient connections since this is indicated by the connection ba
8/10/2019 21626985 Verbindungen DOKU v30 e
64/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004 64/83
CopyrightS
iem
ensAG2
005
Allrightsreserved
21626985_
verbindungen_
DOKU_
v30_
e.doc
A&
D
ASCS3KM
10 Background Information
This chapter provides background information which is useful to understand
the correlations in the environment of the calculator.Important basics and correlations with regard to the topic connections arebriefly described:
This chapter answers the following questions:
Which connection types exist?
What are unilateral or bilateral connections?
How are connections assigned?
What is multiplexing of connections?
10.1 Connection types
This chapter briefly characterizes the different connection types.
Connections differ in the following features:
Possible functionality
Type of connection establishment Necessity of configuration
Possible subnet
Field of application (users perspective).
8/10/2019 21626985 Verbindungen DOKU v30 e
65/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004 65/83
CopyrightS
iem
ensAG2
005
Allrightsreserved
21626985_
verbindungen_
DOKU_
v30_
e.doc
A&
D
ASCS3KM
Table 10-1 Connection types and their effect
Connectiontype
Functionality Connection buildup Confi gur atio n Subnet Typical application(example)
PG Test, startup,diagnostics By the PG at themoment when theservice is used.
Possible MPI, PB, IE User goes online with PG(status)
OP Operatorcontrol andmonitoring
By the OP duringstartup independent ofwhether the service isused.
Possible MPI, PB, IE HMI(display of pictures)
X/I Process dataexchange
Resources areassigned when called,connection cleardowndepends on theparameter.
No K bus, DP(internal),MPI(external)
Call from user program(X-PUT/X-GET, I-PUT/I-GET)
S7 Process dataexchange
By the operatingsystem of the S7-CPUas soon as system dataare loaded.
Yes MPI, PB, IE Call from user program(BSEND/BRCV, PUT/GET)
ISOTransport
Process dataexchange
By the CP if Send /Receive with long dataor FETCH/WRITE isused.
Yes IE Call from user program(AG_SEND/AG_RECV,FETCH/WRITE)
ISO-on-TCP Process dataexchange
By the CP if Send /Receive with long dataor FETCH/WRITE isused.
Yes IE Call from user program(AG_SEND/AG_RECV,FETCH/WRITE)
TCP Process dataexchange
By the CP if Send /Receive with long dataor FETCH/WRITE isused.
Yes IE Call from user program(AG_SEND/AG_RECV,FETCH/WRITE)
UDP Process dataexchange
By the CP Yes IE Call from user program(AG_SEND/AG_RECV)
FDL Process dataexchange By the CP Yes PB Call from user program(AG_SEND/AG_RECV)
PtP Process dataexchange
When the system dataare received
Yes PtP Call from user program(PRINT)
FMS Process dataexchange
By the CP Yes PB Call from user program(READ /WRITE)
MAP Process dataexchange
By the CP Yes IE Call from user program(READ /WRITE)
Note: Global data communication and DP communication (I/O) do notrequire any connections.
Below you will find a brief list of the most important features of theconnection types:
PG connection
PG or PC (with engineering functionality) establish the connection andare thus active end point of the connection.
The connection buildup is triggered by the user by selecting an onlinefunctionality (e.g. status block, accessible stations, status variable) inSTEP 7. Each online function requires an individual connection.
The connection cleardown is initiated by canceling the online function.
8/10/2019 21626985 Verbindungen DOKU v30 e
66/83
Connection Calculator
Rev. V3.0 - Endgltig 25.06.2004 66/83
CopyrightS
iem
ensAG2
005
Allrightsreserved
21626985_
verbindungen_
DOKU_
v30_