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

Write Multiple Registers #54

Closed
TmShaz opened this issue Nov 20, 2019 · 14 comments
Closed

Write Multiple Registers #54

TmShaz opened this issue Nov 20, 2019 · 14 comments

Comments

@TmShaz
Copy link

TmShaz commented Nov 20, 2019

Trying to Change a value in Holding Register expacting "write multiple registers" leads to "unknown function code: 134"

Version 2.0.9

@TmShaz
Copy link
Author

TmShaz commented Nov 20, 2019

Sollution of

@TmShaz TmShaz closed this as completed Nov 20, 2019
@TmShaz TmShaz reopened this Nov 20, 2019
@TmShaz
Copy link
Author

TmShaz commented Nov 20, 2019

Set maxBlock to 1 doesn't work.
#23

@GermanBluefox
Copy link
Contributor

It is strange. You are trying to write a value, that is longer than 16 bit, but the slave says, that it does not support it. You can avoid this problem by not using the values longer than 16 bit.

@TmShaz
Copy link
Author

TmShaz commented Jun 25, 2020

I don't know but I think the value are not longer than 16bit. I'm trying to write a "6" or "16". Unsigned 16bit (big endian)

@TmShaz
Copy link
Author

TmShaz commented Jun 25, 2020

I try to use the checkbox "Do not use multiple registers". But it switches back to unchecked after leaving the configuration. Version 3.1.4

@clausob
Copy link

clausob commented Jul 12, 2020

I have the same problem with a MAICO WS 320. Reading holding register works, writing one uint16 fails with error
132 or 134 depending on the setup. Maico expects code 16. Tried maxBlock=1 and "Do not use multiple registers"
(was changed in the config file even though I have the same behavior than TmShaz described above).

Added Screenshot of my configuration, Version 3.1.4
Screenshot at 2020-07-12 13-29-00

Am I missing something in my configuration?

Thanks a lot in advance,

Claus

@mcmuller
Copy link

same sort of problem here, trying to write Holding Register to a ELIWELL Heatpump that only accepts single writes. "Do not use multiple registers" switches back to unchecked when saved.
Question: Where to find "maxBlock" option?
image

@TmShaz
Copy link
Author

TmShaz commented Sep 25, 2020

Is there an option to force "write multiple registers (FC16)" even if the value doesn't need it? The Slave I'm using only accepts FC16.

@clausob
Copy link

clausob commented Sep 25, 2020 via email

@TmShaz
Copy link
Author

TmShaz commented Sep 25, 2020

Hi Claus,
this seems to work for me too. Thank you.
But it makes no difference if i check or uncheck the option "Do not use multiple registers". It still switches back to unchecked.

Now someone has to check, if this change make sense for the next release?

@clausob
Copy link

clausob commented Oct 13, 2020 via email

@TmShaz
Copy link
Author

TmShaz commented Oct 17, 2020

Hi Claus, completely agree. This should be an option.

@GermanBluefox can you consider this for next release?

1 similar comment
@TmShaz
Copy link
Author

TmShaz commented Oct 17, 2020

Hi Claus, completely agree. This should be an option.

@GermanBluefox can you consider this for next release?

@Apollon77
Copy link
Contributor

then lets consider thjis as duplicate of #78

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants