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