pysoem icon indicating copy to clipboard operation
pysoem copied to clipboard

On Windows, after master.config_init() a short sleep() has to be done

Open rako233 opened this issue 2 years ago • 3 comments

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.

rako233 avatar Feb 27 '22 10:02 rako233

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.

bnjmnp avatar Feb 27 '22 11:02 bnjmnp

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()

rako233 avatar Mar 04 '22 13:03 rako233

Hi @rako233, I would like to leave this as a hint for users but close this issue, are you okay with that?

bnjmnp avatar Feb 12 '24 21:02 bnjmnp