06-27-2013 03:07 AM
Dear All,
I should to establish communication between PLC S7 1200 CPU 1215 and LabVIEW.
The PLC supports both TCP and Modbus TCP protocols through its profinet.
I used both TCP and Modbus TCP protocols in the PLC and in LabVIEW I used the TCP functions and Modbus library.
In both methods the PLC establish the connection and waits for the response from LabVIEW, but the LabVIEW doesn't respond!
I dont' know the problem but I think the LabVIEW caused it.
I appreciate for any help.
Regards,
Ras
06-27-2013
11:27 PM
- last edited on
03-25-2025
11:02 AM
by
Content Cleaner
Hello Ras,
For profinet related communications, National Instruments offers Profinet hardware interface with PLCs which uses such protocols. It comes in a modular form, known as c-series. You can view the link below for more information about this product. The module connects to NI programmable automation controllers, known as cRIO.
https://www.ni.com/en-us/support/model.crio-pn-s.html
For a PC-based interface (PCI), you may need to check with comsoft. In the area of profinet/profibus, National Instruments cooperates with Comsoft and they may have a solution in a PCI form-factor.
Another option is to use OPC server. You can download the NI OPC server (which has drivers for many PLC's) and communicate with LabVIEW using either datasockets or the DSC module (add-on module for LabVIEW, higher level connection compared to datasockets, easire to program). You can view the links below for more information of using OPC server to communicate with LabVIEW. I have also attach a list of PLCs supported via OPC server.
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019MwxSAE&l=en-US
Regards,
Alan