/Skill_Add_V1

Primary LanguageJavaScriptMIT LicenseMIT

DEMO OPC UA Server - "Skill Add Version V1"

Skill Add is a demo OPC UA-server implementing the skill interface of the SP347 Project. The implemented Skill do not use the state machine. The communication interface rely on calling "Start" --> monitoring "ResultTrigger" --> call "GetResult".

The information Type information model is imported from the file Add_V1.xml.

The default port of the application is 4845 and can be changed in the configuration file config.yml

Requirements

  • NodeJs : The Backend requires NodeJs and a node global package npm.
  • Git
  • Dockers: For a container installation, Docker is required. Please refer to the docker documentation for docker installation.

Installation

NodeJS

Step 1: Clone this repo.

Step 2: Install the dependencies.

npm install

Step 2: Start the application. Run the following

npm start

After a sucessfull startup the following output should be printed. Please notice the information that all modules have been sucessfully initialized and started.

C:\GitHub\OPEN-ACCESS>npm start

2020-05-18 09:06:18 - [info] | [Dummy Server] : Server is now listening ... ( press CTRL+C to stop)
2020-05-18 09:06:18 - [info] | [Dummy Server] : port 4845
2020-05-18 09:06:18 - [info] | [Dummy Server] : The primary server endpoint url is opc.tcp://LAPLACE.FAPS.UNI-ERLANGEN.DE:4845

The OPCUA server is now accessible at opc.tcp://LAPLACE.FAPS.UNI-ERLANGEN.DE:4845.

Deploy as a Microservice using Docker[Swarm]

You can also deploy as a microservice inside a Docker container:

Step 1: Clone the repo

Step 2: Build the Docker image

docker build -t opcua_server_skill_add .

Step 3: Run the Docker container locally:

docker run -p 4845:4845 -d opcua_server_skill_add

Usage

In order to configurethe server, the file config.yml has to be configured appropriately. For example the following configuration set the default port of the OPCUA server to 4845.

default:
  server:
    port: 4845
    buildInfo:
      productName: "DummySkillServer - Add"
      buildNumber: "v0001"
    ip: "0.0.0.0"
    endpointName: 'OPCUA@Siemens'
    username: 'root'
    password: 'root'
    allowAnonymous: true,
    serverInfo:
      applicationUri: "http://siemens.com/SkillOPCUA"
      productUri: "siemens.com/SP347_Example"
      applicationName: "SP347SkillEngineering@Siemens" 
    serverNodeSet: ["Add_V1.xml"]

Contributing

Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

See LICENSE for more information.

Contact

Jupiter Bakakeu - @JBakakeu - jupiter.bakakeu@gmail.com