Skip to content

Getting response as 32768 when reading holding register #418

@PrakharPriyesh

Description

@PrakharPriyesh

Versions

  • Python: 3.6
  • OS: Windows
  • Pymodbus: 2.2.0
  • Modbus Hardware (if used): Energy Meter from schneider

Pymodbus Specific

  • Client: rtu - sync

Description

I want to read the register value but in response I am getting 32768

Code and Logs

 # code and logs here.
from pymodbus.client.sync import ModbusSerialClient

client = ModbusSerialClient(method='rtu', port='COM6', baudrate=9600, parity='E')
client.connect()

rr = client.read_holding_registers(43110,1,unit=0x05)
client.read_holding_registers(43076, 2, unit=0x05).registers
client.read_input_registers(32022, 1, unit=0x01).registers
client.write_coils(2048,1,unit=1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions