On Wed, Jun 29, 2011 at 02:02:30AM -0700, Petter wrote:
> DEBUG:pymodbus.client.sync:Running transaction 1
> DEBUG:pymodbus.transaction:0x0 0x1 0x0 0x0 0x0 0x3 0x0 0x86 0x2
> DEBUG:pymodbus.factory:Factory Response[134]
This indicates that the request to write the register has failed:
134 is the error code for the function with number 6 (Write Single
Register). It is computed by adding 128 to the function number.
Are you sure that the second holding register is available on
the server? The first register is addressed as register _0_.
> DEBUG:pymodbus.client.sync:Running transaction 2
> DEBUG:pymodbus.transaction:0x0 0x2 0x0 0x0 0x0 0x5 0x0 0x3 0x2 0x0 0x0
> DEBUG:pymodbus.factory:Factory Response[3]
This shows that the request to read holding registers (function code 3)
was successful. You should be able to access the values of the registers
by calling the method getRegister() of rr.
Best regards,
--
Albert Brandl
Weiermayer Solutions GmbH | Abteistra�e 12, A-4813 Altm�nster
phone: +43 (0) 720 70 30 14 | fax: +43 (0) 7612 20 3 56
web: http://www.weiermayer.com
Hi!On Wed, Jun 29, 2011 at 02:02:30AM -0700, Petter wrote:
> DEBUG:pymodbus.client.sync:Running transaction 1
> DEBUG:pymodbus.transaction:0x0 0x1 0x0 0x0 0x0 0x3 0x0 0x86 0x2
> DEBUG:pymodbus.factory:Factory Response[134]This indicates that the request to write the register has failed:
134 is the error code for the function with number 6 (Write Single
Register). It is computed by adding 128 to the function number.Are you sure that the second holding register is available on
the server? The first register is addressed as register _0_.> DEBUG:pymodbus.client.sync:Running transaction 2
> DEBUG:pymodbus.transaction:0x0 0x2 0x0 0x0 0x0 0x5 0x0 0x3 0x2 0x0 0x0
> DEBUG:pymodbus.factory:Factory Response[3]This shows that the request to read holding registers (function code 3)
was successful. You should be able to access the values of the registers
by calling the method getRegister() of rr.
Best regards,
--
Albert Brandl
Weiermayer Solutions GmbH | Abteistra�e 12, A-4813 Altm�nster