You are on page 1of 19

Introduction 1

Overview 2

Planning/configuring 3
SITRANS RD500

OPC connectivity with Kepware


OPC server

Application examples

09/2020
AG102710
Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent
damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert
symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are
graded according to the degree of danger.

DANGER
indicates that death or severe personal injury will result if proper precautions are not taken.

WARNING
indicates that death or severe personal injury may result if proper precautions are not taken.

CAUTION
indicates that minor personal injury can result if proper precautions are not taken.

NOTICE
indicates that property damage can result if proper precautions are not taken.
If more than one degree of danger is present, the warning notice representing the highest degree of danger will
be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to
property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific
task in accordance with the relevant documentation, in particular its warning notices and safety instructions.
Qualified personnel are those who, based on their training and experience, are capable of identifying risks and
avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
Note the following:

WARNING
Siemens products may only be used for the applications described in the catalog and in the relevant technical
documentation. If products and components from other manufacturers are used, these must be recommended
or approved by Siemens. Proper transport, storage, installation, assembly, commissioning, operation and
maintenance are required to ensure that the products operate safely and without any problems. The permissible
ambient conditions must be complied with. The information in the relevant documentation must be observed.

Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication
may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software
described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the
information in this publication is reviewed regularly and any necessary corrections are included in subsequent
editions.

Siemens AG Document order number: AG102710 Copyright © Siemens AG 2020.


Division Process Industries and Drives Ⓟ 10/2020 Subject to change All rights reserved
Postfach 48 48
90026 NÜRNBERG
GERMANY
Table of contents

1 Introduction ........................................................................................................................................... 4
1.1 Objective ............................................................................................................................. 4
1.2 Equipment ........................................................................................................................... 4
1.3 Disclaimer............................................................................................................................ 4
2 Overview................................................................................................................................................ 5
3 Planning/configuring ............................................................................................................................. 6
3.1 OPC Software ...................................................................................................................... 6
3.2 Configuring the SITRANS RD500 ........................................................................................... 7
3.3 Configuring the OPC Server .................................................................................................. 7
3.4 Adding a New Channel to the OPC Server ............................................................................. 8
3.5 Adding a New Device to a Channel ..................................................................................... 11
3.6 Configuring Process Tags ................................................................................................... 18

OPC connectivity with Kepware OPC server


Application examples, 09/2020, AG102710 3
Introduction 1
1.1 Objective
The objective of this application guide is to help the user become familiar with the steps
required to:
• Connect the SITRANS RD500 to an OPC server via Modbus TCP.
• Read/write process tags from the SITRANS RD500 when connected to an OPC server.

1.2 Equipment

Equipment Description MLFB/A5E Number


SITRANS RD500 7ML5750-1AA00-0
RDDO14R digital input card
Modbus serial device (MR200)
RS485 cable to connect the MR200 to the RD500
PC with Ethernet connection and KepServerEX OPC server software
V4.201

1.3 Disclaimer

Note
While every effort is made to verify the following information, no warranty of accuracy or
usability is expressed or implied.

OPC connectivity with Kepware OPC server


4 Application examples, 09/2020, AG102710
2 Overview 2
This application guide is an addition to the operating instructions. Please review the
operating instructions for the RD500 Application and for the RD500 Hardware to ensure you
are familiar with configuring the SITRANS RD500.

OPC connectivity with Kepware OPC server


5 Application examples, 09/2020, AG102710
Planning/configuring 3
3.1 OPC Software
This application guide explains how to use OPC to read the status of several devices
connected to a SITRANS RD500.
OPC, which stands for OLE for Process Control, is an open standard for communication of
real-time data between industrial devices from different manufacturers. OPC servers provide
a way for different types of Windows-based software to access data from a process control
device, such as a PLC or DCS.
The OPC server software resides on a PC or server and connects to devices in a number of
different ways depending on the protocol driver type, for example serial, modem or Ethernet.
The OPC server polls the connected devices for the requested data as configured in the OPC
server’s tag database. The data is then made available for an OPC client to read. It is also
possible for an OPC client to write data to the OPC server’s tag database.
OPC client connectivity may be from a SCADA application, for example WinCC, or any other
software package which has OPC client connectivity. The diagram at the right illustrates one
possible application of OPC.

OPC connectivity with Kepware OPC server


6 Application examples, 09/2020, AG102710
Planning/configuring
3.2 Configuring the SITRANS RD500

3.2 Configuring the SITRANS RD500


This guide assumes that the I/O devices shown in the Modbus slave mapping table below
have been connected to the RD500 and configured appropriately using the RD500 web
application. The Modbus slave mapping can be viewed within the application by selecting
(from the Overview page) Configure > I/O > Modbus and then clicking on the Slave Mapping
button at the bottom of the screen.

This application guide explains how to connect the SITRANS RD500 to KepServerEX OPC
server software. It also explains how to use the OPC server to configure tags to display the
LG200 level, and to control the valve and the pump shown in the Modbus Slave Mapping
table in the image above.

3.3 Configuring the OPC Server


This guide assumes that you are using KepServerEX version 4.201 as your OPC server
software. KepServerEX is available from http://www.kepware.com.

OPC connectivity with Kepware OPC server


Application examples, 09/2020, AG102710 7
Planning/configuring
3.4 Adding a New Channel to the OPC Server

3.4 Adding a New Channel to the OPC Server


