Generic Module Interface on OPC UA with JavaScript.
it seems to only work with node 0.12.1
- Clone the git repository:
git clone https://github.com/ProjectMi5/ModuleInterfaceJS.git
- Install the necessary npm dependencies:
npm install
- Configure the Module interface in opcua-server.js
- You need to adapt the ModuleNumber on several places. Currently it is all:
Module1101
There you would need to adapt the Module Number, use search and replace - Start the Module Interface:
node app.js
In app.js
use the get/set-Functions to access the state values. Example:
- get the Execute value:
opcua.getExecute()
- set the Execute value:
opcua.setExecute()
Implemented state values: Execute, Ready, Busy, Done, Error
- Configuration file, e.g.: config.js
- Command line interface for a port number, e.g.:
app.js --port=80
- SkillInput
- test higher node versions (e.g. 4.2.6)