-
Notifications
You must be signed in to change notification settings - Fork 48
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
Bug: write_single_coil()
is settting all other coils to False
#24
Comments
Relates to #36 |
@brainelectronics I don't thing so, because this problem still exists on the
Slave:
Master:
As the address
So, that is a problem right? And there is a far relation with the #15 where I still curious how I do to write a single This will write a single COIL in the first bit on the address 123 right? How I do to write a single COIL in the second bit on the address 123? Edit: I see the new register usage docs, where the 0x05 write_single_coil talk about how to write single COIL just on the first position, but do not talk about how to write a COIL in a different position than the first one, like as the second position and so on. |
Relates to #35 |
Fixed in 2.3.1 |
This bug was extracted from PR #10 report, in this reply:
I suppose that
write_single_coil()
, without use a list of coils, will write just on thefirst position
, like as I asked on the #15When I try to use
write_single_coil()
to write on the first position, all others coils positions are changed toFalse
.Using this register_definitions:
{'ISTS': {'EXAMPLE_ISTS': {'register': 67, 'len': 1, 'val': 0}}, 'IREGS': {'EXAMPLE_IREG': {'register': 10, 'len': 2, 'val': 60001}}, 'HREGS': {'EXAMPLE_HREG': {'register': 93, 'len': 1, 'val': 19}}, 'COILS': {'EXAMPLE_COIL': {'register': 123, 'len': 3, 'val': [0, 1, 1]}}}
The text was updated successfully, but these errors were encountered: