文件名称:C# OPC 类库
文件大小:128KB
文件格式:ZIP
更新时间:2020-10-04 15:05:29
OPC
实例代码 theSrv = new OpcServer(); //init opc server theSrv.Connect(txtSvrName.Text); Thread.Sleep(100); theSrv.SetClientName("ZDTOPC" + thisprocess.Id); SERVERSTATUS sts; theSrv.GetStatus(out sts); StringBuilder sb = new StringBuilder(sts.szVendorInfo, 200); sb.AppendFormat(" ver:{0}.{1}.{2}", sts.wMajorVersion, sts.wMinorVersion, sts.wBuildNumber); txtStatus.Text = sb.ToString(); // set status bar text to show server state lblStatusT.Text = DateTime.FromFileTime(sts.ftStartTime).ToString() + " | " + sts.eServerState.ToString();
【文件预览】:
OPCDAAuto.dll
rpcproxy.dll
OPCdotNETLib.dll