• 大小: 4.87M
    文件类型: .zip
    金币: 2
    下载: 2 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: OPCUA  help  opc  UA  pe  

资源简介

关于OPCServer和OPCClient的使用的例子,很好的诠释了C#如何利用OPCUA服务器连接PLC获取其关键信息。值得参考使用

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Opc.Ua;
using Opc.Ua.Client;

namespace OpcUaHelper
{
    /// 
    /// Defines numerous re-useable utility functions.
    /// 

    public partial class ClientUtils
    {
        /// 
        /// Handles an exception.
        /// 

        public static void HandleException( string caption Exception e )
        {
            ExceptionDlg.Show( caption e );
        }

        /// 
        /// Returns the application icon.
        /// 

        public static System.Drawing.Icon GetAppIcon()
        {
            try
            {
                return new Icon( “App.ico“ );
            }
      

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-07-26 23:53  OpcUaHelper-master\
     文件        2518  2019-07-26 23:53  OpcUaHelper-master\.gitattributes
     文件        4305  2019-07-26 23:53  OpcUaHelper-master\.gitignore
     目录           0  2019-07-26 23:53  OpcUaHelper-master\Imgs\
     文件       45857  2019-07-26 23:53  OpcUaHelper-master\Imgs\Monitor.png
     文件       87793  2019-07-26 23:53  OpcUaHelper-master\Imgs\support.png
     文件        7651  2019-07-26 23:53  OpcUaHelper-master\LICENSE
     目录           0  2019-07-26 23:53  OpcUaHelper-master\OpcUaHelper.Demo\
     文件        1754  2019-07-26 23:53  OpcUaHelper-master\OpcUaHelper.Demo\App.config
     文件       14065  2019-07-26 23:53  OpcUaHelper-master\OpcUaHelper.Demo\Form1.Designer.cs
     文件       13538  2019-07-26 23:53  OpcUaHelper-master\OpcUaHelper.Demo\Form1.cs
     文件        5698  2019-07-26 23:53  OpcUaHelper-master\OpcUaHelper.Demo\Form1.resx
     文件       20821  2019-07-26 23:53  OpcUaHelper-master\OpcUaHelper.Demo\OpcUaHelper.Demo.csproj
     文件         513  2019-07-26 23:53  OpcUaHelper-master\OpcUaHelper.Demo\Program.cs
     目录           0  2019-07-26 23:53  OpcUaHelper-master\OpcUaHelper.Demo\Properties\
     文件        1318  2019-07-26 23:53  OpcUaHelper-master\OpcUaHelper.Demo\Properties\AssemblyInfo.cs
     文件        2789  2019-07-26 23:53  OpcUaHelper-master\OpcUaHelper.Demo\Properties\Resources.Designer.cs
     文件        5496  2019-07-26 23:53  OpcUaHelper-master\OpcUaHelper.Demo\Properties\Resources.resx
     文件        1079  2019-07-26 23:53  OpcUaHelper-master\OpcUaHelper.Demo\Properties\Settings.Designer.cs
     文件         242  2019-07-26 23:53  OpcUaHelper-master\OpcUaHelper.Demo\Properties\Settings.settings
     文件         193  2019-07-26 23:53  OpcUaHelper-master\OpcUaHelper.Demo\SampleUse.cs
     文件        7583  2019-07-26 23:53  OpcUaHelper-master\OpcUaHelper.Demo\packages.config
     目录           0  2019-07-26 23:53  OpcUaHelper-master\OpcUaHelper.NetCoreDemo\
     文件         469  2019-07-26 23:53  OpcUaHelper-master\OpcUaHelper.NetCoreDemo\OpcUaHelper.NetCoreDemo.csproj
     文件        1114  2019-07-26 23:53  OpcUaHelper-master\OpcUaHelper.NetCoreDemo\Program.cs
     目录           0  2019-07-26 23:53  OpcUaHelper-master\OpcUaHelper.NetCoreDemo\Properties\
     目录           0  2019-07-26 23:53  OpcUaHelper-master\OpcUaHelper.NetCoreDemo\Properties\PublishProfiles\
     文件         479  2019-07-26 23:53  OpcUaHelper-master\OpcUaHelper.NetCoreDemo\Properties\PublishProfiles\FolderProfile.pubxml
     目录           0  2019-07-26 23:53  OpcUaHelper-master\OpcUaHelper.Standard\
     文件        1608  2019-07-26 23:53  OpcUaHelper-master\OpcUaHelper.Standard\OpcUaHelper.Standard.csproj
     目录           0  2019-07-26 23:53  OpcUaHelper-master\OpcUaHelper.Standard\Properties\
............此处省略132个文件信息

评论

共有 条评论