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

Failure when trying to read UDP #3

Open
razvanbrasoveanu opened this issue Nov 9, 2018 · 2 comments
Open

Failure when trying to read UDP #3

razvanbrasoveanu opened this issue Nov 9, 2018 · 2 comments

Comments

@razvanbrasoveanu
Copy link

Hi!

I get the following exception when trying to read the data:

readCoils: START
Connected
Packet: e4e30000000600013000000c
Send
Wait data ...
Wait data ...
Wait data ...
Wait data ...
Wait data ...
Wait data ...
Wait data ...
Wait data ...
Wait data ...
Wait data ...
Wait data ...
Wait data ...
Wait data ...
Wait data ...
Wait data ...
Wait data ...

Exception: Watchdog time expired [ 5 sec]!!! Connection to 192.168.132.231 is not established. in C:\xampp\htdocs\Phpmodbus\ModbusMaster.php:160 Stack trace: #0 C:\xampp\htdocs\Phpmodbus\ModbusMaster.php(228): ModbusMaster->rec() #1 C:\xampp\htdocs\index.php(10): ModbusMaster->readCoils(0, 12288, 12) #2 {main}

Any idea why?

Thank you!

@carlos-granadeno
Copy link

Hi, I recently downloaded this library, and I had made a lot of attempts but it didn't connect. I read in a Siemens forum, when you try to connect to a modbus tcp you have to use port 510, not the 502, because that is reserved for the master, and when you try to read the data, your pc is a client.

@hsathyabhama
Copy link

readCoils: START
Connected
Packet: a0cf0000000600010001000c
Send
Wait data ...
Wait data ...
Wait data ...
Wait data ...
Wait data ...
Wait data ...
Wait data ...
Wait data ...
Wait data ...
Wait data ...
Wait data ...
Wait data ...
Wait data ...
Wait data ...
Exception: Watchdog time expired [ 5 sec]!!! Connection to 192.168.0.9 is not established. in F:\xampp\htdocs\phpmodbus\Phpmodbus\ModbusMaster.php:165 Stack trace: #0 F:\xampp\htdocs\phpmodbus\Phpmodbus\ModbusMaster.php(233): ModbusMaster->rec() #1 F:\xampp\htdocs\phpmodbus\examples\index.php(10): ModbusMaster->readCoils(0, 1, 12) #2 {main}..

same error for me also. Kindly help me to find a solution. Thanks in advance..

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