chwiede / pyads

Beckhoff ADS implementation for python
MIT License
49 stars 14 forks source link

AdsClient retries 3 times to send command when it fails. #9

Closed ccatterina closed 8 years ago

ccatterina commented 8 years ago

If AdsClient fails to send a command it catch socket.error and it tries 3 times to resend it. After 3 attempts it raise an AdsException with code 0x274c. This commit solves an issue that causes BROKEN PIPE error if Beckhoff PLC closes socket between a command and the next.

chwiede commented 8 years ago

Looks good so far, thanks for pr!