FetchWrite_PNCPU_b.pdf
(
1959 KB
)
Pobierz
Cover
FETCH/WRITE service in an S7-300/400
CPU via the integrated Ethernet interface
Fetch/Write function block FB210/220
Application description
y
October 2009
Applikationen & Tools
Answers for industry.
Warranty, liability and support
Warranty, liability and support
Note
The application examples are not binding and do not claim to be complete
regarding the circuits shown, equipping and any eventuality. The application
examples do not represent customer-specific solutions. They are only intended
to provide support for typical applications. You are responsible in ensuring that
the described products are correctly used. These application examples do not
relieve you of the responsibility in safely and professionally using, installing,
operating and servicing equipment. When using these application examples, you
recognize that we cannot be made liable for any damage/claims beyond the
liability clause described. We reserve the right to make changes to these
application examples at any time without prior notice. If there are any deviations
between the recommendations provided in these application examples and other
Siemens publications - e.g. Catalogs - then the contents of the other documents
have priority.
We do not accept any liability for the information contained in this document.
Any claims against us - based on whatever legal reason - resulting from the use of
the examples, information, programs, engineering and performance data etc.,
described in this application example shall be excluded. Such an exclusion shall
not apply in the case of mandatory liability, e.g. under the German Product Liability
Act (“Produkthaftungsgesetz”), in case of intent, gross negligence, or injury of life,
body or health, guarantee for the quality of a product, fraudulent concealment of a
deficiency or breach of a condition which goes to the root of the contract
(“wesentliche Vertragspflichten”). However, claims arising from a breach of a
condition which goes to the root of the contract shall be limited to the foreseeable
damage which is intrinsic to the contract, unless caused by intent or gross
negligence or based on mandatory liability for injury of life, body or health The
above provisions does not imply a change in the burden of proof to your detriment.
It is not permissible to transfer or copy these application examples or excerpts of
them without first having prior authorization from Siemens Industry Sector in
writing.
For questions about this document please use the following e-mail address:
online-support.automation@siemens.com
Fetch/Write function block FB210/220
V2.1, Beitrags-ID: 23592043
2
Foreword
Foreword
Objective of the application
In today’s automation technology old systems are upgraded step by step from
SIMATIC S5 to SIMATIC S7. However, the interfaces for the data exchange on the
peer (for example, existing HMI systems) are to be kept. The FETCH/WRITE
service is still very frequently used for the communication via Industrial Ethernet.
The communication processors (CP343-1/CP443-1) of SIMATIC S7 support the
services FETCH and WRITE for data exchange on the following protocols:
•
TCP
•
ISO-on-TCP
•
ISO transport
However, CPUs with integrated Industrial Ethernet interface are increasingly used
in S7-300 and S7-400 stations to connect these to the Industrial Ethernet network
and to exchange data with other nodes in the network. The FETCH/WRITE
services have not been implemented here.
This application shows how any FETCH/WRITE client can access the process data
via the integrated Industrial Ethernet interface of an CPU of the SIMATIC S7.
Main contents of this application
The following main points are discussed in this application:
•
Implementing the FETCH and WRITE services in a SIMATIC S7 CPU with
integrated Industrial Ethernet interface for the open communication via
Industrial Ethernet with TCP and ISO-on-TCP protocol.
•
Configuring the communication connections using the FETCH and WRITE
services for the SIMATIC NET OPC server in the PC station.
Delimitation
This application does not include a description of how the FETCH and WRITE
services are used with the SIMATIC S7 Industrial Ethernet CPs via S5-compatible
communication connections.
Basic knowledge of this topic is required.
Fetch/Write function block FB210/220
V2.1, Item-ID: 23592043
3
Foreword
Structure of the document
The documentation of this application is divided into the following main parts.
Part
Description
Application Description
You are provided with a general overview of the
contents. You are informed on the used components
(standard hardware and software components and the
specially created user software).
Principles of Operation and
Program Structures
This part describes the detailed functional sequences of
the involved hardware and software components, the
solution structures and – where useful – the specific
implementation of this application. It is only required to
read this part if you want to familiarize with the interaction
of the solution components to use these components e.g.
as a basis for own developments.
Structure, Configuration and
Operation of the Application
This part takes you step by step through structure,
important configuration steps, startup and operation of
the application.
Appendix
This part of the documentation includes further
information, e.g. bibliographic references, glossaries, etc.
Industry Automation und Drives Technologies Service & Support Portal
This entry is from the internet service portal of Siemens AG, Industry Automation
and Drives Technologies. Clicking the link below directly displays the download
page of this document.
http://support.automation.siemens.com/WW/view/en/<EntryID>
Fetch/Write function block FB210/220
V2.1, Beitrags-ID: 23592043
4
Table of Contents
Table of Contents
Application Description...
............................................................................................
7
1
Automation Task ...
...............................................................................
7
1.1
Overview ...
...........................................................................................
7
1.2
Description of the automation problem ...
.............................................
8
1.3
Requirements ...
....................................................................................
8
Requirements to the PC station ..
.........................................................
8
2
Automation Solution ...
..........................................................................
9
2.1
Overview of the overall solution ...
........................................................
9
2.2
Automation solution....
........................................................................
10
2.3
Required hardware and software components ....
..............................
11
2.4
Performance Data ....
..........................................................................
12
2.5
Alternative solutions ....
.......................................................................
12
2.5.1
Hardware alternatives in the S7 station ....
.........................................
12
2.5.2
Hardware alternatives in the PC station....
.........................................
13
2.5.3
Software alternatives....
......................................................................
13
Principles of Operation and Program Structures ....
...............................................
14
3
FETCH/WRITE communication services ....
.......................................
14
3.1
Principle of the communication services FETCH and WRITE ....
.......
14
3.2
Structure FETCH/WRITE Header telegram ....
...................................
16
3.2.1
Write job ....
.........................................................................................
16
Request telegram ...
............................................................................
16
Response telegram ...
.........................................................................
16
3.2.2
FETCH job....
......................................................................................
18
Request telegram ...
............................................................................
18
Response telegram ...
.........................................................................
18
3.2.3
Length of the Source / Destination data field ....
.................................
19
3.2.4
Start address ....
..................................................................................
20
3.2.5
Error number response telegram ....
...................................................
20
4
Structure and Flow of the S7 Program of the Application ....
..............
21
4.1
Overview of the S7 program structure ....
...........................................
21
4.2
Explanations of the S7 program structure of the application ....
.........
21
4.3
Execution of FB210 “FW_TCP”....
......................................................
23
Overview23
Description ...
......................................................................................
23
Input and output parameters ...
...........................................................
26
4.4
Execution of FB220 “FW_IOT”....
.......................................................
28
Overview28
Description ...
......................................................................................
28
Input and output parameters ...
...........................................................
31
5
Explanation of the Configuration ....
....................................................
33
5.1
Programming the communication connections in the controller ....
....
33
5.1.1
Creating the connection parameters for the TCP connections ....
......
34
Installing the Open Communication Wizard ...
....................................
34
Starting the Open Communication Wizard...
......................................
34
Selecting the connection type ...
.........................................................
36
Configuring the communication partners ...
........................................
36
Defining the properties of the communication partners ...
..................
37
Defining the ports of the TCP connections...
......................................
38
Defining the name of the data structure ...
..........................................
39
5.1.2
Creating the connection parameters for the ISO-on-TCP
connections ....
....................................................................................
41
Installing the Open Communication Wizard ...
....................................
41
Fetch/Write function block FB210/220
V2.1, Item-ID: 23592043
5
Plik z chomika:
Buziol_1969
Inne pliki z tego folderu:
FetchWrite_PNCPU_a.pdf
(1952 KB)
FetchWrite_PNCPU_b.pdf
(1959 KB)
Inne foldery tego chomika:
CP PtP-Param
FM Configuration Package
iMap - STEP 7 Addon
OC Wizard
PROFIenergy
Zgłoś jeśli
naruszono regulamin