Skip to content

Issues with Input address 7 reading correct value. #4

@isaacTN

Description

@isaacTN

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


  }  

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions