-
Notifications
You must be signed in to change notification settings - Fork 250
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
Slave not responding #51
Comments
Yes, you have to set the timeouts for e.g. tcpclient - this is out of scope of NModbus lib. |
I am thinking about using a timer to check if "response" is != NULL. Should it work? How should I perform a "break" (or similar) istruction for a higher-level function (I am out of date in c#) |
There are built-in functions for that. |
Thanks, I will try it ASAP |
Another issue... If a PLC goes to STOP and return to RUN when I send data to it the "slace busy" exception occurs and blocks the whole program (in this case only Modbus in PLC is stopped, the TCP/IP layer is running). I have no idea how to manage this. |
I am using NModbus to connect PC (master) to a PLC (slave).
Everything runs perfect until PLC goes to STOP or ERROR - the connection remains, however the Modbus Slave is not responding.
I am using ReadMultipleRegisters function. The telegram is sent to PLC but there is no response and program is waiting for response. Is there a response timeout method to use? Should I do it any other way?
The text was updated successfully, but these errors were encountered: