Closed elupus closed 2 years ago
@yozik04 can you help me out here. We should be grabbing the coil integer value and splitting it over 16 bit int blocks. Now we sort pass through an array of bytes. I think i missunderstood the API previously.
So we can either use the coil -> bytes, then do bytes -> array of int16, or we do a direct coil -> int16 (taking wordswap into account). Any thoughts?
I am a total noob in TCP modbus. I'd make a small script for testing a single register and checking different inputs/outputs. There are not many int32 settable registers which would want an array of int16.
Extracted from #50
We are seemingly not providing the write command with an array of int16 values.