Changes

Activity:ConfigureOpcUa...Item (Activity)

705 bytes added, 09:58, 15 June 2016
The ConfigureOpcUa...Item activities register a single variable within an [[Activity:CreateOPCUAConnection (Activity)|OPC UA Connection]]. Only registered variables can be accessed later on with [[Activity:AccessOPCUAVariable (Activity)|AccessOPCUAVariable]] activities.
 
This page is a generic description covering all activities available for registering Opc Ua variables, namely
* [[Activity:ConfigureOpcUaAnalogItem_(Activity)|ConfigureOpcUaAnalogItem]]: for analog values
* [[Activity:ConfigureOpcUaDiscreteItem_(Activity)|ConfigureOpcUaDiscreteItem]]: for analog values (e.g. boolean)
* [[Activity:ConfigureOpcUaMultiStateDiscreteItem_(Activity)|ConfigureOpcUaMultiStateDiscreteItem]]
* [[Activity:ConfigureOpcUaTwoStateDiscreteItem_(Activity)|ConfigureOpcUaTwoStateDiscreteItem]]
 
Each of the above activities can be used for a certain Opc Ua variable type, respectively.
 
=Description=
{{ActivityInfoBox
| title = Configure OPC UA Variable
}}
The ConfigureOPCUAVariable registers a single variable within an [[CreateOPCUAConnection (Activity)|OPC UA Connection]]. Only registered variables can be accessed later on with [[AccessOPCUAVariable (Activity)|AccessOPCUAVariable]] activities. ===Arguments===
{| class="wikitable sortable" | width = "50%"
|-
! Argument!! Type !! Direction !! Purpose
|- align="left"
| BrowsePath|| String{{String_MSDN}}|| In || Specifies the browse path of the item on the server e.g. "/2:Plant1/2:Machine1/2:Unit1/2:Sensor1"). For a more detailed descriptions please refer to the OPC UA specification.
|- align="left"
| AutoRead|| Bool{{Boolean_MSDN}}|| In || Specifies the variable to be read from the server automatically after a connection to the server has been established.
|- align="left"
| Subscribe|| Bool{{Boolean_MSDN}}|| In || Specifies that the variable should automatically be entered into a subscription with the server to be updated with any changes to its value.
|- align="left"
| Interval|| TimeSpan{{TimeSpan_MSDN}}|| In || Specifies the publishing interval to be used for the subscription. All variables using the same publishing interval are grouped together in a subscription for each publishing interval.
|- align="left"
| IndexRange|| OpcUaIndexRange|| In || For arrays, specifies the index range to be read or written. If left null, the entire array will be transferred.
|- align="left"
| Result|| Boolean{{Boolean_MSDN}}|| Out || True if successful, false if failed
|}
===Usage===This activity is used to configure a single variable for later access within an [[Activity:CreateOPCUAScope (Activity)|OPC scope]], only configured variables will be accessible.
==Example==
The ConfigureOPCUAVariable activity, as used in the larger example "Read value from OPC variable":
[[File:UI_Activity_CreateOPCUAConnection_Example.png|x700px]]
 
<headertabs />
==See also==
* [[Workflow Designer]]
* [[Activity:CreateOPCUAConnection (Activity)]]* [[Activity:CreateOPCUAScope (Activity)]]
[[Category:Workflows]] [[Category:Activities]] [[Category:Interfacing]] [[Category:OPC|ConfigureOpcUa...Item (Activity)]]
10,686
edits

Help improve this page!