Hello,
I recently discovered openPLC and am using it to automate and control my heathing system.
While I still lack experience with IEC1133 programming, I have the system with openPLC Editor, Runtime on Windows and Arduino and Modbus serial and TCP and ScadaBR running. It is a great and open system!
I found that it is possible and usefull to use an ESP8266 modbus slave (with the OpenPLC firmeare) without OpenPLC Runtime, directly as data point source for ScadaBR.
But I have an issue to add more than 1 digital input and output from the ESP8266 as datapoint in ScadaBR. The first datapoint works fine, but if I increase to offset to 1, 2 etc. the error "Illegal data address" occurs.
However, when adding datapoints via the Runtime system (Offset 800, 801 etc.) there is no error! There must be a difference in requesting Modbus data.
In Detail, adding datapoints in ScadaBR directly from the ESP8266 Modbus Slave:
Modbus Read Data for Coil- and Input Status:
- with offset 0 and Number of registers 8: works
- With offset 1 and Number of registers 1: "Illegal data address"
Point Locator Test for Coil- and Input Status:
- Offset 0, Registers 0 (fix): works
- Offset 1, Registers 0: "Illegal data address"
I this just a limitation of the Modbus firmware for the ESP8266 because only communication with the OpenPLC runtime is foreseen?
What is causing this behavior?
I there something I could do to fix the issue? Maybe extend the implementation or to use another Modbus Library?
Thank you for any hint.
Yves