private void btnConnMDS_Click(object sender, EventArgs e) { DeviceEntry entry = new DeviceEntry(); entry[DeviceEntry.Name] = new StringValue("MDS"); entry[DeviceEntry.Identity]= new StringValue( "Scada.MDS"); entry[DeviceEntry.Path] = new StringValue(""); entry[DeviceEntry.Version] = new StringValue("0.9"); entry["IPADDR"] = new StringValue("192.168.0.5"); this.mdsDevice = new MDSDevice(entry); this.mdsDevice.Start("S7200.OPCServer"); this.mdsDevice.Send(Encoding.ASCII.GetBytes("connect;Sid=SAMPLE_ID;"), default(DateTime)); }
private void btnConnMDS_Click(object sender, EventArgs e) { DeviceEntry entry = new DeviceEntry(); entry[DeviceEntry.Name] = new StringValue("MDS"); entry[DeviceEntry.Identity] = new StringValue("Scada.MDS"); entry[DeviceEntry.Path] = new StringValue(""); entry[DeviceEntry.Version] = new StringValue("0.9"); entry["IPADDR"] = new StringValue("192.168.0.5"); this.mdsDevice = new MDSDevice(entry); this.mdsDevice.Start("S7200.OPCServer"); this.mdsDevice.Send(Encoding.ASCII.GetBytes("connect;Sid=SAMPLE_ID;"), default(DateTime)); }