Skip to content

Latest commit

 

History

History
16 lines (9 loc) · 1.12 KB

README.md

File metadata and controls

16 lines (9 loc) · 1.12 KB

OPCModbusUAServer

An OPC server

An open source OPC UA server for Modbus TCP devices. The project makes use of the powerful open source NodeOPCUA (http://node-opcua.github.io/) package, combined with the jsmodbus (https://github.com/Cloud-Automation/node-modbus) package to build the OPC server.

If you are not familiar with OPC, it's worth reading this: http://www.minaandrawos.com/2016/12/18/thoughts_industrial_opc/, if not familiar with Modbus, then this would be another good read: http://www.minaandrawos.com/2014/11/26/how-to-write-a-modbus-driver/#WhatIsModbus


Main files in the project:

  • server.js => The entry point for the application, creates the OPC UA server, initializes the address space, and links to Modbus actions
  • modbushandler.js => Contains the Modbus communication code needed to provide Modbus actions like reads and writes for the OPC server
  • config.json => Configuration file for the application, this is how we get to know the TCP addresses of the Modbus devices, the registers we'd like to read...etc