Sunteți pe pagina 1din 26

Application for Communication

OPC Communication via the SEND/RECEIVE


Protocol with a Visual Basic .NET OPC Client

Demonstration
Warranty, Liability and Support

OPC with SEND/RECEIVE Protocol, Entry-ID: 21523291

Warranty, Liability and Support

We accept no liability for 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 document 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 do
not imply a change in the burden of proof to your detriment.
21523291_OPC_SR_Demonstration_DOKU_v10_e.doc
Copyright © Siemens AG 2005 All rights reserved

The Application Examples are not binding and do not claim to be complete
regarding the circuits shown, equipping and any eventuality. They do not
represent customer-specific solutions. They are only intended to provide
support for typical applications. You are responsible for ensuring that the
described products are used correctly. These Application Examples do not
relieve you of the responsibility in safely and professionally using, installing,
operating and servicing equipment. By using this application example you
accept that Siemens is not liable for any damages except for those
specified in the above liability clause. 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 this
application example and other Siemens publications – e.g. Catalogs – the
contents of the other documents have priority.

Copyright© 2005 Siemens A&D. It is not permissible to transfer or


copy these Application Examples or excerpts of them without first
having prior authorization from Siemens A&D in writing.

For questions about this document please use the following e-mail address:

mailto:csweb@ad.siemens.de

V1.0 02.05.05 2/26


Foreword

OPC with SEND/RECEIVE Protocol, Entry-ID: 21523291

Foreword
Objectives of the application
This example application discusses the application of the SEND/RECEIVE
protocol with the SIMATIC NET OPC server. The OPC server
communicates with the controller via the block and variable services of the
SEND/RECEIVE protocol.
It demonstrates how an OPC client, which is tailored to individual
requirements, is programmed in the programming language Visual Basic
.NET. The configuration of the PC station for using the SIMATIC NET OPC
server with the SEND/RECEIVE protocol and Industrial Ethernet is also
explained. This enables transferring structured data via the OPC interface.

Main contents of this application


The following main points are discussed in this application:
• Dealing with the communication services of the SEND/RECEIVE
21523291_OPC_SR_Demonstration_DOKU_v10_e.doc
Copyright © Siemens AG 2005 All rights reserved

protocol with regards to program technology:


– Block services (AG_SEND / AG_RECEIVE)
– Variable services (FETCH / WRITE)
for enabling exchange of larger data volumes between PC and mixed
automation systems (i.e. SIMATIC S5 and SIMATICT S7).
• Configuring the SEND/RECEIVE protocol when using Industrial
Ethernet
• Generating an OPC client with graphical user interface
• Demonstrating the handling of the Data Access interface of the OPC
server via the Custom Interface, and the integrating process into .NET-
Framework using the OPC DA RC-Wrapper
• Displaying the procedure for implementing an additional
acknowledgement mechanism (additional level 7 protocol).

V1.0 02.05.05 3/26


Foreword

OPC with SEND/RECEIVE Protocol, Entry-ID: 21523291

Structure of the document


The documentation of this application is divided into the following main
parts:
• Introduction
• Extension
• Demonstration
Additionally, the STEP7 code and the Visual Basic .NET code are
available.

This third document, the Demonstration part, is aimed at persons who


want to have a step-by-step instruction.
Part Description
Introduction Provides a general overview of the contents. You will
21523291_OPC_SR_Demonstration_DOKU_v10_e.doc

learn about the components used (standard


Copyright © Siemens AG 2005 All rights reserved

Application Description
and Function Principles hardware and software components and the specially
created software).
Extension Discusses the detailed function processes of the
Function Principles in involved hardware and software components, the
detail and Program solution structures, and where sensible the concrete
Structure implementation of this application.
This part is necessary if you want to learn about the
interaction of the solution components, for example in
order to use them as the basis for own development.
Demonstration This part leads you step by step through the
Structure, Configuration structure, important configuration steps,
and Operation of the commissioning and operation of the application.
Application

An additional component available is the S7 program code.


Part Description
The S7 program code includes the code and a user
S7 program code interface which may also be used for demonstration
purposes.
Contains the program files of the OPC client and the
Visual Basic .NET Code
Visual Studio .NET project.

