question

Noisy Boysie avatar image
Noisy Boysie asked

Modbus TCP register 820 returning 64k not minus numbers Cerbo GX

Hi


im seeing the data returned from my

Product Cerbo GX

Firmware version v2.73

when using Modbus register 820 +64k when it should be showing minus numbers, so when the register should be showing exporting numbers eg minus im getting +64k which is odd.

the Spreadsheet for this int16 should be

-32768 to 32767

But I'm getting 0 to 65535

1641999409380.png

is this a bug in v2.73?


Regards

Boysie

cerbo gxModbus TCP
1641999409380.png (24.1 KiB)
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

1 Answer
tnt369 avatar image
tnt369 answered ·

This is correct. If you are using int16 this will shown as negative value. But in the list the viewing is as hexadecimal and as unsigned integer (uint16). So the value in the list is approx -20 (65516-65536). Only a thing how the value is interpreted (int/uint).

1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

tnt369 avatar image tnt369 commented ·
0 Likes 0 ·