stepfunc / rodbus

Rust implementation of Modbus with idiomatic bindings for C, C++, .NET, and Java
https://stepfunc.io/products/libraries/modbus/
Other
80 stars 22 forks source link

Feat: Custom Defined Function Codes (FC 65..=72, 100..=110) #134

Open grewek opened 3 months ago

grewek commented 3 months ago

This pull request implements the user-definable function codes as described in the Modbus specification (see MODBUS Application Protocol V 1.1b3 page 10/50).

A description of this functionality can be found under rodbus/SCFC_README.md.

This implementation was done by Dominik Köhler in the name of Iniationware GmbH, initialized by Klaus Landsdorf - CEO of Iniationware GmbH.

biancode commented 3 months ago

This is from our perspective Spec conform to use the so called Custom Function Codes (CFC) and to define individual handlers per CFC inside the server (slave) to give the expected answer to CFC requests by a client (master). Examples how to use it and to test on CLI is to find in the examples folder.