-
Notifications
You must be signed in to change notification settings - Fork 28
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
Comments
Sollution of |
Set maxBlock to 1 doesn't work. |
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. |
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) |
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 |
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. |
Hi,
I changed it in the sourcecode to force FC16 when the option is set, I
hope that I found the right change:
diff -r ioBroker.modbus-3.1.4/lib/master.js
/opt/iobroker/node_modules/iobroker.modbus/lib/master.js
407c407,408
< if (objects[id].native.len > 1 &&
!options.config.doNotUseWriteMultipleRegisters) {
---
//if (objects[id].native.len > 1 &&
!options.config.doNotUseWriteMultipleRegisters) {
if ( !options.config.doNotUseWriteMultipleRegisters) {
Hope this helps,
Claus
…On 9/25/20 12:18 PM, TmShaz wrote:
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.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#54 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACP5CUDQ6YZZCUTI635P6E3SHRVA5ANCNFSM4JP2IHWQ>.
|
Hi Claus, Now someone has to check, if this change make sense for the next release? |
Hi,
my workaround foces to use "write multiple register" which is of course
not a solution. It would be beneficial to have an option
"force use of write multiple register" in the user-interface. And second
topic is that the switch "Do not use multiple registers"
does not work.
Best regards,
Claus
…On 9/25/20 11:39 PM, TmShaz wrote:
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?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#54 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACP5CUHPKRZ7CYJSBQPJNFTSHUE23ANCNFSM4JP2IHWQ>.
|
Hi Claus, completely agree. This should be an option. @GermanBluefox can you consider this for next release? |
1 similar comment
Hi Claus, completely agree. This should be an option. @GermanBluefox can you consider this for next release? |
then lets consider thjis as duplicate of #78 |
Trying to Change a value in Holding Register expacting "write multiple registers" leads to "unknown function code: 134"
Version 2.0.9
The text was updated successfully, but these errors were encountered: