资源简介
西门子官方提供的OPC UA客户端程序源代码,可用于西门子SINUMERIK 840Dsl数控系统的OPC UA数据采集。

代码片段和文件信息
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;
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-09-07 14:57 42014088_OPC_UAClient_CODE_V1_1\
目录 0 2018-09-07 14:57 42014088_OPC_UAClient_CODE_V1_1\OPC_UA_CODE_v1_1\
目录 0 2018-09-07 14:57 42014088_OPC_UAClient_CODE_V1_1\OPC_UA_CODE_v1_1\bin\
目录 0 2018-09-07 14:57 42014088_OPC_UAClient_CODE_V1_1\OPC_UA_CODE_v1_1\bin\Debug\
文件 90112 2009-07-03 14:39 42014088_OPC_UAClient_CODE_V1_1\OPC_UA_CODE_v1_1\bin\Debug\Opc.Ua.Client.dll
文件 2589184 2009-07-03 14:39 42014088_OPC_UAClient_CODE_V1_1\OPC_UA_CODE_v1_1\bin\Debug\Opc.Ua.Core.dll
文件 18944 2010-04-30 11:12 42014088_OPC_UAClient_CODE_V1_1\OPC_UA_CODE_v1_1\bin\Debug\Siemens.OpcUA - Kopie.dll
文件 90112 2009-07-03 14:39 42014088_OPC_UAClient_CODE_V1_1\OPC_UA_CODE_v1_1\bin\Opc.Ua.Client.dll
文件 2589184 2009-07-03 14:39 42014088_OPC_UAClient_CODE_V1_1\OPC_UA_CODE_v1_1\bin\Opc.Ua.Core.dll
文件 55296 2010-04-30 11:12 42014088_OPC_UAClient_CODE_V1_1\OPC_UA_CODE_v1_1\bin\Siemens.OpcUA.Client.exe
文件 18944 2010-04-30 11:12 42014088_OPC_UAClient_CODE_V1_1\OPC_UA_CODE_v1_1\bin\Siemens.OpcUA.dll
文件 22528 2010-04-30 11:12 42014088_OPC_UAClient_CODE_V1_1\OPC_UA_CODE_v1_1\bin\Siemens.OpcUA.SimpleClient.exe
目录 0 2018-09-07 14:57 42014088_OPC_UAClient_CODE_V1_1\OPC_UA_CODE_v1_1\src\
目录 0 2018-09-07 14:57 42014088_OPC_UAClient_CODE_V1_1\OPC_UA_CODE_v1_1\src\bin\
文件 90112 2009-07-03 14:39 42014088_OPC_UAClient_CODE_V1_1\OPC_UA_CODE_v1_1\src\bin\Opc.Ua.Client.dll
文件 2589184 2009-07-03 14:39 42014088_OPC_UAClient_CODE_V1_1\OPC_UA_CODE_v1_1\src\bin\Opc.Ua.Core.dll
目录 0 2018-09-07 14:57 42014088_OPC_UAClient_CODE_V1_1\OPC_UA_CODE_v1_1\src\ClientAPI\
文件 120 2009-08-18 08:48 42014088_OPC_UAClient_CODE_V1_1\OPC_UA_CODE_v1_1\src\ClientAPI\app.config
目录 0 2018-09-07 14:57 42014088_OPC_UAClient_CODE_V1_1\OPC_UA_CODE_v1_1\src\ClientAPI\bin\
目录 0 2018-09-07 14:57 42014088_OPC_UAClient_CODE_V1_1\OPC_UA_CODE_v1_1\src\ClientAPI\bin\Debug\
文件 90112 2009-07-03 14:39 42014088_OPC_UAClient_CODE_V1_1\OPC_UA_CODE_v1_1\src\ClientAPI\bin\Debug\Opc.Ua.Client.dll
文件 2589184 2009-07-03 14:39 42014088_OPC_UAClient_CODE_V1_1\OPC_UA_CODE_v1_1\src\ClientAPI\bin\Debug\Opc.Ua.Core.dll
文件 20480 2014-06-05 12:11 42014088_OPC_UAClient_CODE_V1_1\OPC_UA_CODE_v1_1\src\ClientAPI\bin\Debug\Siemens.OpcUA.dll
文件 42496 2014-06-05 12:11 42014088_OPC_UAClient_CODE_V1_1\OPC_UA_CODE_v1_1\src\ClientAPI\bin\Debug\Siemens.OpcUA.pdb
文件 40444 2010-04-30 11:03 42014088_OPC_UAClient_CODE_V1_1\OPC_UA_CODE_v1_1\src\ClientAPI\ClientAPI.cs
文件 3218 2014-06-04 15:40 42014088_OPC_UAClient_CODE_V1_1\OPC_UA_CODE_v1_1\src\ClientAPI\ClientAPI.csproj
文件 1727 2010-04-30 11:03 42014088_OPC_UAClient_CODE_V1_1\OPC_UA_CODE_v1_1\src\ClientAPI\ClientDiscovery.cs
文件 4351 2010-04-30 11:03 42014088_OPC_UAClient_CODE_V1_1\OPC_UA_CODE_v1_1\src\ClientAPI\ClientSubsc
目录 0 2018-09-07 14:57 42014088_OPC_UAClient_CODE_V1_1\OPC_UA_CODE_v1_1\src\ClientAPI\obj\
目录 0 2018-09-07 14:57 42014088_OPC_UAClient_CODE_V1_1\OPC_UA_CODE_v1_1\src\ClientAPI\obj\Debug\
文件 1243 2014-06-05 12:11 42014088_OPC_UAClient_CODE_V1_1\OPC_UA_CODE_v1_1\src\ClientAPI\obj\Debug\ClientAPI.csproj.FileListAbsolute.txt
............此处省略212个文件信息
相关资源
- 2018西门子杯中国智能制造挑战赛逻辑
- S7-300全套模块接线图
- 《Visual Prolog 集成开发环境(下)》
- 《Visual Prolog 基础类》 中文参考.chm
- 我的界面(visual foxpro)源码
- Quartus II 15.0中仿真Altera三速以太网I
- Quartus II 15.0中仿真Altera三速以太网I
- VisualStudioUninstaller vs卸载工具
- DELPHI与西门子200PLC的串口通信实例
- 3人表决器 QuartusII
- Verilog FPGA UART串口控制器
- MCGS触摸屏西门子s7_1200驱动
- 防火墙编程-Visual C 网络通信开发
- 硬件课程设计—流水灯(quartus软件
- UART转CAN或LIN的工具(Uart2any)和文档
- 曼彻斯特编解码_同步QuartusII工程
- 密码学课程设计:DES加密解密算法的
- CPLD Verilog数字密码锁 源码
- VHDL写的四人抢答器
- OPC插件OPC Core Components 2.00 SDK 2.20
- 用quartus 2编的全加器(原理图输入)
- visual studio 2010 黑色主题,保护你的眼
- 《Visual Basic 串口通信与测控应用技术
- 6相12拍步进电机控制器
- Multivariate spectral gradient projection meth
- Homogenization of Monotone Systems of Non-coer
- MQTT+串口(usart)透传
- GeV在AuAu和dAu碰撞中的横向动量分布
- VisualSVN-VS2019V7.0解除时间限制
- 西门子S7-1200三轴运动控制.ap16
评论
共有 条评论