LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with M-Bus communication

Hello everybody,

I've got problem with M-Bus protocol in LabView.

I have heat meter with RS232 communication module which is connected to PC by RS232/USB adapter. The hardware is okay, because I've got programs such as MBSheet which works great. The problem is with LabView.

 

If I send 10 40 01 41 16 (SND_LKE) I'll get correct data (in all programs) - E5

If I send 10 7B 01 7C 16 (REQ_UD2):

 

MBSheet answer:

68 74 74 68 08 01 72 35 05 43 01 00 00 39 04 ED 00 00 00 0C 78 35 05 43 01 0C 0E 00 00 00 00 0C 12 00 00 00 00 02 2D 00 00 02 3B 00 00 02 59 FF 7F 02 5D FF 7F 0B 26 88 02 00 3B 26 00 00 00 8C 10 0E 00 00 00 00 04 6D 1D 09 D0 19 02 61 00 00 12 2D 00 00 12 3B 00 00 8C 40 12 00 00 00 00 8C 80 40 12 00 00 00 00 8C C0 40 12 00 00 00 00 8C 80 80 40 12 00 00 00 00 6C 16

 

LabView answer:

68 74 D1 82 83 5C 70 CE 8D 05 0D 13 1C 60 00 39 11 76 17 C0 00 00 18 C2 52 AC B0 E8 C0 0C 39 06 10 C0 00 00 18 12 08 60 80 00 00 12 0C 31 C0 00 02 3B 00 00 12 4C D9 F9 23 5C DD F9 B3 9C 72 A2 02 00 76 33 0E 30 80 00 8C 10 0E 00 00 02 08 60 C1 6D 1A 09 41 19 02 61 00 00 12 08 31 C0 00 12 ED 06 10 C0 C6 40 12 01 04 10 C0 00 8C 80 40 12 01 04 10 C0 00 8C C0 01 23 18 60 00 00 00 62 0E 78 E0 40 12 01 04 10 C0 00 63 59 FE 

 

 

They differ from each other. Additionaly I get error:

 

Error -1073807253 occurred at VISA Read in mbus.vi
Possible reason(s):
VISA: (Hex 0xBFFF006B) A framing error occurred during transfer.

 

I think that problem is with communication parameters, but I have no idea what parameters should I choose.

Thank you for your help.

 

0 Kudos
Message 1 of 3
(4,336 Views)

@maroo159 wrote:

 

I think that problem is with communication parameters, but I have no idea what parameters should I choose.

Thank you for your help.

 


The communication paramters are determined by the instrument.

This information is either in the manual or the example program you are using.

0 Kudos
Message 2 of 3
(4,303 Views)

@nyc_(is_out_of_here) wrote:

The communication paramters are determined by the instrument.

This information is either in the manual or the example program you are using.


That's true, but my device has not any manual with this information.

Anyway, problem is solved. Parity in VISA configuration should be "Even". 

0 Kudos
Message 3 of 3
(4,282 Views)