Simple Communication Between Programmable Logic Controller(PLC) and LabVIEW

Updated May 27, 2020

Reported In

Software

  • LabVIEW

Issue Details

I own a Programmable Logic Controller and a PC with LabVIEW. My idea is to send/receive the data to/from PLC and LabVIEW. I am looking for simple and free solution for communication. Is there a method to achieve it?

Solution

To accomplish your task you can use DataSocket Transfer Protocol (dstp). This mechanism can send recent measurement values through the Internet. DSTP is implemented over TCP and provides communication between server and client. 

You can read more about dstp here: DataSocket Transfer Protocol Overview.

Implementation of this data transfer you can find in LabVIEW. Select Help from Getting Started Window, then proceed to Find Examples... In the Search Tab, type: DataSocket and open Simple DataSocket.lvproj