Reference for Automation and Drives Service & Support


This entry originates from the internet application portal of the A&D Service
and Support. The following link takes you directly to the download page of
this document.
http://support.automation.siemens.com/WW/view/en/21523291

V1.0 02.05.05 4/26


Foreword

OPC with SEND/RECEIVE Protocol, Entry-ID: 21523291

Table of Contents
Table of Contents ......................................................................................................... 5
Introduction................................................................................................................... 6
1 Document on Hand......................................................................................... 6
Setup and Operation of the Application ..................................................................... 7
2 Installation and Commissioning ................................................................... 7
2.1 Installation of hardware and software ............................................................... 7
2.2 Installation of the application software .............................................................. 8
2.3 Configuration of the automation stations .......................................................... 9
2.3.1 Setting the IP addresses................................................................................... 9
2.3.2 Installation of the STEP 7 project ................................................................... 12
2.3.3 Importing the XDB file to the Station Configuration Editor .............................. 14
2.4 Configurations of the application .................................................................... 15
21523291_OPC_SR_Demonstration_DOKU_v10_e.doc
Copyright © Siemens AG 2005 All rights reserved

2.4.1 Configuring the OPC server in HWConfig ...................................................... 15


2.4.2 Configuring the connection with the OPC server in NetPro ............................ 16
2.4.3 Check the settings .......................................................................................... 19
3 Operating the Application............................................................................ 21
Appendix and List of Further Literature ................................................................... 24
4 Glossary ........................................................................................................ 24
5 Literature ....................................................................................................... 26
5.1 Bibliographic References................................................................................ 26
5.2 Internet links ................................................................................................... 26

V1.0 02.05.05 5/26


Introduction
Document on Hand

OPC with SEND/RECEIVE Protocol, Entry-ID: 21523291

Introduction

1 Document on Hand
This document is the setup and operating instruction for the application
“OPC Communication via SEND/RECEIVE Protocol with a Visual Basic
.NET OPC-Client”.
The documents Introduction and Extension describe the basic setup of
the application and the employed function components, as well as their
interaction within this application.
The document on hand only discusses setup and operation of the example
application.
21523291_OPC_SR_Demonstration_DOKU_v10_e.doc
Copyright © Siemens AG 2005 All rights reserved

V1.0 02.05.05 6/26


Setup and Operation of the Application
Installation and Commissioning

OPC with SEND/RECEIVE Protocol, Entry-ID: 21523291

Setup and Operation of the Application


Content
This part leads you step by step through the structure, commissioning and
operation of the application.

2 Installation and Commissioning


Here you will find further information on …
the hardware and software to be installed, and the steps necessary for
commissioning the example.

2.1 Installation of hardware and software

This chapter describes the hardware and software components to be


21523291_OPC_SR_Demonstration_DOKU_v10_e.doc

installed. The description and manuals as well as delivery information


Copyright © Siemens AG 2005 All rights reserved

contained in the delivery scope of the respective products, should be


followed in any case.

Installation of the hardware


For details on the hardware components, please refer to “Introduction”
document of this application. For the hardware setup, proceed in
accordance with the table below:
Table 2-1
No Instructions Note
.
Set up the S7station (power supply, CPU and CP).
Integrate the CP 1613 into your PG / PC.

Note
At the next start of the computer the card is
automatically recognized. The required software /
drivers are not installed during the installation of STEP
7 and SIMATIC NET. They must be explicitly installed.
Please connect the controller with the PC via hub.
Note
Instead of using a hub or a switch you can also use a
cross cable for a direct connection.

Note The setup guidelines for SIMATIC S7 must generally be followed.

V1.0 02.05.05 7/26


Setup and Operation of the Application
Installation and Commissioning

OPC with SEND/RECEIVE Protocol, Entry-ID: 21523291

Installation of the standard software


A description of the installation procedure for STEP 7 and SIMATIC NET is
not part of this documentation. The installation takes place in the familiar
Windows environment and is self-explanatory.

2.2 Installation of the application software

The executable example program is provided to you in form of a setup.exe


file.

Note The .NET-Framework V1.1 required for this application is installed by the
SIMATIC NET software V6.2 SP1.
If this is not the case, respective information are available on the
Microsoft page http://www.microsoft.com/.

