LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Communication Setup Between LabVIEW and Trilogic Super PLC via Modbus TCP/IP

Solved!
Go to solution

Hi LabVIEW Community,

I'm working on setting up communication between LabVIEW (which I recently purchased) and a Trilogic Super PLC using Modbus TCP/IP. Although I managed to establish communication via plain TCP/IP, I’m encountering persistent errors when trying to use Modbus TCP/IP.

The examples provided with the LabVIEW package seem to contain errors, and I'm having difficulty getting them to work. Any guidance on how to correctly configure LabVIEW for Modbus communication with my PLC would be greatly appreciated.

0 Kudos
Message 1 of 12
(537 Views)

I've  used the NI Modbus library with no issues. 

 

What have you tried ? Can you share your code ?  

What errors did you get when trying to use it ? 

 

LVNinja_0-1723828529965.png

 

0 Kudos
Message 2 of 12
(511 Views)

yes tried with the ni modbus library examples but from the start itself I was not able to run because o the errors.
I have attached the files of modbus examples below please help me out.

Download All
0 Kudos
Message 3 of 12
(496 Views)

Reezan_Suhaim_0-1724081698110.png

 

0 Kudos
Message 4 of 12
(468 Views)

I cannot open your VIs as they are saved in LV 2024. There are two Modbus libraries from NI that can not be used in the same project (the one from DSC/Real Time has yellow bars, the other blue). Modbus Communication Using LabVIEW or LabVIEW Real-Time Module

 

0 Kudos
Message 5 of 12
(459 Views)

this is what it is displaying in palletes.
I installed the modbus library from the vi package manager and when i run the examples it directly showed the errors

0 Kudos
Message 6 of 12
(452 Views)

What is "the modbus library" and what example are you trying to open ? 

 

You seems to have installed multiple libraries for Modbus communication. 

0 Kudos
Message 7 of 12
(445 Views)

these are the examples i am trying to access...The picture of modbus library which i installed have also she it to you.Please let me know how do i fix the error

Reezan_Suhaim_0-1724090893335.png

 

0 Kudos
Message 8 of 12
(439 Views)

I can't open your vi's, and I have only installed the NI Modbus Library. 

 

If you want to use that, it has its own examples: 

dkfire_1-1724057970939.png

 

I think the one you have problems with is the Plasmionique Modbus Master library. 
You might need to contact Plasmionique to get help. 

 

Also the DCAF Modbus Module requires DCAF as the framework. Might not work on its own. 

0 Kudos
Message 9 of 12
(429 Views)

So I have installed labview 2024 Q3, but when i searched the DSC module supports 2024 Q1 for me to run modbus.So how do I downgrade from 2024 Q3 to 2024 Q1. 
The alternate option I found was NI modbus library supported by Labview 2024 Q3 but i dont have any example or anything with that library.
but the example i provided had yellow bar which is supported by Labview 2024 Q1. 

0 Kudos
Message 10 of 12
(400 Views)