sch17 / modbus-tk

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

DeprecationWarning #16

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I see the following deprecation warning when running the code.  The modbus 
slave that I am talking to is a Watlow F4 controller / temp chamber.

C:\Python25\lib\site-packages\modbus_tk-0.4-py2.5.egg\modbus_tk\modbus.py:254: 
DeprecationWarning: struct integer overflow masking is deprecated
  pdu = struct.pack(">BHH", function_code, starting_address, output_value)
C:\Python25\lib\site-packages\modbus_tk-0.4-py2.5.egg\modbus_tk\modbus.py:254: 
DeprecationWarning: 'H' format requires 0 <= number <= 65535
  pdu = struct.pack(">BHH", function_code, starting_address, output_value)

What version of the product are you using? On what operating system?
I am running with Python 2.5 in Windows Vista.

Please provide any additional information below.

Original issue reported on code.google.com by mark.tekippe on 22 Nov 2010 at 11:49

GoogleCodeExporter commented 8 years ago
Hello and sorry for late answer,
What is your query? 
Do you read the value properly? 
It seems that the value you try to pack is out of range. Can you check what is 
send and received?
I hope it helps
Best

Original comment by luc.jean@gmail.com on 10 Dec 2010 at 8:52