01-23-2024 09:36 AM - edited 01-23-2024 09:50 AM
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.
Solved! Go to Solution.
01-23-2024 10:20 AM
in the Modbus NI VIPM package there is an example :
01-24-2024 01:34 AM
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
01-24-2024 07:08 AM - edited 01-24-2024 07:09 AM
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.
01-25-2024 02:55 AM
In the slave example, just replace 'Create TCP Slave' by 'Create Serial Slave' in the polymorphic selector.
You have now to set a few Serial options.
Don't forget Unit ID (Serial adress).
01-25-2024 05:14 AM - edited 01-25-2024 05:27 AM
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
01-25-2024 09:43 AM
I solved by making a new project from zero. Thanks