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.
Can you provide your M-Bus device documentation or specify what meter are you using?
Also, you're running the VI on MyRIO right?
Yes I am running my VI on myrio. I attached the datasheet of Mbus device and pegelwandler(convert Mbus to RS485).
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.
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.