-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopc-ua.lsp
49 lines (38 loc) · 2.61 KB
/
opc-ua.lsp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?lsp
title="Protocols: OPCUA Example" response:include".header.lsp"
local version = true == pcall(function() require("opcua_ns0") require("opcua.api") end) and ba.version() or 0
?>
<h1>OPC-UA Example</h1>
<p><a target="_blank" href="https://realtimelogic.com/products/opc-ua/">OPC Unified Architecture (OPC-UA)</a>
is a machine to machine communication protocol for industrial automation.
<p>The OPC-UA examples bundled in the '<samp>opcua-client.zip</samp>' file (<a target="_blank" href="https://github.com/RealTimeLogic/OPC-UA-Browser">
also available from our GitHub repository</a>) include both a browser-based user interface and a server-side OPC-UA client.
The user interface is implemented as an HTML and JavaScript-powered Single Page Application (SPA) that runs
in the browser and communicates with the server-side client using WebSockets.
The examples also include an OPC-UA server with the endpoint URL '<samp>opc.tcp://<?lsp=demo.ipaddr?>:4841</samp>'.
These examples can help you get started with OPC-UA and see how it can be used to build robust and efficient applications.</p>
<img src="https://github.com/RealTimeLogic/OPC-UA-Browser/raw/main/web-client-opc-ua.png" />
<p>The client's default OPC-UA endpoint address is to the local OPC-UA server. You can use any OPC-UA server address,
such as the following public OPC-UA server: <samp>opc.tcp://opcuaserver.com:48010</samp>. You can also connect other (external)
OPC-UA clients to the server example.</p>
<?lsp if version == 0 then ?>
<h3>OPC-UA Not Included</h3>
<p>This server does not include the OPC-UA libraries.</p>
<?lsp elseif version < 5019 then ?>
<h3>The two OPC-UA examples require a <a target="_blank" href="https://makoserver.net/download/overview/">newer Mako Server</a>!</h3>
<?lsp else ?>
<p style="text-align: center;" id="NextBut"><a target="_blank" href="/opc/">Start The OPC-UA Web Client</a></p>
<?lsp end ?>
<ol>
<li>Click the above button to open the JavaScript powered OPC-UA Web Client</li>
<li>Click the Get endpoints button</li>
<li>Expand one of the connection methods</li>
<li>Select "Anonymous" and click the Login button</li>
<li>Navigate the OPC UA Tree by exanding the nodes in the left side pane</li>
<li>Use any third party OPC-UA client and connect to the local server (<samp>opc.tcp://<?lsp=demo.ipaddr?>:4841</samp>); see the
<a target="_blank" href="https://realtimelogic.com/ba/opcua/thirdparty_clients.html">Third Party Clients Tutorial</a> for details</li>
</ol>
<div style="text-align:center">
<img src="https://github.com/RealTimeLogic/OPC-UA-Browser/raw/main/web-client-slides.gif" />
</div>
<?lsp response:include"footer.shtml" ?>