LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabView Communication with PLC

Hi,
          We use Allen Bradely, RSLinx PLC systems and I also have the Contrl Developer Suite for the Labview 7.1 version. I never done any PLC programming. I need to know how do I communicate to PLC (RSLinx) Via LabView. Are there any examples which I can find some where? Any help in this regard is well appreciated.
 
thank you,
Mudda.
0 Kudos
Message 1 of 8
(7,768 Views)

Take a look at examples, communication, datasocket.  You should have an OPC client example there, that will allow you to communicate with the Allen Bradley OPC server. 

If you have LabVIEW DSC, you can connect the TAG Engine to the Allen Bradley OPC server from the Tag Configuration editor. 

Let us know how these suggestions work for you. 

 

Preston Johnson
Solutions Manager, Industrial IoT: Condition Monitoring and Predictive Analytics
cbt
512 431 2371
preston.johnson@cbtechinc
0 Kudos
Message 2 of 8
(7,753 Views)
The NI document Using RSLinx OPC Server may be useful as an introduction. It's ~5 years old, but it covers connecting to RSLinx with both plain LabVIEW (via DataSocket) and LV's DSC Module (which it sounds as though you have).
=====================================================
Fading out. " ... J. Arthur Rank on gong."
0 Kudos
Message 3 of 8
(7,737 Views)

Hi,

      I am going through the same manual, I successfully did the "Confguring an Allen Bradley PLC in RS Linx" but when I go to next topic "Conecting Server Explorer to RSLinx" at thrid step I am getting an error "Class is not licensed for use Status Code: 0x80040112. I dont know what this error means and why I am getting it. I apprecitae if you can tell me what this error means and what I need to do to get rid of it.

Thanks,

Mudda.

0 Kudos
Message 4 of 8
(7,732 Views)
Hi Mudda,
 
Are you able to connect to the RSLinx OPC server using any other 3rd party OPC client [such as Kepware’s quick client: http://www.kepware.com/Products/feature-quickclient.htm]. Was the ‘Class is not licensed for use Status Code: 0x80040112’ error thrown by Server Explorer or by the RS Linx OPC server?
Please make sure that you have communication established between the AB PLC and RSLinx OPC. Did the Auto-Configuration button work fine in step 5 of ‘Confguring an Allen Bradley PLC in RS Linx’ section.
I would also make sure that there are no licensing issues with either the AB PLC or the RSLinx OPC server.
 
Have a great day!
Prashanth
0 Kudos
Message 5 of 8
(7,692 Views)
Mudda,
 
Make sure you have the OEM or Full version of RSLinx.
 
-Khalid
0 Kudos
Message 6 of 8
(7,684 Views)

Thank You all for your replies. When I first intalled the RSLinx it was not activated thats why I was getting that error. Now its working fine.

Mudda.

Message 7 of 8
(7,665 Views)
The VIs available in the below link can talk to Allen Bradely PLCs. No RSLinx, OPC Server, NI-DSC, nor Automation Runtime is required..
Simple TCP Communication using EtherNET/IP Protocol.. (Just like Modbus TCP)
 
Best regards
Siva
sivamgr@gmail.com
Message 8 of 8
(6,947 Views)