-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/umati/UA-for-Industrial-Joi…
- Loading branch information
Showing
1 changed file
with
28 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,40 +10,48 @@ Email: [email protected] | |
Mohit Agarwal | ||
Email: [email protected] | ||
|
||
## NodeOPCUA related | ||
## Overview | ||
|
||
Etienne Rossignon | ||
Email: [email protected] | ||
This application uses the open source OPC UA ASYNCUA Stack. The purpose of this application is to consume the data from any OPC UA server based on the OPC UA Industrial Joining Technologies Companion Specifications. | ||
|
||
## Overview | ||
## Pre-requisites | ||
|
||
This application uses the open source NodeOPCUA Stack. The purpose of this application is to consume the data from any OPC UA server based on the OPC 40451-1 UA CS for Tightening Systems 1.00. | ||
1. Fork or clone the repository. | ||
2. **Go to** OPCUA_Clients\Release2\NodeOPCUA_IJT_Client folder. | ||
3. **Set up** Python virtual environment as per the following steps: | ||
|
||
This client will be updated based on the newer versions of the companion standards developed by VDMA Industrial Joining Technologies Working Group. | ||
Python -m venv venv | ||
|
||
## Pre-requisites | ||
venv/Scripts/activate.ps1 | ||
5. **Install** the following packages in the virtual environment: | ||
|
||
pip install --upgrade pip | ||
|
||
1. Fork or clone the repository | ||
2. Go to OPCUA_Clients\NodeOPCUA_IJT_Client folder | ||
3. Run `npm install` | ||
pip install websockets | ||
|
||
pip install asyncua | ||
|
||
pip install live-server | ||
|
||
## How to run? | ||
|
||
1. Run the following command: `node index.js` | ||
2. The above command will start the socket.io server at `http://localhost:3000` | ||
3. Open the `http://localhost:3000` in the browser and start using the client. | ||
1. **Open** the Python Virtual Environment: | ||
|
||
& "<Path>/OPC_UA_Clients/Release2/NodeOPCUA_IJT_Client/venv/Scripts/Activate.ps1" | ||
3. **Start** Python Server using the following command: | ||
|
||
py index.py or python index.py | ||
4. **Start** live server to present the webpage and reload when files are updated. Run the following command from a separate terminal: | ||
|
||
live-server --port=8000 | ||
6. The above commands will start the socket.io server at `http://localhost:3000` | ||
7. Open the `http://localhost:3000` in the browser and start using the client. | ||
|
||
## OPC UA Server | ||
|
||
1. Use the following OPC UA Server to utilize the OPC UA Client: <https://github.com/umati/UA-for-Industrial-Joining-Technologies> | ||
2. Select Servers -> Local in the OPC UA Client to connect to the local OPC UA Server. | ||
1. Use the following OPC UA Server to utilize the OPC UA Client: https://github.com/umati/UA-for-Industrial-Joining-Technologies/tree/main/OPC_UA_Servers/Release2 | ||
|
||
## Tips | ||
|
||
* To update existing node-opcua modules, run the following commands: | ||
|
||
```bash | ||
npx npm-check-updates -u -f 'node-opcua*' | ||
npm install | ||
``` | ||
|