キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

Modbus code for Power meter not working

In message #27, either the top or middle version should be Most Significant Word first.  The bottom one would be Least Significant Word First.  (If that doesn't work, maybe I mixed them up so try the other way.)

 

If you use Modscan64, do the values it shows make sense?

0 件の賞賛
メッセージ31/57
2,168件の閲覧回数

Yes, the values make very good sense and almost same as measured values. so is there anything I need to do or do you want me to send you a version of the VI for editting?

0 件の賞賛
メッセージ32/57
2,165件の閲覧回数

Then try implementing one of the methods I showed.  If you are still stuck, then attach the VI.

0 件の賞賛
メッセージ33/57
2,163件の閲覧回数

Attach is the Vi. please do make changes to the Vi.

0 件の賞賛
メッセージ34/57
2,153件の閲覧回数

Please do a Save for Previous version and make it LV 2015.  I don't have 16 installed.

0 件の賞賛
メッセージ35/57
2,149件の閲覧回数

Please see attached.

0 件の賞賛
メッセージ36/57
2,146件の閲覧回数

Try it again, the attachment is missing.

0 件の賞賛
メッセージ37/57
2,143件の閲覧回数
0 件の賞賛
メッセージ38/57
2,135件の閲覧回数

I'm surprised you weren't able to make the modifications I pointed out in previous messages.  Especially simple ones I talked about like creating the cluster constant and getting rid of the bundle.

 

Attached is a modified version.  In case you read multiple parameters and not just two, I used a typecase that took a U16 array to an array of singles.  That way you can take 2, 4, 6 registers and turn it into an array of 1, 2, or 3 Singles.

0 件の賞賛
メッセージ39/57
2,132件の閲覧回数

Thanks. I did the modifications you mentioned in another Vi that I saved in my computer and it never worked, so that was why I had to send you the initial VI for any needed Modifications. I will run this test on Monday and then get back with you on the result. Thanks for all the help.

0 件の賞賛
メッセージ40/57
2,125件の閲覧回数