LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

MODBUS Comms with Micromotion MVD Sensor

Hello

 

Sorry, only just recieved your post.

 

Did you manage to get a routine to work? The one I posted in this thread was used in the end for the project and worked fine, it might have required a few mods, I can't remember, but if you still need some ideas let me know and I will try to help.

 

Jack

Labview Version 8.5
Labview Version 8.6
Labview Version 2014
0 Kudos
Message 11 of 14
(1,850 Views)

This is an update in case anyone stumbles across this post. It deals with occasional data loss when communicating with a Micro Motion (Emerson) Coriolis flow meters.

 

The Modus register to actual measurement conversion VI “5 CH MVD READ.vi ‏26 KB” has a problem.

 

The problem occurs when the first byte of a Modbus register is hex 0. The “Number To Hexadecimal String Function” is not programmed include a fixed width of “4”. Thus, when sent to further processing, the string only contains 7 bytes instead of the required 8 bytes. This will cause random erroneous measurements.

 

I have attached an updated VI “5 CH MVD READ ver 2.vi ‏26 KB”; it will also work on a 1700 transmitter.

0 Kudos
Message 12 of 14
(1,245 Views)

Correction #1:

 

The problem occurs when the first 4 bits of a Modbus register sent by the Micro Motion transmitter is hex 0. The “Number To Hexadecimal String Function” is not programmed to include a fixed width of “4”. Thus when inverted and sent for further processing, the string only contains 3 -1/2 bytes instead of the required 4 bytes. This will cause random erroneous measurements.

0 Kudos
Message 13 of 14
(1,233 Views)

Just come back to this after many years!

 

Do you have the modifed vi that you did a few years ago by any chance in LV 2014 ?

 

The one posted on the link is just the top level one.

 

Thanks,

 

John

Labview Version 8.5
Labview Version 8.6
Labview Version 2014
0 Kudos
Message 14 of 14
(630 Views)