Sei sulla pagina 1di 7

Adding an Allen Bradley PLC to NI OPC Servers - National Instruments

Home

Support

Adding an Allen Bradley PLC to NI OPC Servers

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019

Este contenido no está disponible en su idioma de su preferencia. El contenido se mostrará en otro idioma disponible. Su navegador puede proporcionar una funcionalidad para ayudarle a traducir el texto.

una funcionalidad para ayudarle a traducir el texto. Updated Feb 1, 2019 OPC Servers Allen Bradley

Updated Feb 1, 2019

para ayudarle a traducir el texto. Updated Feb 1, 2019 OPC Servers Allen Bradley PLC I

OPC Servers

a traducir el texto. Updated Feb 1, 2019 OPC Servers Allen Bradley PLC I have an

Allen Bradley PLC

el texto. Updated Feb 1, 2019 OPC Servers Allen Bradley PLC I have an Allen Bradley

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

Allen Bradley PLC. How can I connect it with NI OPC Servers. 1. Open NI OPC

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.

Adding an Allen Bradley PLC to NI OPC Servers - National Instruments

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019

Figure 1: Adding a New Channel to NI OPC Servers 4.

Figure 1: Adding a New Channel to NI OPC Servers

4. Designate a name for your channel and click Next.

5. Select the appropriate device driver for your PLC and click Next. Use the Supported Device & Driver Plug-in List for NI OPC Servers to determine which device driver is appropriate.

Driver Plug-in List for NI OPC Servers to determine which device driver is appropriate. 2 de

Adding an Allen Bradley PLC to NI OPC Servers - National Instruments

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019

Figure 2: Selecting the Device Driver for Your PLC 6.

Figure 2: Selecting the Device Driver for Your PLC

6. 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.

7. 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.

Adding an Allen Bradley PLC to NI OPC Servers - National Instruments

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019

Figure 3: Adding a Device to NI OPC Servers 9. Name the

Figure 3: Adding a Device to NI OPC Servers

9. Name the device, and click Next. 10. Under Device model, select the model you are using from the list of 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.are using from the list of available PLCs and click Next . Some devices are displayed

Some devices are displayed as part of a device model family. For example, a ControlLogix 5570 is part of the 5500 family.model in this drop down go back to step five and double check the driver for

Adding an Allen Bradley PLC to NI OPC Servers - National Instruments

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019

Figure 4: Selecting the Correct Device Model 11. Assign the

Figure 4: Selecting the Correct Device Model

11. 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 forDevice Model 11. Assign the Device ID and select Next . information on the syntax of

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.

12. 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). Slot Configuration page where you can add the modules for your PLC (figure 5).

Adding an Allen Bradley PLC to NI OPC Servers - National Instruments

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019

Figure 5: Adding Modules to Your PLC 13. Finish the New

Figure 5: Adding Modules to Your PLC

13. Finish the New Device Wizard.

14. 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

Launch button in the toolbar. From here, you should be able to see the tag values updating, along with the

timestamps.

or click the OPC Quick Client

along with the timestamps. or click the OPC Quick Client Figure 6: Viewing the OPC Tags

Figure 6: Viewing the OPC Tags in the OPC Quick Client

Adding an Allen Bradley PLC to NI OPC Servers - National Instruments

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019

Refer to the document Connect Any LabVIEW to any PLC to learn how to view your tags as shared variables in your LabVIEW project.

view your tags as shared variables in your LabVIEW project. If you are having issues adding

If you are having issues adding tags to your PLC, step through the tutorial again to verify your settings for the Channel and the Device. For example, are you communicating using a specific Network Card? If so, select that specific NIC in the Network Adapter settings for the Channel.

NIC in the Network Adapter settings for the Channel. Allen-Bradley PLC Addressing Connect LabVIEW to Any

Allen-Bradley PLC Addressing

Connect LabVIEW to Any PLC using OPC Webcast

Simulating a Device with NI OPC Servers

Supported Device & Driver Plug-in List for NI OPC Servers

Connecting to My Allen-Bradley PLC Without Using OPC Servers

Connecting to My Allen-Bradley PLC Without Using OPC Servers Collaborate with other users in our discussion
Connecting to My Allen-Bradley PLC Without Using OPC Servers Collaborate with other users in our discussion

Collaborate with other users in our discussion forums

Search the NI Community for a solutionCollaborate with other users in our discussion forums A valid service agreement may be required, and

our discussion forums Search the NI Community for a solution A valid service agreement may be

A valid service agreement may be required, and support options vary by country.

Open a service requestmay be required, and support options vary by country. Purchase or renew support services 7 de

and support options vary by country. Open a service request Purchase or renew support services 7

Purchase or renew support services