pysoem
pysoem copied to clipboard
On Windows, after master.config_init() a short sleep() has to be done
I tried to use the pysoem on Python 3.10 and 3.9 for Windows but the issue was the same, when not having a sleep(0.1) after master.config_init() the results are garbage. On Linux this is not an issue.
Hi. Do you like to share more context on this? For example what your script is doing right after the config_init()
, what the error looks like, or maybe even more...
Here and there sleeps can help, maybe sometimes an increased timeout will do the same.
I did this and a Timeout didn't helped
def open(self, interface) :
self.master.open(self.interface)
if self.master.config_init() > 0 :
sleep(0.1)
else:
raise EthercatException()
Hi @rako233, I would like to leave this as a hint for users but close this issue, are you okay with that?