For installing the operator user interface proceed as follows:


21523291_OPC_SR_Demonstration_DOKU_v10_e.doc
Copyright © Siemens AG 2005 All rights reserved

Table 2-2
No. Instructions Note
1 Extract the “21523291_OPC_SR_CODE_v10.zip“ file to a Uninstall by deleting the files.
directory on your hard disk.

V1.0 02.05.05 8/26


Setup and Operation of the Application
Installation and Commissioning

OPC with SEND/RECEIVE Protocol, Entry-ID: 21523291

2.3 Configuration of the automation stations

For a smooth operation procedure the following sequence should be kept:


Table 2-3
No. Instructions
1 Setting the IP addresses
2 Installation of the STEP 7 project
3 Importing the XDB file to the station manager

The following chapters have been structured in this very sequence.

2.3.1 Setting the IP addresses

The STEP 7 project for this example uses the following IP addresses and
subnet masks. Should you make adjustments to the IP addresses, please
21523291_OPC_SR_Demonstration_DOKU_v10_e.doc
Copyright © Siemens AG 2005 All rights reserved

ensure that the IP addresses fit with the set subnet masks.
Table 2-4
Focus Module IP address Sub-network mask
PG/PC CP 1613 192.168.1.10 255.255.255.0
Controller CP 343-1 192.168.1.11 255.255.255.0

Configuration of the PG/PC network card


In order to commission the example, the network card in the PG/PC must
be configured as follows:

Note For test purposes it is recommended to not install this example in an


existing network, but to set up a separate test network.

V1.0 02.05.05 9/26


Setup and Operation of the Application
Installation and Commissioning

OPC with SEND/RECEIVE Protocol, Entry-ID: 21523291

Table 2-5

No. Instructions Note


1 Open the “Local Area Connection Properties”
dialog box via
Start Æ Control Panel Æ Network Æ <Connection
name of network connection> Æ Properties.

2 From the list “This connection uses the The dialog Internet
following items:” you select the entry Protocol(TCP/IP)Properties
“Internet Protocol (TCP/IP)” and click “Properties” opens.
3 Change to Use the following IP
21523291_OPC_SR_Demonstration_DOKU_v10_e.doc

address: and set the IP address (e.g.


Copyright © Siemens AG 2005 All rights reserved

192.168.1.10) as well as a subnet mask (e.g.


255.255.255.0).
The field Default gateway can stay empty.
Acknowledge this and the previous dialog with
OK.

Configure the PG/PC interface


In order to be able to load the S7 program and the configuration to the
S7-300 station via Industrial Ethernet the PG/PC interface must be set
accordingly. Please follow the instructions listed in the table:
Table 2-6

No. Instructions Note


1 Start the SIMATIC manager.
2 Open the dialog “Set PG/PI Interface“ with
“OK“.
Options Æ Set PG/PC interface
3 From the list Interface Parameter
Assignment Used you select the entry
”CP1613(RFC1006)“.
4 Quit the dialog box with "OK".

V1.0 02.05.05 10/26


Setup and Operation of the Application
Installation and Commissioning

OPC with SEND/RECEIVE Protocol, Entry-ID: 21523291

Assign IP address
The S7-300 station can only be accessed with STEP 7 after an IP address
has been assigned to the CP 343-1. Please follow the instructions listed in
the table:
Table 2-7

No. Instructions Note


1 In the SIMATIC Manager you open the dialog
Assign Ethernet Address via the menu:
Target system Æ Assign Ethernet Address...

2 Start the search for stations at the Ethernet The Browse Network dialog is
network with the Browse... button. displayed in which all accessible
Ethernet stations are listed.
3 Select the S7-300 CP from the list and close the
dialog with OK.
21523291_OPC_SR_Demonstration_DOKU_v10_e.doc
Copyright © Siemens AG 2005 All rights reserved

4 In the IP Address field you specify an IP


