<< Click to Display Table of Contents >> Navigation: »No topics above this level« Cpu.Connect() Method |
Creates a connection to the physical Cpu using the specified connection parameters set in the connectiono object properties. (see: Connection class)
[Visual Basic]
Public Overrides Overloads Sub Connect()
[C#]
public override void Connect();
The Connected event notifies, that the connection was successfully created.
Service service = new Service("Service_01");
service.Connect();
...
...
Cpu cpu = new Cpu(service,"Cpu_01");
/************************/
/* Connection TcpIp */
/************************/
cpu.Connection.DeviceType = BR.AN.PviServices.DeviceType.TcpIp;
cpu.Connection.TcpIp.SourceStation = 1;
cpu.Connection.TcpIp.DestinationStation = 50;
cpu.Connection.TcpIp.DestinationIpAddress = "10.43.70.250";
...
...
// or
/************************/
/* Connection Serial */
/************************/
// Setting DeviceType and its properties
cpu.Connection.DeviceType = DeviceType.Serial;
cpu.Connection.Serial.BaudRate = 57600;
cpu.Connection.Serial.Channel = 2;
...
...
// Connect Cpu object
cpu.Connect();
Cpu Class | BR.AN.PviServices Namespace | Cpu.Connect Overload List
Generated from assembly BR.AN.PviServices [8.1.0.4]