Press ESC to close · Ctrl+K to open

RSLinx OPC Server

Creating an OPC topic in RSLinx and testing reads with OPC Test Client.

RSLinx OPC Server

Objective

RSLinx, in Professional or Gateway version, can act as the OPC server for the Allen Bradley PLC family. This practice creates a topic and tests it with OPC Test Client.

The example uses the PLC simulated in the RSLogix Emulate 5000 practice, but the procedure is the same if the simulator is replaced by a real PLC.

Create a Topic in RSLinx

Run RSLinx and open DDE/OPC > Topic Configuration.

Click New to create a new topic and assign a useful name. That name will later be used by OPC clients.

RSLinx access to Topic Configuration
Creating a new OPC topic in RSLinx

Assign the Topic to the PLC

The topic is assigned to the PLC it will reference. In this case RSLogix Emulate 5000 is used, which behaves like a real controller for simulation purposes.

In the Data Collection tab, assign the project or CSV file that provides access to the tags or items.

Topic assigned to the emulated controller
OPC topic Data Collection tab
Project or tag file selection

Test with OPC Test Client

With the topic configured, RSLinx OPC Server can be accessed. OPC Test Client is used to verify it.

First define the OPC server, RSLinx OPC Server in this case, and then add a group.

Selecting RSLinx OPC Server in OPC Test Client
Creating an OPC group
OPC group properties

Add Items and Validate Quality

Add items from the OPC Test Client browser. Navigate through configured topics and select the variables to read.

Finally check variable values and communication quality. When a client is connected, RSLinx shows a padlock on the topic inside DDE/OPC.

Browsing OPC topics and items
Selecting OPC items
OPC values and quality
Topic locked while a client is connected

Original article published on August 15, 2012.