Version v3.8.3 is now available. #2534
janiversen
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This release contains a number of server enhancements, and deprecated was remove from binarypayloader.
Thanks to the deprecation notice, we have received quite a number of comments and questions about how to do it. They can in general be summarized into 3 parts:
Using binarypayload to create a datastore for the server.
This is outdated, please use the simulator datastore, it offers a lot more flexibility.
Reading/Writing data including bits with client.
Reading e.g.4 registers with read_holding_register, and then decode them as:
16 coils
1 int32
is a violation of the modbus protocol (coils == bits, should not be read with read_holding_register), and thus not supported
Reading/Writing data ion mixed float/int with client.
Reading e.g. 4 registers with read_hoilding register and then decode them as:
1 int32
1 float32
is legal and efficient, this can be solved with 2 calls for from_registers (one for INT32 and one for FLOAT32).
We will soon provide examples showing that.
With that in mind, there are no need to make the combined functions, and they will be removed.
However binary-payload will not be removed until v4.0.0, sorry for the noise (deprecation warning), but it seems to be the only way to get feedback.
Beta Was this translation helpful? Give feedback.
All reactions