Demo » History » Version 3
Michel Condemine Admin, 02/25/2023 10:54 AM
1 | 1 | Michel Condemine Admin | # Demo |
---|---|---|---|
2 | The demo simulate a tank with a bunch of methods and variables. |
||
3 | There is a Tank01 instance (UAObject) of TankType (UAObjectType). You can play with method StartPump, StopPump, Drain, GetCurrentLevel, etc. |
||
4 | The server is listening on port 2407. |
||
5 | ## On Linux |
||
6 | 1. Download server binaries from the OpenOpcUa website. |
||
7 | 3 | Michel Condemine Admin | [Download:SimulationTank_2023_Linux](http://www.openopcua.org/redmine/attachments/download/3835/SimulationTank_2023_Linux.tar.gz) |
8 | 1 | Michel Condemine Admin | 2. Extract **SimulationTank_2023_Linux.tar.gz** into a local folder |
9 | 3. Start a shell |
||
10 | 4. Move to the folder where you extracted files |
||
11 | 5. Run the following command : sh StartOpenOpcUaCoreServer.sh |
||
12 | Note : OpenOpcUaCoreServer depends on 3 dynamic libraries that the server need to retrieve in its path. |
||
13 | 6. Now you can connect with your prefered UA client using the following URL : |
||
14 | 2 | Michel Condemine Admin | opc.tcp://localhost:2407/OpenOpcUaCoreServer |
15 | 1 | Michel Condemine Admin | |
16 | 7. Enjoy it !!! |
||
17 | 3 | Michel Condemine Admin | |
18 | ## On Windows |
||
19 | 1. Download and install the Local Discovery Server (LDS) OPC Foundation LDS – Need to be registred |
||
20 | **The LDS is optional.** |
||
21 | 2. Download server binaries from the OpenOpcUa website. |
||
22 | [Download:Simulation_2023_Release](http://www.openopcua.org/redmine/attachments/download/3851/Simulation_2023_Release-IPV4__x64.zip) |
||
23 | 3. Extract Simulation_2023_Release-IPV4__x64.zip in a local folder |
||
24 | 4. Start a command line (CMD) in the folder where you extracted the demo. |
||
25 | 5. Type the command : StartServer.bat and hit Enter |
||
26 | 6. Now you can connect with your UA client using the following URL : |
||
27 | opc.tcp://localhost:2407/OpenOpcUaCoreServer |
||
28 | |||
29 | 7. Enjoy it !!! |
||
30 | |||
31 | **Configuration file are the same on Windows and Linux** |
||
32 | One of the OpenOpcUa nenefit is that you can switch from Windows to Linux or from Linux to Windows with no effort. |