forked from stepfunc/rodbus
-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: Implementation of Function Code FC23 (0x17) - Read/Write Multiple Registers #5
Merged
grewek
merged 78 commits into
Iniationware:feature/fc23
from
dkoehler-dev:feature-fc23-read-write-multiple-registers
Feb 19, 2024
Merged
feat: Implementation of Function Code FC23 (0x17) - Read/Write Multiple Registers #5
grewek
merged 78 commits into
Iniationware:feature/fc23
from
dkoehler-dev:feature-fc23-read-write-multiple-registers
Feb 19, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
… AddressRange, fixed parse implementation
…nse handling for FC23
…er for streamlined code and separate server request handling
…tError Result (needed for parsing to work)
… parsing valid FC23 values
… successful serialization
…cessful and failing parsing
…ultiple_registers
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request implements the MODBUS function code FC23 (Read/Write Multiple Registers) as specified in the MODBUS Application Protocol Specification V1.1b3 (Page 38, Section 6.17: "23 (0x17) Read/Write Multiple registers").
The Function Code 23 (Hex 0x17) performs a combination of one read operation and one write operation in a single MODBUS transaction. The write operation is performed before the read.
This implementation was done by Dominik Köhler in the name of Iniationware GmbH, initialized by Klaus Landsdorf - CEO of Iniationware GmbH.
Client and Server now have support for the aforementioned Read/Write Multiple Registers feature. The implemented functionality was tested with unit tests for parsing/serializing an FC23 request/response - and should work as expected. Let me know, if there are any issues when testing.
I've also compiled a basic feature documentation of the FC23 request, accessible under
rodbus\WCFC_README.md
, feel free to modify it in any way needed.If you have any open questions, suggestions or notes about the FC23 feature implementation, do not hesitate to let me know. I am always happy to help where I can.
Best regards!
Dominik Köhler, Freelancer @Iniationware
Freelance Software Developer - Emerging Tech