gijzelaerr / python-snap7

A Python wrapper for the snap7 PLC communication library
http://python-snap7.readthedocs.org/
MIT License
632 stars 246 forks source link

RuntimeError: b' ISO : An error occurred during recv TCP : Connection timed out' #475

Closed vporet closed 8 months ago

vporet commented 8 months ago

Hello,

I need to use snap7 on a linux docker, I've crashed my RPI and I don't want to use it again.

I've build and run the docker without problems but after API.connect("192.168.1.232",0,2), I've got : RuntimeError: b' ISO : An error occurred during recv TCP : Connection timed out'.

I'm sure that PLC is ok because it's ran before my old RPI crash

I did simply this :

import snap7 API = snap7.client.Client() API.connect("192.168.1.232",0,2)

and after many second : RuntimeError: b' ISO : An error occurred during recv TCP : Connection timed out'.

I can ping my PLC from the docker.

Thanks for help

Vincent