Convert INT64 to desimal so it can be shown on a webpage

I’ve got an issue with converting data from a modbus TCP. This is for transfer the total energy from a powermeter to a webpage. I got this information from the modbus adress list:

Address: 0x7D5F–0x7D62
Register: 32096–32099
RW: R 
Unit: Wh 
Type: INT64 
Range: - 
A/E: E 
A/E/P/H: E/P/H 
X: X 
Description: Total active energy

Energy is stored in big-endian format: The most significant register is transmitted first.

Im using a 1152 CPU

Can someone help me making a LD or NOLD diagram how to convert it to desimal so I can show it on the webpage.

You should be able to use something like the following:

- Delcare an LWORD variable to hold the 64 bit number.

- Use MOVE blocks to move the four 16 bit words into the LWORD using dot notation, for example:

MyLWORD.W3 := FirstRegisterValue;
MyLWORD.W2 := SecondRegisterValue;
MyLWORD.W1 := ThirdRegisterValue;
MyLWORD.W0 := FourthRegisterValue;

- If necessary, use a TO_LINT block to convert the LWORD value to an LINT value, which you can display on the HMI.

Thanks, that help.