address for the CP 343-1 (e.g. 192.168.1.11).
In the field Subnet mask you enter the same
subnet mask as in the PG/PC (e.g.
255.255.255.0; see “Configuration of the PG/PC
network card“)
Note
Please ensure, that the IP addresses of PG/PC
and CP 343-1 correspond with each other. This is
best achieved if the last digit of both IP addresses
only differs by one.
5 Allocate the IP address set by you, to the CP 343- The S7 station can now be reached
1 by pressing Assign IP Configuration. from the SIMATIC Manager via
Ethernet.
6 Quit the dialog box with "OK".
7 Switch the CP 343-1 to RUN mode by pressing
the mode switch.

V1.0 02.05.05 11/26


Setup and Operation of the Application
Installation and Commissioning

OPC with SEND/RECEIVE Protocol, Entry-ID: 21523291

2.3.2 Installation of the STEP 7 project

Retrieving the project


After the connection from PC to CP has been implemented successfully,
please proceed as follows:
Table 2-8
No. Instructions Note
2 Open the SIMATIC Manager.
3 Extract the project via the menu File - Use the browser to search the
> Retrieve 21523291_OPC_SR_STEP7_v10.zip project
and click OK to confirm.
4 Select a directory into which the project
files are to be retrieved and open the
project.

Adjust the hardware configuration in the STEP 7 project


21523291_OPC_SR_Demonstration_DOKU_v10_e.doc
Copyright © Siemens AG 2005 All rights reserved

If using a hardware configuration which differs from that in this example


(see “Introduction” document of this application), the example project on
hand needs to be adjusted accordingly.

Adjusting the network configuration in the STEP 7 project


In order to adjust the STEP 7 example project to your setup, perform the
following steps.
Table 2-9

No. Instructions Note


1 Open the extracted STEP 7 project “App04” in the
SIMATIC Manager.
2 Start the network configuration tool “NetPro” via

the button .
The network configuration on the right will be
displayed.
3 Adjust the IP address of the PG/PC ”SIMATIC IP address and subnet mask, see
PC-Station(1)“: “Configuration of the PG/PC network
• Double-click “CP1613” in the PC station card”.
• Change the IP address and the subnet mask
to the values actually set on the PG/PC via
the Properties button.
• Click OK to confirm the properties dialogs.

V1.0 02.05.05 12/26


Setup and Operation of the Application
Installation and Commissioning

OPC with SEND/RECEIVE Protocol, Entry-ID: 21523291

No. Instructions Note


4 Adjust the IP addresses of the S7-300 station: Please ensure, that the same stations
• Double-click “CP 343-1“ in the have been set in the both stations and
“SIMATIC 300(1)“ station that the IP addresses correspond.
• Change the IP address and the subnet mask IP address and subnet mask, see
to the desired values by pressing “Assign IP address”.
Properties in the General tab.
• Click OK to confirm the properties dialogs.
5
Save and compile the configuration with the
button.

6 Select the SIMATIC 300 station and load the

configuration data to the controller using the


button.
7 Close NetPro.
21523291_OPC_SR_Demonstration_DOKU_v10_e.doc
Copyright © Siemens AG 2005 All rights reserved

Load blocks into the S7-300 station


Next, the blocks of the S7 program must be loaded to the S7-300 station.
Follow the instructions of the table below.
Table 2-10

No. Instructions Note


1 Select the block folder of the SIMATIC 300 station
in the STEP 7 project “App04“.
2 The system data needs not be loaded.
Load the blocks to the controller via the
button.
3 Switch the CPU 315-2 DP to RUN mode by
pressing the mode switch.

V1.0 02.05.05 13/26


Setup and Operation of the Application
Installation and Commissioning

OPC with SEND/RECEIVE Protocol, Entry-ID: 21523291

2.3.3 Importing the XDB file to the Station Configuration Editor

In order to use the OPC server on the PG/PC the configuration must be
loaded from the STEP 7 project to the Station Configuration Editor of the
PG/PC. Please follow the instructions below:
Table 2-11

No. Instructions Note


1 Open the Station Configuration Editor on the
PG/PC via:
Start Æ Station Configuration Editor
2 Open the Import XDB-file dialog with the Confirm the message with Yes.
Import station... button.
3 Select the XDB-file “pcst_1.xdb“ of the STEP 7 This XDB file contains the complete
project ”App04“. It is located at: PG/PC configuration.
<LW>\<Project directory>\ App04\XDBs\ Example for project directory:
C:\Programs\Siemens\Step7\S7Proj\
21523291_OPC_SR_Demonstration_DOKU_v10_e.doc

