You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation of my Modbus device is as follows:
"Signed Measurement (32-bit)
Decade Exponent (Signed 8-bit)
Binary Signed value (24 bit)
Example: - 123456*10-3 = FDFE 1DC0(16)"
But as it is written in the documentation of the umodbus.serial library: "Input registers can hold values between 0 and 65535. If supported by the client device, data can be marked as signed values to represent -32768 through 32767."
So this function only supports 16 bit values? Also, if positive values do not exceed 65000, there is no problem. But negative values are returned, such as 65xxx. How can I fix this?
Reproduction steps
...
MicroPython version
v1.23.0
MicroPython board
Raspberry Pico
MicroPython Modbus version
# e.g. v2.3.3# use the following command to get the used versionimportosfromumodbusimportversionprint('MicroPython infos:', os.uname())
print('Used micropthon-modbus version:', version.__version__))
Relevant log output
No response
User code
No response
Additional informations
No response
The text was updated successfully, but these errors were encountered:
Description
The documentation of my Modbus device is as follows:
But as it is written in the documentation of the umodbus.serial library:
"Input registers can hold values between 0 and 65535. If supported by the client device, data can be marked as signed values to represent -32768 through 32767."
So this function only supports 16 bit values? Also, if positive values do not exceed 65000, there is no problem. But negative values are returned, such as 65xxx. How can I fix this?
Reproduction steps
...
MicroPython version
v1.23.0
MicroPython board
Raspberry Pico
MicroPython Modbus version
Relevant log output
No response
User code
No response
Additional informations
No response
The text was updated successfully, but these errors were encountered: