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

Modbus address

Hello,
 
I am using NI's Modbus library and have run into the folowing problem.  When I use the Master Serial query I want to read address 404198 however the input to the addres is 16 bit.
 
Any sugestions?

Dan Shangraw, P.E.


   

0 件の賞賛
メッセージ1/8
3,967件の閲覧回数

You will have to modify the code of the sub-vi to accept bigger values.

Allthough check your hardware. You should be able to change it's address in a more logical value.

I have never heard someone using so big addresses (what is the point of this?)

0 件の賞賛
メッセージ2/8
3,965件の閲覧回数

The point is I am trying to comunicate with an Eaton Logic controller.  My customer has programed the PLC and has told me the data I need is at the above modbus address.

Thanks

Dan

 

 

Dan Shangraw, P.E.


   

0 件の賞賛
メッセージ3/8
3,960件の閲覧回数
Did you try just 4198?  The initial 4 of the 40,000 or 400,000 is usually implied.
0 件の賞賛
メッセージ4/8
3,952件の閲覧回数
I get a response, but I don't think it is the right data.

Dan Shangraw, P.E.


   

0 件の賞賛
メッセージ5/8
3,950件の閲覧回数
The other thing to check is that I believe there is an offset of one on the address.  So if you want 40001, you would put in 0 as your starting address.  So try 4197.
 
Also, I believe function code 3 gets the 40,000 series registers  which are holding registers.  Function code 4 is for reading the 30,000 series which are input registers.
0 件の賞賛
メッセージ6/8
3,934件の閲覧回数


ASTDan wrote:
I get a response, but I don't think it is the right data.

If the address is not correct, it should not reply at all !
 
0 件の賞賛
メッセージ7/8
3,914件の閲覧回数

I think I was getting data from registers I am not interested in.

Anyway I bit the bullet and am in the process of making my own driver.  I was able to sucessfully comunicate via hyperterminal.  Now it is just a matter of coding it up.

Thanks!

Dan

Dan Shangraw, P.E.


   

0 件の賞賛
メッセージ8/8
3,900件の閲覧回数