wewa00 / modbus-tk

Automatically exported from code.google.com/p/modbus-tk
Other
0 stars 0 forks source link

Works with Temco T3-8IO and T3-8I13O #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Just tested with a Temco Controls T3-8IOA (8 Analog in/8 Analog Out) and T3-
8I13O (8 Analog in / 13 Relay out).

Seems to work fine. The unit comes configured as ID #254.

Changed a line in modbus_rtu.py to:

if (self._request_address < 0) or (self._request_address > 255):

to allow unit IDs up to 255. The equipment will always respond to unit #255, 
this allows you to find the device easier to see what unit id it has.

Also have a Temco T5E thermostat here, but still need to test it.

Original issue reported on code.google.com by mechco....@gmail.com on 6 Feb 2010 at 6:26

GoogleCodeExporter commented 8 years ago
Hello,

I think that the modbus spec says that the maximum allowed address is 247. But 
I am
ok to modify the code and allow up to 255.

Some devices doesn't follow spec strictly but it is not a big deal.

Original comment by luc.jean@gmail.com on 10 Feb 2010 at 10:15

GoogleCodeExporter commented 8 years ago
Fixed on rev 102. 
The unit tests have been modified too
Please verify that everything is Ok for you.

Original comment by luc.jean@gmail.com on 10 Feb 2010 at 10:19