资源简介

c#写的opc客户端,调用OpcDaNet.dll

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace OPCSync
{
    public partial class OPCCli : Form
    {
        OPCComm myOPC;//声明OPC采集类
        DataChange dt;//声明委托变量

        public OPCCli()
        {
            InitializeComponent();

            dt = new DataChange(DataChangeEvent);
            myOPC = new OPCComm(dt);

            //initialize serIP
            tb_serIP.Text = “128.128.1.100“;
      
        }  

        private void btn_conn_Click(object sender EventArgs e)
        {

            if (myOPC.Conn2Server(combo_serName.Text tb_serIP.Text) == 0)
            {
                lbl_connstatus.Tex

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2012-06-07 16:01  OPCClient--opcdanet\
     文件         930  2012-05-16 09:51  OPCClient--opcdanet\OPCCliNet.sln
     文件       21504  2012-06-11 15:42  OPCClient--opcdanet\OPCCliNet.suo
     文件       37888  2012-05-18 08:23  OPCClient--opcdanet\OPCSync.suo
     目录           0  2012-06-11 15:42  OPCClient--opcdanet\WindowsFormsApplication1\
     目录           0  2012-06-07 16:01  OPCClient--opcdanet\WindowsFormsApplication1\bin\
     目录           0  2012-06-08 10:16  OPCClient--opcdanet\WindowsFormsApplication1\bin\Debug\
     文件      233472  2005-03-11 09:39  OPCClient--opcdanet\WindowsFormsApplication1\bin\Debug\OPCDAAuto.dll
     文件      389120  2006-03-11 00:42  OPCClient--opcdanet\WindowsFormsApplication1\bin\Debug\OpcDaNet.dll
     文件      225223  2006-03-11 00:43  OPCClient--opcdanet\WindowsFormsApplication1\bin\Debug\OpcDaNet.xml
     文件       19968  2012-06-11 15:42  OPCClient--opcdanet\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.exe
     文件       40448  2012-06-11 15:42  OPCClient--opcdanet\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.pdb
     文件       14328  2012-06-11 15:40  OPCClient--opcdanet\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe
     文件         490  2007-07-21 01:33  OPCClient--opcdanet\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe.manifest
     目录           0  2012-06-07 16:01  OPCClient--opcdanet\WindowsFormsApplication1\inc\
     文件       78048  2009-02-05 03:03  OPCClient--opcdanet\WindowsFormsApplication1\inc\OpcCmdPs.dll
     文件       98528  2009-02-05 03:03  OPCClient--opcdanet\WindowsFormsApplication1\inc\OpcDxPs.dll
     文件       11776  2009-02-05 03:04  OPCClient--opcdanet\WindowsFormsApplication1\inc\OpcRcw.Ae.dll
     文件       11776  2009-02-05 03:04  OPCClient--opcdanet\WindowsFormsApplication1\inc\OpcRcw.Batch.dll
     文件        9216  2009-02-05 03:04  OPCClient--opcdanet\WindowsFormsApplication1\inc\OpcRcw.Cmd.dll
     文件        6656  2009-02-05 03:04  OPCClient--opcdanet\WindowsFormsApplication1\inc\OpcRcw.Comn.dll
     文件       20992  2009-02-05 03:04  OPCClient--opcdanet\WindowsFormsApplication1\inc\OpcRcw.Da.dll
     文件       15872  2009-02-05 03:04  OPCClient--opcdanet\WindowsFormsApplication1\inc\OpcRcw.Dx.dll
     文件       12800  2009-02-05 03:04  OPCClient--opcdanet\WindowsFormsApplication1\inc\OpcRcw.Hda.dll
     文件        3584  2009-02-05 03:04  OPCClient--opcdanet\WindowsFormsApplication1\inc\OpcRcw.Sec.dll
     目录           0  2012-06-07 16:01  OPCClient--opcdanet\WindowsFormsApplication1\obj\
     目录           0  2012-06-11 15:42  OPCClient--opcdanet\WindowsFormsApplication1\obj\Debug\
     文件        5772  2012-06-11 15:40  OPCClient--opcdanet\WindowsFormsApplication1\obj\Debug\OPCDANet.csproj.FileListAbsolute.txt
     文件         848  2012-06-11 15:42  OPCClient--opcdanet\WindowsFormsApplication1\obj\Debug\OPCDANet.csproj.GenerateResource.Cache
     文件        4059  2012-05-16 09:48  OPCClient--opcdanet\WindowsFormsApplication1\obj\Debug\OPCSync.csproj.FileListAbsolute.txt
     文件         970  2012-05-15 13:42  OPCClient--opcdanet\WindowsFormsApplication1\obj\Debug\OPCSync.csproj.GenerateResource.Cache
............此处省略26个文件信息

评论

共有 条评论