App04\XDBs
Copyright © Siemens AG 2005 All rights reserved

4 Open the Station Configuration Editor


dialog with Open.
5 Start the import by pressing OK. Even if a warning is displayed in the
After a successful import the Station “Station Configuration Editor“ dialog
Configuration Editor should display the ( ), the import can be performed.
configuration on the right.

6 Adjust the station name of the PG/PC via The station name in the Station
Station name. Configuration Editor is different to the
The station name equals the name of the PC computer name of the PG/PC (see
station in the STEP 7 project. In this example: Control Panel Æ System).
“GS_03_02“.
7 Close the “Station Configuration Editor” dialog
box.

Note The application is now runnable!


For operating the application you can continue with chapter 3 Operating
the Application.
The following explanation on configuration only becomes necessary if
you wish to make adjustments or want to know which configurations were
made prior to this application.

V1.0 02.05.05 14/26


Setup and Operation of the Application
Installation and Commissioning

OPC with SEND/RECEIVE Protocol, Entry-ID: 21523291

2.4 Configurations of the application

the configurations made in the course of this application.


There are several options for configuring the OPC server.
Here, generating an XDB file with STEP 7 is illustrated which can then be
loaded to the station manager.

Note You must first create the PG/PC interface according to chapter 2.3.1.

2.4.1 Configuring the OPC server in HWConfig

Table 2-12
No. Instructions Note
1 Create a new station of the Below, it is assumed that the partner station (SIMATIC S7-
21523291_OPC_SR_Demonstration_DOKU_v10_e.doc

type ”SIMATIC PC Station“ 300 station) has already been configured.


Copyright © Siemens AG 2005 All rights reserved

in your STEP 7 project.


2 Open the created station by The hardware configuration opens.
double-clicking
Configuration
3 Add a SIMATIC NET OPC This application uses the SIMATIC NET OPC server V6.2.1.
server to slot 1.

4 Add a CP 1613 to slot 2. This application uses a CP 1613 V6.0 SP5. After adding the
CP, the “Properties – Ethernet Interface” dialog opens.

V1.0 02.05.05 15/26


Setup and Operation of the Application
Installation and Commissioning

OPC with SEND/RECEIVE Protocol, Entry-ID: 21523291

No. Instructions Note


5 Set the parameters as in
the screenshot on the right.

Note:
If no IE network has been
configured yet, you
generate a new one with
New... and apply the
standard parameters.
21523291_OPC_SR_Demonstration_DOKU_v10_e.doc
Copyright © Siemens AG 2005 All rights reserved

6 Save and compile the


hardware configuration with

Close the hardware


configuration.

2.4.2 Configuring the connection with the OPC server in NetPro

Table 2-13
No. Instructions Note
1
Open NetPro with the
button.
2 Select the OPC server.

V1.0 02.05.05 16/26


Setup and Operation of the Application
Installation and Commissioning

OPC with SEND/RECEIVE Protocol, Entry-ID: 21523291

No. Instructions Note


3 Generate a new connection
with a right-click.

4 Select CPU 315-2DP as


21523291_OPC_SR_Demonstration_DOKU_v10_e.doc

connection partner.
Copyright © Siemens AG 2005 All rights reserved

Select ISO-on-TCP
connection as the
connection type.

Acknowledge with OK.

V1.0 02.05.05 17/26


Setup and Operation of the Application
Installation and Commissioning

OPC with SEND/RECEIVE Protocol, Entry-ID: 21523291

No. Instructions Note


5 In the Options tab of the
following dialog you
determine the operating
mode of the connection.
Send/Recv, Fetch or Write
can be selected.

6 In the OPC tab you have to


set the send buffer for the
Send/Receive connection.
Note:
It must correspond with
the data length entered
at the receive block in
S7.
21523291_OPC_SR_Demonstration_DOKU_v10_e.doc
Copyright © Siemens AG 2005 All rights reserved

7 This enables you to


configure all required
connection.

