vizapp training manual - instrumentationrepair.com · technologies like opc (ole for process...

226
ViZapp Training Manual Visual Application Designer ABB Automation

Upload: others

Post on 24-Sep-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

ViZapp Training ManualVisual Application Designer

ABB Automation

Page 2: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

!

i

!

ABB AUTOMATION

The Company

ABB Automation is an established world force in the design and manufacture ofinstrumentation for industrial process control, flow measurement, gas and liquid analysisand environmental applications.

As a part of ABB, a world leader in process automation technology, we offer customersapplication expertise, service and support worldwide.

We are committed to teamwork, high quality manufacturing, advanced technology andunrivaled service and support.

The quality, accuracy and performance of the Company's products result from over 100years experience, combined with a continuous program of innovative design anddevelopment to incorporate the latest technology.

The NAMAS Calibration Laboratory No. 0255(B) is just one of the ten flow calibrationplants operated by the Company, and is indicative of ABB Automation's dedication toquality and accuracy.

BS EN ISO 9001St Neots -Certificate No. Q5907Stonehouse -Certificate No. FM 21106

ISO 9001Rochester, USA -Certificate No. AQ-8618

EN 29001 (ISO 9001)Lenno, Italy -Certificate No. 90/90A

Stonehouse -Certificate No. 0255

Use of Instructions

Warning. An instruction that draws attention to the risk ofinjury or death.

Caution. An instruction that draws attention to the risk ofthe product, process or surroundings.

Note. Clarification of an instruction or additionalinformation.

Although Warning hazards are related to personal injury, and Caution hazards are associated with equipment or property damage, itmust be understood that operation of damaged equipment could, under certain operational conditions, result in degraded processsystem performance leading to personal injury or death. Therefore, comply fully with all Warning and Caution notices.

Information in this manual is intended only to assist our customers in the efficient operation of our equipment. Use of this manual forany other purpose is specifically prohibited and its contents are not to be reproduced in full or part without prior approval of ABBAutomation.

Licensing, Trademarks and CopyrightsMODCELL, MOD 30 and MOD 30ML are trademarks of Asea Brown Boveri, Inc.MODBUS is a trademark of Modicon Inc.

Health and Safety

To ensure that our products are safe and without risk to health, the following points must be noted:

1. The relevant sections of these instructions must be read carefully before proceeding.

2. Warning Labels on containers and packages must be observed.

3. Installation, operation, maintenance and servicing must only be carried out by suitably trained personnel and in accordance with theinformation given or injury or death could result.

4. Normal safety procedures must be taken to avoid the possibility of an accident occurring when operating in conditions of highpressure and/or temperature.

5. Chemicals must be stored away from heat, protected from temperature extremes and powders kept dry. Normal safe handlingprocedures must be used.

6. When disposing of chemicals, ensure that no two chemicals are mixed.

Safety advice concerning the use of the equipment described in this manual may be obtained from the Company address on the backcover, together with servicing and spares information.

Information. Further reference for more detailedinformation or technical details.

Page 3: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

1 - 1

1 Getting Started

1.1 Foreword

Visual Application Designer (ViZapp) is a suite of Instrument Configurator and OPCbased (OLE for Process Control) 32 bit Client and Server Applications for ABB MOD30ML and MODCELL for Configuration and Debugging. It also has a built-in simpleHMI (Human Machine Interface). Visual Application Designer (ViZapp) uses the latesttechnologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs underMicrosoft Windows 95, Windows NT and Windows 98. The XModbus OPC Server in theViZapp Suite supports both Extended Modbus (MOD 30ML/Modcell) and StandardModbus protocols.

1.2 OLE� for Process Control

OPC is Plug-n-Play in the field of Automation and HMI. OLE� for Process Control(OPC�) is the most standard way for connecting hardware and data devices with HMIclient applications.

In the OPC world, there are two major types of applications:

• OPC Servers and

• OPC Clients.

1.2.1 OPC Servers and Clients

OPC Server applications are used to collect data from the data sources like hardwaredevices. At the bottom level, the servers are mainly for reading inputs and writing outputsof the data sources. At the upper level, the servers make the data available in a standardway to the OPC client applications.

The OPC Client applications can communicate directly with the OPC servers and get thedata. This way OPC enhances the interface between client and server applications byproviding a standard mechanism to communicate data from a data source to any clientapplication.

OPC is a concept agreed upon by a committee of members from the OPC foundation.Most automation companies in the market place including ABB are members of thisfoundation. OPC uses state-of-the art technologies like COM, DCOM, ActiveX ofMicrosoft and makes development and programming easier.

Page 4: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Getting Started

1 - 2

To illustrate the advantage of OPC based client-server applications over the traditionalclient-server based applications, let us compare both of them:

Figure 1 .1.Traditional ControlSystems

2 Devices and 3Client Applications

6 Device Drivers

Client Application Vendor1

Client Application Vendor 2

Client Application Vendor 3

Device1 Device 2

In the traditional case, servers or devices have different interfaces / drivers for each clientapplication. (Each arrow line above represents a driver or interface software). This isbecause although a device uses one communication protocol, the architectures of differentclient applications (from different vendors) are different. This leads to the development ofindividual device driver software for each client application.

Figure 1 .2.OPC based ControlSystems

2 Devices and 3Client Applications

2 Device Drivers

OPC Client Application

Vendor 1

OPC Client Application

Vendor 2

OPC Client ApplicationVendor 3

OPC ServerDevice 1

OPC ServerDevice 2

OPC Architecture overcomes the above issue. In this case, a device/ server will have onlyone standard driver that is OPC Compliant (Server) and all the client packages that areOPC Compliant (Client) can be connected to it.

The major advantage of OPC is that it reduces development time and cost as any serverapplication that is OPC compliant can work with anybody�s OPC client application.

Page 5: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Getting Started

1 - 3

1.3 ABB Visual Application Designer (ViZapp) Architecture

Visual Application Designer has four major parts:

1. MODCELL / MOD 30ML Configurator

2. XModbus OPC Server

3. ViZapp OPC Client

4. ViZapp Display builder

The following figure shows the architecture of ABB ViZapp package:

Figure 1 .3.ABB ViZapp

ABB OPC andThird party OPCApplications

ViZapp Graphicsand ApplicationBuilders

1.3.1 ViZapp Instrument Configurator

This is used for configuring MODCELL and MOD 30ML instruments. Instrumentdatabases can be developed using the function / algorithm blocks and can be compiledand downloaded to the MODCELL and MOD 30ML instruments using the XModbusOPC Server. It also supports all the versions of MODCELL and MOD 30ML. Theconfigurator also has useful utilities like Database Upload and Instrument Status Page.

Page 6: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Getting Started

1 - 4

Figure 1 .4.ABB ViZapp

ViZapp Graphicsand ApplicationBuilders

1.3.2 XModbus OPC Server

This is an OPC based Server application and can be used for reading and writing datafrom MODCELL and MOD 30ML. It uses the ABB Extended Modbus protocol toconnect to these devices. This OPC Server can also support standard Modbus protocoland thereby support ABB Commander series instruments and other Modbus devices. Thisis also used to build the tag database. Tag database contains information about the tagssuch as tag name, address, device (instrument) from which they are coming andcommunication port settings. Since this is an OPC Server, any OPC Client applicationssuch as OPC based HMI Software can plug and play with this and present the data to theuser.

Figure 1 .5.ABB ViZapp

ABB OPC Server

Page 7: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Getting Started

1 - 5

The XModbus OPC Server has a built-in OPC Client that can be used to read tag valuesfrom the devices for monitoring and testing purposes.

1.3.3 ViZapp OPC Client

This is an OPC based Client application and can be used as a Human Machine Interface(HMI) along with the XModbus OPC Server. It is also used for displaying the live datacollected by the ViZapp OPC Server. It can plug and play with OPC Servers and presentthe data to the user.

1.3.4 ViZapp Display builder

Display builder is the most visible part of the ViZapp package. Process specific displayscan be made with the help of the display tools available with this. The objects on thedisplays can be animated by connecting the instrument parameters / tags. These tags willbe derived from the tag database. OPC Server will provide the tag values.

Figure 1 .6.ABB ViZapp

Display Builder

Page 8: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Getting Started

1 - 6

1.4 Steps involved in configuring a OPC based control systemwith ABB Modcell / MOD 30ML:

1. Build MODCELL / MOD 30ML database / control strategy using the ViZapp ApplicationBuilder. Configure the CL blocks (Configured List) in the strategy and add all instrumentparameters that are to be communicated to the computer to the CL blocks. Create ModbusInterface File (.MIF) for each instrument at compile time.

2. Start the ViZapp Modcell OPC Server and create a new database. Add the desiredinstrument as a device in that database. Configure the Device properties.

3. Configure serial port for the above database. This is the port at which the instrument isconnected. Save the Xmodbus OPC Server database.

4. Download the compiled database to the instrument by selecting Xmodbus OPC Serverand the device you added in the OPC Server database in step 2 above. Remember to checkthe option Populate ViZApp and OPC Server Tag lists in the Communication Setup.This will be sufficient to run the control strategy in the instrument.

5. Running ViZapp Debug will animate the control strategy (MOD Function Block diagram)in ViZapp and this can be used for reading and writing instrument parameters.

6. Populating the ViZapp and OPC Server tag lists (Step 4 above) will automatically createtags for the device in the OPC Server tag database. These tags are derived from theModbus Interface (.MIF) file and will be added to the device in the OPC Server database.

7. Run the built-in OPC client in the OPC server application to read and monitor instrumentparameters. This will provide a simple user interface for the instrument.

8. Build a process specific display using the ViZapp display builder. Assign dynamic actionsto the display objects by connecting them to the tags that are created in ViZapp. Thesetags were created by populating the ViZapp and the OPC server database tag lists in Step4 above.

9. Animate the display from ViZapp Display builder. This will be an animated HumanMachine Interface to the control strategy running in the instrument.

10. Configure Runtime properties and displays. Save all the files and run the ViZapp project.

1.4.1 Connecting third-party OPC applications with ABB OPCapplications:

Since ViZapp is an OPC based application, third-party OPC clients can easily connect tothe XMobus OPC Server. Typical examples of third-party OPC client applications couldbe Graphic HMI packages, Trending and Data logging packages and Alarming softwarepackages.

Page 9: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Getting Started

1 - 7

Most third-party OPC client applications have Tag-Browsing interface and canautomatically see the Xmodbus OPC Server registered in the system. The devices andtags can be selected by simply browsing using the Tag-Browsing interface.

✎ Tag Browser is an intuitive point and click OPC interface that allows configuration ofOPC Data points for OPC clients. It allows browsing of tags that are from OPC serversrunning locally (in the same computer) and also over a network. This also allows theTag Browser to support point configuration without any additional user configuration.Using the tag browser, the client can automatically see the server�s devices, groups,tags and other optional components.

To connect third-party OPC client applications that do not have Tag Browsing capability,you can simply type the OPC point name. The OPC point name includes the OPCapplication name, device name and tag name. An example syntax for point name is asshown below:

ABB.XModbus\Modcell.FICPVI

Page 10: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Getting Started

1 - 8

Notes:

Page 11: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

2 - 1

2 ViZapp Setup Lab

2.1 Objectives

In this lab we will setup the ViZapp Software on your computer. After completing this labyou should know how to install and setup ViZapp on your computer.

2.1.1 System requirements:

For running ViZapp, you need the following computer configuration and softwareinstalled:

• Pentium 133 or higher 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 (256 colors) or better.

• Microsoft Windows 95 B Release with DCOM or

• Microsoft Windows NT 4.0. Service Release 3.0/4.0 or

• Microsoft Windows 98

• A mouse or other compatible pointing device.

Page 12: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp Setup Lab

2 - 2

2.2 Instructions:

The following procedure explains how to install ViZapp on your computer. Start yourMicrosoft Windows operating system (Windows 95 or NT 4.0 Service Release 3.0 orWindows 98).

✎ Windows 95 needs DCOM (Distributed COM, a utility needed for running OPC). TheViZapp setup will detect if DCOM was already installed on your computer. If DCOMwas not present, it will be installed as part of the ViZapp installation.

You need to login as Administrator or as a user with administrative rights in Windows NTbefore installing ViZapp.

Α Close all applications that are running in your computer currently before starting theViZapp setup.

1. Insert ViZapp CD into the CD-ROM drive.

In most computers where auto run is enabled, the setup will start automatically as soon asyou put the ViZapp CD in the drive and close the drive. If auto run is not enabled in yourcomputer you will need to run it manually.

To run the setup manually, select Run from the Start Menu of Windows 95 or WindowsNT or Windows 98. The Run dialog box will appear as shown below:

Figure 2 .1.Run dialog box

Type D:\SETUP.EXE or E:\SETUP.EXE, (depending on the letter you use for the CD-ROM drive) and click on OK or press ENTER.

2. The ViZapp Setup introductory screen displays briefly while installation is initiating.

3. The setup will display the Welcome dialog box as shown below. Click on Next tocontinue.

Page 13: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp Setup Lab

2 - 3

Figure 2 .2.ViZapp Setup -Welcome

4. ABB Software License Agreement will be displayed next and will display the legalinformation about using the ViZapp 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 beforeclicking on Yes.

Figure 2 .3.ViZapp Setup �ABB licenseAgreement

Page 14: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp Setup Lab

2 - 4

5. Enter User Information: The User Information dialog box will be displayed next asshown below. Type your name, company name and the serial number. This serial numbercan be found on the CD case or the ViZapp package you received.

Figure 2 .4.ViZapp Setup �User Information

• Click on Next to continue.

6. Choose a folder for the setup: The next dialog box will prompt you for a destinationlocation for ViZapp installation.

• The default location for the installation is :

C:\Program Files\ViZapp

Page 15: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp Setup Lab

2 - 5

Figure 2 .5.ViZapp Setup �DestinationLocation

• We will choose the default location for the setup. Click on Next to continue.

✎ If you want to install ViZapp onto a different folder, click on the Browse button toopen the Choose Folder dialog box and then browse to the desired folder or create anew folder by typing its name in the Path field.

• Click on OK to continue.

✎ The ViZapp Software package consists of the main software and a few options. Youcan choose the options at the time of setup and that is what you are going to do next.

7. Select Components for installation: The Select Components dialog box will displaynext as shown below: The available components are:

• Main Program

• Main Help

• Extended Modbus OPC Server

• Extended Modbus Help

• Report Generator

• Report Generator Help

• Online Documentation

• Desktop Folder

These options will be displayed as check boxes on the dialog box. Accept the defaults andthen click on Next to continue.

Page 16: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp Setup Lab

2 - 6

Figure 2 .6.ViZapp Setup �Select Components

8. Choose the Program Folder: The ViZapp setup will also create a program folder andwill create program shortcuts inside that folder. You can use these shortcuts to start theprograms. The default program folder that will be automatically created will be: ViZapp

Figure 2 .7.ViZapp Setup �Program Folder

• We will accept this default folder. Click on Next to continue.

Page 17: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp Setup Lab

2 - 7

✎ If you want to create a new program folder you can type its name in the ProgramFolders field on this dialog box. If you want to use one of the existing programfolders, you can choose it from the Existing Folders list box on this dialog box byclicking on it.

9. If you are installing ViZapp for the first time on a computer, go to step 10. If you areinstalling ViZapp on top of an already existing installation or if you have a Gallery filepre-existing at the installation folder, then a dialog box as shown below will be displayednext. This enables you to over-write an existing gallery file or rename it and install a newgallery file. Answer appropriately.

Figure 2 .8.ViZapp Setup -Component Gallery

• If you chose to rename the existing file, the following Rename Gallery dialog willbe displayed. You can type a name for the old gallery file. Click on Next. See nextfigure:

✎ Gallery File: The gallery is a library of instrument compounds (collection of functionblocks configured for a specific functionality), smart symbols and static symbols. Youcan either add a compound/symbol to the component gallery or use one from thegallery. You can add frequently used compounds and symbols in the gallery.

Page 18: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp Setup Lab

2 - 8

Figure 2 .9.ViZapp Setup -Component Gallery

• A message box confirming the renaming of the file will appear next. Click on OKon this message box to continue.

10. The setup will start now and will display the setup information as shown below.

• There will be a horizontal bar at the center that will display the percentage ofcompletion

• There will be a set of three vertical bars on the left. The leftmost bar in this setwill display the percentage of each file as it installs. The name of the current filethat is being copied to will also be displayed just above the horizontal bar at thecenter.

• The center vertical bar will display the amount of files copied from the CD-ROM.

• The right vertical bar will display Hard disk space used.

• The Cancel button below the horizontal bar can be used for terminating the setupany time.

Page 19: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp Setup Lab

2 - 9

Figure 2 .10.ViZapp Setup

11. HardLock device drivers will be installed during the setup. If you are installing ViZappunder Windows NT, the NT Command box will display as below:

Figure 2 .11.ViZapp Setup �HardLock Driver

• If you had a previous installation of ViZapp, then you might be prompted toanswer Yes/No to continue removing the old device drivers. Answer Y (Yes).

12. After all the files are copied, the following message box about Acrobat Reader will bedisplayed. Acrobat Reader is required for reading the online documentation off the CD.You can install it later by running the RS40ENG.EXE file on the ViZApp CD.

Page 20: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp Setup Lab

2 - 10

Figure 2 .12.ViZapp Setup �Setup Complete

• Click on OK to continue. The Setup Complete dialog box will be displayed next asshown below:

Figure 2 .13.ViZapp Setup �Setup Complete

• Click on Finish to complete the installation.

• If ViZapp had to overwrite any DLLs that were open in the system at the time ofSetup, then the following dialog box will be displayed.

• You will need to restart the computer for the changes to be effective. You can optto restart your computer at a later time.

Page 21: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp Setup Lab

2 - 11

Figure 2 .14.ViZapp Setup �Setup Complete

• Click on Finish when done.

Page 22: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp Setup Lab

2 - 12

Notes:

Page 23: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

3 - 1

3 PID Loop Lab

3.1 Foreword

Many processes involve flow control loops, whether they are in the food, pharmaceutical,chemical, pulp & paper, mining or virtually any of the industries served by MODCELLand MOD 30ML. This lab is designed to help you learn the basic features of the ViZappconfigurator, as well as how to easily learn/demonstrate configuration of a PID loop.

3.2 Objectives

In this lab we will design a simple flow loop with a 4-20mA signal from a dP transmitter,a square root extractor, a PID control loop and a modulating control valve. The P&ID forthis loop looks like this:

Figure 3 .1.Sample Flow PIDLoop

F E

F T

F Y F C

F C V

We will use the built-in analog input 2 of MOD 30ML for connecting the process variable(FT). We will use the built-in analog output 2 for sending the output of the PID. We willalso build a display for this PID loop.

After completing this lab, you should:

• Be familiar with the ViZapp Designer's workspace, menus and toolbars

• Know how to create new workspace, project and instrument documents

• Know how to configure a MOD 30ML database using ViZapp Configurator for asimple PID Control loop.

• Be able to setup communications for talking to the MOD 30ML/MODCELLinstrument.

• Be able to build a PID loop display for displaying and changing process andoperator parameters.

• Know how to compile and download the database to the instrument

Page 24: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 2

3.3 Instructions

Follow these instructions step-by-step to configure a simple PID loop:

3.3.1 Getting started

1. Launch ViZapp. Select Programs from the Windows Start menu. Select ViZapp fromthe menu. The ViZapp configurator will launch as shown in the next figure. As you willnotice, the configurator will be blank with no workspace loaded on the screen.

Figure 3 .2.ViZappConfigurator

• Note that the configurator screen has two frames (left and right).

2. We will create a new Workspace and a new project in this step. Click on the Filemenu on the menu bar at the top. Select New from the drop-down menu as shown in thenext figure:

Figure 3 .3.File-New

Page 25: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 3

• This will open the New dialog box as shown in the next figure. There are 2 tabs(sections) in this dialog box and it displays the Project tab as default.

Figure 3 .4.New Project

• Click on the little button next to the Location field to open the Browser forFolder dialog as shown in the next figure:

• Select the C: drive from this folder and select on it by double-clicking on it. Seenext figure:

Figure 3 .5.New Project

• The New dialog box will redisplay

Page 26: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 4

Figure 3 .6.New Project

• Type the name CLASS for your project in the name field. Notice that the name ofthe location for this project changes to C:\Class. It creates a folder under the C:drive (or any other drive you choose) automatically.

! All project files and the instrument and display documents will be saved in this folder.This makes project portability easier.

• Click on the option Create a new Workspace. This will create a new workspacefor us. Click on OK.

• The configurator will redisplay with a new workspace and a project as shownbelow:

Page 27: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 5

Figure 3 .7.Class Workspace

• The left frame shows the project tree. The Workspace is at the root of this tree andcontains the Project, and other components such as Event Log and Components.

• The newly created workspace is given the same name as that of the project. Theproject sub-tree or branch contains the components Security and Tags.

3. With what we have above, we have only created an environment to configure instrumentdatabase and display files. Next we will create an instrument database. We will hereaftercall it the instrument document.

• Click on the New Document button on the tool bar or Select File-New form themenu bar to display the New dialog box again as shown below:

Page 28: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 6

Figure 3 .8.New Document

• The New dialog box shows the Document tab now. Select the type MODFunction Block diagram by clicking on it and then type the name PIDLAB forthe document in the Name field.

• This document will be created in the project folder \class automatically and willbe added to your Class project by default. See figure above.

! When you create a new project, a file with the project name and file extension .APRJwill be created. This file is called project file in the ViZapp installation directory.

The instrument document/ configuration files (MOD Function block diagram files)will have extension .AFBD and will be saved in the project folder.

The workspace we created will be saved as a file with extension .AWSP (Class.awsp) anda file with same name and .FEQP extension (Class.feqp) in the root folder where theproject folder is located.

! IF you move your workspace and project to a different location/ drive, move theproject folder and the two files for the workspace (.AWSP and .FEQP), maintainingtheir relative location.

• Click on OK. This will display the Choose Instrument Version dialog box asshown in the next figure: This dialog box will display the different instrument IDmodule versions (MODCELL and MOD 30ML).

Page 29: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 7

Figure 3 .9.InstrumentVersions

• Select MOD 30ML 2 from this list as our instrument version by clicking on it andthen click on the Close button.

• The Configurator will redisplay as shown below. The instrument database will beopened on the right frame and the default blocks (IF, SE, ST and DIF) for theMOD 30ML database will be loaded.

• Notice that the newly created document PIDLAB is shown in the project treeattached to the Project Class.

Figure 3 .10.Default instrumentdatabase

• The algorithm blocks belonging to the instrument version selected will be shownas a menu on the left frame.

Page 30: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 8

4. Let us first configure a scan group:

! There could be as many as five scan groups in an instrument database. The controlloops (database blocks connected together) are grouped into Loop Compounds. TheLoop Compounds can be assigned to any of these scan groups. All the blocks andcompounds in a particular scan group will be executed at the same scan rateconfigured for the group.

This way you can have many loops in the database and they can be executed at differentrates depending on their priority and speed of the process they are controlling.

• Notice that all the four blocks on the screen are selected. Deselect them byclicking on a blank space and then double-click on the IF (Interface) block. TheInterface block will open as shown in the next figure: The block is displayed in avisual notebook format, with tabbed �pages� containing the parameters forconfiguration. The Execution tab (page) of this block will be displayed by default.

Figure 3 .11.IF Block

• Change the Group 1 scan interval from 250 ms to 200 ms by typing in the ms fieldof Scan Intervals:Group 1.

! Notice that the Properties menu of the block has the following tabs:

• Execution

• Startup

• Diagnostics

• Incoming

Page 31: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 9

• Outgoing

• Connect map

• Shape

Configuration parameters related by common nature are grouped into these tabs. Thishelps to display of information in a logical manner. Most fields under these tabs containdefault values that need not be changed.

5. Add a loop compound. We will configure our control loop inside this loopcompound.

• Select the Loop Cpd (Loop compound) block from the Algorithms window add itto the document. Do this by first locating the block in the menu by selecting theAll submenu at the bottom and then by dragging the scroll bar on the rightup/down. See the next figure:

Figure 3 .12.Algorithms menu

• Drag the Loop Cpd block (Loop Compound) from the Algorithms menu on the leftframe to the right frame. Click on the Loop Cpd block with your left mousebutton and then drag it to the instrument document. Click on the mouse button toplace the Loop compound block with the other existing blocks (IF, SE, DIF andST) on the right frame.

6. Configure a name and description for the Loop Compound: Click once on this blockwith your right mouse button. A menu as shown in the next figure will appear.

Page 32: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 10

Figure 3 .13.Loop CompoundProperties

• Select Properties from the menu. The Algorithm Properties of the Loop Cpd blockwill be displayed next as shown in the next figure.

• Type Control in the Name field.

• Type a description "This compound is for the Flow Control Loop"

• Click on OK to close the Properties.

Figure 3 .14.Loop CompoundProperties

Page 33: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 11

7. Open the loop compound:

• Right-Click on the Control compound (Loop compound you just named) again andselect Open compound at the bottom of this menu.

• The loop compound will open as shown below and will have a Loop block (LP) bydefault.

Figure 3 .15.Loop Block

! A loop compound is a compound or group that contains a loop block. You configureother blocks and compounds inside the loop compound. The compound can be added toone of the five scan groups defined in the Interface block. All the blocks inside thecompound will be executed at that scan rate.

• The compound will also have a Compound Signals menu that can be used tomake pre-defined connections in and out of this block. (We will not use this fornow. You can close it by clicking on the close button on its right hand side top �the X button)

7. Open the Loop block (LP-1) by double-clicking on it. The block will open as shown inthe next figure. We will not change anything in this block. Just notice that scan group thiscompound belongs to defaults to Scan Group 1. (250 ms� refer to step 4 - Interfaceblock).

Page 34: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 12

Figure 3 .16.Loop Block

• Close the Loop block by clicking on the OK button.

8. Configure the PID loop shown in Figure 2.1:

• Let us start doing this by adding the necessary algorithm blocks to the LoopCompond on the workspace on the right frame. Add the following blocks to thedatabase:

• AIN � Built-in Analog input

• VCI � Voltage or Current input function block

• PID � PID algorithm block

• AOUT � Built-in Current output block

You can either select the specific category at the bottom of the Algorithms menu firstand then the blocks or you can select the category All to pick any block.

After you placed the above blocks in the database, the right frame on your configuratorscreen should look something like the next figure.

Page 35: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 13

Figure 3 .17.Algorithm blocks inthe LoopCompound

9. Resize and move these blocks to fit them on the database workspace.

• Select a block by clicking on it. The selected block will have handles around it.See figure below:

• Move the block with the left mouse button pressed on it and by moving the mouse.

• Resize the block by dragging one of the handles (corner or side)

Figure 3 .18.Move, Resize andConfigure

Page 36: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 14

3.3.2 Configuring the blocks:

11. Let us configure these blocks next.

• Configure the Analog Input block.

• Double-click on the AIN block to open its Properties menu as shown below:

Figure 3 .19.AIN Block

• Type FT-100 as the name.

• Select Current as the Input type from the drop-down menu.

• Type the Input number as 2 and Description as shown in the above figure. This isthe built-in input 2 of the MOD 30ML. Note that changing the input type changesthe Input Low and High signal ranges automatically. This can also be manuallychanged.

• Click on OK when done.

! If you are using the MOD 30ML Demo box, leave the Input type as Volts in the aboveconfiguration. Specify the Input signal range as 0 to 6 Volts.

• Configure the VCI block: Double-click on the VCI block. We will configure thisto specify the input function for the analog input configured above. The VCI blockProperties will open as shown in the next figure:

Page 37: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 15

Figure 3 .20.VCI Properties

• Type the name and description for this block as shown above. Move the cursor tothe Linearization Type field and click on the down arrow. Select Modifies SquareRoot as the type from the drop-down menu. This will compensate for errors atvery low flow measurements.

• Change the Range to 0 to 200 and Quality limits also to 0 to 200. The measuredsignal (4-20mA or 0-6V) will be interpreted as 0 to 200 flow units.

• We will not change anything else in this menu. Click on the OK button tocomplete the configuration of this block.

12. Save your Document.

Figure 3 .21.File Menu

• It is essential to save your document at frequent intervals.

• Refer to the above figure. Click on the Save button on the toolbar at the top tosave the document. You can also save a document by selecting File-Save from themenu bar.

Page 38: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 16

13. Continue configuring the other blocks. Double-click on the PID block. Give the block thetag name FIC-100.

• Change the Process Input range to 0 and 200. Type the description as shown in thenext figure. Note that the default Control Action id Reverse.

Figure 3 .22.PID Block

• Click on the Setpoint tab at the top of this block to configure the setpoint for thiscontrol loop. The Setpoint page will display as shown in the next figure:

Page 39: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 17

Figure 3 .23.PID Properties

• Change the Setpoint low and high limits to 0 and 200.

• Click on the other tabs at the top (Control, Modes, Options etc, to view differentpages of the PID block.

• We will accept default values for the other parameters. Click on OK to close thePID block.

14. Configure AOUT block to define the properties of the analog output:

• Configure this block as shown in the next figure:

• The name FCV-100 represents the output to the Flow Control Valve.

Page 40: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 18

Figure 3 .24.Aout Properties

• Specify the Output number as 2. This is built-in analog output two.

• The source range of 100 to 0 from the PID block will be converted to 4 to 20mAoutput since the action is Reverse in the PID block. Refer to the above figure.

• Click on OK.

Page 41: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 19

3.3.3 Connecting the blocks:

15. The next step is to connect the blocks together to realize the control loop shown in Figure3.1.

• Click on the Multi-Segment connection item on the Algorithms menu to enableconnection mode. See figure below:

Figure 3 .25.Algorithm -Connection

• Move to the workspace on the right and click on the AIN block�s (FT-100 �source block) output connection point as shown in the next figure. Notice thatmoving the cursor over the output of a block, shows a fly-by box. This box showsthe name of the output (for example, in this case MODOUT).

Figure 3 .26.Connecting blocks

• Move the cursor to the VCI block�s (destination block FY-100) input now.Moving the cursor will draw a line.

Figure 3 .27.Connecting blocks

• You will get a fly-by box that will say MODIN when you move over the input.

Page 42: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 20

• Click on the input of the VCI block. See the figure above.

Figure 3 .28.Connecting blocks

• The connection will now be complete. The connection line will have the sourcename and destination name displayed right on it as shown in the above figure.

! The input connection points are on the left side of the blocks and the outputconnection points are on the right hand side.

There might be more than one input or output for each block. All the inputs or outputsneed not be shown as connections attached to the block. To see all the inputs or outputs ofa block, you need to click right on the block in the connection mode.

As an example, the figure below shows the possible inputs of the PID block (destinationsfor inputs into this block).

Figure 3 .29.Choose parameterfor connecting

16. Connect the corrected flow as the process variable input the PID block.

• Let us take Right angle connector this time. The right angle connector will connectthe blocks by horizontal and vertical lines instead of making a point to pointstraight connection.

Page 43: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 21

• Select the right angle connector from the Algorithms menu as shown below:

Figure 3 .30.Right Angleconnection

• Click on the output point of the FY-100 block. This point is the result of the FY-100 input function block. The fly-by box will say R when you click on the output.Drag the line to the input point of the PID block and clock on it (PVI) to completethe connection.

17. Connect the output of the PID (FIC-100) to the INPUT of the AOUT (analog output)block with the right angle connector as shown below.

Figure 3 .31.Right Angleconnection

! If you made a mistake while connecting, or if you do not know where to connect, youcan always cancel it or get out of the connection mode by clicking on the right mousebutton to show a menu as shown below:

• Select Cancel from this menu to cancel the connection.

Page 44: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 22

Figure 3 .32.Cancel Connection

18. Add the blocks from the Component Gallery:

• From the top menubar, select Project/Gallery/Component Gallery

Figure 3 .33.Accessing theComponent Gallery

• When the Component Gallery dialog box appears, select the Compounds tab. Alibrary of pre-configured Compounds, or groups of algorithm blocks, appears.

Page 45: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 23

Figure 3 .34.Compound Library

• Move the cursor to the PID Display compound and either double-click, or select itand then select the Export button. The Component Gallery dialog box closes anda Display is placed in your workspace. The block is highlighted with small greenboxes.

! You could also drag-n-drop the compound from the Components Gallery into theInstrument document.

Figure 3 .35.Workspace withnew Display block

• Move the new blocks to an appropriate place on the workspace, as shown below.

Page 46: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 24

Figure 3 .36.Workspace withnew Display blockconnected

19. Connect the PID parameters to be displayed:

• Using the Multi-Segment connector, click on the PID block and select PVI fromthe resulting dialog box. Double-click on PVI or select and click on the OKbutton.

Page 47: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 25

Figure 3 .37.Selecting PID blockparameters toconnect

• Drag the cursor over the Display block and click. Select process from theresulting dialog box. See the next figure:

Page 48: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 26

Figure 3 .38.Choose parameterfor connecting

• The connection between the Process variable in the PID block and the DsiplayBlock input called �process� is now complete.

• Continue connecting from the PID block to the Display block until the followinginputs are connected:

• SP to setpoint

• OP to output

• OPMS to mode

• SPMS to spmode

Page 49: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 27

Figure 3 .39.Connections fromPID blockparameters toDisplay block inputs

20. The display compound from the Component Gallery is set up for 0 to 100. This must bechanged to match the PID block that we configured for 0 to 200. We must also designatea display tag.

• Double-click on the Display block. In the resulting dialog box, type FIC-100 inthe Display Tag field (overwrite the PID-100).

Figure 3 .40.Entering theDisplay Tag in theDisplay Block

Page 50: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 28

! This tag must be unique to this display. It can also be used as the tag name thatappears on the front face. The default DISPTAG in Line 1 of the Intial Values causesthe value or name typed in the Display Tag field to appear on Line 1 of the display onthe front panel. For more detailed information on display building, refer to IB-1800R-SCR, Display Guide.

• Select the Formats tab in the Display Block

Figure 3 .41.Display BlockFormats tab

• Double-click on the name processL and change the High Limit in the resultingdialog box to 200.

Page 51: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 29

Figure 3 .42.Changingengineering unitrange for processline display

• Select the OK button at the bottom of this dialog box.

• Repeat this process for the following formats:

• setpointL

• processB

• Close the Display Block with the OK button at the bottom of the dialog box.

21. Close the loop compound:

• Right-click (click on the right button of the mouse) on the empty workspace to geta menu as shown in the next figure:

Page 52: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 30

Figure 3 .43.Closing Compound

• Select Close Compound at the bottom of this menu.

• You should be back in the original page where the IF, DIF and SE blocks arelocated.

22. Add a Configured list block and add signals to it:

• Pick a CL block from the Algorithms window and add it to the document(strategy) workspace.

• Double-click on it to configure: The CL block Properties will open as shownbelow.

• Click on the Inputs tab to add inputs

Figure 3 .44.CL block

Page 53: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 31

• Click on the Add button on this page/tab.

Figure 3 .45.Browse

• The Browse dialog will be displayed as shown above and will list all the blocksand compounds that are present in your document as a tree structure. These will beshown with box icons next to them meaning that there groups and there are furtheritems inside each group.

• You must be seeing the Loop Compound Control also listed in this dialog.

• Double-click on this item to open it. The tree will expand and will display theblocks inside the Control group.

Figure 3 .46.Browse

• Click on the item FIC-100. This will display the attributes of the FIC-100 (PIDblock) in the box on the right.

Page 54: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 32

• Click on OP (PID output) and then on the Add button at the bottom to add the PIDoutput to the CL block. DO not hit the OK button !

• Select SP, PVI, SPMS and OPMS from this list and add them in the same way.

! You can select multiple attributes by pressing the Ctrl key on the keyboard and byclicking on them with the left mouse button. Hit the Add button after multipleselection to all the selected attributes.

Figure 3 .47.CL block

• Click on OK on the Browse dialog. This will redisplay the CL block Properties asshown above. The Inputs Tab will now display the attributes you just added.

! The attributes will be displayed with full source path name of the connections. Analias can be entered by selecting an item and typing in any alias name. This name willthen be displayed instead of the block tag and attribute name.

23. Assign Aliases to the tags added to the CL block: Select Control.FIC-100.OP byclicking on it and then clicking on the Modify button.

• The Specify Input dialog will be displayed next.

• Type an alias FICOP in the Name field as shown below and then click on OK.

Page 55: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 33

Figure 3 .48.Alias

• Repeat the above procedure to assign aliases for the other attributes as shownbelow:

Figure 3 .49.CL block aliases

• Click on OK when you are done with the CL block.

Page 56: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 34

3.3.4 Setting up Communications

24. We need to setup communications for communicating with the MOD 30ML instrument sothat we can download the database to the instrument. We will use the built-in RS-232 portof the instrument to download to the instrument via Modbus.

• Add a MSC block (Modcell serial communications) to the workspace by draggingit from Algorithms menu. Double-click on it to configure. The properties menu ofthe MSC block will display as shown below:

Figure 3 .50.MSCCommunicationblock

• Type a name and description for this block.

• Select RS-232 (built-in) from the drop-down menu in the Type field.

• Leave all other entries in their default values and click on OK to save theconfiguration of this block.

25. Connect the Configured List foreground to the MSC block:

• Make a connection from the CL block by selecting the right angle connection fromthe Algorithms window and select CL block�s LISTOUT as the source. Terminatethe connection at the MSC block by connecting it to FGLISTIN. Refer to thefigure below:

Page 57: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 35

Figure 3 .51.CL to MSCconnection

! Save your document now.

Page 58: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 36

3.3.5 Compiling the database

It is necessary to compile the database without errors before downloading to theinstrument.

Α Only compiled databases can be downloaded to the instrument.

26. Select Instrument-Compile from the menu bar.

Figure 3 .52.Instrument Compile

• The Compile Setup dialog box as shown below will appear. Click on OK (Do notreassign block occurrence numbers).

Figure 3 .53.Compile Setup

• The Interface File Options dialog box will be displayed as shown next. We want tocreate a .MIF file (Modbus Interface File) for this control strategy. This file willbe used later by the Extended Modbus OPC Server for creating tags.

• Look at the Produce MIF section of this dialog box. Note that the MSC block�sType and its Tag Name are shown in this section. Check the box next to it (on theright) and type a name for the MIF file. Type PIDLAB as shown in the next figure:

Page 59: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 37

Figure 3 .54.Interface FileOptions

• Click on OK. If the database has errors, it can not be compiled successfully. A listof errors will be displayed on the screen in a sub-window along with otherinformation such as the number of errors, warnings and info messages as shownbelow:

Figure 3 .55.InformationWindow

• You can double-click on an error to open the block that has a configurationproblem. If the database has no errors, there is a message saying that the Compilewas completed without error.

• Also look for messages on successful MIF file creation, database size and currentconsumption of the instrument.

• You can close this info sub-window by right-clicking on the window and thenclicking on the resulting Hide Window button or by selecting View-Informationfrom the menu bar at the top.

Page 60: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

4 - 1

4 ABB Extended Modbus OPC Server

4.1 Foreword

The ABB Extended Modbus OPC Server is an OPC compliant Server able tocommunicate with Extended Modbus devices (MODCELL / MOD 30ML) and serve datato OPC clients. This Modbus OPC server was implemented using advanced programmingconcepts of OPC specifications.

✎ This OPC Server also supports generic Modbus protocol and can be used to connectABB Commander series instruments and other instruments that support Modbusprotocol.

The ABB Extended Modbus Server is installed along with ViZapp Software. Refer to theViZapp installation lab for details. It is also available as a stand-alone software packagethat can be purchased with MODCELL / MOD 30ML or separately.

4.2 Objectives

In this lab, we will configure an Extended Modbus OPC Server database and add a deviceto it. We will use this database to download the PIDLAB Strategy from the previous labto 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 instrumentusing the built-in OPC Client of the Extended Modbus OPC Server.

After completing this lab you should be able to:

• Configure a Extended Modbus OPC database

• Download the Instrument document (strategy)

• View the signals using the built-in OPC Client

4.2.1 OPC Tag Database

The database is typically made up of the following:

Devices: These are hardware devices (MODCELL / MOD 30ML) connected to the OPCServer.

Page 61: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ABB Extended Modbus OPC Server

4 - 2

Groups: Tags/Signals can be grouped together into groups. Groups follow devices whichmeans that you can make groups of tags from a device. In the Extended ModbusOPC database, the grouping will be based on the grouping in the CL block inthe instrument database database.

✎ Each block in the database will be one group and will have the selected attributes ofthat block. For example, if you have a block named FIC-100, the group will be calledFIC-100 and the signals like PVI, SP, OP etc, will be tags belonging to that group.

Blocks inside a compound will be grouped into a bigger group with name as thecompound name.

Grouping is only for the user�s convenience. If aliases are configured in the CL block fortags, then the tags will be attached to the devices directly (at the root level).

Tags: Tags define the properties of signals such as address of the signal, group anddevice it belongs to, data type and scaling. Examples of tags are PVI, SP, OPetc, of a PID block.

✎ Having a .MIF file is very handy. Connecting the MIF file to a device in the OPC tagdatabase will create the groups and signals automatically. This will save a tremendousamount of time compared to creating them manually.

In the case of generic Modbus devices such as ABB Commander series instruments, youhave to create the groups and tags manually and should define their properties.

4.2.2 Built-in OPC Client

An OPC Client application, is built-in with the Extended Modbus OPC Server formonitoring and testing your Server�s configuration. It is this part of the OPC applicationthat collects data received by the OPC Server and presents to the user. The datapresented by the OPC Client is live.

OPC Client is useful for testing the communication between the devices and the OPCServer. It can also be used for testing other 3rd party OPC applications connected to theserver.

4.3 Instructions4.3.1 Part 1

1. Launch the Extended Modbus OPC Server: From the Windows Start menu, selectPrograms-VizApp - XModbus OPC Server.

• The OPC Server will launch as shown in figure 4.1.

• A blank tag database Untitled is opened by default.

Page 62: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ABB Extended Modbus OPC Server

4 - 3

We will add a device to this database. We will save this database later.

Figure 4 .1.ABB ExtendedModbus OPCServer

2. Add a hardware device to the database: Click on the New XModbus Device button onthe toolbar or select Add-New XModbus Device from the menu bar at the top. This willopen the Extended Modbus Device Properties dialog box as shown in the figure below:

• We will configure the properties of the MOD 30ML device we are adding in thisdialog box.

Figure 4 .2.Add new ExtendedModbus Device

Page 63: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ABB Extended Modbus OPC Server

4 - 4

• Type the name MOD30ML in the Name field (the name is user-configurable andcan be anything!).

• Select the serial communication port of the computer to which the MOD 30ML isconnected, in the Port field. Click on the down arrow in this field to show thedrop-down menu and then select the port. (COM1 for example).

• Type the instrument�s Modbus address in the address field.

• Leave the Timeout in the default value of 1000 ms.

✎ Timeout value in ms is the time for which the OPC server tries to re-establishcommunication with the device in the case of a communication failure.

3. Configure the serial port for the communication: Click on the Edit � Ports button onthis dialog box. The Port Properties dialog box will be displayed as shown below:

Figure 4 .3.Port Properties

• Select the COMM port from the drop-down menu in the Port field and then enableit by checking the box next to the Enable field.

• Choose the Baud Rate, Parity, Flow Control, Data bits and Stop bits from thisdialog 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 portnumber. Leave other fields on this dialog box at their default values.

• Click on OK. The added device will be displayed in the Device Tree on the leftframe as shown in the next figure:

Page 64: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ABB Extended Modbus OPC Server

4 - 5

Figure 4 .4.ABB ExtendedModbus OPCServer database

4. Save the database: The OPC tag database can be save as a file with an extension.MOPC.

• Select File � Save from the menu bar. Refer to the following figure.

• The Save As dialog box will be displayed next as shown below:

• Choose the same folder where you have saved the PIDLAB database for savingthis file and then type a name for the OPC tag database file in the File name field.

Figure 4 .5.File � Save As

• Click on the Save button to save the file. The Title bar of the OPC Server willredisplay with the saved file name.

• You can now either close the Extended Modbus OPC Server application byselecting File � Exit from the menu bar at the top or minimize it.

4.3.2 Part 2

5. Switch to the Vizapp Designer. Your instrument document should be 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:

Page 65: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ABB Extended Modbus OPC Server

4 - 6

Figure 4 .6.CommunicationSetup

• Click on the Browse button next to the Server name field to browse the OPCServers registered in the system.

• The Select OPC Server dialog box will be displayed as shown in the next figure:

• Look at the Available Servers box at the bottom. The ABB Xmodbus Servershould be listed there.

✎ The VizApp Setup you did in Lab2 installed the Xmodbus OPC Server and registeredit to the Windows registry. If you have other OPC Servers registered in the system,you will see them also in the Available Servers list.

Page 66: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ABB Extended Modbus OPC Server

4 - 7

Figure 4 .7.Select OPC Server

• Click on ABB.Xmodbus item to select it. It should now be displayed in the ServerName field. Click on OK.

• The Communication Setup dialog box will redisplay with ABB.Xmodbus in theServer Name field as shown below:

Figure 4 .8.CommunicationSetup

6. Select the Device: Click on the Browse button next to the Device Name field.

Page 67: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ABB Extended Modbus OPC Server

4 - 8

• The Select Device dialog box will display as shown below next. You will alsonotice the Xmodbus OPC Server application started automatically with the OPCdatabase file you last saved.

Figure 4 .9.Select Device

• This Select Device dialog box will show the name of the device you added to theOPC Database in Part A of this lab. Select the device and then click on OK.

✎ The devices in the Select Device list are populated from the last saved/openedXmodbus OPC Server database file

• The Communication dialog box will redisplay as shown below with the name ofthe device in the Device Name field.

7. Populate OPC Server tag database with attributes selected in the Modbus Interface File(.MIF file):

• Refer to the following display.

• Check the box Populate ViZapp and Server Tag lists by clicking on it and thenselect the Modbus Interface File PIDLAB from the Available MIF Files list at hebottom.

✎ By doing this you can populate the OPC Server tag database with tags that will beautomatically created from the attributes defined in the MIF file (attributes added toyour Configured List blocks in the strategy). This will save a tremendous amount ofengineering time as you do not have to create each tag manually.

✎ This will also create a list of Tags in the VizApp Configurator automatically. Thesetags can be used to add graphic objects to your instrument documents and displaydocuments.

Page 68: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ABB Extended Modbus OPC Server

4 - 9

Figure 4 .10.CommunicationSetup

• Click on OK on this dialog box. The Download Status Indicator will display asshown below if the communication with the instrument was established. If therewas no communication, you will get error message boxes.

Figure 4 .11.Downloading

• After successful download, the following message box saying �Downloadcompleted without error� will be displayed. Click on OK.

Figure 4 .12.Download

• The OPC Server application will also be closed automatically if it was started byVizApp for downloading.

Page 69: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ABB Extended Modbus OPC Server

4 - 10

4.3.3 Part 3 � ABB Xmodbus OPC Client

8. Launch the XModbus OPC Server Application if it was not running already. It will belaunched with your last saved database PidLab.MOPC as shown below:

Figure 4 .13.OPC Serverdatabase with tags

• Do you notice that the OPC database is populated with tags from the MIF fileautomatically? Also notice that the tags are shown with alias names.

• Select the device (MOD30ML1) and right-click on it. Select Properties from theresulting menu.

Figure 4 .14.Device Properties

• This will display the Device Properties dialog as shown below:

• This dialog gives details about the MIF file in addition to the device details.Important information about the MIF file are:

• MIF file name and location.

• Time-stamp

• Number of elements / tags.

✎ By clicking on the button next to the MIF File field, you can choose a different MIFfile to attach to this device. Do not do that for this lab as the MIF file is already usedto populate the tags.

Page 70: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ABB Extended Modbus OPC Server

4 - 11

Figure 4 .15.Device Properties

• Click on Cancel on this dialog.

Figure 4 .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-inOPC client and show live data from the instrument in the Value column of theOPC Server application. Refer to the figure above.

• The live data is read-only as this OPC client application and is mainly used fortesting the function of the OPC Server and the communication between thehardware devices and the OPC Server tag database. It does not allow writing ofthe same.

Page 71: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ABB Extended Modbus OPC Server

4 - 12

10. View more details of the tags: Double-click on FICPVI. This will display furtherproperties of that tag as shown below:

Figure 4 .17.Tag properties

• The above dialog displays the LSP, High and Low ranges, Read/Write of the tag.

• Click on the Close button to close this dialog.

Page 72: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

3 - 1

3 PID Loop Lab

3.1 Foreword

Many processes involve flow control loops, whether they are in the food, pharmaceutical,chemical, pulp & paper, mining or virtually any of the industries served by MODCELLand MOD 30ML. This lab is designed to help you learn the basic features of the ViZappconfigurator, as well as how to easily learn/demonstrate configuration of a PID loop.

3.2 Objectives

In this lab we will design a simple flow loop with a 4-20mA signal from a dP transmitter,a square root extractor, a PID control loop and a modulating control valve. The P&ID forthis loop looks like this:

Figure 3 .1.Sample Flow PIDLoop

F E

F T

F Y F C

F C V

We will use the built-in analog input 2 of MOD 30ML for connecting the process variable(FT). We will use the built-in analog output 2 for sending the output of the PID. We willalso build a display for this PID loop.

After completing this lab, you should:

• Be familiar with the ViZapp Designer's workspace, menus and toolbars

• Know how to create new workspace, project and instrument documents

• Know how to configure a MOD 30ML database using ViZapp Configurator for asimple PID Control loop.

• Be able to setup communications for talking to the MOD 30ML/MODCELLinstrument.

• Be able to build a PID loop display for displaying and changing process andoperator parameters.

• Know how to compile and download the database to the instrument

Page 73: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 2

3.3 Instructions

Follow these instructions step-by-step to configure a simple PID loop:

3.3.1 Getting started

1. Launch ViZapp. Select Programs from the Windows Start menu. Select ViZapp fromthe menu. The ViZapp configurator will launch as shown in the next figure. As you willnotice, the configurator will be blank with no workspace loaded on the screen.

Figure 3 .2.ViZappConfigurator

• Note that the configurator screen has two frames (left and right).

2. We will create a new Workspace and a new project in this step. Click on the Filemenu on the menu bar at the top. Select New from the drop-down menu as shown in thenext figure:

Figure 3 .3.File-New

Page 74: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 3

• This will open the New dialog box as shown in the next figure. There are 2 tabs(sections) in this dialog box and it displays the Project tab as default.

Figure 3 .4.New Project

• Click on the little button next to the Location field to open the Browser forFolder dialog as shown in the next figure:

• Select the C: drive from this folder and select on it by double-clicking on it. Seenext figure:

Figure 3 .5.New Project

• The New dialog box will redisplay

Page 75: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 4

Figure 3 .6.New Project

• Type the name CLASS for your project in the name field. Notice that the name ofthe location for this project changes to C:\Class. It creates a folder under the C:drive (or any other drive you choose) automatically.

! All project files and the instrument and display documents will be saved in this folder.This makes project portability easier.

• Click on the option Create a new Workspace. This will create a new workspacefor us. Click on OK.

• The configurator will redisplay with a new workspace and a project as shownbelow:

Page 76: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 5

Figure 3 .7.Class Workspace

• The left frame shows the project tree. The Workspace is at the root of this tree andcontains the Project, and other components such as Event Log and Components.

• The newly created workspace is given the same name as that of the project. Theproject sub-tree or branch contains the components Security and Tags.

3. With what we have above, we have only created an environment to configure instrumentdatabase and display files. Next we will create an instrument database. We will hereaftercall it the instrument document.

• Click on the New Document button on the tool bar or Select File-New form themenu bar to display the New dialog box again as shown below:

Page 77: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 6

Figure 3 .8.New Document

• The New dialog box shows the Document tab now. Select the type MODFunction Block diagram by clicking on it and then type the name PIDLAB forthe document in the Name field.

• This document will be created in the project folder \class automatically and willbe added to your Class project by default. See figure above.

! When you create a new project, a file with the project name and file extension .APRJwill be created. This file is called project file in the ViZapp installation directory.

The instrument document/ configuration files (MOD Function block diagram files)will have extension .AFBD and will be saved in the project folder.

The workspace we created will be saved as a file with extension .AWSP (Class.awsp) anda file with same name and .FEQP extension (Class.feqp) in the root folder where theproject folder is located.

! IF you move your workspace and project to a different location/ drive, move theproject folder and the two files for the workspace (.AWSP and .FEQP), maintainingtheir relative location.

• Click on OK. This will display the Choose Instrument Version dialog box asshown in the next figure: This dialog box will display the different instrument IDmodule versions (MODCELL and MOD 30ML).

Page 78: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 7

Figure 3 .9.InstrumentVersions

• Select MOD 30ML 2 from this list as our instrument version by clicking on it andthen click on the Close button.

• The Configurator will redisplay as shown below. The instrument database will beopened on the right frame and the default blocks (IF, SE, ST and DIF) for theMOD 30ML database will be loaded.

• Notice that the newly created document PIDLAB is shown in the project treeattached to the Project Class.

Figure 3 .10.Default instrumentdatabase

• The algorithm blocks belonging to the instrument version selected will be shownas a menu on the left frame.

Page 79: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 8

4. Let us first configure a scan group:

! There could be as many as five scan groups in an instrument database. The controlloops (database blocks connected together) are grouped into Loop Compounds. TheLoop Compounds can be assigned to any of these scan groups. All the blocks andcompounds in a particular scan group will be executed at the same scan rateconfigured for the group.

This way you can have many loops in the database and they can be executed at differentrates depending on their priority and speed of the process they are controlling.

• Notice that all the four blocks on the screen are selected. Deselect them byclicking on a blank space and then double-click on the IF (Interface) block. TheInterface block will open as shown in the next figure: The block is displayed in avisual notebook format, with tabbed �pages� containing the parameters forconfiguration. The Execution tab (page) of this block will be displayed by default.

Figure 3 .11.IF Block

• Change the Group 1 scan interval from 250 ms to 200 ms by typing in the ms fieldof Scan Intervals:Group 1.

! Notice that the Properties menu of the block has the following tabs:

• Execution

• Startup

• Diagnostics

• Incoming

Page 80: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 9

• Outgoing

• Connect map

• Shape

Configuration parameters related by common nature are grouped into these tabs. Thishelps to display of information in a logical manner. Most fields under these tabs containdefault values that need not be changed.

5. Add a loop compound. We will configure our control loop inside this loopcompound.

• Select the Loop Cpd (Loop compound) block from the Algorithms window add itto the document. Do this by first locating the block in the menu by selecting theAll submenu at the bottom and then by dragging the scroll bar on the rightup/down. See the next figure:

Figure 3 .12.Algorithms menu

• Drag the Loop Cpd block (Loop Compound) from the Algorithms menu on the leftframe to the right frame. Click on the Loop Cpd block with your left mousebutton and then drag it to the instrument document. Click on the mouse button toplace the Loop compound block with the other existing blocks (IF, SE, DIF andST) on the right frame.

6. Configure a name and description for the Loop Compound: Click once on this blockwith your right mouse button. A menu as shown in the next figure will appear.

Page 81: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 10

Figure 3 .13.Loop CompoundProperties

• Select Properties from the menu. The Algorithm Properties of the Loop Cpd blockwill be displayed next as shown in the next figure.

• Type Control in the Name field.

• Type a description "This compound is for the Flow Control Loop"

• Click on OK to close the Properties.

Figure 3 .14.Loop CompoundProperties

Page 82: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 11

7. Open the loop compound:

• Right-Click on the Control compound (Loop compound you just named) again andselect Open compound at the bottom of this menu.

• The loop compound will open as shown below and will have a Loop block (LP) bydefault.

Figure 3 .15.Loop Block

! A loop compound is a compound or group that contains a loop block. You configureother blocks and compounds inside the loop compound. The compound can be added toone of the five scan groups defined in the Interface block. All the blocks inside thecompound will be executed at that scan rate.

• The compound will also have a Compound Signals menu that can be used tomake pre-defined connections in and out of this block. (We will not use this fornow. You can close it by clicking on the close button on its right hand side top �the X button)

7. Open the Loop block (LP-1) by double-clicking on it. The block will open as shown inthe next figure. We will not change anything in this block. Just notice that scan group thiscompound belongs to defaults to Scan Group 1. (250 ms� refer to step 4 - Interfaceblock).

Page 83: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 12

Figure 3 .16.Loop Block

• Close the Loop block by clicking on the OK button.

8. Configure the PID loop shown in Figure 2.1:

• Let us start doing this by adding the necessary algorithm blocks to the LoopCompond on the workspace on the right frame. Add the following blocks to thedatabase:

• AIN � Built-in Analog input

• VCI � Voltage or Current input function block

• PID � PID algorithm block

• AOUT � Built-in Current output block

You can either select the specific category at the bottom of the Algorithms menu firstand then the blocks or you can select the category All to pick any block.

After you placed the above blocks in the database, the right frame on your configuratorscreen should look something like the next figure.

Page 84: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 13

Figure 3 .17.Algorithm blocks inthe LoopCompound

9. Resize and move these blocks to fit them on the database workspace.

• Select a block by clicking on it. The selected block will have handles around it.See figure below:

• Move the block with the left mouse button pressed on it and by moving the mouse.

• Resize the block by dragging one of the handles (corner or side)

Figure 3 .18.Move, Resize andConfigure

Page 85: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 14

3.3.2 Configuring the blocks:

11. Let us configure these blocks next.

• Configure the Analog Input block.

• Double-click on the AIN block to open its Properties menu as shown below:

Figure 3 .19.AIN Block

• Type FT-100 as the name.

• Select Current as the Input type from the drop-down menu.

• Type the Input number as 2 and Description as shown in the above figure. This isthe built-in input 2 of the MOD 30ML. Note that changing the input type changesthe Input Low and High signal ranges automatically. This can also be manuallychanged.

• Click on OK when done.

! If you are using the MOD 30ML Demo box, leave the Input type as Volts in the aboveconfiguration. Specify the Input signal range as 0 to 6 Volts.

• Configure the VCI block: Double-click on the VCI block. We will configure thisto specify the input function for the analog input configured above. The VCI blockProperties will open as shown in the next figure:

Page 86: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 15

Figure 3 .20.VCI Properties

• Type the name and description for this block as shown above. Move the cursor tothe Linearization Type field and click on the down arrow. Select Modifies SquareRoot as the type from the drop-down menu. This will compensate for errors atvery low flow measurements.

• Change the Range to 0 to 200 and Quality limits also to 0 to 200. The measuredsignal (4-20mA or 0-6V) will be interpreted as 0 to 200 flow units.

• We will not change anything else in this menu. Click on the OK button tocomplete the configuration of this block.

12. Save your Document.

Figure 3 .21.File Menu

• It is essential to save your document at frequent intervals.

• Refer to the above figure. Click on the Save button on the toolbar at the top tosave the document. You can also save a document by selecting File-Save from themenu bar.

Page 87: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 16

13. Continue configuring the other blocks. Double-click on the PID block. Give the block thetag name FIC-100.

• Change the Process Input range to 0 and 200. Type the description as shown in thenext figure. Note that the default Control Action id Reverse.

Figure 3 .22.PID Block

• Click on the Setpoint tab at the top of this block to configure the setpoint for thiscontrol loop. The Setpoint page will display as shown in the next figure:

Page 88: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 17

Figure 3 .23.PID Properties

• Change the Setpoint low and high limits to 0 and 200.

• Click on the other tabs at the top (Control, Modes, Options etc, to view differentpages of the PID block.

• We will accept default values for the other parameters. Click on OK to close thePID block.

14. Configure AOUT block to define the properties of the analog output:

• Configure this block as shown in the next figure:

• The name FCV-100 represents the output to the Flow Control Valve.

Page 89: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 18

Figure 3 .24.Aout Properties

• Specify the Output number as 2. This is built-in analog output two.

• The source range of 100 to 0 from the PID block will be converted to 4 to 20mAoutput since the action is Reverse in the PID block. Refer to the above figure.

• Click on OK.

Page 90: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 19

3.3.3 Connecting the blocks:

15. The next step is to connect the blocks together to realize the control loop shown in Figure3.1.

• Click on the Multi-Segment connection item on the Algorithms menu to enableconnection mode. See figure below:

Figure 3 .25.Algorithm -Connection

• Move to the workspace on the right and click on the AIN block�s (FT-100 �source block) output connection point as shown in the next figure. Notice thatmoving the cursor over the output of a block, shows a fly-by box. This box showsthe name of the output (for example, in this case MODOUT).

Figure 3 .26.Connecting blocks

• Move the cursor to the VCI block�s (destination block FY-100) input now.Moving the cursor will draw a line.

Figure 3 .27.Connecting blocks

• You will get a fly-by box that will say MODIN when you move over the input.

Page 91: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 20

• Click on the input of the VCI block. See the figure above.

Figure 3 .28.Connecting blocks

• The connection will now be complete. The connection line will have the sourcename and destination name displayed right on it as shown in the above figure.

! The input connection points are on the left side of the blocks and the outputconnection points are on the right hand side.

There might be more than one input or output for each block. All the inputs or outputsneed not be shown as connections attached to the block. To see all the inputs or outputs ofa block, you need to click right on the block in the connection mode.

As an example, the figure below shows the possible inputs of the PID block (destinationsfor inputs into this block).

Figure 3 .29.Choose parameterfor connecting

16. Connect the corrected flow as the process variable input the PID block.

• Let us take Right angle connector this time. The right angle connector will connectthe blocks by horizontal and vertical lines instead of making a point to pointstraight connection.

Page 92: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 21

• Select the right angle connector from the Algorithms menu as shown below:

Figure 3 .30.Right Angleconnection

• Click on the output point of the FY-100 block. This point is the result of the FY-100 input function block. The fly-by box will say R when you click on the output.Drag the line to the input point of the PID block and clock on it (PVI) to completethe connection.

17. Connect the output of the PID (FIC-100) to the INPUT of the AOUT (analog output)block with the right angle connector as shown below.

Figure 3 .31.Right Angleconnection

! If you made a mistake while connecting, or if you do not know where to connect, youcan always cancel it or get out of the connection mode by clicking on the right mousebutton to show a menu as shown below:

• Select Cancel from this menu to cancel the connection.

Page 93: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 22

Figure 3 .32.Cancel Connection

18. Add the blocks from the Component Gallery:

• From the top menubar, select Project/Gallery/Component Gallery

Figure 3 .33.Accessing theComponent Gallery

• When the Component Gallery dialog box appears, select the Compounds tab. Alibrary of pre-configured Compounds, or groups of algorithm blocks, appears.

Page 94: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 23

Figure 3 .34.Compound Library

• Move the cursor to the PID Display compound and either double-click, or select itand then select the Export button. The Component Gallery dialog box closes anda Display is placed in your workspace. The block is highlighted with small greenboxes.

! You could also drag-n-drop the compound from the Components Gallery into theInstrument document.

Figure 3 .35.Workspace withnew Display block

• Move the new blocks to an appropriate place on the workspace, as shown below.

Page 95: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 24

Figure 3 .36.Workspace withnew Display blockconnected

19. Connect the PID parameters to be displayed:

• Using the Multi-Segment connector, click on the PID block and select PVI fromthe resulting dialog box. Double-click on PVI or select and click on the OKbutton.

Page 96: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 25

Figure 3 .37.Selecting PID blockparameters toconnect

• Drag the cursor over the Display block and click. Select process from theresulting dialog box. See the next figure:

Page 97: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 26

Figure 3 .38.Choose parameterfor connecting

• The connection between the Process variable in the PID block and the DsiplayBlock input called �process� is now complete.

• Continue connecting from the PID block to the Display block until the followinginputs are connected:

• SP to setpoint

• OP to output

• OPMS to mode

• SPMS to spmode

Page 98: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 27

Figure 3 .39.Connections fromPID blockparameters toDisplay block inputs

20. The display compound from the Component Gallery is set up for 0 to 100. This must bechanged to match the PID block that we configured for 0 to 200. We must also designatea display tag.

• Double-click on the Display block. In the resulting dialog box, type FIC-100 inthe Display Tag field (overwrite the PID-100).

Figure 3 .40.Entering theDisplay Tag in theDisplay Block

Page 99: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 28

! This tag must be unique to this display. It can also be used as the tag name thatappears on the front face. The default DISPTAG in Line 1 of the Intial Values causesthe value or name typed in the Display Tag field to appear on Line 1 of the display onthe front panel. For more detailed information on display building, refer to IB-1800R-SCR, Display Guide.

• Select the Formats tab in the Display Block

Figure 3 .41.Display BlockFormats tab

• Double-click on the name processL and change the High Limit in the resultingdialog box to 200.

Page 100: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 29

Figure 3 .42.Changingengineering unitrange for processline display

• Select the OK button at the bottom of this dialog box.

• Repeat this process for the following formats:

• setpointL

• processB

• Close the Display Block with the OK button at the bottom of the dialog box.

21. Close the loop compound:

• Right-click (click on the right button of the mouse) on the empty workspace to geta menu as shown in the next figure:

Page 101: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 30

Figure 3 .43.Closing Compound

• Select Close Compound at the bottom of this menu.

• You should be back in the original page where the IF, DIF and SE blocks arelocated.

22. Add a Configured list block and add signals to it:

• Pick a CL block from the Algorithms window and add it to the document(strategy) workspace.

• Double-click on it to configure: The CL block Properties will open as shownbelow.

• Click on the Inputs tab to add inputs

Figure 3 .44.CL block

Page 102: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 31

• Click on the Add button on this page/tab.

Figure 3 .45.Browse

• The Browse dialog will be displayed as shown above and will list all the blocksand compounds that are present in your document as a tree structure. These will beshown with box icons next to them meaning that there groups and there are furtheritems inside each group.

• You must be seeing the Loop Compound Control also listed in this dialog.

• Double-click on this item to open it. The tree will expand and will display theblocks inside the Control group.

Figure 3 .46.Browse

• Click on the item FIC-100. This will display the attributes of the FIC-100 (PIDblock) in the box on the right.

Page 103: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 32

• Click on OP (PID output) and then on the Add button at the bottom to add the PIDoutput to the CL block. DO not hit the OK button !

• Select SP, PVI, SPMS and OPMS from this list and add them in the same way.

! You can select multiple attributes by pressing the Ctrl key on the keyboard and byclicking on them with the left mouse button. Hit the Add button after multipleselection to all the selected attributes.

Figure 3 .47.CL block

• Click on OK on the Browse dialog. This will redisplay the CL block Properties asshown above. The Inputs Tab will now display the attributes you just added.

! The attributes will be displayed with full source path name of the connections. Analias can be entered by selecting an item and typing in any alias name. This name willthen be displayed instead of the block tag and attribute name.

23. Assign Aliases to the tags added to the CL block: Select Control.FIC-100.OP byclicking on it and then clicking on the Modify button.

• The Specify Input dialog will be displayed next.

• Type an alias FICOP in the Name field as shown below and then click on OK.

Page 104: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 33

Figure 3 .48.Alias

• Repeat the above procedure to assign aliases for the other attributes as shownbelow:

Figure 3 .49.CL block aliases

• Click on OK when you are done with the CL block.

Page 105: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 34

3.3.4 Setting up Communications

24. We need to setup communications for communicating with the MOD 30ML instrument sothat we can download the database to the instrument. We will use the built-in RS-232 portof the instrument to download to the instrument via Modbus.

• Add a MSC block (Modcell serial communications) to the workspace by draggingit from Algorithms menu. Double-click on it to configure. The properties menu ofthe MSC block will display as shown below:

Figure 3 .50.MSCCommunicationblock

• Type a name and description for this block.

• Select RS-232 (built-in) from the drop-down menu in the Type field.

• Leave all other entries in their default values and click on OK to save theconfiguration of this block.

25. Connect the Configured List foreground to the MSC block:

• Make a connection from the CL block by selecting the right angle connection fromthe Algorithms window and select CL block�s LISTOUT as the source. Terminatethe connection at the MSC block by connecting it to FGLISTIN. Refer to thefigure below:

Page 106: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 35

Figure 3 .51.CL to MSCconnection

! Save your document now.

Page 107: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 36

3.3.5 Compiling the database

It is necessary to compile the database without errors before downloading to theinstrument.

Α Only compiled databases can be downloaded to the instrument.

26. Select Instrument-Compile from the menu bar.

Figure 3 .52.Instrument Compile

• The Compile Setup dialog box as shown below will appear. Click on OK (Do notreassign block occurrence numbers).

Figure 3 .53.Compile Setup

• The Interface File Options dialog box will be displayed as shown next. We want tocreate a .MIF file (Modbus Interface File) for this control strategy. This file willbe used later by the Extended Modbus OPC Server for creating tags.

• Look at the Produce MIF section of this dialog box. Note that the MSC block�sType and its Tag Name are shown in this section. Check the box next to it (on theright) and type a name for the MIF file. Type PIDLAB as shown in the next figure:

Page 108: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

PID Loop Lab

3 - 37

Figure 3 .54.Interface FileOptions

• Click on OK. If the database has errors, it can not be compiled successfully. A listof errors will be displayed on the screen in a sub-window along with otherinformation such as the number of errors, warnings and info messages as shownbelow:

Figure 3 .55.InformationWindow

• You can double-click on an error to open the block that has a configurationproblem. If the database has no errors, there is a message saying that the Compilewas completed without error.

• Also look for messages on successful MIF file creation, database size and currentconsumption of the instrument.

• You can close this info sub-window by right-clicking on the window and thenclicking on the resulting Hide Window button or by selecting View-Informationfrom the menu bar at the top.

Page 109: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

4 - 1

4 ABB Extended Modbus OPC Server

4.1 Foreword

The ABB Extended Modbus OPC Server is an OPC compliant Server able tocommunicate with Extended Modbus devices (MODCELL / MOD 30ML) and serve datato OPC clients. This Modbus OPC server was implemented using advanced programmingconcepts of OPC specifications.

✎ This OPC Server also supports generic Modbus protocol and can be used to connectABB Commander series instruments and other instruments that support Modbusprotocol.

The ABB Extended Modbus Server is installed along with ViZapp Software. Refer to theViZapp installation lab for details. It is also available as a stand-alone software packagethat can be purchased with MODCELL / MOD 30ML or separately.

4.2 Objectives

In this lab, we will configure an Extended Modbus OPC Server database and add a deviceto it. We will use this database to download the PIDLAB Strategy from the previous labto 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 instrumentusing the built-in OPC Client of the Extended Modbus OPC Server.

After completing this lab you should be able to:

• Configure a Extended Modbus OPC database

• Download the Instrument document (strategy)

• View the signals using the built-in OPC Client

4.2.1 OPC Tag Database

The database is typically made up of the following:

Devices: These are hardware devices (MODCELL / MOD 30ML) connected to the OPCServer.

Page 110: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ABB Extended Modbus OPC Server

4 - 2

Groups: Tags/Signals can be grouped together into groups. Groups follow devices whichmeans that you can make groups of tags from a device. In the Extended ModbusOPC database, the grouping will be based on the grouping in the CL block inthe instrument database database.

✎ Each block in the database will be one group and will have the selected attributes ofthat block. For example, if you have a block named FIC-100, the group will be calledFIC-100 and the signals like PVI, SP, OP etc, will be tags belonging to that group.

Blocks inside a compound will be grouped into a bigger group with name as thecompound name.

Grouping is only for the user�s convenience. If aliases are configured in the CL block fortags, then the tags will be attached to the devices directly (at the root level).

Tags: Tags define the properties of signals such as address of the signal, group anddevice it belongs to, data type and scaling. Examples of tags are PVI, SP, OPetc, of a PID block.

✎ Having a .MIF file is very handy. Connecting the MIF file to a device in the OPC tagdatabase will create the groups and signals automatically. This will save a tremendousamount of time compared to creating them manually.

In the case of generic Modbus devices such as ABB Commander series instruments, youhave to create the groups and tags manually and should define their properties.

4.2.2 Built-in OPC Client

An OPC Client application, is built-in with the Extended Modbus OPC Server formonitoring and testing your Server�s configuration. It is this part of the OPC applicationthat collects data received by the OPC Server and presents to the user. The datapresented by the OPC Client is live.

OPC Client is useful for testing the communication between the devices and the OPCServer. It can also be used for testing other 3rd party OPC applications connected to theserver.

4.3 Instructions4.3.1 Part 1

1. Launch the Extended Modbus OPC Server: From the Windows Start menu, selectPrograms-VizApp - XModbus OPC Server.

• The OPC Server will launch as shown in figure 4.1.

• A blank tag database Untitled is opened by default.

Page 111: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ABB Extended Modbus OPC Server

4 - 3

We will add a device to this database. We will save this database later.

Figure 4 .1.ABB ExtendedModbus OPCServer

2. Add a hardware device to the database: Click on the New XModbus Device button onthe toolbar or select Add-New XModbus Device from the menu bar at the top. This willopen the Extended Modbus Device Properties dialog box as shown in the figure below:

• We will configure the properties of the MOD 30ML device we are adding in thisdialog box.

Figure 4 .2.Add new ExtendedModbus Device

Page 112: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ABB Extended Modbus OPC Server

4 - 4

• Type the name MOD30ML in the Name field (the name is user-configurable andcan be anything!).

• Select the serial communication port of the computer to which the MOD 30ML isconnected, in the Port field. Click on the down arrow in this field to show thedrop-down menu and then select the port. (COM1 for example).

• Type the instrument�s Modbus address in the address field.

• Leave the Timeout in the default value of 1000 ms.

✎ Timeout value in ms is the time for which the OPC server tries to re-establishcommunication with the device in the case of a communication failure.

3. Configure the serial port for the communication: Click on the Edit � Ports button onthis dialog box. The Port Properties dialog box will be displayed as shown below:

Figure 4 .3.Port Properties

• Select the COMM port from the drop-down menu in the Port field and then enableit by checking the box next to the Enable field.

• Choose the Baud Rate, Parity, Flow Control, Data bits and Stop bits from thisdialog 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 portnumber. Leave other fields on this dialog box at their default values.

• Click on OK. The added device will be displayed in the Device Tree on the leftframe as shown in the next figure:

Page 113: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ABB Extended Modbus OPC Server

4 - 5

Figure 4 .4.ABB ExtendedModbus OPCServer database

4. Save the database: The OPC tag database can be save as a file with an extension.MOPC.

• Select File � Save from the menu bar. Refer to the following figure.

• The Save As dialog box will be displayed next as shown below:

• Choose the same folder where you have saved the PIDLAB database for savingthis file and then type a name for the OPC tag database file in the File name field.

Figure 4 .5.File � Save As

• Click on the Save button to save the file. The Title bar of the OPC Server willredisplay with the saved file name.

• You can now either close the Extended Modbus OPC Server application byselecting File � Exit from the menu bar at the top or minimize it.

4.3.2 Part 2

5. Switch to the Vizapp Designer. Your instrument document should be 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:

Page 114: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ABB Extended Modbus OPC Server

4 - 6

Figure 4 .6.CommunicationSetup

• Click on the Browse button next to the Server name field to browse the OPCServers registered in the system.

• The Select OPC Server dialog box will be displayed as shown in the next figure:

• Look at the Available Servers box at the bottom. The ABB Xmodbus Servershould be listed there.

✎ The VizApp Setup you did in Lab2 installed the Xmodbus OPC Server and registeredit to the Windows registry. If you have other OPC Servers registered in the system,you will see them also in the Available Servers list.

Page 115: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ABB Extended Modbus OPC Server

4 - 7

Figure 4 .7.Select OPC Server

• Click on ABB.Xmodbus item to select it. It should now be displayed in the ServerName field. Click on OK.

• The Communication Setup dialog box will redisplay with ABB.Xmodbus in theServer Name field as shown below:

Figure 4 .8.CommunicationSetup

6. Select the Device: Click on the Browse button next to the Device Name field.

Page 116: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ABB Extended Modbus OPC Server

4 - 8

• The Select Device dialog box will display as shown below next. You will alsonotice the Xmodbus OPC Server application started automatically with the OPCdatabase file you last saved.

Figure 4 .9.Select Device

• This Select Device dialog box will show the name of the device you added to theOPC Database in Part A of this lab. Select the device and then click on OK.

✎ The devices in the Select Device list are populated from the last saved/openedXmodbus OPC Server database file

• The Communication dialog box will redisplay as shown below with the name ofthe device in the Device Name field.

7. Populate OPC Server tag database with attributes selected in the Modbus Interface File(.MIF file):

• Refer to the following display.

• Check the box Populate ViZapp and Server Tag lists by clicking on it and thenselect the Modbus Interface File PIDLAB from the Available MIF Files list at hebottom.

✎ By doing this you can populate the OPC Server tag database with tags that will beautomatically created from the attributes defined in the MIF file (attributes added toyour Configured List blocks in the strategy). This will save a tremendous amount ofengineering time as you do not have to create each tag manually.

✎ This will also create a list of Tags in the VizApp Configurator automatically. Thesetags can be used to add graphic objects to your instrument documents and displaydocuments.

Page 117: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ABB Extended Modbus OPC Server

4 - 9

Figure 4 .10.CommunicationSetup

• Click on OK on this dialog box. The Download Status Indicator will display asshown below if the communication with the instrument was established. If therewas no communication, you will get error message boxes.

Figure 4 .11.Downloading

• After successful download, the following message box saying �Downloadcompleted without error� will be displayed. Click on OK.

Figure 4 .12.Download

• The OPC Server application will also be closed automatically if it was started byVizApp for downloading.

Page 118: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ABB Extended Modbus OPC Server

4 - 10

4.3.3 Part 3 � ABB Xmodbus OPC Client

8. Launch the XModbus OPC Server Application if it was not running already. It will belaunched with your last saved database PidLab.MOPC as shown below:

Figure 4 .13.OPC Serverdatabase with tags

• Do you notice that the OPC database is populated with tags from the MIF fileautomatically? Also notice that the tags are shown with alias names.

• Select the device (MOD30ML1) and right-click on it. Select Properties from theresulting menu.

Figure 4 .14.Device Properties

• This will display the Device Properties dialog as shown below:

• This dialog gives details about the MIF file in addition to the device details.Important information about the MIF file are:

• MIF file name and location.

• Time-stamp

• Number of elements / tags.

✎ By clicking on the button next to the MIF File field, you can choose a different MIFfile to attach to this device. Do not do that for this lab as the MIF file is already usedto populate the tags.

Page 119: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ABB Extended Modbus OPC Server

4 - 11

Figure 4 .15.Device Properties

• Click on Cancel on this dialog.

Figure 4 .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-inOPC client and show live data from the instrument in the Value column of theOPC Server application. Refer to the figure above.

• The live data is read-only as this OPC client application and is mainly used fortesting the function of the OPC Server and the communication between thehardware devices and the OPC Server tag database. It does not allow writing ofthe same.

Page 120: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ABB Extended Modbus OPC Server

4 - 12

10. View more details of the tags: Double-click on FICPVI. This will display furtherproperties of that tag as shown below:

Figure 4 .17.Tag properties

• The above dialog displays the LSP, High and Low ranges, Read/Write of the tag.

• Click on the Close button to close this dialog.

Page 121: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

5 - 1

5 Debug Lab

5.1 Foreword

It is important to debug the control strategy after it is downloaded to the instrument to seeif the instrument does what it is supposed to do. The ViZapp Designer provides a way todebug the control strategy by displaying the live data from the instrument on thealgorithm blocks in the strategy.

ViZapp also provides a Status Viewer using which diagnostics from the instrument can beread and acknowledged. The Status Viewer can also be used to read and write instrumentattributes.

Figure 5 .1.ViZapp DebugDisplay

Page 122: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Debug Lab

5 - 2

5.2 Objectives

In this lab we will run the PIDLAB document in debug mode using Vizapp Designer. Wewill also read diagnostics from the instrument and acknowledge them from ViZapp usingthe Status Viewer. After completing this lab, you should know how to:

• Run the Modcell/MOD 30ML document in debug mode by communicating withthe instrument.

• Start and use the Status Viewer to read and write instrument attributes.

Figure 5 .2.Instrument StatusViewer

5.3 Instructions5.3.1 Part A

1. Launch ViZapp Designer if it was not running already. Open the PIDLAB instrumentdocument. The document (strategy) will open as shown in the figure below: (the positionand size of the blocks might be different). This is a static display.

2. Start Debug for this display:

• Select Project � Start Debug Mode from the menu bar at the top.

Page 123: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Debug Lab

5 - 3

Figure 5 .3.Debug

• This will start the Xmodbus OPC Server if it was not running already andminimize it to the Windows 95/NT task bar.

• You should also now see live data from the instrument displayed on the algorithmblocks as shown below:

Figure 5 .4.Debug mode

Page 124: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Debug Lab

5 - 4

• Notice that only the standard/important attributes of the algorithm blocks such asPVI, SP, OP for PID block, Mode and R for AIN block are displayed on theblocks.

3. View details of PID block.

• Double-click on the PID block. The Algorithm Properties dialog will be displayedas shown below:

Figure 5 .5.Debug modeAlgorithmProperties

• This dialog will show more attributes of PID such as Gain, Preact, Reset, modeetc.

4. Change the value of PID Gain:

• Click on the little button next to the Gain field on this dialog. This will popup akey pad on the screen as shown below:

Page 125: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Debug Lab

5 - 5

Figure 5 .6.Enter Value Pad

• Click on the text field at the top on this pad and then type a new value for theGain. You can either click on the number buttons on this pad or type using thenumber keys on your keyboard.

• Click on Enter. This will change the PGAIN attribute of the PID running in theinstrument. Do not click on the OK button now! Click on the Diagnostics tab onthe Algorithms Properties dialog.

Figure 5 .7.Diagnostics

• The diagnostics tab will display diagnostics related to the PID lab. You can alsoacknowledge the diagnostic alarms.

Page 126: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Debug Lab

5 - 6

• Click on OK. Try changing the Set point and Mode of the Controller in the sameway.

✎ Edit � Debug Cursor: There are two different modes for the cursor during Debug.The default cursor type after entering Debug mode is �Debug� and the cursor will bewhite. Refer to the following figure. During this mode, you can not edit the document� can not move blocks, resize them or open them etc.

To be able to edit during the debug mode, click once on the cursor/selection button on theDraw toolbar. The cursor will appear black now. Now you can edit the document, addobjects, open a loop compound or close it, etc. If you now double-click on the PID block,it will display the PID block properties.

Figure 5 .8.Edit / Debug Cursor

• Click on the cursor again to change its type to Debug mode.

✎ You can also add graphic objects such as bar-graphs, trends, color changes to theModcell / MOD 30ML documents (strategy) and can animate in Debug mode. We willdo that later in a different lab.

Page 127: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Debug Lab

5 - 7

5.3.2 Part B � Instrument Status Viewer

1. Start the Instrument Status Viewer:

• Select Instrument � Status from the menu bar at the top. This will display theCommunication Setup dialog as shown below:

Figure 5 .9.CommunicationSetup

• This will show the Server name and the Device name in the respective fields. Justmake sure these are correct.

• Click on OK. This will start the Instrument Status display as shown below:

Figure 5 .10.Instrument Status

• This Instrument Status display has a text field to enter commands and a set ofbuttons.

Page 128: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Debug Lab

5 - 8

2. Read the status of the instrument:

• Type R STATE in the command field and then click on the Enter button.

Figure 5 .11.Instrument Status

• The command you entered will be echoed on the main window above, followed bythe response from the instrument.

3. Read diagnostics:

• Type R DIAGS in the command field and then click on Enter. Instrumentdiagnostics will be displayed as shown in the next figure. You may get morediagnostic errors or none.

✎ Refer to MOD 30ML / Modcell / ViZapp Designer documentation or Online help forsyntax, commands and readable / writeable attributes listing.

Commands are not case-sensitive. When reading/writing attributes, use the block typewith occurrence number.

Page 129: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Debug Lab

5 - 9

Figure 5 .12.Instrument Status

4. View Cross - Reference information of the control strategy:

• Click on the View CRF button. This will display the cross reference informationas shown below:

Figure 5 .13.Cross Reference

• The Cross Reference Information gives the Tag Name of each algorithm blockwith its path and block�s Type with occurrence number.

Page 130: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Debug Lab

5 - 10

5. Write PID Setpoint:

• Type W PID1.SP 90 F in the command line and press Enter to change the valueof the setpoint to 90. The instrument will report the current value of the setpoint.

Figure 5 .14.Instrument Status

• Close the Instrument Status Viewer by clicking on the Exit button.

Page 131: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

6 - 1

6 Sequence Lab

6.1 Foreword

Configuring a batch application is easier than ever with the ViZapp Designer. You canconfigure names for the inputs, outputs and steps in a SEQ block and they will bereflected in the connections and debug screen. This makes it very intuitive to the user andthe programmer.

6.2 Objectives

This lab is based on a very simple sequence. It is designed to show some of the power ofthe Sequence Block. Because this lab is for demonstration purposes, it does NOT containall the logic elements that would be required for a real application.

The basic P&ID for this demo looks like this:

Figure 6 .1.Sample BatchReactor

TE

LSH

LSL

The operator starts the sequence using a push-button symbol on a CRT screen. If thedrain valve is closed, the charge valve opens and the vessel begins to fill. We willsuppose the product enters the vessel at 100°F.

When the level reaches a certain point, a high level switch is tripped and the Charge valveshuts. A setpoint of 350 degrees is sent to the temperature controller (which is not part ofthis demo) and begins heating the product.

When the product temperature reaches setpoint, it is held there for one hour, then allowedto cool to 100 degrees (a setpoint of 100 is sent to the same temperature controller).

When the product temperature reaches 100 degrees, the drain valve is opened and remainsopen until the low level switch is tripped. The drain valve shuts and the process remainsin Idle until the operator pushes the start button again.

Page 132: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Sequence Lab

6 - 2

After completing this lab, you should be able to

• Configure a Sequence block

• See the benefits of the Sequence block over traditional methods of configuring asequence control scheme.

• Debug the sequencer online with the ViZapp Debug.

6.3 Instructions

1. You should have the strategy created in Lab 3 (PID Loop Lab) loaded. Your screenshould look like something below:

Figure 6 .2.PIDLAB document

2. Place a loop compound: Select Loop CPD from the Algorithms window and place it onthe screen.

• Double-click on the Loop Compound to open the Properties dialog and give it thename Batch. Refer to the next figure.

• You can type a description too.

• Click on OK to close the dialog.

Page 133: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Sequence Lab

6 - 3

Figure 6 .3.Loop Compound

3. Assign this compound to Scan Group 2.

• Right-click on the Batch compound and select Open compound from the menu toopen the compound.

Figure 6 .4.Loop block

• Close the Compound Signals box. Open the Loop block (LP) and type LP-2 as itsname and 2 as the Scan Group. Refer to the next figure:

Page 134: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Sequence Lab

6 - 4

Figure 6 .5.Loop Properties

• Click on OK to close the Loop block.

4. Place Inputs and Outputs: Select from the Algorithms window and place the followingblocks document workspace for the inputs and Outputs:

• 3 Digital Input Modules - DIM

• 2 Digital Output Modules - DOM

• 1 Wide Resistance Input Module WRIM

• 1 Resistance Temperature Input Function RTI

• Select a SEQ (Sequencer) block from the Algorithms window and place it on thedocument workspace.

• Your screen should look something like the next figure. The placement of theblocks can be different.

Page 135: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Sequence Lab

6 - 5

Figure 6 .6.Blocks

5. Configure the I/O blocks:

• Digital Inputs/Outputs: Change the tag names and descriptions. Accept all otherentries in their default. The tag names and descriptions are as below:

• LSL - Level Switch LOW DIM

• LSH - Level Switch HIGH DIM

• Draining - Feed back from the draining valve DIM

• Drain - Output to Drain Valve DOM

• Charge - Output to Charge valve DOM

• Analog Inputs and Function blocks: Change the tag names and descriptions. For theRTI block configure the quality limits as 70 Degrees to 300 Degrees Fahrenheit.

• TE - Reactor Temperature sensor WRIM

• TI - Reactor Temperature RTI

6. Define locations for the I/O Modules on the board:

• Select Instrument - I/O Graphic - MOD30ML from the menu bar at the top. Seenext figure:

Page 136: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Sequence Lab

6 - 6

Figure 6 .7.I/O Graphic menu

• The I/O Graphic will be displayed next as shown below: Notice that except for thebuilt-in I/O and Communication, all the modules are placed on Slot 1 by default.

• Move the modules with the left mouse button held down to other locations so thatthe modules do not overlap.

Figure 6 .8.MOD30ML I/OGraphic - defaultplacement

• After relocating the modules, your I/O Graphic should look something like the inthe next figure:

✎ Follow the Module placement rules for the MOD 30ML. Refer to the MOD 30MLInstallation Guide on the CD for details.

Page 137: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Sequence Lab

6 - 7

Figure 6 .9.MOD30ML I/OGraphic

• Right-click on the TE block on this I/O Graphic. This will open the WRIMProperties dialog. Notice the change in the Module Slots on this dialog.

Figure 6 .10.WRIM Properties

• Click on OK to close the WRIM Properties dialog.

• Close the I/O Graphic by clicking on the close button (X) at the right hand side topof.

7. Configure the Sequence block: Double-click on the SEQ block to open the SEQProperties dialog as shown below:

Page 138: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Sequence Lab

6 - 8

Figure 6 .11.SEQ Properties -General Tab

• Type a tag name and description as shown above under the General tab.

8. Add Inputs: Click on the Inputs tab of this dialog. Refer to the next figure:

Figure 6 .12.SEQ Properties -Inputs Tab

Page 139: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Sequence Lab

6 - 9

• Click on the Add button at the bottom. This will open the Specify Input Datadialog box as shown below:

Figure 6 .13.Specify Input dialog

• Type StartPB (Start Push Button) in the Name field.

✎ One of the powerful attributes of the Sequence block is the ability to assign names toinputs, then use the names in the step logic. This makes it very easy for someone tolook at the block and understand the logic.

• Click on the down arrow in the Data Type field and select Discrete from the list.The dialog should look like the figure below:

Figure 6 .14.Specify Input dialog

• Click on OK to close this dialog. The input you just added will be listed under theInputs tab of the SEQ Properties dialog as shown below:

• This discrete input will be used for starting the batch and will be later connectedto the StartPB digital input module wired to the Start Push Button on the controlpanel.

Page 140: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Sequence Lab

6 - 10

Figure 6 .15.SEQ Properties -Inputs Tab

• Add more inputs to the SEQ block as below: Leave the initial value data field inits default value.

Input # Name Type

2 LevelHI Discrete High Level Switch

3 Temp Floating Point Product Temperature

4 Draining Discrete Drain Valve Open Feedback Contact

5 HeatSP Floating Point Setpoint for Heating Product

6 CoolSP Floating Point Setpoint for Cooling Product

7 LevelLO Discrete Low Level Switch

✎ Use the Modify button in case you make a mistake. Select the input and then click onthe Modify button.

• After adding all the inputs, the Inputs tab should look like the following figure:

• Notice that these inputs are assumed to be local until we connect them externalinputs and are assigned initial values as shown in the figure below.

• The inputs can be in any order. To rearrange the entries, use the Move Up / MoveDown buttons.

Page 141: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Sequence Lab

6 - 11

Figure 6 .16.SEQ Properties -Inputs Tab

9. Add Outputs: We need to add the outputs to the sequencer now. Click on the Outputstab of the SEQ Properties dialog box.

Figure 6 .17.SEQ Properties -Outputs Tab

Page 142: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Sequence Lab

6 - 12

• The Outputs tab will be displayed next as shown above. Click on the Add buttonon this tab. The Specify Output Data dialog will be displayed next.

Figure 6 .18.Specify OutputData dialog

• Type ChargeV for the name of this output and select Data Type as Discrete. Thisoutput will be locally generated and will be connected to the Charge valve via adigital output module.

• The initial data will default to False. Accept that. Click on OK. This added outputwill be displayed in the Outputs list as shown below:

Figure 6 .19.SEQ Properties -Outputs Tab

✎ Another powerful feature of the Sequence Block is that each output can be assignednames. These names can be used in the step logic expressions. The outputs can beassigned different values from the step expressions. Outputs can be any data type

Page 143: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Sequence Lab

6 - 13

supported by MOD30ML, including discrete and floating point. Some of the MOD30ML data types are not even supported by traditional sequencers (such as drumprogrammers and ladder logic).

• Add more outputs as per the following table:

O/p # Name Type InitialData

2 DrainV Discrete False Drain Valve

3 Setpoint FloatingPoint

350.0 Heating/CoolingSetpoint

• After adding all the outputs, the Outputs tab should look like the following figure:

Figure 6 .20.SEQ Properties -Outputs Tab

• Notice that these outputs are assigned initial values that can be changed by thestep logic. These outputs can be connected to other blocks in the document andalso to the field via the output modules.

10. Define the Steps: We have defined the inputs to the sequence block, and the outputs itwill control. All that remains is to define the steps in the sequence, and the logic thatcontrols the step changes.

• We will add 6 steps to the sequencer (IDLE, CHARGE, HEAT, COOK, COOLand DRAIN).

• Click on the Steps tab of the SEQ Properties dialog. Refer to the followingfigure:

Page 144: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Sequence Lab

6 - 14

Figure 6 .21.SEQ Properties -Steps Tab

• Click on the Add. The Specify Data for this Step dialog will be displayed:

Figure 6 .22.Specify Step dialog

Page 145: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Sequence Lab

6 - 15

• Type a name for the step. Type IDLE in the Step Name field.

• Type the step logic expression in the Transition Expression field:

IF StartPB && !Draining THEN Charge

• In the above expression StartPB and Draining are inputs and Charge is the stepname.

• Define value for each output. Click on the field under the Data column in theOutput Data table. Define values for each output in the Data field against them asshown in the above figure.

• Click on OK on this dialog. The Steps tab of the SEQ Properties dialog willredisplay with the step you added as shown below:

Figure 6 .23.SEQ Properties -Steps Tab

! Notice that there are columns for the step number, step name, expression and also foreach output you added in the Outputs tab. This means that you can have any numberof different states or values for the outputs for different steps. This is a feature mostsequencers available in the market do not offer.

• Add more steps as per the following table:

Step # Step Name Charge Drain Setpoint

2 Charge True False 100

3 Heat False False 350

4 Cook False False 350

5 Cool False False 50

Page 146: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Sequence Lab

6 - 16

6 Drain False True 50

• The Transition Expressions for the steps are as below:

Step # Step Name Transition Expression

2 Charge IF LEVELHI THEN HEAT

3 Heat IF TEMP >= HEATSP THEN COOK

4 Cook IF TIME >= 01:00:00.000 THEN COOL

5 Cool IF TEMP <= COOLSP THEN DRAIN

6 Drain IF LEVELLO THEN IDLE

• After adding all the steps, the Steps tab of the SEQ Properties dialog will look likethe figure below: Deselect a step before adding another. You can rearrange thestep order by selecting Move Up or Move Down buttons.

Figure 6 .24.SEQ Properties -Steps Tab

✎ Remember, the Transition Expression defines what makes the sequence leave thecurrent step and go to another. TIME indicates the time in the step (this was"steptime" in the MOD 30 SLU). There is a timer that starts as soon as you enter eachstep, and resets upon transition to the next one.

• We have added Inputs, Outputs and defined steps for the batch.

• Click on OK to close the SEQ block. We have configured the SEQ block.

11. View the Connection Map: Open the SEQ block and then click on the Connection Maptab of the SEQ Properties dialog. This tab will list all the possible inputs and outputs

Page 147: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Sequence Lab

6 - 17

(those defined by you and the default pneumonics of the SEQ block). Refer to the nextfigure:

Figure 6 .25.SEQ Properties -Connect Map Tab

• Use the scroll bar on the right to scroll down. Do you see the Inputs / Outputsadded by you?

• The next step is to connect inputs and outputs for the sequencer.

12. Make connections to the Sequencer:

• Select the Multi-segment connector or the Right Angle Connector from theAlgorithms window and then click on the LSL (DIM) block.

• The Choose Parameter dialog of the DIM block will be displayed next.

• Select R from the list (Refer to the next figure)

Page 148: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Sequence Lab

6 - 18

Figure 6 .26.Dim ChooseParameter

• Click on the StepMGR (SEQ) block to connect. See figure below:

Figure 6 .27.Connect to SEQblock

• The Choose Parameter dialog of the SEQ block will be displayed next. Refer tothe next figure.

• Select LevelLO from this dialog and then click on OK.

Page 149: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Sequence Lab

6 - 19

Figure 6 .28.SEQ ChooseParameter - digital

• Make the other connections in the same way. Use the following table:

Source Destination

LevelHI.R (DIM block) StepMGR.LevelHI (SEQ)

TE.Modout (WRIM block) TI.Modin (RTI block)

Draining.R (DIM block) StepMGR.Draining

TI.R (TI block) StepMGR.Temp

StepMGR.Drain Drain.Input (DOM block)

StepMGR.Charge Charge.Input (DOM block)

• After making the connections, your screen should look like the next figure:

Page 150: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Sequence Lab

6 - 20

Figure 6 .29.SEQ and otherblocks connected

• Save your document. Click on the Save icon on the tool bar.

• Compile your document.

Page 151: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

7 - 1

7 ViZapp HMI Lab

7.1 Foreword

ViZapp comes with an OPC Client Application. It also provides a simple HumanMachine Interface (HMI). It is the most visible part of ViZapp. Graphic displays (DisplayDocuments) can be built easily and quickly and can be animated to show processparameters and enable operation from the computer. You can configure dynamic actionsfor the objects to provide visible output.

Graphic objects can also be built on the instrument documents and can be animated withthe instrument algorithm blocks for easy debug and operation.

A rich set of graphic drawing tools is available with ViZapp.

7.2 Objectives

In this lab you will create a simple graphic display to interface with the instrument usingthe Extended Modbus OPC Server. After completing this lab you should:

• Know how to create a Tag List for ViZapp OPC Client and read/write instrumentvalues

• Be able to create a graphic display and make the graphic objects dynamic byconnecting them to the tags

• Be able to run the Project and operate from the graphic display you created

• View ViZapp System events.

Page 152: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp HMI Lab

7 - 2

7.3 Instructions7.3.1 Part 1 - Tag Creation

1. Launch ViZapp if it was not already launched. Load your workspace (Class.awsp). YourProject Tree should look like the figure below:

Figure 7 .1.Project Tree - Tags

2. Open the Tag Viewer / Tag Document: It is necessary to make a tag document (list oftags) before making the graphic object dynamic.

! Automatic Creation of Tags: If you are using the Xmodbus OPC Server, the tags canbe created automatically. All you need to do is create a .MIF file at the time ofcompile and download the database to the instrument. Make sure you populate ViZappand Server tag lists at the time of downloading the database to the instrument (Checkthe box next to the Populate ViZapp and Server tag lists field - Refer to the ViZappXmodbus OPC Server Lab).

Α If you are using the standard Modbus OPC Server (i.e. for Modbus devices such asCommander series instruments), then you neeed to create the tags manually.

• Double-click on Tags in the Project Tree (See above figure).

• Double-click on the device that appears under Tags. The tags from the MIF filewill be displayed on the right frame as shown below:

✎ The tag names are derived from the MIF file you created in the PIDLOOP lab. Thefollowing items related to the tag (tag properties) are shown on the tag document:

• Tag Name

• State (Running / Stopped)

• Mode (Auto / Manual)

• Value (online value from the instrument)

• Quality of the tag

• Alarms (if defined for the tag)

• Run mode users (number of client applications requesting the tag)

• Description

Page 153: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp HMI Lab

7 - 3

• Style (for Alarming and Custom Scaling)

• OPC Server name

• OPC Item Name

• OPC Access Name

• Do you see values for these tags in the Value column? No, because the project isnot running currently to read values from the instrument.

Figure 7 .2.Tags document

3. Edit the properties of a tag: Select the FICPVI tag by clicking on it and then right-clickon it to display the tags related menu as shown in next figure:

• Select Properties from this menu.

Figure 7 .3.Tag Properties

• The Edit Tag dialog box will be displayed next and will show properties of thetag as shown below:

Page 154: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp HMI Lab

7 - 4

Figure 7 .4.Edit Tag

• The above dialog has fields and buttons for changing the tag properties.

• Check the box next to Always Scan field. This will enable the tag to be scannedwhenever the system is in Run mode.

• Click on OK to close this dialog.

• Do you now see value for this tag?

4. Start the Project: Select Project from the menu bar at the top and then select Start fromthe menu (See figure below:)

Figure 7 .5.Project - Start

• A Warning message box as shown below will appear. This is because you canchange only the tunable parameters in debug/run mode and can not makeconfiguration changes. Click on OK.

Page 155: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp HMI Lab

7 - 5

Figure 7 .6.Tags in DebugMode

• You should now see the values for the tags that are on scan, presumably theinstrument is connected and the OPC Server is running.

✎ By enabling Scan Always you can also put selective tags on continuous scan. To scanon demand, select the tag and then right-click on it. Select Scan On from the resultingmenu.

• You may not see values for other tags as they are not on scan. You can put themon scan (scan on demand) by by right clicking on it and then by selecting Scan Onfrom the resulting menu.

Figure 7 .7.Tags � Scan On

• If the OPC Server was not running before you started the project, it will beautomatically started. See the next figure:

Page 156: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp HMI Lab

7 - 6

Figure 7 .8.Tags in DebugMode

5. Stop the Project: Select Project from the menu bar at the top and then select Stop fromthe menu.

Page 157: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp HMI Lab

7 - 7

7.3.2 Part 2 - Graphic Display

1. Create a new display and add it to the project: Select your Project from the Projecttree by clicking on it and then right-click on it. Select New Document from the list. Seefigure below:

Figure 7 .9.Add new document

• The New dialog will be displayed as shown below:

Figure 7 .10.New DisplayDocument

• Select Display from the list as the type of the new document you want to create.Make sure your project folder is selected as the location and then type a name forthe display in the Name field. Type Class for the name. Click on OK.

• Notice that the Display folder is added to the project tree and the name you typedis attached to it. See the next figure. Also notice that on the right frame a blankdisplay document is opened.

Page 158: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp HMI Lab

7 - 8

Figure 7 .11.Class Display

2. Add a Process Value object to the display: The Process value object will display thevalue of the tag from the instrument on the display. It can be used for both reading andwriting tag values.

Figure 7 .12.Process Value

• Click on the Process Value tool on the Draw tool bar and then click on the blankdisplay document.

• The Process Value dialog as shown in the figure above will be displayed. Click onthe Browse button on this dialog. This will display the Tag Browser as shownbelow:

Page 159: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp HMI Lab

7 - 9

Figure 7 .13.Tag Browser

✎ The Tag Browser displays all tags currently configured in your project. It is aninterface to the user to configure dynamic objects by linking the objects to tagsconfigured for the project.

• The project name (folder) will be shown in the left. Double-click on it to expandthe tree. The device name attached to the project will be displayed next.

• Double-click on the device name to display tags on the right side as shown in theabove figure.

• Select the FICPVI tag from the list (you can also see the status of the tag fromthis dialog box � stop/Run) and click on OK or double-click on the tag.

• The Process Value dialog will redisplay as shown below with the device and tagname as shown in the next figure.

Page 160: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp HMI Lab

7 - 10

Figure 7 .14.Process Value

• Click on OK on this dialog. The Class display will redisplay as shown below withthe newly added Process Value object. This is just a static object and does notreflect the PV value from the instrument.

Figure 7 .15.Process Value

3. To see the values, you must animate the display either in debug mode or run mode. Startthe project in debug mode:

Page 161: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp HMI Lab

7 - 11

• Select Project from the menu bar at the trop and then select Start from the menu.After a few seconds, the project will be in debug mode and you should see values(presumably the instrument is connected and the OPC Server is running! )

Figure 7 .16.Process Valueanimated

• Stop the Project: Select Project from the menu bar at the top and then selectStop from the menu.

4. Add more objects to the display:

Figure 7 .17.Draw Tools

✎ Refer to the above figure for various Draw tools.

• Add a bar graph and connect it to FICPVI. Select the rectangle tool on the Drawtool bar and draw a vertical bar by holding the left mouse button and dragging themouse. See the figure below:

Page 162: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp HMI Lab

7 - 12

Figure 7 .18.Rectangle

• This rectangle object will be selected automatically after it is drawn (or you canclick on it to select).

• By default, the object is outlined (not filled). We need to make it filled or solid.

• Right-click on this object and select Properties from the menu. The Shape tab ofthe Properties dialog will display as shown below:

• Make sure the check box in the Fill area of this dialog is checked. Click on thelittle box that is on top on the button on the left. See figure below:

• The color palette will be displayed next. Choose a color of your choice.

Figure 7 .19.Fill color

Page 163: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp HMI Lab

7 - 13

• Assign the solid pattern to the object. Click on the button that is on the right in thefill area. The Pattern palette will be displayed next as shown below:

• Select the solid pattern (see figure)

• Leave the Frame properties for this object in default.

✎ Each object can have two different fill types: Foreground and Background. You can usedifferent colors for these two fills. You can also specify a pattern (texture) for theobject and the texture will have the color of the foreground fill. The background colorapplies only if the object has a pattern.

Figure 7 .20.Fill Pattern

• Click on OK to accept the changes and close the dialog.

5. Assign Size Action to the bar graph and connect it to the FICPVI tag: Select theobject if it was not selected already.

• Select Actions on the menu bar at the top and then select Size - Height from themenu. See the next figure:

Page 164: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp HMI Lab

7 - 14

Figure 7 .21.Size Action

• The Size dialog will display next as shown below:

Figure 7 .22.Height Action

• Click on the Browse button on this dialog to open the Tag Browser.

Page 165: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp HMI Lab

7 - 15

Figure 7 .23.Tag Browser

• Select the FICPVI tag from the tag list on this dialog and click on OK.

Figure 7 .24.Height Action

• The selected tag name will be displayed in the Size dialog as shown above.

• Change the Value at Max Height field in the Properties area of this dialog boxto 200 to match the range in the instrument.

• Click on OK on this dialog. Now the bar graph is a dynamic object.

Page 166: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp HMI Lab

7 - 16

• If you double-click on it to open its properties again, you will see two tabs: Sizeand Shape. The Size tab has the properties of the size dynamic action it isassigned to and the Shape tab has the object's static properties.

✎ It is possible to assign more than one dynamic action to the same object. TheProperties dialog will have as many tabs as the dynamic actions and the Shape tab.

6. Add two more bar graphs and connect them to FICSP and FICOP. Also add two ProcessValue objects for FICSP and FICOP in the same way explained in the two steps above.

! Use the object arranging tools to align, rearrange, rotate and perform a lot of otherediting actions on the objects. To do this select the objects and then use the menu baritem Objects.

Figure 7 .25.Objects menu

7. Add a Button object to the display and assign it a touch action: We will use the buttonobject to switch to the instrument document display (strategy) in debug or run mode.

• Select the Button tool on the Draw bar and then move the cursor to the displayand click on it.

• This will draw a button on the display as shown in the diagram below:

Page 167: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp HMI Lab

7 - 17

Figure 7 .26.Button

• Select the button, right-click on it and then select Properties from the menu. TheObject Properties dialog will display as shown below:

Figure 7 .27.Button Properties

• Change the button text to say "STRATEGY". This text will be displayed on thebutton. Click on OK.

• Select Actions from the menu bar at the top and then select Touch - Display fromthe menu.

Page 168: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp HMI Lab

7 - 18

Figure 7 .28.Touch Action

• The Touch Display dialog will display next as shown in the next figure:

Page 169: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp HMI Lab

7 - 19

Figure 7 .29.Touch Display

• Click on the Edit List button on the right side of this dialog to display the ChooseDocument dialog (next figure).

Figure 7 .30.Document List

• The Choose Document dialog will display all the documents that are attached toyour project.

• Select the PIDLAB document (this is the MOD 30ML document you configured inthe PIDLOOP Lab.) by checking the box next to it.

Page 170: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp HMI Lab

7 - 20

• Click on OK. The Touch Display dialog will now redisplay with the documentname in the Display List. See figure below:

• You can also assign a key or a key combo on the keyboard as an alternate to thispush button. To do this click on the Choose Key button on the Touch Displaydialog.

Figure 7 .31.Touch Display

• A dialog as in the following figure will pop up. Click on the text field (box) onthis dialog and then press the Shift and F8 keys on your keyboard.

Figure 7 .32.Choose a Key

• You should now see names of the keys you pressed in the box. Click on OK.Pressing Shift+F8 will have the same effect as pressing the button.

• Save your display: Select File - Save form the menu bar at the top or click on thedisk icon on the too bar at the top.

8. Add a title to your display:

• Select the Text tool on the Draw tool bar. Click on the display. You should nowsee a text filed and a text editing cursor (vertical line).

Page 171: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp HMI Lab

7 - 21

• Type FIC Display in this field and then click on a blank area of the display.

• You should now see the text selected.

✎ You can edit this text by double-clicking on it and then typing on it.

Figure 7 .33.Text Object

• Right-click on the text object and select Properties. See figure below:

Figure 7 .34.Text properties

• The Font dialog will display next as shown in the next figure:

Page 172: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp HMI Lab

7 - 22

Figure 7 .35.Font

• Select Arial - Bold Italic - 24 as the font, style and size of this object from thisdialog. Click on OK. Your display should look something like the next figure. Theplacement of objects might be different and is immaterial.

• Save your display again.

• Animate your display: Select Project - Start from the menu bar at the top to seereal time values on the display. See next figure:

Figure 7 .36.Class displayanimated

•• Click on the button (STRATEGY) on this display. It should now switch to thePIDLAB document and your screen should look like the following figure:

Page 173: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp HMI Lab

7 - 23

Figure 7 .37.PIDLAB document

The instrument document will also be in debug mode, showing values of the instrumentparameters on the blocks.

Page 174: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp HMI Lab

7 - 24

7.3.3 Part 3 - Online Graphics Building/Editing:

It is possible to add display objects to the instrument documents. You can also assignthem dynamic actions and treat them as operator interface displays. This way you canboth debug and operate from the same display. This is an excellent feature of ViZappcompared to many of the competitors' products. Next we will add a trend window to thePIDLAB document for Real Time Trending of FIC variables.

! Online Graphics Building/Editing:

You can also add a trend window or other display objects in debug or in runtime mode i.e.to an animated document. This feature is called On-line Editing.

Online editing lets you make changes to the displays and read/write instrument valueswhile the system is in debug or run mode.

1. Enable Online Editing:

• Select the Select button on the Draw tool bar: The Arrow on the Select buttonshould turn black after you press on it once. Now your display is in edit mode.Notice that your cursor also changes to black during the edit mode.

Figure 7 .38.Edit and Debugcursors

• Select the Control loop Compound on your document and then right-click on it toopen the compound.

2. Add 3 bar graphs to show the PID values:

• Make your PID block taller by resizing it.

• Draw 3 bar graphs right on the PID block and assign them different colors.

• See the next figure:

Page 175: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp HMI Lab

7 - 25

Figure 7 .39.Debug with displayobjects

• Assign Size actions to bars by connecting them to FICPVI, FICSP and FICOPtags. See the figure above.

3. Add a trend window to the document:

• Select the Trend tool on the Draw tool bar and then move the cursor to a blankspace on the document.

• Draw a box by holding the left mouse button down and by dragging the mouse.See figure below:

Figure 7 .40.Trend Window

• After drawing the trend window, it should look like the one in the figure below:

Page 176: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp HMI Lab

7 - 26

Figure 7 .41.Trend Window

• Double-click on the window to open its Properties dialog. The Object Propertiesof Trend Window has two tabs: Trend and Visuals.

Figure 7 .42.Trend Properties

• You can define tags, scan rate, trend period, scales, pen color, caption etc. fromthe Trend tab.

• The visual properties of the window like background colors, grids and fonts can beconfigured from the Visuals tab.

Page 177: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp HMI Lab

7 - 27

4. Add a trend pen: Click on the Add button in the Curves area of this dialog. See theprevious figure. The Add Curve dialog will display next as shown in the figure below:

Figure 7 .43.Add Curve

• Click on the little button next to the Tag Name field on this dialog. This willlaunch the Tag Browser dialog.

• Select FICPVI from the tag list and click on OK.

• The Add Curve will redisplay as shown below with the tag name as shown below:

Figure 7 .44.Trend Min and MaxValues

• Change the Max Value (high engineering range) to 200.

✎ Notice that the Max and Min Values of the trend for this variable are not updatedautomatically. You have to type them manually.

• You can leave the other properties such as color, pen width and style in default.Click on OK. The Object Properties of the trend window will redisplay as shownbelow with the added tag.:

Page 178: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp HMI Lab

7 - 28

Figure 7 .45.Trend Properties

5. Add two more pens (curves) to the window. Do this by clicking on the Add button in theCurves area of the above dialog and follow the above step. Assign FICSP and FICOP tothe trends.

✎ Notice that the default color of the pen changes for every new pen added.

• After adding new pens, you�re the dialog will look like in figure below:

Page 179: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp HMI Lab

7 - 29

Figure 7 .46.Trend Properties

6. Add a caption to the trend window:

• Click on the check box next to the Show Caption field on this dialog.

• Type a caption (FIC Trend ) in the text box next to the Show Caption field.

• Check the box next to the Center Caption field. This will display the caption atthe top of the trend window and center it.

• Do not click on OK or press Enter.

7. Configure Visuals for the Trend Window:

• Click on the Visuals tab at the top of the Object Properties dialog. The Visuals tabwill be displayed as shown in the next figure.

Page 180: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp HMI Lab

7 - 30

Figure 7 .47.Trend - Visuals

• Click on the button next to the Caption field in the Fonts area on this dialog tochange the font of the caption you enabled in the Trend tab. The Fonts dialog boxwill be displayed next. Change the font to Arial - Bold - 22. Click on OK.

Figure 7 .48.Trend Window

Page 181: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp HMI Lab

7 - 31

• De-select the trend window now (click elsewhere on the document).

• The trend window will redisplay now and will start trending the tags.

✎ Selecting the trend window in debug mode will freeze the window. You need to de-select it to see live trends again.

• Wait for around 60 seconds. Do you see trends now? See the previous and nextfigures:

Figure 7 .49.Trend Window

✎ The default sampling interval for trending is 1000 ms (1 second). This can beincreased or decreased depending on your requirement. But make sure that you are notloading the system by trending a lot of variables at higher sample rates.

8. Save the document.

Page 182: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp HMI Lab

7 - 32

7.3.4 Part 4 - Runtime Setup.

The next step after configuring instrument documents and display documents is toconfigure runtime in ViZapp. This section describes runtime configuration.

Debug vs. Run Mode: The Debug mode is mainly for the person who is developing theapplication: configuring instruments, creating displays etc. The Debug mode is a nice toolto view and change tags online while you are configuring. The Run mode is for the personwho will be using it to operate. Instrument documents and displays can be added toruntime setup and can be configured to display in a user defined way. Security can beadded to these documents.

Security Configuration: Security levels (groups) and user accounts for different securitylevels can be added to the project file. Users are grouped as groups. Passwords and userrights can be configured for each user. Security is for configuration and operation. Thedocuments such as displays, instrument strategies and user functions for each documentand the project can also be protected with security by allowing only certain users/groupsto view/change things.

The default security level is Administrator and that is why you could make all theconfiguration and runtime changes to the system.

1. Add your project to the Equipment List: This is required so that you can make yourproject and the documents attached to it available during runtime.

• Double-click on the Project tree item Equipment List to expand it. Select LocalMachine from the tree. See figure below:

Figure 7 .50.Project Tree -Equipment List

• Local Machine is your local computer. Right click on it to select Properties. Thiswill display the properties and projects associated with the local computer (node).See the next figure (Node Properties dialog):

Page 183: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp HMI Lab

7 - 33

Figure 7 .51.Node Properties

• The above dialog lists all the projects that are on your Class workspace. Select theClass Project by checking the box next to it. See figure above. Click on OK.

2. Configure Project properties: By doing this you will make a list of documents(instrument strategies, displays, tag lists, event etc.) and menus that should be available inrun mode.

• Select Project from the menu bar at the top and select Properties - Project fromthe drop down menu. See figure below:

Figure 7 .52.Project Properties

• This will display the Project Properties dialog as shown in the next figure: Thisdialog has the list of all the documents you have attached to the project.

Page 184: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp HMI Lab

7 - 34

Figure 7 .53.Project Properties

• Select all the documents shown (Class display, PIDLAB instrument document,Tags list and Error/Event log) by checking the boxes next to them.

• Make sure you expand the project tree to see the tag list on the right side frame.

• Also select Toolbar, Status bar and Event Log from the list on the right. Byenabling the toolbar to be available in runtime, you can switch between run andedit during run modes (by toggling between white and black cursors)

• Click on OK when done.

3. Save all the documents. Click on the Save all button or select File - Save All from themenu bar at the top.

4. Launch a document: Select the PIDLAB document from the Project Tree and double-click on it to open on the right.

• Select Local Machine from the Project Tree on the left and then right-click on it.Select Run from the resulting menu to put the project in run mode. See nextfigure.

• The documents will be opened in runtime and after a few seconds, you will see theTags document loaded on top of everything.

• You can minimize the tag document or resize it to see other documents.

Page 185: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp HMI Lab

7 - 35

Figure 7 .54.Run mode

5. View Errors and Events:

• View all the documents including the Error/Event Log.

• The Error/Event log will list all the events that occurred in the system such as:

• Starting/stopping run/debug node

• Opening/closing of documents

• User logins, logouts

• Errors reported by OPC Server/Clients

• Operator events

• The events and errors are reported with date, time, type of message, descriptionand source of error/event.

• See the next figure:

Page 186: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp HMI Lab

7 - 36

Figure 7 .55.Run mode -Events

6. Log on as Administrator. Select Runtime from the menu bar at the top on the EventViewer and then select Log On from the menu. See figure below:

Figure 7 .56.Log On

• The Login dialog will be displayed next. The default user is Administrator.

• Since we did not define any additional users or configured any password for theAdministrator, just click on OK to login as Administrator.

Figure 7 .57.Log On

• Do you see this event posted in the Errors/Events Viewer?

Page 187: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp HMI Lab

7 - 37

7. Exit Runtime: Select Runtime from the menu bar at the top and select Exit Run Modefrom the menu to stop run mode.

Figure 7 .58.Stop Run mode

• ViZapp will go back to design mode now.

Page 188: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

ViZapp HMI Lab

7 - 38

Notes:

Page 189: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

8 - 1

8 Connecting third-party OPC ClientApplications

8.1 Foreword

The XModbus OPC Server is fully OPC compliant and can serve data to any OPCcompliant client application. Connection to the clients has to be done at the client sideeither by using clients� tag browsing capability or by typing the point names manually ifthe client does not support tag browsing.

8.1.1 Tag Browsing:

Tag Browser is an intuitive point and click OPC interface that allows configuration ofOPC Data points for OPC clients. It allows browsing of tags that are from OPC serversrunning locally (in the same computer) and also over a network. This also allows the TagBrowser to support point configuration without any additional user configuration. Usingthe tag browser, the client can automatically see the server�s devices, groups, tags andother optional components.

✎ As Tag Browsing is an optional OPC specification, certain OPC clients may notsupport it. Contact the OPC client vendor for details. If a client application does notsupport tag browsing, the user needs to construct the point name manually forconfiguration.

When the user configures a point for reading or writing in the client application, the tagbrowser will start automatically and will find the OPC servers that are registered with theoperating system (local or on network) and list them with their tag databases. The userjust has to select the desired OPC server and the tag for the connection.

Certain OPC Servers have their own specific syntax for point names of tags. The TagBrowser interface insulates the OPC Client applications from the vendor specific syntax.The user need not know or remember the syntax with which the point name of the tag isconstructed.

✎ Point Name is a series of strings that represent a tag item of a server. Point names areusually constructed with the server name, device name, group name and tag name.

The tag browser will also start the selected OPC server automatically. This saves atremendous amount of time.

Page 190: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Connecting third-party OPC Client Applications

8 - 2

8.2 Objectives

In this lab we will connect ABB Extended Modbus OPC Server to third party OPC clientapplication. The OPC client discussed in this lab is:

• GraphWorX32, a client module of ICONICS� GENESIS-32 Software

After completing this lab, you should know how to connect MODCELL / MOD 30ML tothird-party OPC based HMI applications through ABB Extended Modbus OPC Server.

✎ This lab assumes that GraphWorX32 is installed properly and run in the computer.

8.3 Instructions8.3.1 GraphWorX32 OPC Client Application

GENESIS-32 from ICONICS is a fully compliant OPC applications suite. GraphWorX32is a client module in this suite and provides graphic HMI for the user.

1. Start GraphWorX32 application: From the Windows Start menu, select StartPrograms � ICONICS GENESIS-32 � GraphWorX32 � GraphWorX32

Figure 8 .1.GENESIS-32Program group

GraphWorX32 will launch as shown below with a blank display called Display1.

Page 191: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Connecting third-party OPC Client Applications

8 - 3

Figure 8 .2.GraphWorX32blank display

2. Add a process point to this display to show the FIC100 parameters of the PIDLABstrategy running in the MOD 30ML: Process point connection will display the numericvalue of the signal. This connection supports both read and writing of the signal values.

Click on the Process point button on the Dynamics tool bar. Property inspector of theProcess point will display with the PPT/DE tab open. Refer to the next figure:

✎ Each object on the display can be configured using the Property Inspector. TheProperty inspector will have one tab for defining the static properties of the object, anda tab for each dynamic action assigned to the object. These tabs are used forconfiguring the actions.

Page 192: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Connecting third-party OPC Client Applications

8 - 4

Figure 8 .3.Process point �Property Inspector

• Click on the Tags button to display the OPC Universal Tag browser. The Tagbrowser will launch as shown below:

Figure 8 .4.OPC Tag Browser

• The frame on the left will display the tree that can be browsed. It will display twoitems to start with:

• My Computer for browsing within the local computer

Page 193: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Connecting third-party OPC Client Applications

8 - 5

• Network Neighborhood for browsing over a network

• Double-click on the My Computer item and then on the resulting item OPC DataAccess. The OPC tag browser will redisplay as shown below with the list of OPCServers that are registered in the computer.

Figure 8 .5.OPC Tag BrowserABB OPC Server

3. Double-click on the ABB XModbus OPC Server listed in the tag browser to start it.Double-clicking on this item will display the OPC Devices that are available for the ABBOPC Server.

4. Expand the tree by double-clicking on each item to display the devices, tag groups andtags available for the database as shown in the next figure. After expanding a device orgroup, the tags will be displayed on the right hand side frame as shown :

Page 194: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Connecting third-party OPC Client Applications

8 - 6

Figure 8 .6.OPC Tag BrowserTag Tree

• Select the process value of the FIC loop by selecting the Device (MOD30ML)and then on the tag item FICPVI as shown above. Click on OK to select thispoint. The Property Inspector of the process point object will redisplay as shownin the next figure:

Page 195: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Connecting third-party OPC Client Applications

8 - 7

Figure 8 .7.Process point DataSource

• Notice that the point name for this point is as shown below:

ABB.XModbus\MOD30ML.FICPVI

✎ The point name is constructed with the OPC Server name, Device name, Group namesand the Tag name. Notice a forward slash (\) after the OPC server name and before thedevice name. The point name components are separated by a period (.).

Figure 8 .8.OPC Point namesyntax

• Click on OK to add this point to the blank GraphWorX32 display. TheGraphWorX32 display will redisplay with the added process point object asshown below:

Page 196: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Connecting third-party OPC Client Applications

8 - 8

Figure 8 .9.Process point

• Do you see values of this tag? No. It shows only �????????�. It is because, thisdisplay is not animated or in runtime yet.

5. Runtime this display: Select Runtime from the menu bar at the top to see the liveprocess data on this display.

Figure 8 .10.Menu bar - Runtime

• GraphWorX32 will redisplay as shown below with the point animated and willshow the value of FICPVI. Refer to the following figure:

Figure 8 .11.Process pointanimated

Page 197: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Connecting third-party OPC Client Applications

8 - 9

• Move the cursor close to this point object on the display to show the tool tip (flybyhelp) as shown above. The flyby shows the complete point name for this processpoint object and also the current value.

6. Add a graphic object to this display to show the value graphically:

• Exit runtime mode first by clicking on Configure on the menu bar at the top.GraphWorX32 will be in Configure mode again.

• Draw a rectangular object to this display by using the Rectangle/Square tool.Select the tool, move to the display area and then with the left mouse button helddown and then draw a rectangle by moving the mouse.

Figure 8 .12.Rectangle object

7. Click on the Select tool and then select the rectangular bar by clicking on the rectangleyou just drew. It gets selected as shown above (you will see a handle around it).

8. Click on the Size button on the Dynamics tool bar. The property inspector of thisrectangle object will be displayed with the Size tab open as shown below.

Page 198: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Connecting third-party OPC Client Applications

8 - 10

Figure 8 .13.Size ConnectionProperty Inspector

• We will add a vertical size connection and attach it to FICPVI. Select the Verticaloption from the set of options shown for the size action. Refer to the above figure.

• To select the tag, click on the Tags button on this page to display the OPC TagBrowser. Select the same point as you selected for the process point display in theprevious step.

• After you selected the FICPVI tag, of the property inspector will redisplay withthat tag in the data source field as shown in the above figure.

• That is not all! You need to define the range for the size action. Click on the checkbox next to the Range Override field. This will enable editing of Low and Highrange fields.

• Type 200 as the high range and 0 as the Low range to match the range youspecified in the Application Builder strategy configuration. Refer to figure above.

✎ It is necessary to override the engineering ranges for all dynamic connections exceptthe process point connection in GraphWorX32.

• Click on OK. The rectangle object on the GraphWorX32 display will still beselected with Red handles around it, which means that it is a dynamic object.

• Runtime the display as before by clicking on Runtime on the menu bar at the top.

Page 199: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Connecting third-party OPC Client Applications

8 - 11

• GraphWorX32 will redisplay as shown below with two dynamic objects � processpoint and a rectangle.

Figure 8 .14.GraphWorX32display in runtime

9. Save the display:

• Select Configure from the menu bar to exit Runtime mode.

• Select File � Save from the menu bar to save the file. The Save As dialog box willappear as shown below: Choose Class as the folder for saving this display in theSave in field of this dialog box and then type the name FIC-100 as the file namein the File Name field. You may type the extension .GDF also, but it is notnecessary when the Save As Type is GraphWorX32 Displays. Click on Save.

Figure 8 .15.Save As dialog box

Page 200: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Connecting third-party OPC Client Applications

8 - 12

8.3.2 Additional Exercise:

Assign the Analog Color action (this action will change the color of the object from thestart color to the end color gradually) to the rectangle you built and connect it to the PVItag of FIC-100 group.

Add process point displays and bar graphs for Setpoint and Output of FIC-100 to thisdisplay and then save it.

Page 201: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

9 - 1

9 Reports Tutorial

9.1 Foreword

ViZapp Reports Builder application is used for creating different types of reports for theInstrument database. It is a stand-alone application and can be run independent of theViZapp Application Builder. It supports the following functions:

• Report Creation

• Report Preview

• Report Printing

• Report Export to most common document types

9.2 Report Creation

The first step in creating reports is to export the Instrument document/configuration to anMS Access database file. This can be done from the VIZAPP Applications Builder.

The database reports are generated, by using preformatted templates. During reportcreation, the templates are populated with data read from the exported database.

9.2.1 To export a instrument configuration to Access database:

Run the VIZAPP Designer application and open your instrument configuration. Theinstrument configuration will be displayed in the workspace. Select Tools-Export fromthe menu bar at the top. You will be prompted for a name for the exported database andits path as shown in the figure below:

Page 202: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Wishbone Reports manual

Reports Tutorial

9 - 2

Figure 9 .1.Application BuilderDatabase Export

9.2.2 To create a new Report:

1. Launch VIZAPP Reports Builder Application

• Select the Windows Start menu and then Programs - VIZAPP � ViZappReports. The VIZAPP Application Builder application will start and display theWelcome window as shown below:

Figure 9 .2.Welcome dialog

• At this point, you can create a new report or open an existing report or cancel outto go to the Reports Builder application. Let us create a new report.

• Click on the Create Report button on this Welcome window. The Report wizardwill be displayed as show in the next figure:

✎ The Report Wizard can also be opened by clicking on the Create button on the toolbar or by selecting File-Create Report from the menu bar.

2. Select the database:

• Select the database you exported from The Application Builder. Click on theOpen Database button on this Wizard.

Page 203: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Wishbone Reports manual

Reports Tutorial

9 - 3

Figure 9 .3.VIZAPP ReportsWizard � SelectDatabase

• A Open Database dialog box will be displayed as shown next:

Figure 9 .4.Open Database

• Select your database by choosing its path first and then by clicking on it. Click onthe Open button.

• This name of this database will be displayed in the Report Database field as shownbelow.

• Click on the Next button to open the Create Report tab of the Wizard.

Page 204: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Wishbone Reports manual

Reports Tutorial

9 - 4

Figure 9 .5.VIZAPP ReportsWizard � SelectDatabase

• The Create Report tab of the Wizard will be open next.

3. Select type of report: Click on the down arrow on the drop-down menu as shown in thenext figure and select Cross Reference Report.

Figure 9 .6.VIZAPP ReportsWizard � CreateReport

• Click on the Create Report button next to create the report you selected.

• After a few seconds, the name of the report that was created will be displayed inthe text box on the right hand side as shown below with a message above that.

Page 205: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Wishbone Reports manual

Reports Tutorial

9 - 5

Figure 9 .7.VIZAPP ReportsWizard � CreateReport

• Notice that the name of this report has been derived from the database name.�CRF� has been added to the end to indicate that this is a Cross Reference Report.

✎ The report file has an extension .RPT

• Click on the Next button to continue. The Open Report tab will be displayed nowas shown in the next figure:

Figure 9 .8.VIZAPP ReportsWizard � OpenReport

Page 206: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Wishbone Reports manual

Reports Tutorial

9 - 6

4. Preview the report.

• Click on the Open Report for Preview button on the wizard. The report will beopened and shown in a child window on the main application window as shown inthe next figure:

Figure 9 .9.Report Preview

5. Print the report:

• To print the report, click on the Print button on the tool bar or select Print-Printer from the menu bar. The report will be printed to Windows defaultprinter. To print to a different printer, make it the default printer in the Printersdialog box from the Windows Control Panel.

✎ Refer to the following figure for help on different buttons on the tool bar. The sameactions with some more additional actions are also available from the menu bar at thetop.

Figure 9 .10.Tool bar buttons

• A Progress dialog (Printing Records) will be displayed while the report is printed.

Page 207: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Wishbone Reports manual

Reports Tutorial

9 - 7

Figure 9 .11.Progress dialog

✎ If a printer is not available, Windows will display an error message.

6. Closing the report:

• Click on the Close button on the tool bar or select File-Close from the menu bar.The report will be closed and the workspace will be blank as shown in the figureabove. The Report file field will be blank.

Figure 9 .12.Close Report

7. To open an existing report:

• Click on the Open button on the tool bar or select File-Open from the menu bar.The Open Report dialog box will be displayed next as shown below:

Page 208: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Wishbone Reports manual

Reports Tutorial

9 - 8

Figure 9 .13.Open Report

• Select the path and the report from this dialog box and then click on the Openbutton to open he report.

✎ The name and path of the report that is open at any time will be displayed in theReport field of the Reports Builder application as shown below:

Figure 9 .14.Report File

✎ You can preview, print or export the opened report file only. Only one report can beopen at any time.

8. Formatting a Report:

• Only limited formatting such as adding a custom title and specifying date,collation, is possible as the reports are already pre-formatted.

• To add a custom title for your report, select Print-Options from the menu bar.The Reports Options dialog box will be displayed as shown in the next figure:

• You can also specify the number of copies on this dialog box. Type a title (typeyour company name for example!) for the report and then click on either Print orPreview.

Page 209: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Wishbone Reports manual

Reports Tutorial

9 - 9

Figure 9 .15.Print - Options

• A dialog box as shown below will be displayed. Click on YES to modify thereport with the custom title.

Figure 9 .16.Format Options

• The report will be modified and will be previewed automatically with the customtitle. Refer to the figure below:

Figure 9 .17.Format Options �Custom Title

Page 210: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Wishbone Reports manual

Reports Tutorial

9 - 10

• Note that the default report title is also shown on the report.

9. Preview Window Controls:

• There are some useful controls on the Preview window. Some of the importantcontrols on the preview are (Refer also to the next figure):

• Refresh - If you updated your database, you need not create the reports again. Byclicking on the Refresh button you can re-post data from the database.

• Zoom Control: You can custom zoom the preview by selecting the percentageoptions in the zoom menu.

• Navigation buttons: These are used for going to the next/previous and first/lastpage of the report.

• Close button: This is for closing the report preview window.

Figure 9 .18.Format Options �Custom Title

10. Online Help

• To access help on the VIZAPP Reports Builder application, select Help-Contentsor click on the Help button on the tool bar. This will display the help file.

Page 211: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Wishbone Reports manual

Reports Tutorial

9 - 11

Figure 9 .19.Help

11. Exporting Reports:

Reports can be exported to the following common document types using the ReportsBuilder:

• Word for Windows (.DOC)

• Rich Text Format (.RTF)

• Text File (.TXT)

• Excel File (.XLS)

To export to Word:

• Open the report you created (PIDLABCRF.RPT) from the File-Open dialog. Youcan preview it by clicking on the preview button.

• Select Export from the menu bar or click on the Export button. The Export dialogbox as shown next will be displayed. Click on the down arrow on this dialog box.Select Word For Windows from this menu and then click on OK.

Page 212: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Wishbone Reports manual

Reports Tutorial

9 - 12

Figure 9 .20.Report Export

• The Choose Export File dialog box will be displayed next as shown below: TheFile Name for the export file is same as the report file, but has a differentextension (.DOC) and the path is same as that of the report file.

• You can choose a different path or different file name for the export file.

Figure 9 .21.Export File

• Click on the SAVE button when done. You can now open this file in Word andmodify or print it.

13. View the About box: Click on the C button on the tool bar: The About box will bedisplayed as in the next figure and display the version and copy right information. Youcan also view details about your computer system by clicking on the System Info on thisdialog.

Page 213: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Wishbone Reports manual

Reports Tutorial

9 - 13

Figure 9 .22.About

Page 214: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Wishbone Reports manual

Reports Tutorial

9 - 14

Notes:

Page 215: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

A1 - 1

A1 Creating a Tune List

A1.1 Foreword

During commissioning and normal operation it is desirable to change the tuningparameters from the front panel of the instrument. In addition, MOD 30ML allows theuser to create �tuning displays� that contain many other types of information includingrecipe parameters and lookup values. This lab leads you through creating a basic TuneList for a PID block, which is accessed by pressing and holding the Scroll key on the frontpanel. Although the Component Gallery contains a complete PID loop with algorithmblocks, Display block, and Tune List, it is useful to use the PID tuning list as an example.

A1.2 Objective

In this lab we will add a Tune List block to the PID strategy created in the PID Loop Lab,and configure it to show basic tuning and commissioning parameters. You will need theMod Function Block Diagram that you created in the PID Loop Lab.

A1.3 Instructions

Follow these instructions step-by-step to add and configure the Tune List block:

1. Adding a Tune List Block:

• Open the PIDLoop instrument document in the ViZapp workspace and then openthe loop compound that contains the PID and Display blcoks.

• Select the TL (Tune List) block from the Algorithms window and add it to thedocument next to the display block.

Page 216: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Creating a Tune List

A1 - 2

Figure A1 .1.Algorithms menu

2. Configure the Tune List inputs:

• Double-click on the TL block to configure: The TL block Properties will open.

• Click on the Inputs tab to add inputs.

Figure A1 .2.TL block

• Click on the Add button on this page/tab.

Page 217: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Creating a Tune List

A1 - 3

Figure A1 .3.Browse

• The Browse dialog will be displayed as shown above and will list all the blocksand compounds that are present in your document as a tree structure. These will beshown with box icons next to them meaning that there groups and there are furtheritems inside each group.

• You should see the FIC-100 block (the PID block) on this tree.

• Click on FIC-100 to open it. The tree will expand and will display the PID blockparameters.

Figure A1 .4.Browse

• Click on BGAIN (base gain) and then on the Add button at the bottom to add theGain to the Tune List. DO not hit the OK button !

Page 218: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Creating a Tune List

A1 - 4

• Select BRESET, BPREACT, ACTION, and CATYPE from this list and add themin the same way. In addition to the three tuning terms, Controller Action(ACTION) and Control Algorithm Type (CATYPE) are useful attributes to seeduring commissioning.

! You can select multiple attributes by pressing the Ctrl key on the keyboard and byclicking on them with the left mouse button. Hit the Add button after multipleselection to all the selected attributes.

Figure A1 .5.TL block

• Click on OK on the Browse dialog. This will redisplay the TL block Properties asshown above. The Inputs Tab will now display the attributes you just added.

! The attributes will be displayed with full source path name of the connections. Analias can be entered by selecting an item and typing in any alias name. This name willthen be displayed instead of the block tag and attribute name.

3. Configure text to be shown to the operator for each parameter:

• Double-click on Input 1 (1 in the first column). The Specify Input Data dialog boxappears as shown in the next figure.

• Type gain in the Display Format Name field, and GAIN in the Line 2 Text field.

Page 219: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Creating a Tune List

A1 - 5

Figure A1 .6.Tune List InputData

• Click on the OK button in the Specify Input Data dialog box.

• Repeat this procedure for the remaining inputs as follows:

Input Data Point Format name Line 2 Text

2 BRESET reset RESET

3 BPREACT preact PREACT

4 ACTION action ACTION

5 CATYPE PIDtype PID TYPE

• The Inputs tab of the TL Properties dialog box will look like the next figure afteryou added the required inputs.

Page 220: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Creating a Tune List

A1 - 6

Figure A1 .7.Tune List InputData

4. Define the display format for the inputs:

• Click on the Formats tab to add formats.

Page 221: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Creating a Tune List

A1 - 7

Figure A1 .8.TL block formats

• Click on the Add button on this page/tab. The Specify Format Data dialog boxappears.

• Fill in the format fields as shown in the diagram below, to add the followingformats (where there is a blank do not make an entry):

Name FormatType

LowLimit

HighLimit

Entry Method Eng.Units

DisplayState Table

EntryStateTable

PIDType State None PidTypT

Action State Enter Required PidActT PidActT

Gain Float2 .01 125 Enter required

Reset Float2 0 25 RPM

Preact Float2 0 32 MIN

• The Specify Format Data dialog box is shown in the next figure:

Page 222: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Creating a Tune List

A1 - 8

Figure A1 .9.Tune List FormatData for PIDtypeformat

✎ The Name(s) should match the format names that were assigned in the Input tab. TheFormat Type must match the data type of the input (e.g. gain is floating point with xdecimal places, PID type is State). This information may be found in the Help menusassociated with this dialog box). Entry method designates whether an operator entry isallowed, and if so, whether the data is accepted immediately or a confirmation isrequired. High and low limits may be entered if appropriate, along with Engineeringunits. To restrict the conditions under which a parameter may be changed, enter anexpression in the Allow edit when this expression is true field. Display and Entry statetables control text associated with the possible entries for the tuning parameter. Thistext is contained in the State Table Block. For additional information on state tables,refer to IB-1800R-SCR, Display Guide.

• The TL block should look like the next figure after you added the requiredformats.

• You can also change the name of the TL block to TuneList on the General tab ofthis block�s Properties.

Page 223: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Creating a Tune List

A1 - 9

Figure A1 .10.TL Block

• Close the dialog box and the Tune List block with the OK buttons.

5. Connect the Tune List block:

• Click on the Multi-Segment connection item on the Algorithms menu to enableconnection mode. See figure below:

Figure A1 .11.Algorithm -Connection

• Move to the workspace on the right and click on the TL block�s output connectionpoint as shown in the next figure. Notice that moving the cursor over the output ofa block, shows a fly-by box. This box shows the name of the output (for example,in this case LISTOUT).

Page 224: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

Training Manual

Creating a Tune List

A1 - 10

Figure A1 .12.Connecting blocks

• Move the cursor to the Display block�s input now. Moving the cursor will draw aline.

Figure A1 .13.Connecting blocks

• You will get a fly-by box that will say LISTIN when you move over the input.

• Click on the input of the Display block. See the figure above.

Figure A1 .14.Connecting blocks

• The connection will now be complete. The connection line will have the sourcename and destination name displayed right on it as shown in the above figure.

✎ Once the configuration has been compiled and downloaded to the controller, the TuneList attributes may be accessed by pressing and holding down the Scroll key.

Page 225: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

PRODUCTS AND SERVICING

A Comprehensive Instrumentation RangeSensors, transmitters and related instruments for flow,temperature, pressure, level and other process variables

Flowmeterselectromagnetic, ultrasonic, turbine, differential pressure,Wedge, rotary shunt, coriolis, vortex.

Differential Pressure transmittersSmart, electronic and pneumatic.

Temperaturesensors and transmitters, fiber optic systems.

Pressure transmitters

Levelsensors and controllers.

Tank gauging systems

Cable-length measuring systems

Indicators, recorders, controllers and processmanagement systems

Recorderscircular and strip-chart types - single and multi-point - fortemperature, pressure, flow and many other processmeasurements.

Controllersdigital display, electronic, pneumatic. Discrete single-loop andmulti-loop controllers which can be linked to a common displaystation, process computer or personal computer.

Pneumatic panel or rack-mounted display and controlinstrumentation

Liquid and gas monitors and analyzers for on-line andlaboratory applicationsSensorspH, redox, selective ion, conductivity and dissolved oxygen.

Monitors and Analyzersfor water quality monitoring in environmental and powergeneration and general industrial applications.

Packaged analytical instrumentation laboratories

Gas analyzersZirconia, paramagnetic, infrared, thermal conductivity.

Servicing

ABB Automation provides a comprehensive aftersales service via a Worldwide ServiceOrganization. Contact one of the following officesfor details on your nearest Service and RepairCenter.

United KingdomLondonABB Instrumentation LimitedTel: (1480) 470781FAX: (1480) 470787

United States of AmericaWarminster, PAABB Automation Inc.Tel: (215) 674-6000Fax: (215) 674-7183

ItalyPero (Milano)ABB Instrumentation S.p.A.Tel: 02 33928 252Fax: 02 33928 210

Page 226: ViZapp Training Manual - instrumentationrepair.com · technologies like OPC (OLE for Process Control), COM/DCOM, etc., and runs under Microsoft Windows 95, Windows NT and Windows

The Company�s policy is one of continuous productimprovement and the right is reserved to modifyspecifications contained herein without notice.

©1999 ABB Automation

IB-VIZAPP-TUT, Issue 2 2/00

ABB Instrumentation Ltd. ABB Automation Inc. ABB Automation Inc. ABB Instrumentation SpASt. Neots Cambs. 1175 John Street 125 East County Line Rd. Via Morandi, 4England, PE19 3EU West Henrietta, NY 14586-9781 Warminster, PA 18974-4995 20016 Pero (Milano), ItalyTel: (01480) 475321 Tel: (716) 292-6050 Tel: (215) 674-6000 Tel: (0344) 58111Fax: (01480) 217948 Fax: (716) 273-6207 Fax: (215) 674-7183 Fax: (0344) 56278