Extended Modbus OPC Server ABB Inc.
ABB Inc. The Company ABB Inc. is an established world force in the design and manufacture of instrumentation for industrial process control, flow measurement, gas and liquid analysis and environmental applications. As a part of ABB, a world leader in process automation technology, we offer customers application expertise, service and support worldwide. We are committed to teamwork, high quality manufacturing, advanced technology and unrivaled service and support.
1 1.1 Introduction Introduction Extended Modbus OPC Server is an Industrial IT enabled software product. It is an OPC Foundation compliant server application (serial communications device interface) that allows hardware devices to communicate with OPC Clients such as ABB Operate IT Products and other software manufacturer's HSI packages like ICONICS’ Genesis32, Intellution's FIX Dynamics and similar packages from Wonderware, CI Technologies and others.
Training Manual Introduction 1.2.2 Extended Modbus Protocol Modcell and MOD30ML devices support an extended protocol, in addition to standard MODBUS RTU. XModbus OPC Server supports these extended features allowing additional data types, automatic scaling and entry of user defined tag names. The extended protocol also supports ViZapp Debug and Status displays, which may be used to provide extended diagnostic and event information. Note that the 2-wire RS-485 module does not support these features.
2 2.1 Installation Objectives This chapter explains the installation procedure for the Extended Modbus OPC Server. 2.2 System requirements: For running the Extended Modbus OPC Server, you need the following computer configuration and software installed: • Pentium 300 MHz or faster processor with 64 MB RAM. • At least 100 MB of available hard disk space. • CD ROM Drive (at least 4 speed, higher speed recommended) • A SVGA monitor or better. • Windows 2000 or Windows XP or Microsoft Windows NT 4.
Extended Modbus OPC Server Installation 2.3 Instructions: The following procedure explains how to install Extended Modbus OPC Server on your computer. Start your Microsoft Windows operating system. Windows 95 needs DCOM (Distributed COM) for running the XModbus OPC Server. The Extended Modbus OPC Server setup will detect if DCOM was already installed on your computer. If DCOM was not present, it will install it. This is an issue with only Windows 95.
Extended Modbus OPC Server Installation Type D:\SETUP.EXE or E:\SETUP.EXE, (CD DriveLetter:\Setup.exe depending on the letter you use for the CD-ROM drive) and click on OK or press ENTER. 2. The Extended Modbus OPC Server Setup introductory screen displays briefly while installation is initiating. Figure 2 .2. Extended Modbus OPC Server Setup 3. The following message will be displayed if you are installing the Extended Modbus OPC Server under Windows 95. Figure 2 .3.
Extended Modbus OPC Server Installation Figure 2 .4. Extended Modbus OPC Server Setup Welcome 4. ABB Software License Agreement will be displayed next and will display the legal information about using the Extended Modbus OPC Server Software. Click on Yes if you accept the agreement. Clicking on No will terminate the Setup. Refer to the next figure. ABB Software License Agreement is a legal document. Read it carefully before clicking on Yes. Figure 2 .5.
Extended Modbus OPC Server Installation Figure 2 .6. Extended Modbus OPC Server Setup –Information 5. Enter User Information: The User Information dialog box will be displayed next as shown below. Type your name, company name and the serial number. This serial number can be found on the CD case or the Extended Modbus OPC Server package you received. Click on Next to continue. Figure 2 .7. Extended Modbus OPC Server Setup –Destination Location 6.
Extended Modbus OPC Server Installation If you want to install Extended Modbus OPC Server onto a different folder, click on the Browse button to open the Choose Folder dialog box and then browse to the desired folder or create a new folder by typing its name in the Path field. • Click on OK to continue. Figure 2 .8. Extended Modbus OPC Server Setup –Choose Destination 7. Select Components for installation: The Extended Modbus OPC Server Software package consists of the main software and a few options.
Extended Modbus OPC Server Installation Figure 2 .9. Extended Modbus OPC Server Setup –Select Components 8. Choose the Program Folder: The Extended Modbus OPC Server setup will also create a program folder and will create program shortcuts inside that folder. You can use these shortcuts to start the programs. The default program folder that will be automatically created will be: ABB Control Solutions Software Suite.
Extended Modbus OPC Server Installation Figure 2 .10. Extended Modbus OPC Server Setup –Select Components • Click on Next to continue. Figure 2 .11. Extended Modbus OPC Server Setup –Program Folder 9. 2-8 The Extended Modbus OPC Server Setup will display the Start Copying Files dialog box next as shown in the figure above. This dialog box will display the settings you have selected. Click on Next to continue.
Extended Modbus OPC Server Installation Figure 2 .12. Extended Modbus OPC Server Setup 10. The setup will start now and will display a progress bar as shown above. After the Setup copied all the required files, the following Information box will be displayed. The Extended Modbus OPC Server CD contains all the technical documentation in Adobe PDF format. If your system does not have Adobe Acrobat Reader installed already, you can install it from the CD after the Extended Modbus OPC Server Setup completes.
Extended Modbus OPC Server Installation Figure 2 .15. Extended Modbus OPC Server Setup –Setup Complete 2 - 10 • Click on Finish to complete the installation. • If the setup had to overwrite any DLLs that were open in the system at the time of Setup, then you will need to restart the computer for the changes to be effective. You can opt to restart your computer at a later time.
3 3.1 Application Tutorial Objectives In this lab, we will configure an Extended Modbus OPC Server database and add a device to it. We will use this database to download the PIDLAB Strategy from the previous lab to the MOD 30ML instrument. We will also populate the OPC database with tags using the Modbus Interface File (.MIF) created in the previous lab and monitor the data by reading them from the instrument using the built-in OPC Client of the Extended Modbus OPC Server.
Extended Modbus OPC Server Application Tutorial 3.2 Instructions 3.2.1 Part 1 1. Launch the Extended Modbus OPC Server: From the Windows Start menu, select Programs-ABB Control Solutions Software Suite - XModbus OPC Server. • The OPC Server will launch as shown in the next figure. • A blank tag database Untitled is opened by default. We will add a device to this database. We will save this database later. Figure 3 .1. ABB Extended Modbus OPC Server 2.
Extended Modbus OPC Server Application Tutorial Figure 3 .2. Add new Extended Modbus Device • Type the name MOD30ML in the Name field (the name is user-configurable and can be anything!). • Select the serial communication port of the computer to which the MOD 30ML is connected, in the Port field. Click on the down arrow in this field to show the dropdown menu and then select the port. (COM1 for example). • Type the instrument’s Modbus address in the address field.
Extended Modbus OPC Server Application Tutorial Figure 3 .3. Port Properties • Select the COMM port from the drop-down menu in the Port field and then enable it by checking the box next to the Enable field. • Choose the Baud Rate, Parity, Flow Control, Data bits and Stop bits from this dialog box. Make sure these entries match the settings of the instrument. • Click on OK to complete the Port configuration. • The Extended Modbus Device Properties dialog box will redisplay with the port number.
Extended Modbus OPC Server Application Tutorial Figure 3 .5. File – Save As • Click on the Save button to save the file. The Title bar of the OPC Server will redisplay with the saved file name. • You can now either close the Extended Modbus OPC Server application by selecting File – Exit from the menu bar at the top or minimize it.
Extended Modbus OPC Server Application Tutorial 3.2.2 Part 2 – Downloading database from ViZapp 5. Run the Vizapp Application and open your workspace document. Open your instrument document on the right frame. Select Instrument – Download from the menu bar at the top. • The Communication Setup dialog box will be displayed as shown below: • Click on the Browse button next to the Server name field to browse the OPC Servers registered in the system.
Extended Modbus OPC Server Application Tutorial Figure 3 .7. Select OPC Server • Click on ABB.Xmodbus item to select it. It should now be displayed in the Server Name field. Click on OK. • The Communication Setup dialog box will redisplay with ABB.Xmodbus in the Server Name field as shown below: Figure 3 .8. Communication Setup 6. Select the Device: Click on the Browse button next to the Device Name field.
Extended Modbus OPC Server Application Tutorial • The Select Device dialog box will display as shown below next. You will also notice the Xmodbus OPC Server application started automatically with the OPC database file you last saved. • This Select Device dialog box will show the name of the device you added to the OPC Database in Part A of this lab. Select the device and then click on OK. Figure 3 .9.
Extended Modbus OPC Server Application Tutorial Figure 3 .10. Communication Setup • Click on OK on this dialog box. The Download Status Indicator will display as shown below if the communication with the instrument was established. If there was no communication, you will get error message boxes. • After successful download, the following message box saying “Download completed without error” will be displayed. Click on OK.
Extended Modbus OPC Server Application Tutorial 3.2.3 Part 3 – ABB Xmodbus OPC Client 8. Launch the XModbus OPC Server Application if it was not running already. It will be launched with your last saved database PidLab.MOPC as shown below: Figure 3 .13. OPC Server database with tags • Do you notice that the OPC database is populated with tags from the MIF file automatically? Also notice that the tags are shown with alias names. • Select the device (MOD30ML1) and right-click on it.
Extended Modbus OPC Server Application Tutorial Figure 3 .15. Device Properties • Click on Cancel on this dialog. Figure 3 .16. OPC Live Data 9. View Live data by starting the built-in OPC client application: • Select View - Monitor from the menu bar at the top. This will start the built-in OPC client and show live data from the instrument in the Value column of the OPC Server application. Refer to the figure above.
Extended Modbus OPC Server Application Tutorial 10. View more details of the tags: Double-click on FICPVI. This will display further properties of that tag as shown below: Figure 3 .17. Tag properties 3 - 12 • The above dialog displays the LSP, High and Low ranges, Read/Write of the tag. • Click on the Close button to close this dialog.
Operation and Reference 4 4.1 Extended Modbus OPC Server 4.1.1 OPC Tag Database The database is typically made up of the following: Devices: These are hardware devices (MODCELL / MOD 30ML) connected to the OPC Server. Groups: Tags/Signals can be grouped together into groups. Groups follow a device that means that you can make groups of tags from a device. In the Extended Modbus OPC database, the grouping will be based on the grouping in the CL block in the instrument database database.
Extended Modbus OPC Server Operation and Reference Having a .MIF file is very handy. Connecting the MIF file to a device in the OPC tag database will create the groups and signals automatically. This will save a tremendous amount of time compared to creating them manually. In the case of generic Modbus devices such as ABB Commander series instruments, you have to create the groups and tags manually and should define their properties. Refer to the Standard Modbus section of this chapter. 4.1.
Extended Modbus OPC Server Operation and Reference Interface File: MIF file - Choose the Modbus Interface file for this device: To choose a .MIF file, 1. Click on the button next to the MIF File field on this dialog box. This will display a list of Modbus Interface files available. 2. Choose your working directory in this dialog box and then select your MIF file inside that directory by clicking on it. The selected file will be displayed in the File Name field at he bottom. 3.
Extended Modbus OPC Server Operation and Reference 4.1.3 Serial Port Configuration Configure the serial port for the communication: Menu item Edit – Ports displays the communication port settings as shown below: Figure 4 .4. Port Properties 4-4 • Select the COMM port from the drop-down menu in the Port field and then enable it by checking the box next to the Enable field. • Choose the Baud Rate, Parity, Flow Control, Data bits and Stop bits from this dialog box.
Extended Modbus OPC Server Operation and Reference 4.1.4 Tag Data The XModbus Tag Data property sheet shows the following configured data: Figure 4 .5.
Extended Modbus OPC Server Operation and Reference 4.1.5 Saving the OPC Server Tag database: The OPC tag database can be save as a file with an extension. MOPC. • Menu item File – Save will save the OPC Tag database. • The Save As dialog box will be displayed next as shown below: • Choose the same folder where you have saved the PIDLAB database for saving this file and then type a name for the OPC tag database file in the File name field. • Click on the Save button to save the file.
Extended Modbus OPC Server Operation and Reference • The live data is read-only as this OPC client application and is mainly used for testing the function of the OPC Server and the communication between the hardware devices and the OPC Server tag database. It does not allow writing of the same.
Extended Modbus OPC Server Operation and Reference 4.2 Standard Modbus OPC Server 4.2.1 OPC Tag Database The Modbus device tag database is typically made up of the following: Figure 4 .8. OPC Server Tag Database Devices: These are hardware devices (Commander / 2050) connected to the OPC Server. Groups: Tags/Signals can be grouped into groups. Groups follow devices that means that you can have make groups of tags from a device. Grouping is only for the user’s convenience.
Extended Modbus OPC Server Operation and Reference Data Type Number of Registers Limits Word 1 32768 to 32767 Unsigned Word 1 0 to 65535 DWord 2 -2,147,483,648 to 2,147,483,647 Unsigned DWord 2 0 to 4,294,967,295 Float 2 +/- 3.4 E38 (7 Significant digits) DFloat 4 +/- 1.4 E308 (15 Significant digits) New Read: Check this box to make this location the start of a read message.
Extended Modbus OPC Server Operation and Reference Read input registers (any data type) from (31001 - 31999) (32001 - 32999) (33001 33999) (34001 - 34999) (35001 - 35999) Maximum Values - 125 registers 4.2.3 Scaling Use this menu to define the conversion of raw data into engineering units and define that as a New Style. You may also delete any styles no longer needed. To add a new style: 1. Select an existing style to base the new one on if available. 2.
Extended Modbus OPC Server Operation and Reference 4.2.5 Import CSV A comma separated file, having the following format. A CSV file can be constructed in a text editor or in a spreadsheet program and exported as CSV. Note that the lines starting with "#" are comment lines. Each line following the comments represents a tag. A tag line consists of the following data: Device.Group.
Extended Modbus OPC Server Operation and Reference 4.2.6 SAMPLE CSV FILE # ABB Instrumentation, Extended Modbus OPC Server # Monday, August 23, 1999, 12:24 # Device.Tag or,Coil/Register,Data,New,Tag,Sqr.,Initial,Eng.,Eng.,Eng.,Raw,Raw # Device.Group.Tag,Address,Type,Read,Description,Root,Data,Low,High,Units,Low,High C100.ALM1,6,Bool,0,"Alarm State 1" C100.ALM2,8,Bool,0,"Alarm State 2" C100.CMode,30,Bool,0,"Auto (0) / Manual (1)" C100.DER,40027,Word,0,"Derivative Time" C100.
Extended Modbus OPC Server Operation and Reference 4.2.7 CSV Import Options When adding tags from a CSV file that may be in conflict with existing tags, you are given the choice of: • Adding new tags contained in the CSV file WITHOUT changing existing tags. • Adding new tags contained in the CSV file and REPLACE tags that already exist. • REMOVE existing groups and tags, then add tags contained in the CSV file. If checked, the Display the log file will display the file "Import.
Extended Modbus OPC Server Operation and Reference 4.3 Dynamic Data Entry (DDE) Type Links The Extended Modbus OPC Server supports DDE (Dynamic Data Exchange) for serving data to DDE Client applications such as Microsoft Excel. The typical reference for DDE connections is: Program|Topic!Point The character between Program and Topic is called a Pipe, the dashed vertical line character on the keyboard. An exclamation point is used between the Topic and Point.
PRODUCTS AND SERVICING A Comprehensive Instrumentation Range Sensors, transmitters and related instruments for flow, temperature, pressure, level and other process variables Flowmeters electromagnetic, ultrasonic, turbine, differential pressure, Wedge, rotary shunt, coriolis, vortex. Differential Pressure transmitters Smart, electronic and pneumatic. Temperature sensors and transmitters, fiber optic systems. Pressure transmitters Level sensors and controllers.
The Company’s policy is one of continuous product improvement and the right is reserved to modify specifications contained herein without notice. ©2002 ABB Inc. ABB Instrumentation Ltd. St. Neots Cambs. England, PE19 3EU Tel: (01480) 475321 Fax: (01480) 217948 ABB Inc.