Difference between revisions of "Activity:CreateOPCUAScope (Activity)"
(→Arguments) |
|||
Line 18: | Line 18: | ||
! Argument!! Type !! Direction !! Purpose | ! Argument!! Type !! Direction !! Purpose | ||
|- align="left" | |- align="left" | ||
− | | Connection|| OPCUAServerConnection|| In || A valid connection object as produced by a predecessing [[CreateOPCUAConnection (Activity)|OPC Connection]] | + | | Connection|| OPCUAServerConnection|| In || A valid connection object as produced by a predecessing [[Activity:CreateOPCUAConnection (Activity)|OPC Connection]] |
|- align="left" | |- align="left" | ||
| Result|| {{Boolean_MSDN}}|| Out || True if successful, false if failed | | Result|| {{Boolean_MSDN}}|| Out || True if successful, false if failed |
Revision as of 11:44, 23 February 2015
Configure OPC UA Variable | |
---|---|
Name | CreateOPCUAScope |
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 OPC Connection, processes variable requests and closes the connection when finished.
Contents
Arguments
Argument | Type | Direction | Purpose |
---|---|---|---|
Connection | OPCUAServerConnection | In | A valid connection object as produced by a predecessing OPC Connection |
Result | Boolean | Out | True if successful, false if failed |
Usage
This activity is used to open a preconfigured 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 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":