how to set timeout when exec client connect? #556
-
|
It spends about one minute when exec Look forward to your help, thank you |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Maybe I'm late but for people who still need it: from snap7.type import Parameter PlcClient= snap7.client.Client() PlcClient.set_param(Parameter.RecvTimeout, 10000) <-- In ms Can use: to know if it changed |
Beta Was this translation helpful? Give feedback.
-
|
Closing as answered. A solution using |
Beta Was this translation helpful? Give feedback.
Closing as answered. A solution using
set_param(Parameter.RecvTimeout, value_in_ms)was provided. In python-snap7 3.0, timeout can also be configured directly.