OPC/en: Unterschied zwischen den Versionen
Cg (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „OPC is a wellknown and commonly used framework used in manufactoring, factory automation and IoT ("''Internet of Things''"). Traditionally, OPC used COM/DCOM …“) |
Cg (Diskussion | Beiträge) |
||
Zeile 1: | Zeile 1: | ||
OPC is a wellknown |
OPC is a wellknown communication framework used in manufactoring, factory automation and the IoT ("''Internet of Things''"). |
||
Traditionally, OPC used COM/DCOM as underlying transport and was therefore more or less bound to Windows architectures (or required expensive COM/DCOM frameworks under Unix/Linux). |
Traditionally, OPC used COM/DCOM as underlying transport and was therefore more or less bound to Windows architectures (or required expensive COM/DCOM frameworks under Unix/Linux). |
Version vom 16. Dezember 2018, 11:44 Uhr
OPC is a wellknown communication framework used in manufactoring, factory automation and the IoT ("Internet of Things").
Traditionally, OPC used COM/DCOM as underlying transport and was therefore more or less bound to Windows architectures (or required expensive COM/DCOM frameworks under Unix/Linux). In contrast, the more recent OPC-UA ("OPC-Unified Architecture") uses standard TCP communication on top of which either binary data or XML-based HTTP requests are exchanged.
This plugin provides both a server and a client implementation of OPC-UA, by interfacing an open source (and license free) OPC-UA implementation written for NodeJS.
Inhaltsverzeichnis
Node Installation[Bearbeiten]
NodeJS is mandatory to be installed on our machine.
Check if node is already present (enter "node --version
" on the command line), or open the expecco settings-dialog and navigate to "External Script Interpreters".
If node is not installed, download and install it from "https://nodejs.org/en/download".
Also make sure that the node package manager (try "npm -v
") is installed.
Node-OPC-UA Installation[Bearbeiten]
"node-opcua" is an opensource, license free and pure JavaScript implementation of OPC-UA for nodeJS. For more information, consult "https://github.com/node-opcua".
Using "npm", the node package manager, install the "node-opcua" package:
npm install node-opcua
and optionally, the demo examples with:
npm install node-opcua-samples
Verify that the modules are present in your "~/node_modules" folder. (the OPC_UA_Interface library contains a action block named "Assert "node-opcua" module is present" to verify that the module is found.
If it is not found (typically, because "node_modules" are not configured to be found by node), you can adjust the NODE_PATH setting in the "Extras" - "Settings" - "External Script Interpreters" dialog.