07-27-2022 03:41 AM
Hi,
I have a program where I need to write an array of 12 registers into a modbus address. Now the problem is the first 4 are signed integers and the second 4 are unsigned integers. Is there a way to create an array with both signed and unsigned integers. Thank you.
Govind
07-27-2022 03:54 AM
Type cast signed data to unsigned before combining them into the array. This will preserve their binary representation.
Of course, use the resulting array only for Modbus writing, not for data processing.