Mapping of module data to trend sqlite integer

Hello, Community

I want to evaluate the SQLite database of the Trend Recorders. The TimeStamp values are understandable and convertible. For the channel values, DB Browser outputs the data type as INT, which, as I have read, is correct and understandable for performance reasons.

However, the INT numbers are very large (e.g., 1,126,341,026), considering the 12 or 16-bit resolution depending on the module — where 4096 or 65536 would suffice. Is there a rule to convert the INTs to the module values?

(Yes, I could also program a separate data logger or use the Wago file libraries. But if I already have trend recording running, that’s double the work for double the storage requirement.)

Thanks for a tip,

Michael

Okay - it’s resolved: The table list in DB Browser assumes the values are INTEGERs. In reality, they are IEEE FLOATs, and if you run the bit pattern through the corresponding conversion, you get the values with the scaling that was set in the PLC.

Example:

Channel: Val1
INT: 1126134685
HEX: 431F739D
BIN: 01000011 00011111 01110011 10011101
FLOAT: 159.45

I still need to figure out how to make DB Browser generate the values directly as a REAL table.

Michael