07-26-2022 07:03 AM - edited 07-26-2022 07:13 AM
Hii everyone,
I want to read electricity meter(Mbus) with LV. I am new with this protocol. My connection is as follows: Mbus meter to NImyRIO via serial/USB connection and myRIO hardware is connected to PC.
I tried to send SND_NKE 10 40 00 40 16 (in string constant hex display- 1040 0040 16), however, I don't get any response. It should return E5, but I did not got any thing.
I attached my VI with this message.
My experience with this is not more. Hopefully someone can help me where I did mistake.
Solved! Go to Solution.
07-27-2022 09:26 AM
Hi,
There's a forum thread (Problems with serial/usb communication with M-bus) where similar issue was solved.
Please take a look and see if it helps.
07-27-2022 09:28 AM
07-29-2022 10:49 AM
Can you provide your M-Bus device documentation or specify what meter are you using?
Also, you're running the VI on MyRIO right?
07-30-2022 03:23 AM
Hii nababajan,
Yes I am running my VI on myrio. I attached the datasheet of Mbus device and pegelwandler(convert Mbus to RS485).
08-01-2022 11:04 AM - edited 08-01-2022 11:05 AM
Hi again,
Thank you for provided documents, I'll try to figure the things up.
Meanwhile you can try using Modbus Library for LabVIEW (can install it using VIPM).
08-02-2022 02:01 AM
Hii nbabayan,
Yes, I know about Modbus library, but my meter works on Mbus protocol. there is a different version for Modbus available, but I don't have that. So I have to find solution for this Mbus protocol.
08-03-2022 02:15 AM
Hii everyone,
I found the problem. when I put a probe on refnum after visa configuration, it showed me 9600 baud rate, I don't know why, because I made a constant of 2400 for that. than I deleted visa configuration VI and put a new. It is working now.
Thank you for your help, time and support and sorry for inconvenience that I created.
I attached the final VI.