Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with Input address 7 reading correct value. #4

Open
isaacTN opened this issue Feb 14, 2016 · 2 comments
Open

Issues with Input address 7 reading correct value. #4

isaacTN opened this issue Feb 14, 2016 · 2 comments

Comments

@isaacTN
Copy link

isaacTN commented Feb 14, 2016

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


  }  
@isaacTN isaacTN changed the title Can not read mb.Ists(INPUTS [7], 1); Can not read the correct value of mb.Ists(INPUTS [7], 1); Feb 14, 2016
@isaacTN isaacTN closed this as completed Feb 18, 2016
@isaacTN isaacTN changed the title Can not read the correct value of mb.Ists(INPUTS [7], 1); C Feb 20, 2016
@isaacTN isaacTN changed the title C Issues with Input registers reading correct value. Feb 20, 2016
@isaacTN isaacTN reopened this Feb 20, 2016
@isaacTN isaacTN changed the title Issues with Input registers reading correct value. Issues with Input address 7 reading correct value. Feb 20, 2016
@ioteng
Copy link

ioteng commented Aug 9, 2018

Is there anyone who solved this problem?

@ESP-O-MAT
Copy link

I think this is related to this issue:
andresarmento/modbus-arduino#35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants