OpcUaHelper
辅助类
Gets the display text for the access level attribute.
The access level.
The access level formatted as a string.
Gets the display text for the event notifier attribute.
The event notifier.
The event notifier formatted as a string.
Gets the display text for the value rank attribute.
The value rank.
The value rank formatted as a string.
Gets the display text for the specified attribute.
The currently active session.
The id of the attribute.
The value of the attribute.
The attribute formatted as a string.
Discovers the servers on the local machine.
The configuration.
A list of server urls.
Finds the endpoint that best matches the current settings.
The discovery URL.
if set to true select an endpoint that uses security.
The best available endpoint.
Browses the address space and returns the references found.
The session.
The set of browse operations to perform.
if set to true a exception will be thrown on an error.
The references found. Null if an error occurred.
Finds the type of the event for the notification.
The monitored item.
The notification.
The NodeId of the EventType.
Browses the address space and returns the references found.
The session.
The NodeId for the starting node.
if set to true a exception will be thrown on an error.
The references found. Null if an error occurred.
Browses the address space and returns all of the supertypes of the specified type node.
The session.
The NodeId for a type node in the address space.
if set to true a exception will be thrown on an error.
The references found. Null if an error occurred.
Constructs an event object from a notification.
The session.
The monitored item that produced the notification.
The notification.
The known event types.
Mapping between event types and known event types.
The event object. Null if the notification is not a valid event type.
Returns the node ids for a set of relative paths.
An open session with the server to use.
The starting node for the relative paths.
The namespace URIs referenced by the relative paths.
The relative paths.
A collection of local nodes.
Collects the fields for the type.
The session.
The fields.
The node id for the declaration of the field.
Collects the fields for the instance.
The session.
The fields.
The node id for the declaration of the field.
Collects the fields for the instance node.
The session.
The node id.
The parent path.
The event fields.
The node id for the declaration of the field.
The table of found nodes.
Determines whether the specified select clause contains the browse path.
The select clause.
The browse path.
true if the specified select clause contains path; otherwise, false.
一个二次封装了的OPC UA库,支持从opc ua服务器读写节点数据,批量读写,订阅,批量订阅,历史数据读取,方法调用操作。
默认的构造函数,实例化一个新的OPC UA类
connect to server
remote url
Creates a new session.
The new session object.
Disconnects from the server.
Report the client status
Whether the status represents an error.
The time associated with the status.
The status message.
Arguments used to format the status message.
Handles a keep alive event from a session.
Handles a reconnect event complete from the reconnect handler.
设置OPC客户端的日志输出
完整的文件路径
是否删除原文件
a name of application name show on server
Whether to use security when connecting.
The user identity to use when creating the session.
The currently active session.
Indicate the connect status
The number of seconds between reconnect attempts (0 means reconnect is disabled).
Raised when a good keep alive from the server arrives.
Raised when a reconnect operation starts.
Raised when a reconnect operation completes.
Raised after successfully connecting to or disconnecing from a server.
Raised after the client status change
配置信息
Read a value node from server
node id
DataValue
Read a value node from server
type of value
node id
实际值
Read a tag asynchronously
The type of tag to read
tag值
The value retrieved from the OPC
read several value nodes from server
all NodeIds
all values
read several value nodes from server
all NodeIds
all values
read several value nodes from server
所以的节点数组信息
all values
read several value nodes from server
all NodeIds
all values
write a note to server(you should use try catch)
The type of tag to write on
节点名称
值
if success True,otherwise False
Write a value on the specified opc tag asynchronously
The type of tag to write on
The fully-qualified identifier of the tag. You can specify a subfolder by using a comma delimited name. E.g: the tag `foo.bar` writes on the tag `bar` on the folder `foo`
The value for the item to write
所有的节点都写入成功,返回True,否则返回False
节点名称数组
节点的值数据
所有的是否都写入成功
删除一个节点的操作,除非服务器配置允许,否则引发异常,成功返回True,否则返回False
节点文本描述
是否删除成功
新增一个节点数据
父节点tag名称
新增一个订阅,需要指定订阅的关键字,订阅的tag名,以及回调方法
关键字
tag
回调方法
新增一批订阅,需要指定订阅的关键字,订阅的tag名数组,以及回调方法
关键字
节点名称数组
回调方法
移除订阅消息,如果该订阅消息是批量的,也直接移除
订阅关键值
移除所有的订阅消息
read History data
节点的索引
开始时间
结束时间
读取的个数
是否包含边界
读取的数据列表
读取一连串的历史数据,并将其转化成指定的类型
节点的索引
开始时间
结束时间
读取的个数
是否包含边界
读取的数据列表
浏览一个节点的引用
节点值
引用节点描述
读取一个节点的所有属性
节点信息
节点的特性值
读取一个节点的所有属性
节点值
所有的数据
call a server method
方法的父节点tag
方法的节点tag
传递的参数
输出的结果值
Raises the connect complete event on the main GUI thread.
OPC UA的状态更新消息
是否异常
时间
文本
转化为字符串
读取属性过程中用于描述的
属性的名称
属性的类型描述
操作结果状态描述
属性的值,如果读取错误,返回文本描述