andresarmento / modbus-esp8266

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

Open isaacTN opened 8 years ago

isaacTN commented 8 years ago

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);

   mb.Ists(3, 1);

   mb.Ists(5, 1);

   mb.Ists(6, 1);

   mb.Ists(7, 1);

   mb.Ists(8, 1);

  }  
ioteng commented 6 years ago

Is there anyone who solved this problem?

ESP-O-MAT commented 4 years ago

I think this is related to this issue: https://github.com/andresarmento/modbus-arduino/issues/35