What is the best way to define other data types at emulator? #2429
-
I'm trying to emulate device with Modbus TCP connection. And I found that there's no defined types for:
although uint32, float32 already defined. What is the best way to define such types for device emulator? Is it better to start with single registers or there's some shortcuts or examples? |
Beta Was this translation helpful? Give feedback.
Answered by
janiversen
Oct 30, 2024
Replies: 1 comment 4 replies
-
The best way is to make a pull request that adds these types. int32 are already covered by uinit32....there are no protocol difference between int and uint, so no need to have both types. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Well you might not think so, but you forget the the number if converted to registers each 16 bit, so it does not matter.
It is correct that when you define the values in the json file there is a difference, but that is really the only difference, and not to forget it complicated the configuration....do you have a real use case, where you need to define large integers ?
As I wrote earlier, if you want changes please submit a change request.