Communicating meter captures data from the user port (P1) via serial port

Good morning,
I am from Belgium, the French-speaking part, and I recently have a communicating meter, via port P1 (user port), I receive my information on my consumption in real time, this information is intercepted by my plc 750-8217 via the serial port. rs232, it works well but I had to rack my brain a little to process the information received and use it for my internal energy management.
here is the code:
would you have done differently?

thx!

Alain
the code