Hi Guys,
I have got a bit of a situation which I need some help in.
Firstly I have Modbus connection to my 314C CPU.
Most of the data is coming in correctly except for a value on engine runtime.
The Engines manual has the following.
Engine Runtime =
40044 Low Register
40045 = High Register
For the Data Points Engine Runtime, for the two registers designated as high and low are put together as an unsigned double integer.
This is accomplished by multiplying the value in the high register by 65536 and adding it to the value in the low register. Most software packages automatically perform this calculation if the value is simply identified as an unsigned double integer.
My question is how do go about combining the both of the registers so they can be displayed on a screen in a single box.
Also these values are in seconds and must be scaled down by a factor of 10 and converted to hours.
This should not be too much of an issue if I can get the two registers together as an Double Unsigned INT
Any ideas??
Any help is greatly appreciated
I have got a bit of a situation which I need some help in.
Firstly I have Modbus connection to my 314C CPU.
Most of the data is coming in correctly except for a value on engine runtime.
The Engines manual has the following.
Engine Runtime =
40044 Low Register
40045 = High Register
For the Data Points Engine Runtime, for the two registers designated as high and low are put together as an unsigned double integer.
This is accomplished by multiplying the value in the high register by 65536 and adding it to the value in the low register. Most software packages automatically perform this calculation if the value is simply identified as an unsigned double integer.
My question is how do go about combining the both of the registers so they can be displayed on a screen in a single box.
Also these values are in seconds and must be scaled down by a factor of 10 and converted to hours.
This should not be too much of an issue if I can get the two registers together as an Double Unsigned INT
Any ideas??
Any help is greatly appreciated