Skip to content

Modbus ID change - Wrong return slave address #101

@somakelemen

Description

@somakelemen

Hi,

I have a small script which change the slave default Modbus ID to another one (from 1 to 23 or any other unused ID) via write_register().
My issue is when it's done I got the following "error" which is right but basically this was the goal.

minimalmodbus.InvalidResponseError: Wrong return slave address: 23 instead of 1. The response is: '\x17\x06@\x03\x00\x17.ò'

I am using,
Python 3.9.2
minimalmodbus 2.0.1

Are there any option to override the expected slave address?

Metadata

Metadata

Assignees

No one assigned

    Labels

    UsageUsage questions

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions