Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

how to communicate with PLC(7-214) throgh com1 in Labview5.1?

Highlighted
In Labview5.1 how to communicate with PLC(S7-214) through com1?Should the data be paritified? if it is necessary ,how to do it?please you help me !thanks!
0 Kudos
Message 1 of 3
(2,508 Views)
Hi,

If the company that makes the PLC provides an OPC server, Labview can communicate to this using Datasocket. Here is a link describing this:

How Do I Use OPC in LabVIEW?

Also here is a tutorial on how to set this up:

Connecting LabVIEW to an OPC Server through a DataSocket Connection



Good Luck,

Mike
NI
0 Kudos
Message 2 of 3
(2,508 Views)
One of the best methods would be to use an OPC Server to handle the communication to the PLC. Then, LabVIEW can talk to the OPC Server using DataSocket functions (or the DSC module, if the channel count is high). A general overview of this technique is described in the KnowledgeBase "Where Can I Find Drivers for Communicating to PLCs, RTUs, and Other Industrial Hardware", linked below. Also linked below are some articles specific to the S7 series PLCs.

I am assuming you are not using LabVIEW RT, even though this is posted in the "Real-Time Data Acquisition" group. So one warning - if you are indeed using RT, then the OPC solution will not work.

KnowledgeBase : Where Can I Find Drivers for Communicating to PLCs, RTUs, and Other Industrial Hardware:
h
ttp://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/13ee0a9e2c43f0db86256a6100722651?OpenDocument


KnowledgeBase: Siemens S7 PLC With HMI Adapter:
http://zone.ni.com/devzone/conceptd.nsf/2d17d611efb58b22862567a9006ffe76/cc021cd15890283286256a33006eba74?OpenDocument

KnowledgeBase: Siemens S7_HMI OPC Driver: What is an HMI Adapter?
http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/e1e8217c676e56e4862569fb00734615?OpenDocument

Regards,
Greg Caesar
0 Kudos
Message 3 of 3
(2,508 Views)