资源简介
西门子官方提供的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个文件信息
相关资源
- Hash Crack_ Password Cracking Manual v2.0
- J750 Basic Programming Class Student Manual
- Blend for Visual Studio 2012 By Example
- Modern Assembly Language Programming With the
- 非常不错的文件同步软件 BestSync破解
- quarter2教程
- Visual Group Theory
- [M.Keating]Low Power Methodology Manual For Sy
- 西门子配方
- FPGA设计uart电路完全,包括详细文档、
- XMOS 无嘟声驱动3.20-3.26-3.40 都给你!
- ifix组态软件opc
- 量化策略开发流程蒙特卡洛方法等五
- 停车场车位控制系统
- Visual Basic 6.0 中文版程序员指南高清
- LCD12864打砖块游戏Verilog HDL语言实现,
- 健身管理网站visual studio 2005
- A Modern Approach to Quantum Mechanics
- Configure Virtual Serial Port Driver 破解版
- bzquan_10555880.zip
- 虚拟串口 Virtual Serial Port Driver 官方原
- bitbake.usermanual.pdf
- 视觉注意VISUAL ATTENTION
- 汉枫_HF-LPB嵌入式WiFi模块_UART转WiFi_S
- zhajinhua.zip
- IEEE P1858 IEEE Standard for Camera Phone Imag
- Visual Studio 2017 企业版 15.7 在线安装包
- Visual Studio 2017 专业版 15.6 在线安装包
- Computer Architecture: A Quantitative approach
- Altera Crack_Quartus II 6.0-15.1_Windows版破解
评论
共有 条评论