Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mohitkumaragarwal committed Jan 25, 2024
2 parents 67030cb + dcd6cfb commit aaa64b9
Showing 1 changed file with 28 additions and 20 deletions.
48 changes: 28 additions & 20 deletions OPC_UA_Clients/Release2/NodeOPCUA_IJT_Client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

0 comments on commit aaa64b9

Please sign in to comment.