The first step in connecting the SITRANS RD500 to the OPC server via Modbus is to add a new
channel to the OPC server. The following procedure explains how.
1. Start KepServerEX from the desktop or Start Menu. Click New on the menu bar. A window
called KEPServerEx – [untitled.opf] will open.
2. On the left side of the new window, single click on Click to add a channel; the New
Channel – Identification dialog box will open as shown below.

3. In the Channel name text box, enter a name for the new channel, e.g. Modbus_TCP, then
click Next.
4. The New Channel – Device Driver dialog box, shown below, will open. Select Modbus
Ethernet from the drop-down list, then click Next.

OPC connectivity with Kepware OPC server


8 Application examples, 09/2020, AG102710
Planning/configuring
3.4 Adding a New Channel to the OPC Server

5. All remaining New Channel dialog boxes should be left at their default settings for this
application, as shown below. After checking the values for each step, click the Next button.
– Network Interface

– Write Optimizations

OPC connectivity with Kepware OPC server


Application examples, 09/2020, AG102710 9
Planning/configuring
3.4 Adding a New Channel to the OPC Server

– Socket Usage

6. You should now be at the New Channel – Summary dialog box as shown below.

7. Use the Back button to make any necessary changes, and then click Finish to complete the
new channel setup. You have now added a channel called Modbus_TCP to your OPC server.
This new channel appears in the left hand side of the KEPServerEx window.

OPC connectivity with Kepware OPC server


10 Application examples, 09/2020, AG102710
Planning/configuring
3.5 Adding a New Device to a Channel

3.5 Adding a New Device to a Channel


After adding the Modbus_TCP channel to KepServer, the RD500 can be added as a new
device using the following procedure.
1. On the left side of the KEPServerEx window, under the channel name Modbus_TCP, single
click on Click to add a device; the New Device – Name dialog box will open as shown
below.

2. In the Device name text box, enter a name for the new device, e.g. RD500, then click Next.
3. The New Device – Model dialog box, shown below, will open. Select Modbus from the
drop-down list, and then click Next.

OPC connectivity with Kepware OPC server


Application examples, 09/2020, AG102710 11
Planning/configuring
3.5 Adding a New Device to a Channel

4. The New Device – ID dialog box will open. Enter the IP address for the remote SITRANS
RD500 and then click Next.

5. All remaining New Device dialog boxes should be left at their default settings for this
application, as shown below. After checking the values for each step, click the Next button.
– Data Access Settings

OPC connectivity with Kepware OPC server


12 Application examples, 09/2020, AG102710
Planning/configuring
3.5 Adding a New Device to a Channel

– Data Encoding Settings

– Timing

OPC connectivity with Kepware OPC server


Application examples, 09/2020, AG102710 13
Planning/configuring
3.5 Adding a New Device to a Channel

– Auto-Demotion

– Database Creation

OPC connectivity with Kepware OPC server


14 Application examples, 09/2020, AG102710
Planning/configuring
3.5 Adding a New Device to a Channel

– TCP/IP

– Block Sizes

OPC connectivity with Kepware OPC server


Application examples, 09/2020, AG102710 15
Planning/configuring
3.5 Adding a New Device to a Channel

– Variable Import Settings

– Error Handling

OPC connectivity with Kepware OPC server


16 Application examples, 09/2020, AG102710
Planning/configuring
3.5 Adding a New Device to a Channel

6. You should now be at the New Device – Summary dialog box, as shown below.

7. Use the Back button to make any necessary changes, and then click Finish to complete the
new device setup. You have now added the RD500 to the Modbus_TCP channel of your OPC
server. This new device appears in the left hand side of the KEPServerEx window.

OPC connectivity with Kepware OPC server


Application examples, 09/2020, AG102710 17
Planning/configuring
3.6 Configuring Process Tags

3.6 Configuring Process Tags


Now that the SITRANS RD500 has been connected to the OPC server, KepServerEX can be
used to configure process tags of various kinds. The following procedure explains how to use
the OPC server to configure tags to control the valve and the pump, and to display the LG200
level, as shown in the Modbus Slave Mapping image on page 2.
1. Single click on Click to add new tag in the tag list to the right of the channel and device list.

2. The Tag Properties dialog box will open.

3. Enter the following tag information and then click OK.


– Name: Control
– Address: 400001
– Description: control of valve and pump
– Data type: Word
– Client access: Read/Write
– Scan rate: 100

OPC connectivity with Kepware OPC server


18 Application examples, 09/2020, AG102710
Planning/configuring
3.6 Configuring Process Tags

4. Repeat steps 1, 2 and 3 to create a tag to display the LG200 level using the following
information:
– Name: LG200 Level
– Address: 400002
– Description: level from the LG200
– Data type: Word
– Client access: Read only
– Scan rate: 100
The newly created tags will appear in the list of tags as shown below. Note that the
icons to the left of the tag names indicate that Control is a Read/Write tag and LG200
Level is read only.

5. On the main toolbar, click File > Save and save your work as RD500.opf.
6. Click on the OPC client button on the main toolbar.

7. An OPC Quick Client window similar to the one below will open. Click on the
MODBUS_TCP_RD500 folder shown below to view the tags from the SITRANS RD500
Modbus slave mapping. This window allows you to see the information available to any OPC
clients communicating with the server.

You have now configured your OPC server to display the LG200 level and to control the valve
and the pump that are connected to you RD500.

OPC connectivity with Kepware OPC server


Application examples, 09/2020, AG102710 19

You might also like