Hello, I’m reading data from a Genset controller. The read data are in US_08 formate. For example à nominal frequency of 50Hz when read returns 6. This value needs to be converted and divided by 256 to obtain the real value. Some values are store in two registers and need to be converted and divided by 256 to get the real value.
I need help please
Can you point to the docs that define that format? Google does not come up with anything that looks relevant.
From these cues, I am guessing this is ModBus data.
From that I found this manual: https://www.meccalte.com/downloads/Dance_User_Manual___EAAM044401EN_MA.pdf
There is no description of US_08
format but based on it being in a single register I assume US means Unsigned Single
and 08 means 8???
as for how to convert - you need to be using node-red-contrib-buffer-parser
Can you send a data dump? Maybe we can figure it out
OK, so US_08 means unsigned 8 bit. That does not explain how 6 indicates a frequency of 50Hz.
Actually I had difficulties with functions (03 ,04) corresponding to each register. Reading input registers requires function-04.
It’s all good now.
Thanks for the efforts.