Note:
Two SR connections and
respectively one Fetch
and one Write connection
are required for this
project.

8 Save and compile the


configuration with .
9 Close NetPro.

Note The created XDB file, automatically generated during compiling, can now
be loaded to the station manager via import.
Proceed analog to chapter 2.3.3.

V1.0 02.05.05 18/26


Setup and Operation of the Application
Installation and Commissioning

OPC with SEND/RECEIVE Protocol, Entry-ID: 21523291

2.4.3 Check the settings

The settings can be checked with the configuration dialog for the OPC
server.
The following settings should be considered:
Table 2-14
No. Instructions Note
1 Open the configuration With: Start Æ Simatic Æ SIMATIC NET Æ Set PC
console “Set PC Station
Station“ via the start
menu:
2 Check the set access
point.
21523291_OPC_SR_Demonstration_DOKU_v10_e.doc
Copyright © Siemens AG 2005 All rights reserved

3 Check the set IP


address

V1.0 02.05.05 19/26


Setup and Operation of the Application
Installation and Commissioning

OPC with SEND/RECEIVE Protocol, Entry-ID: 21523291

No. Instructions Note


4 Check the set protocols.

Note:
Activating the SR
protocol is sufficient
for this application.

5 If one of the settings


does not correspond
with the displayed
21523291_OPC_SR_Demonstration_DOKU_v10_e.doc

images, perform the


Copyright © Siemens AG 2005 All rights reserved

preceding configuration
again.

Close the configuration


dialog box.

V1.0 02.05.05 20/26


Setup and Operation of the Application
Operating the Application

OPC with SEND/RECEIVE Protocol, Entry-ID: 21523291

3 Operating the Application


Here you will find information on …
how to operated all function of this application.

User interface
The following figure shows the user interface of the example program.
Figure 3-1
21523291_OPC_SR_Demonstration_DOKU_v10_e.doc
Copyright © Siemens AG 2005 All rights reserved

Description of the user interface


In the following table, all interactive controls are described. No.
corresponds to the respective number in Figure 3-1.
Table 3-1
No. Description
1 Establishing the connection with the OPC server specified in “Server name”
(SIMATIC NET OPC server). This corresponds to the ProgID of the server.
2 Values for / from the memory bit double-words 200, 204 and 208 on the
controller.
3 Enables reading and writing the values using the variable services. Here you
can either use Fetch or Write.
• When using Fetch the result data fetched from the controller are displayed
at (2).
• When using Write the data to be entered by you at (2) are used and sent
to the controller.
4 Enables entering data to be sent to the controller by means of block services.
5 Transfer of data from PC to S7 by means of block service using the data of (4).
6 Transfer of data from S7 to PC using a block service. Result in (7).
7 Data transfer result from (6).
8 Disconnection from the OPC server.

V1.0 02.05.05 21/26


Setup and Operation of the Application
Operating the Application

OPC with SEND/RECEIVE Protocol, Entry-ID: 21523291

Operating sequence: Starting and operating the visualization


The following instructions specify the operating options for the example
program in connection with the preceding table.
Instructions
1 Start the Application04.exe file in the directory:
[Installation directory]\Application04\bin

Note
Installation directory: see 2.2 Installation of the application software
2 After starting the application the user interface appears as in Figure 3-1.
3 The only option you have is pressing Connect. All actions are performed
which lead to establishing a connection with the OPC server. Furthermore, all
required OPC items are created.
21523291_OPC_SR_Demonstration_DOKU_v10_e.doc

Now you have the option of either using the variable services in Variables
Copyright © Siemens AG 2005 All rights reserved

or the block services in Block. Using of either is not exclusive of the


respective other.
5 In Variables you can enter
• enter values and send them to the controller with Write.
or
• fetch the actual values from the controller using Fetch.
6 In Blocks you can either
• send PC->S7 values to the controller,
or
• receive S7->PC values from the controller.
7 With Disconnect you can interrupt the connection to the OPC server any
time.

V1.0 02.05.05 22/26


Setup and Operation of the Application
Operating the Application

OPC with SEND/RECEIVE Protocol, Entry-ID: 21523291

