Database to Modbus Slave Interface Configuration Manual
2
Table of Contents
OVERVIEW ................................................................................................................................................ 3
TRADEMARKS ........................................................................................................................................... 4
OPERATING SYSTEM AND HARDWARE REQUIREMENTS ............................................................................. 5 OPERATING SYSTEM (OS) ....................................................................................................................................... 5 HARDWARE .......................................................................................................................................................... 5 PREREQUISITE ....................................................................................................................................................... 5
REGISTERING SOFTWARE .......................................................................................................................... 6 REGISTERING MODBUS SLAVE PROTOCOL .................................................................................................................. 6 REGISTERING RUN-TIME ENGINE (RTE) .................................................................................................................... 9
PROJECT CONFIGURATION ...................................................................................................................... 12 CONFIGURING DATABASE CONNECTION PARAMETERS ............................................................................................... 13 CONFIGURING THE TABLE ...................................................................................................................................... 14 CONFIGURING COLUMNS & VALUES ....................................................................................................................... 15 MAPPING MODBUS PROTOCOL ADDRESS TO THE DATABASE POINT ............................................................................. 16 SPECIFYING DATA REFRESH RATE (SQL QUERY)........................................................................................................ 17 VIEWING CONFIGURATION SUMMARY .................................................................................................................... 18
CONFIGURING RUN-TIME ENGINE (RTE)................................................................................................... 19 OPENING MODBUS CONFIGURATION EDITOR ........................................................................................................... 19 LOAD CONFIGURATION FILE (SCRIPT) ...................................................................................................................... 20 CHANGING UPDATE RATE & START AS NT SERVICE ................................................................................................... 21 DEPLOYING CONFIGURATION ................................................................................................................................. 22 STARTING RTE AUTOMATICALLY AFTER SYSTEM RESTART .......................................................................................... 23
Database to Modbus Slave Interface Configuration Manual
3
Overview
Database ServerSEL-3354
OD
BC
Mobus Slave
Mobus Master
Mo
db
us
Database to Modbus Slave Interface Configuration Manual
4
Trademarks
ClearControls® is a registered trademark of ReLab Software LLC (2006 ClearControls®. All rights reserved). Modicon, Microsoft, iFix, InTouch, RSView, Survalent, Kepware, Matrikon, IEC, IEEE, SEL, ABB, GE are trademarks of their respective corporations.
Database to Modbus Slave Interface Configuration Manual
5
Operating System and Hardware Requirements
Operating System (OS)
Windows 7
Windows® Server 2008, 2008 R2
Hardware
CPU – 1GHz
Memory – 100MB
Hard Drive – 200MB
Prerequisite
Install ReLab OPC Product Suite
Install ReLab Protocol Server Bridge
Database to Modbus Slave Interface Configuration Manual
6
Registering Software
Note: Make sure ReLab OPC Product Suite and ReLab Protocol Server Bridge is installed on your machine.
Registering Modbus Slave Protocol
Open ReLab License Manager Application (Fig 1)
Fig 1
Database to Modbus Slave Interface Configuration Manual
7
Select ReLab Modbus Slave (Serial) or Modbus Slave (TCP/IP) protocol (Fig 2).
Fig 2
Click on Show Request Key button (Fig 3)
Fig 3
Copy the key and forward to ReLab Software (Fig 3)
Database to Modbus Slave Interface Configuration Manual
8
After the License key is received click Register or verify Registration tab and enter the received license in to textbox below (Fig 4)
Fig 4
Click on Register button
Database to Modbus Slave Interface Configuration Manual
9
Registering Run-Time Engine (RTE)
Open ReLab License Manager Application (Fig 1)
Fig 2
Database to Modbus Slave Interface Configuration Manual
10
Select ReLab Run Time Engine (RLSLC) - Fig 2.
Fig 2
Click on Show Request Key button (Fig 3)
Fig 3
Copy the key and forward to ReLab Software (Fig 3)
Database to Modbus Slave Interface Configuration Manual
11
After the License key is received click Register or verify Registration tab and enter the received license in to textbox below (Fig 4)
Fig 4
Click on Register button
Database to Modbus Slave Interface Configuration Manual
12
Project Configuration
Navigate to ReLab Software DB2MOD Configuration and click on DB2MOD Configuration icon
Database to Modbus Slave Interface Configuration Manual
13
Configuring Database Connection Parameters
Fig 5
Specify Data Source (DSN) – Required for ODBC connection
Enter Login (User Name) – Required for secure databases such as Microsoft SQL Server, Oracle and etc.
Enter Password (User Password) – Required for secure databases such as Microsoft SQL Server, Oracle and etc.
Click on Next button Note: If DSN, Login or Password is incorrect user will be prohibited to navigate to the next page.
Database to Modbus Slave Interface Configuration Manual
14
Configuring the Table
Fig 6
Select the table where the data is located from Table dropdown Click on Next button
Database to Modbus Slave Interface Configuration Manual
15
Configuring Columns & Values
Fig 7
Select which column will be used for tag names from Tag Name Column dropdown
Select which column will be used for tag value from Tag Value Column dropdown Click on Next button
Database to Modbus Slave Interface Configuration Manual
16
Mapping Modbus Protocol Address to the Database Point
Fig 8
You can auto fill address by specifying starting address in Protocol Address textbox and clicking on Auto Fill Down button
You can change the point data type by selecting one or multiple points from the list and assigning appropriate data type from Value Type dropdown
Click on Next button
Modbus Protocol Addressing Modbus Register
HEX MIN
HEX MAX
DEC MIN
DEC MAX
Output Coils 0 FFFF 0 65535
Input Coils 10000 1FFFF 65535 131071
Internal Registers 30000 3FFFF 196608 262143
Holding Registers 40000 4FFFF 262144 327679 Table 1
Database to Modbus Slave Interface Configuration Manual
17
Specifying Data Refresh Rate (SQL Query)
Fig 9
You can select Data Refresh Frequency from dropdown (1 to 15 seconds) Click on Next button
Database to Modbus Slave Interface Configuration Manual
18
Viewing Configuration Summary
Fig 10
You can view configuration summary before saving the project Click on Finish button
Database to Modbus Slave Interface Configuration Manual
19
Configuring Run-Time Engine (RTE)
Opening Modbus Configuration Editor
Navigate to | ReLab Software | Protocol Server Bridge and select RLPSB Configuration Console
Fig 11
Database to Modbus Slave Interface Configuration Manual
20
Load Configuration File (Script)
Fig 12
On Main menu select File | Open
Select configuration file DB2MOD.cfg from E:\Program Files\ReLab Software\Protocol Server Bridge\Bin\DB2MOD folder
Fig 13
Click on Open button
Database to Modbus Slave Interface Configuration Manual
21
Changing Update Rate & Start as NT Service
Fig 14
From Main Menu select RTE | Options
Fig 15
Database to Modbus Slave Interface Configuration Manual
22
Select Other tab
Fig 16
Check Start Run Time Engine as NT Service
Set Run Engine Update rate to 1000 ms
Set Call Item Update when no data is update
Click on OK button
Deploying Configuration
Fig 17
From Main Menu select File | Deploy
Database to Modbus Slave Interface Configuration Manual
23
Starting RTE Automatically After System Restart
Navigate to Windows Start | Control Panel | Administrative Tools | Services
Select the service RLSLCRTE and set this service to Automatic