TUTORIAL Ethernet PLC's Improve Oxygen Consumption ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, 2001 1 Brad.

Slides:



Advertisements
Similar presentations
Yokogawa Network Solutions Presents:
Advertisements

Preferred Instruments CB-Hawk Replacement System Based on BurnerMate TS Technology A low-cost upgrade for obsolete CB-Hawk systems.
Microsoft ® Office 2007 Training Security II: Turn off the Message Bar and run code safely P J Human Resources Pte Ltd presents:
Inputs: Digital and 4 configurable for Digital or 10 bit Analog Outputs:4 - 8 amp Relays or 700ma Transistors (1 PWM) 4 Line by 18 Character fully.
1000 Friends of Florida Presentation on May 12, 2005 Presenter: Kart Vaith/CDM
Biological waste water treatment
Tutorial 8: Developing an Excel Application
Introduction to the Enhanced AIM When Q.i was first introduced, a ladder logic driver program – called the Application Interface Module (AIM) - was created.
2001 TAPPI PCE&I / ISA PUPID Joint ConferenceMarch 27, 2001Page 1 Automated Recovery Boiler Sootblowing Control System Barbara G. Haley; B.A., Accounting;
S88 structure used in system configuration
10 February Event Monitoring and Event File Maintenance.
1 Process Control and Data Acquisition Systems CM4120 Chemical Plant Operations.
EUT 1040 Lecture 10: Programmable Logic Controllers.
Switchgears Control Using SCADA System Based on PLC
CS320n –Visual Programming LabVIEW Foundations. Visual ProgrammingLabVIEW Foundations2 What We Will Do Today Hand back and review the midterm Look at.
Chapter 11 - Monitoring Server Performance1 Ch. 11 – Monitoring Server Performance MIS 431 – created Spring 2006.
Service Definer Roles NHS e-Referral Service
How organizations use ICT:. Technological advancements in  process monitoring,  control  and industrial automation in recent years have improved the.
Palletizing the Easy Way
Programming with Function Blocks
10 March Setup Users. 10 March Setup Users Window Allows you to perform several user tasks –Enroll users –Enable/disable users –Set user access.
Distributed Control Systems Emad Ali Chemical Engineering Department King SAUD University.
CHE 185 – PROCESS CONTROL AND DYNAMICS DCS AND PLC FUNDAMENTALS.
SIMCET  Real-Time PID Control Simulator for Training PID Tuning Real-Time Simulator (SIMCET Software) A product of PiControl.
DEMONSTRATION FOR SIGMA DATA ACQUISITION MODULES Tempatron Ltd Data Measurements Division Darwin Close Reading RG2 0TB UK T : +44 (0) F :
SCADA and Telemetry Presented By:.
Networking All talk - Selective listen Network up to 15 active nodes + 17 passive nodes Nexus/Discovery panels, network repeaters, R3 19” racks, Alarm.
Welcome to the Southeastern Louisiana University’s Online Employment Site Applicant Tutorial!
March 31st and April 1st, 2009Mile High Industrial and Automation Conference The Challenges in Upgrading Plant Automation for an Existing Wastewater Treatment.
Increasing Energy Efficiency at the Allegan WWTP MWEA/AWWA Joint Annual Conference August 19, 2010.
Introduction to LabVIEW
1 iSee Player Tutorial Using the Forest Biomass Accumulation Model as an Example ( Tutorial Developed by: (
Treatability Evaluation of Domestic Wastewater for a Rational Selection of Treatment Processes for a Rational Selection of Treatment Processes for Water.
Chapter 6 Control Using Wireless Throttling Valves.
Microsoft ® Office 2007 Training Security II: Turn off the Message Bar and run code safely presents:
Industrial Process Control System Simon Hui Engineer Control and Informatics, Industrial Centre.
Moodle (Course Management Systems). Assignments 1 Assignments are a refreshingly simple method for collecting student work. They are a simple and flexible.
4 May I/O Control. 4 May What is I/O Control? A Doors feature that allows you to program input events to drive output responses – for example:
MagicInfo Pro Scheduler Now that a template has been created from content imported into the Library, the user is ready to begin scheduling content to.
Programmable Logic Controller (PLC)
1. Insert the Resource CD into your CD-ROM drive, click Start and choose Run. In the field that appears, enter F:\XXX\Setup.exe (if “F” is the letter of.
Specview 32 Release 2.5 Enhancements
Topics of presentation
1 CE 548 II Fundamentals of Biological Treatment.
Figure 2. Decrease in K and NO 3 over time in (a) AN1, (b) AN2, (c) CA2. Best fit determined by moving average. Potential for using anaerobic settling.
FIX Eye FIX Eye Getting started: The guide EPAM Systems B2BITS.
1 PanelView ™ 300 Micro & MicroLogix ™ Lab 1. 2 Today you will receive training on the NEW PanelView 300 Micro operator terminal and the NEW version of.
New Features in DeltaV SimulatePro
Asttraining.com Scan Procedures for Ford EEC-V OBD II Systems.
Water. What is SmartMQn Water? SmartMQn Water is a packaged monitoring solution that uses sophisticated and easy to use preconfigured application software.
Prepared by: Engr. Qurban Ali Memon 11ES (SEC- 1 & 2)
Water Horner APG, LLC June 4, What is SmartMQn Water? SmartMQn Water is a packaged monitoring solution that uses sophisticated and easy to use preconfigured.
PROGRAMMABLE LOGIC CONTROLLER
© 2013 Eaton Corporation. All rights reserved. easy Programmable Relay Training Program Exercise 3.
Membrane Bioreactors for Wastewater Treatment.
Some of the utilities associated with the development of programs. These program development tools allow users to write and construct programs that the.
An Overview When Connecting to Yaskawa Drives Date: 8/14/06, Rev: PP.AFD.26.
Chapter 5 Armature Gap Sweep Workshop 4. Training Manual Electromagnetic Analysis in Workbench March 4, 2005 Inventory # Workshop #2: Armature.
WATER MANAGEMENT.
Sequencia Partner Tools 20 Minute OpenBatch Review 20 Minute OpenBatch Review Page: 1 3_21_ISA8895_Function_PhysicalProcessControl_OpenBatch_v2_en.pptx.
Lecture 10: Programmable Logic Controllers
Lesson 1.C PLC PROGRAMMING.
Modified Ludzack-Ettinger Wastewater Plant
PLC Terminology and Application
PLC’s Are ... Similar to a Microcontroller: Microprocessor Based
Digital Chart Recorder Operation
Training Module Introduction to the TB9100/P25 CG/P25 TAG Customer Service Software (CSS) Describes Release 3.95 for Trunked TB9100 and P25 TAG Release.
Advanced Wastewater Treatment
Presentation transcript:

TUTORIAL Ethernet PLC's Improve Oxygen Consumption ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, Brad S. Carlberg, P.E. BSC Engineering

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, This tutorial has 5 parts: PART 1:The Anoxic / Oxic Process PART 2A:PLC Programming Basics PART 2B:HMI Programming Basics PART 2C:Excel Spreadsheets & Visual Basic PART3:Conclusions & Acknowledgements PART4:Q & A

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, TUTORIAL Part 1 The Anoxic / Oxic Process: A “Real-World” Plant Application

The Anoxic/Oxic Process Modifications project was commissioned in the Spring of 2001 in Pensacola, Florida. ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, The Anoxic/Oxic Process The wastewater flows into each of the five parallel anoxic/oxic (A/O) trains (which are each 40’ x 200’ rectangular concrete “pools”) where the oxygen is added and the streams are vigorously mixed to remove the biological nutrients using a mass of microscopic plant and animal life that "eat" the organic solids in the wastewater. The Anoxic/Oxic Process is part of the Secondary Treatment of the municipal sewage. It is here that oxygen is added to the waste stream.

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, A biological nitrogen cycle (where nitrogen in wastewater is removed by becoming N2 gas) is performed using primary effluent for the influent to the A/O process. It is possible to feed the influent to each of the five trains using the five, respective anoxic mixers, mixers, and surface aerators. The process makes use of an anoxic zone where a biological mass of organisms splits oxygen away from the nitrate molecule. The process releases nitrogen from the treated wastewater. Then in the oxic zones, air bubbles into the mix and is used by the organisms to form a collection of suspended particles or floc which are continuously removed further down the process in the secondary clarifiers. The Nitrogen Cycle

Effluent NH 4 -N and NO 3 -N concentrations were formulated with four parameters: ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,  Equivalent ratio of alkalinity to ammonia in influent  Equivalent ratio of alkalinity to substrate to ammonia  Ratio of influent to the anoxic cell  Recycle Ratio We can increase the efficiency of the nitrogen removal by optimizing these factors.

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, Mixed Liquor RecycleThe anoxic cells are located prior to the oxic cells as shown in the figure below. Nitrates are returned to the anoxic cells from the oxic cells via the mixed liquor recycle line. Train Picture

Use of BacteriaThe biological treatment of wastewater is performed by means of different cultures of bacteria that are found everywhere in Nature and are consequently quite harmless. The aim of the Anoxic/Oxic process is to create the best possible living conditions for the special groups of natural bacteria, Nitrifying and Denitrifying Bacteria, which are used to remove NITROGEN from the wastewater. ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, The purpose of Denitrifying Bacteria is to take up organic matter using the Nitrifying Bacteria’s NITRATE as energy source. This results in GASEOUS NITROGEN, which is completely harmless (78% of the atmosphere consists of nitrogen). Contrary to Nitrifying Bacteria, Denitrifying Bacteria can only work when there is NO FREE OXYGEN present - we call this ANOXIC or ANAEROBIC conditions.

The purpose of Nitrifying Bacteria is to convert the content of AMMONIA in the raw wastewater into NITRATE. ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, Nitrifying Bacteria and Denitrifying Bacteria are in the same aeration basin. Nitrifying Bacteria can only work when there is plenty of oxygen in the wastewater - also referred to as oxic or aerobic conditions. Since Nitrifying Bacteria NEEDS Oxygen and Denitrifying Bacteria DISLIKES Oxygen, Denitrifying Bacteria only acts in the ANOXIC CELLS, and when oxygen is introduced into the wastewater stream in the OXIC CELLS, Nitrifying Bacteria converts ammonia into nitrate to give Denitrifying Bacteria something to work with. The process that is called NITRIFICATION. B ut Nitrifying Bacteria and Denitrifying Bacteria CANNOT work in the same conditions.

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, Since "fresh" wastewater is continually introduced into the ANOXIC CELLS of each aeration train, the concentration of ammonia is kept high, so that the Denitrifying Bacteria can take up organic matter. The supply of OXYGEN must be closely controlled so that nitrifying bacteria will convert almost all of the AMMONIA in the wastewater. This means that Nitrifying Bacteria can take a well-deserved rest. When the wastewater stream is recycled to the anoxic cell, the Denitrifying Bacteria start taking up organic matter. The Denitrifying Bacteria use the Oxygen in the Nitrate as fuel and instead releases GASEOUS NITROGEN and water. Then as the flow moves on to the OXIC CELLS, oxygen is added to "feed" the Nitrifying Bacteria. In this way the two types of bacteria work together acting on the wastewater stream using the two alternate methods.

Factors Effecting Process Performance ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,  Configuration and volume of anoxic and oxic cells  Addition points and proportions of oxygen addition  Supplementation of carbon source (such as methanol) to enhance the denitrification rate  Amount of wastewater treated per day  Water temperature and concentration of the bacteria to the process The factors which influence the process performance of nitrogen removal are:

The process incorporates second and third anoxic cells into the treatment scheme in order to meet the effluent limitations using four measured variables: ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, Biological Oxygen Demand (BOD) Suspended Solids (SS) Total Nitrogen (TN) Total Phosphorous (TP)

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, The principles of advanced biological treatment are not at all complicated. The balance and sequence of events, however, require perfect control and understanding. Therefore, the plant control functions are performed in the programmable logic controller (PLC) which monitors and controls flows, opens and closes valves, starts and stops pumps and monitors and controls the pump speeds, and communicates with the Human Machine Interface (HMI) process computer.

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, The HMI allows the operators to view the process in real-time and via past, archived process trends and, when necessary, make process changes. The HMI also allows advanced control and decision-making to be implemented. A local control panel is located adjacent to the aeration basin so that, in the unlikely event of an automated system failure, plant staff can continue the operation with manual process controls.

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

Train Details ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, Details about a particular Train can be viewed by selecting the Train from the Menu on the bottom of each display. When a specific Train is selected, the specific Train display will be called up and details about the selected Train will be displayed on the new display.

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, Selecting A Control Level For Oxygen AdditionFor the Oxygen addition in the Anoxic / Oxic Process there is a corresponding touch target (by touching either the valve or the flowmeter) to change control levels on the popup that replaces the menu on the bottom of each display. When one of these touch targets is selected, the popup will appear at the bottom of the display containing the various control levels available for the Oxygen flow control. To change control levels, select the desired control level from the popup. After a control level has been selected the PLC control program will place the flow controller in the appropriate mode and start taking applicable setpoint to the flow controller.

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, The operator can at any time set the flow controller back to AUTO or MAN or any other mode without having to use the Summary display to take it off control. The PLC control program will not automatically put it back into either Ratio or Cascade. Important Note:

Control LevelsThe following control levels are available for Oxygen: ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, Oxygen Control Levels  Cascade from Cell 3 Dissolved Oxygen probe  Ratio from Discharge flow  Auto/Manual Control

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, Oxygen Advanced Control Cascade from Dissolved Oxygen The Oxygen addition is controlled by receiving a remote setpoint from the Cell 3 Entrance Dissolved Oxygen signal. Ratio from Discharge flow The PLC control program changes the Oxygen flow setpoint to maintain a constant Train Discharge flow PV. The Train Discharge flow PV is read from the magnetic flow transmitter.

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

The following control levels are available for the Recycle flow: ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, The PLC control program changes the Recycle flow setpoint to maintain a constant ratio of the Train Discharge flow PV by adjusting the Mixed Liquor Recycle pump speed. The Train Discharge flow PV is read from the magnetic flow transmitter.  Ratio from Discharge flow  Auto-Manual Control

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

The following control levels are available for the PD Blowers:  Timed Mode  Dissolved Oxygen Mode  Manual Mode ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, In Dissolved Oxygen (DO) Mode, the following control levels are available for the PD Blowers:  Low Dissolved Oxygen point to Start PD Blower  High Dissolved Oxygen point to Stop PD Blower In Timed Mode, he following control levels are available for the PD Blowers:  Minutes to be running  Minutes to be stopped

Motor Popup The following information is available for each motor control from the respective motor popup: ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,  Tagname and Description  Start / Stop Pushbutton  Motor Running / Stopped Status Colored (Red / Green) Box  Alarm Reset / Normal Pushbutton  Remote / Local Indication from H-O-A switch in field

Aerator Control Motor Popup Like all motors, the following information is available for the Aerator motor control from the motor popup: ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, Additionally, the Aerators all have popups for the speed control:  Speed Control  Tagname and Description  Start / Stop Pushbutton  Motor Running / Stopped Status Colored (Red / Green) Box  Alarm Reset / Normal Pushbutton  Remote / Local Indication from H-O-A switch in field

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

Motor Popup Surface Aerator Control The following information is available for motor control from the motor popup: ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,  Tagname and Description  Start / Stop Pushbutton  Alarm Reset Pushbutton  Remote / Local Indication from H-O-A switch in field  Speed Control  Dissolved Oxygen High and Low Setpoints

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

Lower Explosive Level (L.E.L.) ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,  Each train has a digital input that tells whether the combustible gas is detected  ALL of the train oxygen supply valves will be CLOSED if ANY train has combustible detected. The following information is available for the Lower Explosive Level (L.E.L.) system:

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

This trend display is used to allow the operators to view the histories of the process values. The trend data can also be saved to a CSV (comma-separated-value) file and archived to the hard drive of the personal computer of the operator console. The data can then be pulled into another program (like Microsoft Excel). Trending ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

The configuration of the human machine interface (HMI) has been done in such a way so that there is a look and feel of a "traditional DCS". The key features are: ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, Like a DCS  A touch target to call up one of 14 generic popup for each point type that replaces the menu on the bottom of the display for every dynamic item on any graphic display.  Internal point tags (Indirect Analog, Indirect Discrete, IO Message; Memory Discrete, Memory Integer, and Memory Message) are used in the popups instead of "hard-coding" the specific "real-world" tags into an individual popup displays Analog Input, HIC (or Analog Output), PID (or Analog Composite), PID WITH AUTO & CASCADE & RATIO, PID WITH AUTO & RATIO, Digin, Motor Status, DigOut, Motor (or Digital Composite), Motor with ILock and Perm, Numeric, Set Timers, Alarm Detail, and Alarm Tags.

 A single generic trend display to trend ALL "trendable" (archived) points: Alarm Management ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, An operator can acknowledge or silence either (a)An individual alarm (b)A page of alarms (c)ALL alarms Alarms can be sorted by (a)Alarm Group (b)Priority (c)Acknowledged or Unacknowledged  A "Distributed Alarm Summary" has been used to give better alarm management tools: Up to eight trend pens on the trend display. The operator picks which values to trend by "clicking" in the center of the trend display. The trend data can be sent to a "comma-separated-value" (CSV) file so that the data can be evaluated on another computer or with another program.

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

The Anoxic/Oxic Process Modifications Control System is designed to monitor, facilitate control, and improve the efficiency of the Anoxic / Oxic Process operation. This paper describes the controls and features associated with this package. ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, The Control Summary Display provides access to the controls for each of the Treatment Trains. This display is the primary interface to the controls and the display that is most used by the operator. Conclusions

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, The following control levels are available for Oxygen: 1. Cascade from Dissolved Oxygen 2. Ratio from Discharge flow 3. Auto-Manual Control The following control levels are available for the Recycle flow: 1. Ratio from Discharge flow 2. Auto-Manual Control The following control levels are available for the PD Blowers: 3. Timed Mode 2. Dissolved Oxygen Mode 3. Manual Mode Conclusions

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, Following the commissioning of the ethernet-based PLC's Oxygen consumption was significantly reduced. The advanced controls allow the operators to leave the process alone and continue to optimally treat the sewage. Conclusions

Following the commissioning of the ethernet-based PLC's Anoxic/Oxic Process Modifications Control System, the efficiency of the Anoxic / Oxic Process operation improved and the Oxygen consumption was significantly reduced by implementing Cascade control of Oxygen from the Dissolved Oxygen probes. ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, Summary The PD Blowers ran in Timed Mode and/or or Dissolved Oxygen Mode to keep the oxygen level in the acceptable range for the anoxic cell allowing the recycle flow to operate optimally. The Mixed Liquor Recycle variable-frequency pumps controlled the flow based on a ratio from Discharge flow allowing the recycle flow to operate optimally. The advanced controls allow the operators to leave the process alone and continue to optimally treat the sewage.

The smooth commissioning would not have been possible without the joint efforts of the construction electricians of Total Electric and assistance from Phoenix Construction. In particular, Don Martin, the Total Electric Lead Electrician, Mike Brown, Phoenix Construction Project Manger, and David Glaze, Project Superintendent. Field instrumentation calibration assistance also came from "the IC Doctor", David Chasteen. ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, Acknowledgements Further, the advanced control of this control system upgrade would not have been used without a concerted effort from the operators, technicians, and engineering staff of the Escambia County Utilities Authority's Main Street Wastewater treatment plant. In particular; Larry Scott, Terry Platz, Carney Hamilton, and Steve Holcomb. Finally, it would not have been possible for me to complete this project without assistance from ABB Instrumentation Systems Project Manager Dan Kennedy.

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, TUTORIAL Part 2A PLC Programming Basics

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, Separate parts of the process have been organized into a separate “SECTION” PLC Program Organization Each “SECTION” can be any of the IEC programming types: Ladder (LD) Structured Text (ST) Instruction List (IL) Function Blocks (FB) Sequential Function Charts (SFC)

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, I/O Map On-Line PLC Diagnostics PLC Status PLC Simulator Ethernet (TCP/IP) Address

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, Structured Text was used here, NOT Ladder Programming for Motors The PLC DOES NOT CARE, Structured Text Functions EXACTLY the same as Ladder! Use what you’re comfortable with!

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, IEC Function Blocks Used Here Programming for Analogs & PID

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, Sequential Function Charts were used here Higher-Level Control SFC’s lend themselves well to (as the name would imply) sequential processes Three Important components in SFC’s: Transitions Steps Jumps The status of the process can be viewed as a flow chart

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, PLC - HMI Communication A “PLC Heartbeat” is traditionally used to monitor the PLC - HMI Communication; sometimes called a”Watchdog Timer” Call it whatever you want but the PLC & HMI check each other with the PLC turning ON (or OFF) a switch AND then the the HMI turning OFF (or ON) the switch; if either “dies” then that switch doesn’t change state and an alarm alerts the operator.

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, TUTORIAL Part 2B HMI Programming

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, Ethernet (TCP/IP) I/O Driver The Ethernet (TCP/IP) I/O Driver allows the HMI to communicate with the PLC (In this case, the driver is called MBENET.EXE) The PLC has an ethernet module in one of the slots that has a “CAT5/RJ-45” receptacle for the ethernet cable The PC running the HMI has an ethernet module (Network Interface Card) in one of its slots that has a “CAT5/RJ-45” receptacle for the ethernet cable

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, Operator Screens & Popup Displays The display is laid out in 3 sections: Upper -Security & Alarm Window Middle-Main Operator Screens Lower-Menu & Popup Displays

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, Scripting There are 6 types of “Scripts”: Application Scripts Key Scripts Condition Scripts Data Change Scripts Quick Function Scripts ActiveX Event Scripts

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, Access Names The “Access Names” Must be configured to allow the PLC - HMI communications. Note that the “Application/Topic” is the same as the I/O Driver! The “computer name” is the name of the PC that the HMI is running on (brad_s_carlberg in this case)!

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, Indirect Tags “Indirect Tags” were used here to minimize the number of popup displays. This is especially useful in HMI’s with many tags. ONLY 12 popup displays are reused throughout the HMI. This gives the HMI a “DCS-Like” Look & Feel

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, Popup Display Types The tag point type determines which popup display to use: Analog Input HIC (or Analog Output) PID (or Analog Composite) PID WITH AUTO & CASCADE & RATIO PID WITH AUTO & RATIO Digin Motor Status DigOut Motor (or Digital Composite) Motor with ILock and Perm Numeric Set Timers Alarm Detail Alarm Tags

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, Bars, Buttons & Sliders By choosing to use indirect tags we complicate the Bar Graphs, Buttons, & Sliders in the popup displays. Different scales need to be used for different engineering unit ranges

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, Popup Displays The next two pages shows how the individual popup displays use the indirect tags

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, Adding a “Touch Target” to a Display 2.Tell which tags to use 3.Tell which popup display to call up What kind of point type is it? 3 Steps: 1.Tell which scale to use (if it’s an analog point type)

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, TUTORIAL Part 2C Excel Spreadsheets & Visual Basic

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, A “CHEAP & DIRTY” HMI With Excel The 4 key parameters are: To communicate with the PLC: Use \\brad_s_carlberg\mbenet|ANOXIC_OXIC!’plcregister’ Excel uses “peeks” & “pokes” to read from & write to a PLC or HMI To communicate with the HMI: \\brad_s_carlberg\view|Tagname!’tagname’ computer name application topic item

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, Excel Macros “Request” Macro to read values “Poke” Macro to write values A Sample Excel Macro

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, Sub PokeMacro() MsgBox Application.NetworkTemplatesPath Channel = Application.DDEInitiate(app:="\\brad_s_carlberg\VIEW", topic:="Tagname") 'This opens a DDE channel to View 'Application.DDEPoke Channel, "Temperature1", Worksheets("Sheet1").Range("A1") 'Puts value from R1C1 into Temperature1 'Application.DDEPoke Channel, "DDEReal", Worksheets("Sheet1").Range("A2") 'Puts value from R1C1 into Temperature1 'Application.DDEPoke Channel, "DDEInteger", Worksheets("Sheet1").Range("A3") 'Puts value from R1C1 into Temperature1 Application.DDETerminate Channel 'This terminates the DDE channel End Sub Sub RequestMacro() Channel = Application.DDEInitiate(app:="\\brad_s_carlberg\VIEW", topic:="Tagname") 'This opens a DDE channel to View Worksheets("Sheet1").Range("C4") = Application.DDERequest(Channel, "$Hour") Worksheets("Sheet1").Range("C5") = Application.DDERequest(Channel, "$Minute") Worksheets("Sheet1").Range("C6") = Application.DDERequest(Channel, "$Second") Worksheets("Sheet1").Range("C9") = Application.DDERequest(Channel, "$day") Worksheets("Sheet1").Range("C10") = Application.DDERequest(Channel, "$date") Worksheets("Sheet1").Range("C11") = Application.DDERequest(Channel, "$datestring") Worksheets("Sheet1").Range("C12") = Application.DDERequest(Channel, "$datetime") Worksheets("Sheet1").Range("C13") = Application.DDERequest(Channel, "$date") Worksheets("Sheet1").Range("C14") = Application.DDERequest(Channel, "$month") Worksheets("Sheet1").Range("C15") = Application.DDERequest(Channel, "$year") Worksheets("Sheet1").Range("C16") = Application.DDERequest(Channel, "$time") Worksheets("Sheet1").Range("C17") = Application.DDERequest(Channel, "$timestring") Worksheets("Sheet1").Range("C18") = Application.DDERequest(Channel, "$applicationversion") Worksheets("Sheet1").Range("C19") = Application.DDERequest(Channel, "$startddeconversations") Worksheets("Sheet1").Range("C20") = Application.DDERequest(Channel, "$accesslevel") Worksheets("Sheet1").Range("C21") = Application.DDERequest(Channel, "$alarmlogging") Worksheets("Sheet1").Range("C22") = Application.DDERequest(Channel, "$applicationchanged") Worksheets("Sheet1").Range("C23") = Application.DDERequest(Channel, "$configureusers") Worksheets("Sheet1").Range("C24") = Application.DDERequest(Channel, "$changepassword") Worksheets("Sheet1").Range("C25") = Application.DDERequest(Channel, "$InactivityTimeout") Worksheets("Sheet1").Range("C26") = Application.DDERequest(Channel, "$InactivityWarning") Worksheets("Sheet1").Range("C27") = Application.DDERequest(Channel, "$LogicRunning") Worksheets("Sheet1").Range("C28") = Application.DDERequest(Channel, "$OperatorEntered") Worksheets("Sheet1").Range("C29") = Application.DDERequest(Channel, "$Operator") Worksheets("Sheet1").Range("C30") = Application.DDERequest(Channel, "$PasswordEntered") Application.DDETerminate Channel 'This terminates the DDE channel End Sub

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, Visual Basic “Roll Your Own” HMI - Much More powerful than Excel Key Parameters: \\computer name\application|topic!item I/O Emulator - MBPlusSimulate.exe Can “Read From” & “Write To” PLC and/or HMI

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11,

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, Dim PauseTime, Start, Finish, TotalTime As Integer ' Declare variables Private Sub txtAIT_332A_SCALED_Change() On Error GoTo PokeAIT_332AError txtAIT_332A_SCALED.LinkMode = 0 PauseTime = 1000 ' Set duration. Start = Timer ' Set start time. Do While Timer < Start + PauseTime txtAIT_332A_SCALED.Text = Int((3 * Rnd) + 20) ' Generate random value between 20 and 23. txtAIT_332A_SCALED.LinkTopic = "\\brad_s_carlberg\View|Tagname" txtAIT_332A_SCALED.LinkItem = "AIT_332A_SCALED" txtAIT_332A_SCALED.LinkMode = 2 txtAIT_332A_SCALED.LinkPoke txtAIT_332A_SCALED.LinkMode = 0 DoEvents ' Yield to other processes. Loop Finish = Timer ' Set end time. TotalTime = Finish - Start ' Calculate total time. PokeAIT_332AError: Select Case Err Case 282 MsgBox "Foreign Application " & txtAIT_332A_SCALED.LinkTopic & " did not respond to a DDE initiate" Case 286 MsgBox "Timeout waiting for a response" Case 292 MsgBox "DDE conversation closed or changed" Case 293 MsgBox "DDE method attempted without DDE channel open" Case 297 MsgBox "Can't set LinkMode; invalid link topic" Case Else End Select Resume Next End Sub

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, Private Sub txtAIT_346A_SCALED_Change() On Error GoTo PokeAIT_346AError txtAIT_346A_SCALED.LinkMode = 0 PauseTime = 1000 ' Set duration. Start = Timer ' Set start time. Do While Timer < Start + PauseTime txtAIT_346A_SCALED.Text = Int((3 * Rnd) + 15) ' Generate random value between 15 and 18. txtAIT_346A_SCALED.LinkTopic = "\\brad_s_carlberg\View|Tagname" txtAIT_346A_SCALED.LinkItem = "AIT_346A_SCALED" txtAIT_346A_SCALED.LinkMode = 2 txtAIT_346A_SCALED.LinkPoke txtAIT_346A_SCALED.LinkMode = 0 DoEvents ' Yield to other processes. Loop Finish = Timer ' Set end time. TotalTime = Finish - Start ' Calculate total time. PokeAIT_346AError: Select Case Err Case 282 MsgBox "Foreign Application " & txtAIT_346A_SCALED.LinkTopic & " did not respond to a DDE initiate" Case 286 MsgBox "Timeout waiting for a response" Case 292 MsgBox "DDE conversation closed or changed" Case 293 MsgBox "DDE method attempted without DDE channel open" Case 297 MsgBox "Can't set LinkMode; invalid link topic" Case Else End Select Resume Next End Sub

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, Private Sub txtFIT_321A_SCALED_Change() On Error GoTo PokeFIT_321AError txtFIT_321A_SCALED.LinkMode = 0 PauseTime = 1000 ' Set duration. Start = Timer ' Set start time. Do While Timer < Start + PauseTime txtFIT_321A_SCALED.Text = Int((10 * Rnd) + 120) ' Generate random value between 120 and 130. txtFIT_321A_SCALED.LinkTopic = "\\brad_s_carlberg\View|Tagname" txtFIT_321A_SCALED.LinkItem = "FIT_321A_SCALED" txtFIT_321A_SCALED.LinkMode = 2 txtFIT_321A_SCALED.LinkPoke txtFIT_321A_SCALED.LinkMode = 0 DoEvents ' Yield to other processes. Loop Finish = Timer ' Set end time. TotalTime = Finish - Start ' Calculate total time. PokeFIT_321AError: Select Case Err Case 282 MsgBox "Foreign Application " & txtFIT_321A_SCALED.LinkTopic & " did not respond to a DDE initiate" Case 286 MsgBox "Timeout waiting for a response" Case 292 MsgBox "DDE conversation closed or changed" Case 293 MsgBox "DDE method attempted without DDE channel open" Case 297 MsgBox "Can't set LinkMode; invalid link topic" Case Else End Select Resume Next End Sub

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, Private Sub txtFIT_341A_SCALED_Change() On Error GoTo PokeFIT_341AError txtFIT_341A_SCALED.LinkMode = 0 PauseTime = 1000 ' Set duration. Start = Timer ' Set start time. Do While Timer < Start + PauseTime txtFIT_341A_SCALED.Text = Int((3 * Rnd) + 18) ' Generate random value between 18 and 21. txtFIT_341A_SCALED.LinkTopic = "\\brad_s_carlberg\View|Tagname" txtFIT_341A_SCALED.LinkItem = "FIT_341A_SCALED" txtFIT_341A_SCALED.LinkMode = 2 txtFIT_341A_SCALED.LinkPoke txtFIT_341A_SCALED.LinkMode = 0 DoEvents ' Yield to other processes. Loop Finish = Timer ' Set end time. TotalTime = Finish - Start ' Calculate total time. PokeFIT_341AError: Select Case Err Case 282 MsgBox "Foreign Application " & txtFIT_341A_SCALED.LinkTopic & " did not respond to a DDE initiate" Case 286 MsgBox "Timeout waiting for a response" Case 292 MsgBox "DDE conversation closed or changed" Case 293 MsgBox "DDE method attempted without DDE channel open" Case 297 MsgBox "Can't set LinkMode; invalid link topic" Case Else End Select Resume Next End Sub

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, Private Sub txtFIT_343A_SCALED_Change() On Error GoTo PokeFIT_343AError txtFIT_343A_SCALED.LinkMode = 0 PauseTime = 1000 ' Set duration. Start = Timer ' Set start time. Do While Timer < Start + PauseTime txtFIT_343A_SCALED.Text = Int((1 * Rnd) + 3) ' Generate random value between 3 and 4. txtFIT_343A_SCALED.LinkTopic = "\\brad_s_carlberg\View|Tagname" txtFIT_343A_SCALED.LinkItem = "FIT_343A_SCALED" txtFIT_343A_SCALED.LinkMode = 2 txtFIT_343A_SCALED.LinkPoke txtFIT_343A_SCALED.LinkMode = 0 DoEvents ' Yield to other processes. Loop Finish = Timer ' Set end time. TotalTime = Finish - Start ' Calculate total time. PokeFIT_343AError: Select Case Err Case 282 MsgBox "Foreign Application " & txtFIT_343A_SCALED.LinkTopic & " did not respond to a DDE initiate" Case 286 MsgBox "Timeout waiting for a response" Case 292 MsgBox "DDE conversation closed or changed" Case 293 MsgBox "DDE method attempted without DDE channel open" Case 297 MsgBox "Can't set LinkMode; invalid link topic" Case Else End Select Resume Next End Sub

ISA Expo/2001Houston, Texas Water & Wastewater Industry DivisionTuesday, September 11, TUTORIAL Part 4 Questions & Answers