Changes

Activity:CreateOPCUAScope (Activity)

1,736 bytes added, 08:01, 20 November 2014
Created page with "{{ActivityInfoBox | title = Configure OPC UA Variable | name = CreateOPCUAScope | image = [[File:UI_Activity_CreateOPCUAScope.png|220px]] | imagecaption = CreateOPCUAScope (Ex..."
{{ActivityInfoBox
| title = Configure OPC UA Variable
| name = CreateOPCUAScope
| image = [[File:UI_Activity_CreateOPCUAScope.png|220px]]
| imagecaption = CreateOPCUAScope (Expanded)
| purpose = Create a scope for accessing OPC variables
| category = UBIK OPC UA Interface
| returns = True if successful
| version = 2.4.1+
}}

The CreateOPCUAScope opens a previously configured [[CreateOPCUAConnection (Activity)|OPC Connection]], processes variable requests and closes the connection when finished.

==Arguments==

{| class="wikitable sortable" | width = "50%"
|-
! Argument!! Type !! Direction !! Purpose
|- align="left"
| Connection|| OPCUAServerConnection|| In || A valid connection object as produced by a predecessing [[CreateOPCUAConnection (Activity)|OPC Connection]]
|- align="left"
| Result|| Boolean|| Out || True if successful, false if failed
|}

==Usage==
This activity is used to open a preconfigured [[CreateOPCUAConnection (Activity)|OPC Connection]]. It is a nestable activity, which means it can host any amount of sub-activities that will be processed sequentially. The hosted activities are typically [[AccessOPCUAVariable (Activity)|AccessOPCUAVariable]] activities, either as direct children but also wrapped within looping activities like ForEach or While. When all child activities are processed the OPC connection will be closed again.

==Example==
The CreateOPCUAScope activity, as used in the larger example "Read value from OPC variable":

[[File:UI_Activity_CreateOPCUAConnection_Example.png|x700px]]

==See also==
* [[Workflow Designer]]
* [[CreateOPCUAConnection (Activity)]]
* [[AccessOPCUAVariable (Activity)]]

[[Category:Workflows]] [[Category:Activities]] [[Category:Interfacing]] [[Category:OPC]]