Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setValues is called with incorrect address #57

Closed
sjlongland opened this issue Aug 19, 2014 · 1 comment
Closed

setValues is called with incorrect address #57

sjlongland opened this issue Aug 19, 2014 · 1 comment

Comments

@sjlongland
Copy link
Contributor

Hi,

I'll see if I can get some better data, but I've noticed that pymodbus seems to have a bug when performing a register write. Reading works fine, however when I perform a write register, it first validates the address range, which works, but then tries to call setValues with the wrong register address.

2014-08-19 17:42:40,127 mm-da-modbus-slave.unit001[modbus-slave.py: 411] DEBUG validate[6] 2011:1
2014-08-19 17:42:40,127 mm-da-modbus-slave.unit001[modbus-slave.py: 691] DEBUG set-values[6] 1:1
2014-08-19 17:42:40,127 mm-da-modbus-slave.unit001[modbus-slave.py: 695] DEBUG set-values: 1 = 3

Here, I tried writing to register 2011, it validates that it can write to register 2011, but then when it actually calls setValues, it passes in register 1. We're using the pymodbus 1.2.0-2 Ubuntu package compiled on Ubuntu 12.04.

@sjlongland
Copy link
Contributor Author

Okay, I'm an idiot. Had =+ instead of += in my code. Please disregard and my apologies for the noise.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant