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

Modbus RTU Slave

解決済み
解決策を見る

Hi, I'm doing my first project with Labview. I need a simple example in which the Labview project is the slave of the Modbus RTU communication. My custom board is the master. Thank you.

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

in the Modbus NI VIPM package there is an example :

Walker34_0-1706026806410.png

 

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

It is a TCP example. I changed from New TCP Slave to New Serial Slave and completed the connections to this block. Are there other modifications that I need to do? Thanks  

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

Or does anyone know if there is an example of Modbus Slave RTU? 

I already have a project of a Master RTU software that I could use to test the Slave RTU.

0 件の賞賛
メッセージ4/8
3,888件の閲覧回数
解決策
受理者 V.Life

 

In the slave example, just replace 'Create TCP Slave' by 'Create Serial Slave' in the polymorphic selector.

 

Walker34_1-1706172831577.png

 

You have now to set a few Serial options.

 Don't forget Unit ID (Serial adress).

Walker34_2-1706172906450.png

 

 

 

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

Thanks. That's what I already did. The scope of the Slave RTU for my project is to receive write register command from the Master (and then save data on the Slave) and receive read register command from the Master (and then the Slave has to transmit to the Master the response message with the requested data). So many of the elements in the front panel are not necessary now.

When I execute the program I get the error 56 @RTU Data Unit.lvclass: Read ADU Packet.vi 5030001

 

 

 

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

I solved by making a new project from zero. Thanks

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

Hi,

 

Could you able to share samples to how to make labview as modbus rtu serial slave, as one of my project is demanding. It will be helpful. thanks

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