Variable table
The variables are available in the included STEP 7 project "App04".
Figure 3-2
21523291_OPC_SR_Demonstration_DOKU_v10_e.doc
Copyright © Siemens AG 2005 All rights reserved

V1.0 02.05.05 23/26


Appendix and List of Further Literature
Glossary

OPC with SEND/RECEIVE Protocol, Entry-ID: 21523291

Appendix and List of Further Literature

4 Glossary
COM
Component Object Model: Software model for communication between
components based on a standardized interface;Æ DCOM

DCOM
Distributed Object Model: Software model for communicating beyond
computer boundaries based on Æ COM.

Eventhandler
An Event handler processes occurring events or Windows messages.

Exception
21523291_OPC_SR_Demonstration_DOKU_v10_e.doc
Copyright © Siemens AG 2005 All rights reserved

An Exception is referred to as an exceptional situation.


It can be generated either by the operating system (e.g. Division by zero) or
by the user program.

Exception handler
An Exception handler processes occurring exceptional situations. Generally
a secured error behavior and/or a message to the user.

HRESULT
Return data type of COM objects.

IDL
Interface Definition Language: A Microsoft standard language for definition
of function and parameter interfaces.

OPC
OLE for process control. A standardization for process control created for
the automation sector. Maintained by the OPC - Foundation. Several
interfaces with different tasks exist.

OPC client
A program which uses the services of an OPC server by sending requests
to the server via existing OPC interfaces.

OPC DA
OPC Data Access interface. The interface enables monitoring and
changing of process values.

V1.0 02.05.05 24/26


Appendix and List of Further Literature
Glossary

OPC with SEND/RECEIVE Protocol, Entry-ID: 21523291

OPC server
A program which provides one of the OPC interfaces and responds to
requests of an OPC client.

Polling
Term referring to (mostly cyclical) polling of certain values or states.

RCW
Runtime Callable Wrapper. A wrapper which encapsulates a Custom
interface for the .NET Framework. The RCW enables accessing older COM
ports for the .NET Framework.

Sink interface
Using the sink interface, messages between components can be sent. The
sink interface is based on COM mechanisms.
21523291_OPC_SR_Demonstration_DOKU_v10_e.doc

Windows message
Copyright © Siemens AG 2005 All rights reserved

The standard Microsoft Windows operating systems exchange messages


to notify of events, e.g. the paint event.

Wrapper
The term Wrapper normally refers to a class group which encapsulates
other class groups for data conversion or easier handling.
It can be considered an “envelope” enclosing the “wrapped” classes,
covering them from the outside.

V1.0 02.05.05 25/26


Appendix and List of Further Literature
Literature

OPC with SEND/RECEIVE Protocol, Entry-ID: 21523291

5 Literature
5.1 Bibliographic References

This list is by no means exhaustive and only gives a selection of


appropriate sources.

Table 5-1
Topic Title
/1/ STEP 7 Automatisieren mit STEP 7 in AWL und SCL
(Automating with STEP7 in STL and SCL)
Hans Berger
published by: Publicis MCD Verlag
ISBN 3-89578-113-4
/2/ SIMATIC NET, SIMATIC NET, Industrial communication with
Industrial PG/PC
21523291_OPC_SR_Demonstration_DOKU_v10_e.doc
Copyright © Siemens AG 2005 All rights reserved

communication Volume 1 – Basics, System Manual


(on SIMATIC NET CD)
/3/ SIMATIC NET, SIMATIC NET Commissioning PC Stations -
Advanced PC Manual / Quick Start
Configuration (on SIMATIC NET CD or in Product Support at
entry-ID: 13542666).
/4/ Setting up S7-300 S7-300, CPU 31xC and CPU 31x: Installation
Operating Instructions
(available in the Product Support; Entry ID:
13008499).
/5/ Power-PG manual SIMATIC Field PG P4, Manual
(available in the Product Support; Entry ID:
17962811).

5.2 Internet links

This list is by no means exhaustive and only gives a selection of


Topic Title
\1\ Reference to http://support.automation.siemens.com/WW/view/en/215
this 23291
documentation

\2\ Siemens A&D http://support.automation.siemens.com


Customer Sup-
port

V1.0 02.05.05 26/26

S-ar putea să vă placă și