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.

Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Ethernet connection between LabVIEW and a Distech PLC

Hello,

I'm trying to start a communication between my S1000 PLC from Distech controls and LabVIEW.

This PLC is able to communicate with Modbus TCP/IP, so i connnected my pc and my PLC with an ethernet cable and i'm trying to establish connection in order to send values from the PLC to LabVIEW and send values written by the user in LabVIEW to the PLC.

I know the IP adress of my PLC and I tried to create a I/O server as this topic (https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x0QgCAI&l=fr-FR) says.

Meanwhile, everytime I try to change the value of my shared variable, i have the error -1967353901.

help LV modbus.png

 

More than that, the Distributed System Manager can't be open (immediatly closed after a click).

The question is: Can I communicate between my PLC and LabVIEW with this I/O server or this is not the solution ?

If yes, how can I establish this connection ?

 

Thanks for reading,

 

Respectfully

0 Kudos
Message 1 of 2
(597 Views)

After days of research, I finally found how to communicate between my two components.

I used the Modbus Library (https://www.vipm.io/package/ni_lib_modbus_library/) to create a Slave instance.

I used the property node of the slave instance to know if i am connected through the TCP connection list.

When I am connected, I juste have to write/read coilsregisters using the VI created for.

Be aware of the adress, I had to cinfigure it personnaly through the Distech API.

Do not forgot to shudown the connection before connecting another.

 

Respectfully

0 Kudos
Message 2 of 2
(564 Views)