From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Modbus Over UDP

Hello,

 

Is it possible to implement the Modbus Over UDP protocol in LabVIEW using Data logging and Supervisory Control (DSC) toolkit?

 

Regards,

S Nagaraju

0 Kudos
Message 1 of 6
(2,551 Views)

Hello Nagaraju,

Data logging and Supervisory Control (DSC) toolkit proivides only modbus over serial and tcp.

You have to develop your own low level vi's to implement modbus over udp. 

You can get more information about modbus over udp from the link below

http://jamod.sourceforge.net/development/udp_master_howto.html

http://jamod.sourceforge.net/development/udp_slave_howto.html

CLD
Message 2 of 6
(2,531 Views)

Hello Tapan_Mojidra,

 

Thank you very much for response.

Do you have any example VIs for Modbus Over UDP?

 

Regards,

S Nagaraju.

 

0 Kudos
Message 3 of 6
(2,528 Views)

Hello Nagaraju,

Unlike Modbus/TCP, Modbus/UDP is not covered by a standard. That means there is no standards document which covers how it works and you will need to verify the vendor's implementation. However, here is something which explains it:

http://jamod.sourceforge.net/kbase/modbus_udp.html

I can't of course guaranty that this is how your I/O works.


CLD Using LabVIEW since 2013
0 Kudos
Message 4 of 6
(2,511 Views)

In my understanding, UDP Modbus is almost the same as TCP Modbus, so I would download the old free NI Modbus library at

ftp.ni.com/pub/devzone/epd/nimodbus121.zip

It has been superseded by another library, but in fact it worked well in my applications; furthermore, you are able to manipulate the code.

It's "enough" Smiley Wink to replace the TCP part of the code with the corresponding UDP functions.

It should not be an impossible task.

 

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 5 of 6
(2,507 Views)

@pincpanter  ha scritto:

....

It should not be an impossible task.

 


Hi, I'm sorry, but it did not work for me.

Did anyone actually develope a modbus over udp driver?

Thanks,

Andrea

0 Kudos
Message 6 of 6
(2,234 Views)