资源简介
西门子OPC UA Client,内涵源码

代码片段和文件信息
using System;
using System.Collections;
using System.Security.Cryptography.X509Certificates;
using Opc.Ua;
using Opc.Ua.Client;
using Siemens.OpcUA.Helper;
namespace Siemens.OpcUA
{
///
/// Event handler for the event that the client received a value change.
///
public delegate void valueChanged(object clientHandle DataValue value);
///
/// Event handler for the event that the client received a untrusted server certificate.
///
public delegate void certificateValidation(CertificateValidator validator CertificateValidationEventArgs e);
///
/// This class encapsulates a connection to an OPC UA server and access to particular Services of it.
///
public class Server
{
#region Construction
public Server()
{ }
#endregion
#region Fields
///
/// Keeps a session with an UA server.
///
private Session m_Session = null;
///
/// Interface which encapsulates the use of the browse service of an UA server.
///
private Browser m_Browser = null;
///
/// Keeps a hash table for attribute names.
///
private Hashtable m_hashAttributeNames = null;
#endregion
#region Properties
///
/// Use the certificateValidation delegate as event.
///
public event certificateValidation CertificateEvent = null;
///
/// Provides the session being established with an OPC UA server.
///
public Session Session
{
get { return m_Session; }
}
#endregion
#region Connect
/// Establishes the connection to an OPC UA server.
/// The Url of the endpoint.
/// Result code.
/// Throws and forwards any exception with short error description.
public void Connect(string Url)
{
try
{
// Create the configuration.
ApplicationConfiguration configuration = Helpers.CreateClientConfiguration();
// Create the endpoint description.
EndpointDescription endpointDescription = Helpers.CreateEndpointDescription(Url);
// Create the endpoint configuration (use the application configuration to provide default values).
EndpointConfiguration endpointConfiguration = EndpointConfiguration.Create(configuration);
// The default timeout for a requests sent using the channel.
endpointConfiguration.OperationTimeout = 300000;
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 90112 2009-07-03 14:39 OPC_UA_CODE_v10\bin\Opc.Ua.Client.dll
文件 2589184 2009-07-03 14:39 OPC_UA_CODE_v10\bin\Opc.Ua.Core.dll
文件 55296 2010-04-30 11:12 OPC_UA_CODE_v10\bin\Siemens.OpcUA.Client.exe
文件 18944 2010-04-30 11:12 OPC_UA_CODE_v10\bin\Siemens.OpcUA.dll
文件 22528 2010-04-30 11:12 OPC_UA_CODE_v10\bin\Siemens.OpcUA.SimpleClient.exe
文件 90112 2009-07-03 14:39 OPC_UA_CODE_v10\src\bin\Opc.Ua.Client.dll
文件 2589184 2009-07-03 14:39 OPC_UA_CODE_v10\src\bin\Opc.Ua.Core.dll
文件 120 2009-08-18 08:48 OPC_UA_CODE_v10\src\ClientAPI\app.config
文件 40444 2010-04-30 11:03 OPC_UA_CODE_v10\src\ClientAPI\ClientAPI.cs
文件 3087 2010-02-16 09:40 OPC_UA_CODE_v10\src\ClientAPI\ClientAPI.csproj
文件 1727 2010-04-30 11:03 OPC_UA_CODE_v10\src\ClientAPI\ClientDiscovery.cs
文件 4351 2010-04-30 11:03 OPC_UA_CODE_v10\src\ClientAPI\ClientSubsc
文件 841 2010-04-30 10:56 OPC_UA_CODE_v10\src\ClientAPI\Properties\AssemblyInfo.cs
文件 8472 2009-12-14 10:49 OPC_UA_CODE_v10\src\ClientAPI\Properties\Helpers.cs
文件 21097 2010-02-28 23:51 OPC_UA_CODE_v10\src\SimpleClient\MainForm.cs
文件 23609 2010-02-28 23:51 OPC_UA_CODE_v10\src\SimpleClient\MainForm.Designer.cs
文件 5814 2010-02-28 23:51 OPC_UA_CODE_v10\src\SimpleClient\MainForm.resx
文件 521 2010-02-08 15:27 OPC_UA_CODE_v10\src\SimpleClient\Program.cs
文件 1482 2010-04-30 10:56 OPC_UA_CODE_v10\src\SimpleClient\Properties\AssemblyInfo.cs
文件 2879 2010-02-08 15:27 OPC_UA_CODE_v10\src\SimpleClient\Properties\Resources.Designer.cs
文件 5612 2010-02-08 11:40 OPC_UA_CODE_v10\src\SimpleClient\Properties\Resources.resx
文件 1107 2010-02-08 15:27 OPC_UA_CODE_v10\src\SimpleClient\Properties\Settings.Designer.cs
文件 249 2010-02-08 11:40 OPC_UA_CODE_v10\src\SimpleClient\Properties\Settings.settings
文件 4540 2010-02-08 15:28 OPC_UA_CODE_v10\src\SimpleClient\SimpleClient.csproj
文件 13692 2010-04-30 11:06 OPC_UA_CODE_v10\src\UAClient\AttributeListControl.cs
文件 3034 2010-02-08 14:59 OPC_UA_CODE_v10\src\UAClient\AttributeListControl.Designer.cs
文件 5814 2010-02-08 14:59 OPC_UA_CODE_v10\src\UAClient\AttributeListControl.resx
文件 8427 2009-11-25 09:30 OPC_UA_CODE_v10\src\UAClient\AttributeListControl_template.cs
文件 6012 2009-11-25 09:30 OPC_UA_CODE_v10\src\UAClient\AttributeListControl_template.resx
文件 15266 2010-02-10 17:17 OPC_UA_CODE_v10\src\UAClient\BrowseControl.cs
............此处省略57个文件信息
相关资源
- Pythonamp;课堂amp;笔记(高淇amp;400;集第
- 《Visual Prolog 集成开发环境(下)》
- 《Visual Prolog 基础类》 中文参考.chm
- 我的界面(visual foxpro)源码
- Apolipoprotein E4 Impairs in vivo Hippocampal
- 联想W520/T520笔记本电脑电路原理图
- LenovoTinkPad; Marker 5.01
- Quartus II 15.0中仿真Altera三速以太网I
- Quartus II 15.0中仿真Altera三速以太网I
- VisualStudioUninstaller vs卸载工具
- 3人表决器 QuartusII
- Verilog FPGA UART串口控制器
- DSP28335程序片内FLASH搬运至RAM运行的
- 矩阵基本运算函数库
- 防火墙编程-Visual C 网络通信开发
- 硬件课程设计—流水灯(quartus软件
- UART转CAN或LIN的工具(Uart2any)和文档
- 曼彻斯特编解码_同步QuartusII工程
- 密码学课程设计:DES加密解密算法的
- Bochs入门教程[操作系统第一步]
- CPLD Verilog数字密码锁 源码
- VHDL写的四人抢答器
- OPC插件OPC Core Components 2.00 SDK 2.20
- 用quartus 2编的全加器(原理图输入)
- visual studio 2010 黑色主题,保护你的眼
- 《Visual Basic 串口通信与测控应用技术
- 6相12拍步进电机控制器
- lmdb代码——caffe
- 中微子质量和暗物质的模型,具有大
- 浅埋特大采高综采工作面关键层&ldq
评论
共有 条评论