A library that allows your ESP8266 to communicate via Modbus protocol, acting as a slave (master in development). Supports IP via wireless network (Modbus IP).
BSD 3-Clause "New" or "Revised" License
146
stars
236
forks
source link
Issues with Input address 7 reading correct value. #4
Having issues with reading the correct value on mb.Ists(7, 1);. Reading a zero and not a 1.
/****/ // Address 1 on the PLC is Address 0 on the ESP8266
for (index1 = 0; index1 < 32; index1++)
{ mb.addIsts(index1);
}
void loop() { //Call once inside loop() - all magic here mb.task(); if (millis() > timer0 + 2000) { timer0 = millis(); mb.Ists(0, 1);