Adding an Allen Bradley PLC to NI OPC Servers

Updated Jun 1, 2018

Reported In

Software

  • OPC Servers

Issue Details

I have an Allen Bradley PLC. How can I connect it with NI OPC Servers?

Solution

  1. Open NI OPC Servers by going to Start » All Programs » National Instruments » NI OPC Servers » NI OPC Servers.
  2. Create a new .OPF file by selecting File»New.
  3. Create a new channel by left-clicking Click to add a channel. in the Channel Device Group Area.
Figure 1:  Adding a New Channel to NI OPC Servers
 
  1. Designate a name for your channel and click Next.
  2. Select the appropriate device driver for your PLC and click Next
Figure 2:  Selecting the Device Driver for Your PLC
 
  1. Configure the serial or network settings and other New Channel Wizard configuration settings. If your device requires certain settings, change them here, but you will probably use the default values. Click Next.
  2. After finishing the wizard, you'll be able to add your specific device.  In the Channel Device Group Area, left-click Click to add device.

Figure 3:  Adding a Device to NI OPC Servers
 
  1. Name the device, and click Next.
  2. Under Device model, select one of the available PLCs and click Next.
    • If you do not see the correct PLC model in this drop down go back to step five and double check the driver for your device.

Figure 4:  Selecting the Correct Device Model
  1. Assign the Device ID and select Next.
    • The device ID syntax will depend on your device model. Consult the device driver manual for your model for information on the syntax of the device driver. This can be found in the NI OPC Servers Help menu >> Driver Help ... >> Select the driver you are using.
  2. Continue through the New Device Wizard, changing setting as needed for your hardware set up.
    • Note: If you are using an Allen Bradley SLC PLC, you will reach a Slot Configuration page where you can add the modules for your PLC (figure 5). 

Figure 5:  Adding Modules to Your PLC
 
  1. Finish the New Device Wizard.
  2. Enter your OPC tags in the tag area by either left-clicking Click to add a static tag or by right-clicking and selecting New Tag....  Tag addressing is specific to your PLC, so refer to its documentation for the correct syntax.
In order to check the OPC tags for your device, select Tools»OPC Quick Client... or click the OPC Quick Client Launch button in the toolbar. From here, you should be able to see the tag values updating, along with the timestamps.

Figure 6:  Viewing the OPC Tags in the OPC Quick Client
 
Refer to the document Connect Any LabVIEW to any PLC to learn how to view your tags as shared variables in your LabVIEW project.

 

WAS THIS ARTICLE HELPFUL?

Not Helpful