LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Leer Modbus RTU

Solved!
Go to solution

Hola a tod@s, tengo el siguiente pgm intentando leer un equipo slave en modbus.

He comprobado el UnitID, starting adress y el number de holding register, es el correcto.

qrm77_0-1726558794046.png

Pero al ejecutar me da el siguiente error:

SubVIs.lvlib:RTU Data Unit.lvclass:Read ADU Packet.vi:5030001

qrm77_0-1726558930109.png

 

Alguna idea porqué me ocurre?

Gracias

 

0 Kudos
Message 1 of 3
(178 Views)
Solution
Accepted by topic author qrm77

@qrm77 wrote:

Hello everyone, I have the following pgm trying to read a slave device in modbus.

I have checked the UnitID, starting address and the holding register number, they are correct.

qrm77_0-1726558794046.png

But when I run it I get the following error:

SubVIs.lvlib:RTU Data Unit.lvclass:Read ADU Packet.vi:5030001

 


Error 56 is a generic timeout error. The master didn't get any response from the slave.

Try to run NI I/O Trace and see if the slave responses with any message. You can compare the result from a different master, like QModMaster

 

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 2 of 3
(136 Views)

Thank you very much Kudos!! I'll try it.

0 Kudos
Message 3 of 3
(110 Views)