Siemens SIMATIC NET Especificações Página 253

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
Vista de página 252
Chapter 15. Creating Custom Client Applications 243
To get started creating a configuration application with C or C++
[1] Import the type library by adding the following text to the beginning of your
source file:
#import “path\SI7Drv.tlb” no-namespace
where path is the directory you installed the driver. By default, this path is
C:\Dynamics.
[2] Use the following keyword to locate the GUIDs that are associated with
interfaces and COM objects. The ProgID for the server is Intellution.SI7Drv.
__uuidof()
[3] Call CoCreateInstance() or use a wrapper class to load the server and obtain a
pointer to the driver interface.
See Also
Feature: Configuring the Driver from Custom COM/OLE Automation Applications |
Creating a Custom Application Using Microsoft Visual Basic | Accessing SI7 Server
Data Using an OPC Client | Creating Custom Client Applications
Accessing SI7 Server Data Using an OPC Client
You can use any v1.0a or 2.0 OPC-compliant client to access data from your process
hardware through the SI7 OPC server using the SI7 driver. In order to access this
data, your client must use the OPC Custom Interface to communicate with the SI7
OPC server. The SI7 OPC server does not support the OPC Automation Interface.
Before you begin accessing OPC data from the SI7 OPC server, load your driver
configuration file. Once the file is loaded, you can use the following syntax for the
OPC ItemID:
devicename:address
(analog values)
devicename:address:bit
(digital values)
Vista de página 252
1 2 ... 248 249 250 251 252 253 254 255 256 257 258 ... 267 268

Comentários a estes Manuais

Sem comentários