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

**URL:** <https://www.wago.community/t/communicating-meter-captures-data-from-the-user-port-p1-via-serial-port/714>\
**Category:** CODESYS\
**Tags:** ecockpit\
**Created:** [December 2, 2023, 9:42am UTC](https://www.wago.community/t/communicating-meter-captures-data-from-the-user-port-p1-via-serial-port/714 "2023-12-02T09:42:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alain\_h](https://avatars.discourse-cdn.com/v4/letter/a/87869e/32.png) [@Alain\_h](https://www.wago.community/u/Alain_h)\
**Post date:** [December 2, 2023, 9:42am UTC](https://www.wago.community/t/communicating-meter-captures-data-from-the-user-port-p1-via-serial-port/714/1 "2023-12-02T09:42:40Z")

</div>

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

 ![code_p1](https://us1.discourse-cdn.com/flex016/uploads/wago/original/1X/5e112aec06a822703e5264f77ce47b447fe9b730.jpeg)
