The {{UBIK}} [http://en.wikipedia.org/wiki/OPC_Unified_Architecture OPC Unified Architecture] interface module enables interfacing between a {{UBIK}} server and any OPC UA compliant data source in a bidirectional manner.
==Overview==
==Prerequisites==
[[File:UI_OPCUA_Certificate.png|border|thumb|Export Certificate]]
The {{UBIK}} OPC UA components are acting as an OPC Client, therefore a secure connection to the respective OPC Server needs to be established in order to be able to communicate. The security standards that need to be applied are highly dependent on the server configuration and security infrastructure, but normally at least a client certificate needs to be issued that has to be trusted by the server:
# Open a command box on the {{UBIK}} server with administrator privileges (''"Run as administrator..."'')
# Run the program ''CreateCertifcate.exe'' from the this archive [[File:{{FileLink|CreateCertificate.zip]]|CreateCertificate.zip}}# ''CreateCertifcate.exe'' can be controlled via command line parameters, "CreateCertificate.exe -?"
# Open the program ''Manage computer certificates'' (typically ''C:\WINDOWS\System32\certlm.msc'')
# Navigate to ''Personal - Certificates'' and find the certificate named ''UBIK OPCUA Interface''
# Export the certificate and trust it on your OPC server
[[FileCategory:UI_OPCUA_Certificate.pngOPC|Export CertificateOPC UA (Module)]][[Category:Plugin|OPC UA (Plugin)]]
=={{UBIK}} Activities==
{| class="wikitable sortable" | width = "50%"
|-
! Activity!! Category !! Purpose (Short)
|- align="left"
| [[Activity:CreateOPCUAConnection (Activity)|CreateOPCUAConnection]]|| UBIK OPC UA Interface || Creates a new connection to an OPC UA data source
|- align="left"
| [[Activity:ConfigureOPCUAVariable (Activity)|ConfigureOPCUAVariable]]|| UBIK OPC UA Interface || Configures a single OPC variable in a connection for later access
|- align="left"
| [[Activity:CreateOPCUAScope (Activity)|CreateOPCUAScope]]|| UBIK OPC UA Interface || Defines a scope in an OPC UA connection wherein variables can be accessed
|- align="left"
| [[Activity:AccessOPCUAVariable (Activity)|AccessOPCUAVariable]]|| UBIK OPC UA Interface || Reads or writes a single configured OPC UA variable
|- align="left"
|}
==Examples==
Download example workflow [[File:{{FileLink|OPCReadVariables.uwf]] |OPCReadVariables.uwf}} for use against the OPC Quickstart Data Access Server. == See also ==* [http://documentation.unified-automation.com/uasdkdotnet/2.3.1/html/namespaceUnifiedAutomation.html UA Bundle SDK .NET]* [[Activity:CreateOPCUAConnection_(Activity)|CreateOPCUAConnection (Activity)]]
[[Category:OPC|OPC UA (Module)]][[Category:Plugin|OPC UA (Plugin)]]