WOLFRAM SYSTEM MODELER

OPCServer

A model used for setting up server parameters (name of host and server)

Wolfram Language

In[1]:=
SystemModel["OPCClassic.OPCServer"]
Out[1]:=

Information

OPCServer sets up the connection to the external OPC server. Any model using the read/write blocks must have an OPCServer connected to each block, since it provides them with a server object.

Parameters (3)

hostName

Value: "localhost"

Type: String

Description: The name of the host where the OPC server is located

serverName

Value: ""

Type: String

Description: The name or CLSID of the server on the host computer

requestedRefreshRate

Value: 0.1

Type: RefreshRate (s)

Description: The requested rate at which the OPC server should update

Connectors (1)

serverConnector

Type: ServerConnector

Description: A connector used to connect to read/write blocks

Components (1)

server

Type: OPCServerObject

Description: The external OPC server object

Used in Examples (5)

ReadAndWrite

OPCClassic.Examples

Basic example that demonstrates how to write to and read from items on an OPC server

MultipleServers

OPCClassic.Examples

Example that demonstrates a possible use of multiple servers

TriggeredSampling

OPCClassic.Examples

Model that samples data from an OPC item irregularly

TankSystem

OPCClassic.Examples

A tank system model where height data is written to and read from an OPC item

MultipleItems

OPCClassic.Examples

Example that demonstrates how multiple items can be read using the same component