You are on page 1of 208

User’s Guide

Doc ID LOOP-UM001B-EN-P
ii RSLoop Optimizer User’s Guide
.....
Contacting Technical Support Telephone — 440-646-7800
Rockwell Software Technical Support Fax — 440-646-7801
World Wide Web—www.software.rockwell.com
Copyright Notice ©2000-2001 Rockwell Software Inc. All rights reserved.
Printed in the United States of America
Portions copyrighted by Allen-Bradley Company, Inc., and used with permission.
This manual and any accompanying Rockwell Software products are copyrighted by Rockwell
Software Inc. Any reproduction and/or distribution without prior written consent from Rockwell
Software Inc. is strictly prohibited. Please refer to the license agreement for details.
Trademark Notices WINtelligent Series is a registered trademark, and the Rockwell Software and RSBizWare logos,
RSAlarm, RSAnimator, RSAssistant, RSBizWare Batch, RSBizWare BatchERP,
RSBizWare eProcedure, RSBizWare MaterialTrack, RSBatch, RSBatch eProcedure,
RSBatch Production Manager, RSBizWare BatchCampaign, RSBizWare Historian,
RSBizWare Scheduler, RSBizWare ComplianceTrack, RSBizWare PlantMetrics, RSBreakerBox,
RSButton, RSChart, RSCompare, RSControlRoom, RSData, RSDataPlayer, RSEventMaster,
RSGauge, RSJunctionBox, RSLogix Emulate 5, RSLogix Emulate 500, RSGuardian, RSHarmony,
RSKeys, RSLadder, RSLadder 5, RSLadder 500, RSLinx, RSLinx Gateway, RSLogix, RSLogix 5,
RSLogix 500, RSLogix 5000, RSLogix Frameworks, RSLogix SL5, RSMailman, RSNetWorx,
RSPocketLogix, MaintenanCE Suite, RSMATE, Security Server, RSPortal, RSPower, RSPower32,
RSEnergy, RSPowerCFG, RSPowerRUN, RSPowerTools, RSRules, RSServer32, RSServer,
RSServer OPC Toolkit, RSSidewinderX, RSSlider, RSSnapshot, RSSql, RSToolbox, RSToolPak I,
RSToolPak II, RSTools, RSTrainer, RSTrend, RSTune, RSLoop Optimizer, RSVessel, RSView32,
RSView, RSView32 Messenger, RSView32 TrendX, RSView32 RecipePro, RSView32 SPC,
RSView32 GEMTool, RSView32 SECSHost, RSView32 Active Display System, RSView32 Active
Display Station, RSView32 Active Display Server, RSView32 WebServer, RSView32 DataLyzor,
RSView Enterprise Series, RSView Machine Edition, RSView Supervisory Edition, RSVisualLogix,
RSWheel, RSWire, RSWire Designer, RSWire Detailer, RSWire I/O Builder, RSWire Docx,
RSWorkbench, RSWorkshop, SoftLogix 5, A.I. Series, Advanced Interface (A.I.) Series,
AdvanceDDE, AutomationPak, ControlGuardian, ControlPak, ControlView, INTERCHANGE,
Library Manager, Logic Wizard, Packed DDE, ProcessPak, ProcessPak5, ProcessPak5 for Batch,
View Wizard, WINtelligent, WINtelligent LINX, WINtelligent LOGIC 5, WINtelligent VIEW,
WINtelligent RECIPE, WINtelligent VISION, and WINtelligent VISION2 are trademarks of
Rockwell Software Inc.
ProcessLogix, PLC, PLC-2, PLC-3 and PLC-5 are registered trademarks, and Data Highway Plus,
DH+, DHII, DTL, MicroLogix, Network DTL, PowerText, Pyramid Integrator, PanelBuilder,
PanelView, PLC-5/250, PLC-5/20E, PLC-5/40E, PLC-5/80E, SLC, SLC 5/01, SLC 5/02, SLC 5/ 03,
SLC 5/04, SLC 5/05, SLC 500, and SoftLogix are trademarks of the Allen-Bradley Company, Inc.
Microsoft, MS-DOS, Windows, Windows NT, ActiveX, Visual Basic, Visual C++, Visual J++, and
Visio are registered trademarks, and Microsoft Access and Visual SourceSafe are trademark of the
Microsoft Corporation.
ControlNet is a trademark of ControlNet International.
DeviceNet is a trademark of the Open DeviceNet Vendors Association.
Ethernet is a registered trademark of Digital Equipment Corporation, Intel, and Xerox Corporation.
Pentium is a registered trademark of the Intel Corporation.
Adobe and Acrobat are trademarks of Adobe Systems Incorporated.
IBM is a registered trademark of International Business Machines Corporation. AIX, PowerPC,
Power Series, RISC System/6000 are trademarks of International Business Machines Corporation.
UNIX is a registered trademark in the United States and other countries, licensed exclusively through
X/Open Company Limited.
AutoCAD is a registered trademark of Autodesk, Inc.
All other trademarks are the property of their respective holders and are hereby acknowledged.

RSLoop Optimizer User’s Guide iii


Warranty This Rockwell Software product is warranted in accord with the product license. The product's
performance will be affected by system configuration, the application being performed, operator
control and other related factors.
The product's implementation may vary among users.
This manual is as up-to-date as possible at the time of printing; however, the accompanying software
may have changed since that time. Rockwell Software reserves the right to change any information
contained in this manual or the software at any time without prior notice.
The instructions in this manual do not claim to cover all the details or variations in the equipment,
procedure, or process described, nor to provide directions for meeting every possible contingency
during installation, operation, or maintenance.

iv RSLoop Optimizer User’s Guide


CONTENTS
..................................................
Introduction 1
What is RSLoop Optimizer? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
RSLoop Optimizer Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
System and Software Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Data Analysis Tools of RSLoop Optimizer. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
System and Software Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

Installation 5
Setting up RSLinx for RSLoop Optimizer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Setting up ProcessLogix for RSLoop Optimizer. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Installing RSLoop Optimizer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Starting the RSLoop Optimizer Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Configuring a Loop to Communicate with a Processor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Browsing OPC Item Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Editing and Deleting Loops. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Editing an Existing Loop. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Deleting a Loop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Testing Communications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Troubleshooting Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

Quick Start 17
Tuning a Loop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Guidelines for Optimizing Loops . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

Tuning Theory 21
Description of Proportional, Integral, and Derivative Control . . . . . . . . . . . . . . . . . . . . . . . . . . 21
PID Loop Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Proportional Only Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Proportional Plus Integral (PI) Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Proportional Plus Integral Plus Derivative (PID) Control. . . . . . . . . . . . . . . . . . . . . . . . . . 24
RSLoop Optimizer Theory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Tuning Types. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25

Using RSLoop Optimizer 27


Faceplate and Trend Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Turn On Archiving . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29

RSLoop Optimizer User’s Guide v


CONTENTS

Changing the Display of the Faceplate and Trend Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29


Changing the Trend Display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Changing the Span, Colors, and Decimal Places . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Changing the Value of the Left and Right Axes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Changing the Display of the Faceplate and Trend Window . . . . . . . . . . . . . . . . . . . . . . . . 32
Changing Controller Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Changing the Setpoint and Controller Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Changing the Controller Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Debugging Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Options Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Faceplate Buttons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Tune from Archived Data Button . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
AutoTune Button . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Close Button . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Simulate Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Using the Off-Line Analysis & PID Tuning Screen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Creating a Report for a Control Loop. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
About the Report. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Adding To a Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Setting Up an Extra Trend . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Extra Trends Communications Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Filter Address Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Setting up Extra Loops . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Using the Extra Trends and Extra Loops . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50

Tuning Control Loops 53


Collecting Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Using AutoTune to Collect Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Manually Collecting Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Collecting Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Data Pair and Sample Interval Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Using Archived Data Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Archiving Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Using Archived Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Tuning from Archived Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Deleting Archived Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Adding Notes to an Archived Data File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Saving Archived Data to a Different Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Using the PID and PV Filter Display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Changing and Downloading PIDF Parameters to the Controller . . . . . . . . . . . . . . . . . . . . 62

vi RSLoop Optimizer User’s Guide


.....
CONTENTS

Using the Time Data Window 65


Changing the Time Data Window Display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Scaling the Y-Axis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Changing Line Weight . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Changing the Graph Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Calculating Tuning Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Controller Tuning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Using the PID Grid to Check Relative Response Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
Editing Data in the Time Data Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Zooming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Averaging Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Changing Data Points to a Line. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Filtering Data. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
Saving Changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Verifying Data Using the Time Data Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Statistical Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Histogram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
Hysteresis Check . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
Adding Data from the Time Data Window to the Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
Using Power Spectral Density Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
Collecting Data for Power Spectral Density Graphs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
Options for Viewing Power Spectral Density Graphs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
Zooming and Omitting Zero Frequency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
Scaling the Y-Axis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
Increasing the Number of Data Pairs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Using Cross and Auto Correlation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Loop Summary Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
Column Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88

Using the Output Characterizer 91


Example of When to Use the Output Characterizer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
Building a Characterization Curve . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
Collecting Process Data. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Starting Characterizer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Run the Build Characterizer Wizard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
Final Characterizer Wizard Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
Using Characterizer with RSLogix Frameworks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
Examples of Using the Characterizer Code in RSLogix 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
Piecewise Linear Fit Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
Hyperbolic Fit Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105

RSLoop Optimizer User’s Guide vii


CONTENTS

Using the pH Linearizer 109


Using the pH Linearizer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Programming the pH Linearizer into Your PLC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
Examples of Using the Linearizer Code in RSLogix 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114

Valve Stiction Wizard Overview 117


The Stiction Wizard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
Stiction Check. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
How to Collect Data for Stiction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
Using the Stiction Wizard. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120

Control Loop Analysis 123


Using the Standard Analysis Tools. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
Process Model. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
Options in the Process Model Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
Model Type. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
Starting the Simulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
Adding to a Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
Using Dynamic Matrix Control (DMC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
Process Frequency Response (Bode) Plot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
Control Loop Simulation Plot. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
Options in the Control Loop Simulation Plot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
Setpoint Plot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
Load Plot. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
Response to Measurement Noise Plot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
Actual PV Compared to Simulated. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
Valve Wear Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
Robustness Plot. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
Options in the Robustness Plot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
Performance Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
Control Loop Performance Evaluation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
Performance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
Robustness . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
Valve Duty . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
Time Line Analysis. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
Time Evaluations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139

DDE Topics 141


What is a DDE Topic? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
Single Processor Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
Setting Up a DDE Topic in RSLinx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142

viii RSLoop Optimizer User’s Guide


.....
CONTENTS

OPC Topics 145


What is an OPC Topic? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
Single Processor Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146
Setting Up an OPC Topic in RSLinx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146

Using Power Spectral Density Graphs 149


Is Control Improved By Tuning? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
Is Valve Life Extended? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154
Setpoint Change to Check Valve Life Extension . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154
Operation in Auto Mode to Check Valve Life Extension . . . . . . . . . . . . . . . . . . . . . . . . . 156
Is an Oscillation Hidden in the Noise from a Flow Loop? . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
Sine Wave in a Flow Loop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
Non-Sinusoidal Cycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161

Application Notes 163


Data Collection Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163
Controller in Manual (Open Loop) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163
Controller in Auto (Closed Loop) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
Controller in Auto (Using a Manual Step Test) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
Controller in Manual (Fast Plant Test) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
Examples of Data Editing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
Example of Noisy Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166
Example of Data That is Cycling and Has Noise Spikes . . . . . . . . . . . . . . . . . . . . . . . . . 166
Example of a Process That Responds Faster in One Direction . . . . . . . . . . . . . . . . . . . . . 167
Integrating (Non-Self-Regulating) Loops . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
Temperature Control of Extruders. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
Cascading Loops . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
Collecting Data for Cascading Loops . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170

Getting the Information You Need 171


Supplemental Reading. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171
Online Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171
Online Books . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
Technical Support Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
When You Call . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173

Recommendations for Programming PID Loops 175


Ladder Logic Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175
Processor Considerations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175
PLC-5 Processors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175
SLC 500 Processors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176
ControlLogix Processors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176

RSLoop Optimizer User’s Guide ix


CONTENTS

Loop Setup Parameters in RSLoop Optimizer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176


Control Block Address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176
Control Variable Address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
Process Variable Address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178
PV or SP Engineering Units . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178

Activation 179
How Activation Works . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179
Protecting Your Activation Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180
Activating RSLoop Optimizer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180
Running the Activation Utilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
Finding More Information About Activation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
Some Common Questions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182

Glossary 183

Index xi

x RSLoop Optimizer User’s Guide


I. NTRODUCTION
.................................. 1

.....
Welcome to RSLoop Optimizer™, the application that makes tuning your control loops fast, easy,
and accurate. RSLoop Optimizer also provides methods of analyzing your loops to help ensure
optimal tuning parameters.
This chapter covers:
„ What is RSLoop Optimizer?
„ RSLoop Optimizer Features
„ System and Software Requirements

WHAT
. . . . . . . I.S. . R. .S. L. .O. O. .P. .O. .P.T.I.M. I.Z. E. R. .?. . . . . . . . . . . . . . . . . . . . . . . . . .
RSLoop Optimizer is Rockwell Software’s Windows®-based software for analyzing and tuning
PID control loops in Allen-Bradley® PLC-5®, SLC 500™, MicroLogix 1200/1500, ProcessLogix
and ControlLogix Programmable Logic Controllers.
RSLoop Optimizer provides a complete set of tools with which you can analyze and troubleshoot
your process.

RSLOOP OPTIMIZER FEATURES


.........................................................
„ Tools on the time plot: Make zooming, editing, averaging, or filtering your real-time data a
snap
„ OPC support: RSLoop Optimizer is an OPC client (RSLinx 2.1 and above only).
„ ControlLogix 5550 support
„ ProcessLogix 320 support
„ Support for MicroLogix 1200 and MicroLogix 1500
„ Support for Logix 5000 PID function block
„ Viewing of real-time trend values: Real-time trend values can be viewed as Tool Tips by
positioning the cursor on the trend line.
„ View part of a Control Loop simulation (Quick Zoom): Easily expand or halve the range
on the simulation plot. Lets you view the part of the simulation that interests you most.
„ Seamless connectivity to your control loops: RSLoop Optimizer uses RSLinx Gateway
Professional, or OEM (OPC only) for all supported processors.

RSLoop Optimizer User’s Guide 1


INTRODUCTION
1 System and Software Requirements

„ Easy-to-use AutoTune
Seamless connectivity
AutoTune: sequence
to your control reduces
loops: RSLoop
the time
Optimizer
required uses
to tune
RSLinx™
a loop from
hours
Standard,
to minutes.
Professional or OEM (OPC only) for all supported processors. The RSTune family
„
of products does
Archiving: not archiving
Manual work withofRSLinx Lite.
multiple sets of data allows easy before and after analysis.
„
„
AutoTune:
Performance Easy-to-use
increase AutoTune
displays:sequence reduces the
The performance time required
increase to tune
from tuning youra loop
loop is
from
hours to minutes.
displayed on the Faceplate.
„
„
Archiving: Manual
PID loop tuning archiving of
categories: multiple sets
Categories can of
be data allows
selected foreasy
load before
tuning and after analysis.
or setpoint tuning
„ from the simulation
Performance plot. displays: The performance increase from tuning your loop is
increase
„ displayed on the Faceplate.
Pre-download setting analysis: Allows you to see the performance of your loops before
„
actually
PID loopdownloading them to the
tuning categories: controller.
Categories can be selected for load tuning or setpoint tuning
„ from the
Data simulation plot.
optimization: Data can be zoomed, filtered, averaged, and line edited.
„ Pre-download
Control settingRSLoop
loop testing: analysis: Allows includes
Optimizer you to see the performance
powerful analysis plotsofthat
your loops
provide
before performance
critical actually downloading
informationthem the controller.
to loops.
on your
„
„ Hysteresis check: Allows
Data optimization: you
Data can beto determine
zoomed, whether
filtered, your control
averaged, elements
and line edited. (e.g. valves) are
suffering from hysteresis.
„ Control loop testing: RSLoop Optimizer includes powerful analysis plots that provide
„ reports: Include
Tuningperformance
critical data, notes,
information andloops.
on your graphics.
„
„ Browsing
Hysteresiscapability (version
check: Allows you2.3
to or later): Awhether
determine new feature,
your available
controlonly with OPC
elements (e.g.
communications, whichfrom
valves) are suffering allows you to browse
hysteresis . the network for OPC items such as PID
instruction addresses and control block tag names.
„ Tuning reports: Include data, notes, and graphics.
„ Remotely connect to RSLinx (version 2.3 or later): If you are using OPC
„ communications, you now
Browsing capability have the
(version 2.3option of connecting
or later): to a remote
A new feature, computer
available thatOPC
only with is running
the RSLinx Gateway.
communications, which allows you to browse the network for OPC items such as PID
instruction addresses and control block tag names.
DATA ANALYSIS TOOLS OF RSLOOP OPTIMIZER
„ Remotely connect to RSLinx (version 2.3 or later): If you are using OPC
„ Valve Stiction Wizard: Helps with testing for stiction on valves.
communications, you now have the option of connecting to a remote computer that is running
„ the
PIDRSLinx
TuningGateway.
Table: Provides a concise way of quickly examining several loop tests. From
these, it automatically selects the most conservative tuning values, then it summarizes the
average value of all the tests.
S D S O FAllows R EtoR
.........................................................
„ YPerformance
S T E M A NSummary: T W A you
and valve wear — at a glance.
E Qoverall
view U I R trade-offs
E M E N TofSperformance, robustness,

„ IBM®-compatible 486 or greater (Pentium™ recommended)


„
„
ProcessLogix support95,
Microsoft® Windows® through OPC
Windows 98,automation
Windows NT™ (4.0, Service Pack 5 or greater),
„ Windows Response
Relative 2000 (Service
TimePack 1) for interacting loops: RRT makes it easy to set up
(RRT)
„ interacting and cascade loops.
If reporting function will be used, Microsoft® Word 97 with SR-1 or higher
„ pH Linearizer: Allows easy pH tuning
„ 8 MB of hard disk space (or more based on application requirements)
„ 64MB of RAM (128MB recommended)
„ 16-color VGA graphics adapter 640 x 480 (256-color or higher, 800 x 600 recommended)
„ Any Windows®-compatible pointing device
„ Seamless connectivity to your control loops: RSLoop Optimizer uses RSLinx™
Standard, Professional or OEM (OPC only) for all supported processors. The
RSLoop Optimizer family of products does not work with RSLinx Lite.

2 RSLoop Optimizer User’s Guide


.....
INTRODUCTION
System and Software Requirements

„ Unlimited extra trends and loops can be added: Allows you to monitor additional
variables on the same faceplate trend to see how other process variables affect the loop. Extra
trends and loops help you model these systems:
‹ Multi-variable (2x2, 3x3, 2x3, and so on)
‹ Cascade
‹ Interacting loop
‹ Load processes for feedforward compensation
„ Valve wear analysis: Allows you to improve and maximize valve life by comparing tuning
and additional filtering.
„ Updated robustness plots: These plots now use actual process gain and dead time for the
axes. You can see exactly how much dead time or gain increase will produce an unstable loop.
A robustness index has also been added to show the robustness of the loop in one value. The
index can be used to quickly compare how different tunings and filters will affect the loop’s
sensitivity to process changes. Also included: You can dial in the robustness you want by
simply dragging the robustness line.
„ Histogram plot: Allows you to analyze the grouping of you PV, CO, and errors in histogram
format. Also included are actual valve travels and reversals, IAE (Integrated Absolute Error),
variability index, IAE/time, valve reversals/time, and valve travel/time. In addition, you can
now select time settings of hours, days, weeks, months, or years.
„ Noise simulation: The response to measurement noise plot allows “what-if” testing to see
how changing tuning or filtering affects controller output wear or jitters to the slave in a
cascade.
„ Inverse Response Process: Allows RSLoop Optimizer to analyze your process as if it has
negative lead, integrator, and lag.
„ Characterizer: Helps you linearize your process for optimal performance across the entire
range.
„ Power spectral density plots: Shows the potential improvement from better tuning and
helps you identify cyclic upsets.
„ Auto- and cross-correlation graphs: Allows you to determine the relative amount of
interdependency either between two loops (cross-correlation), or the relative amount of
variability that the loop causes with its own control (auto-correlation).
„ Setpoint filter: Achieves great response to both setpoint changes and load upsets.

„ Frequency plot adjustments: Gives you the ability to change the maximum number of
frequency points for analysis.
„ Full support for RSLogix Frameworks PID and Lin function blocks: Allows you to tune
your PID loops and download the parameters to the PID memory table automatically. Use
RSLoop Optimizer’s characterizer to linearize your process and download the X and Y values
directly to the Lin function block.

RSLoop Optimizer User’s Guide 3


INTRODUCTION
1 System and Software Requirements

„ Extensive reporting capabilities: Gives you the option of adding analysis plots and data
directly into your report and provides the means for you to customize the report template to
suit your needs. Extended reporting includes detailed analysis of hysteresis and linearization.
Also included is an explanation of each analysis, which explains its importance to loop health,
making it more legible to the customer or supervisor.

SYSTEM
. . . . . . . . . A. .N. D. . S. .O. F. .T.W. .A.R. E. . R. .E. Q. .U. I.R. E. M. .E. N. .T.S. . . . . . . . . . . . . . . .
„ IBM®-compatible 486 or greater (Pentium™ recommended)
„ Microsoft® Windows® 95, Windows 98, Windows NT™ (4.0, Service Pack 6a or greater),
Windows 2000 (Service Pack 1)
„ If reporting function will be used, Microsoft® Office 2000 (MS Word)

„ 8 MB of hard disk space (or more based on application requirements)


„ 64MB of RAM (128MB recommended)
„ 256-color or higher display with 1024 x 768 resolution or higher
„ Any Windows®-compatible pointing device
„ Communications software:
For OPC communications: ProcessLogix 300 (or higher), RSLinx, RSLinx OEM, or
RSLinx Gateway version 2.3 (or higher)
For DDE communications: RSLinx or RSLinx Gateway version 1.70.62 or higher

NOTE: The Lite version of the communications software is not sufficient for communication
with RSLoop Optimizer. You must have at least the OEM version of the communications
software to communicate via OPC or the Professional version to communicate via DDE.

NOTE: If you want to use an OPC link, you must have RSLinx version 2.3 (or higher) or
ProcessLogix 300 (or higher). Earlier versions of RSLinx only support DDE.

4 RSLoop Optimizer User’s Guide


I. NSTALLATION
.................................. 2

.....
This chapter provides information on installing RSLoop Optimizer and setting up the
communications package.
You must have communication software installed and configured for RSLoop Optimizer to
communicate with your control loop. RSLoop Optimizer works with:
„ RSLinx 2.3 (or higher)

NOTE: The Lite version of the communications software is not sufficient for communication
with RSLoop Optimizer. You must have at least the OEM version of the communications
software to communicate via OPC or the Professional version to communicate via DDE.

You can simulate a control loop using built-in DDE communications without the use of RSLinx.
(See “Using RSLoop Optimizer” on page 27 for more information.)
This chapter covers:
„ Setting up RSLinx for RSLoop Optimizer
„ Setting up ProcessLogix for RSLoop Optimizer
„ Installing RSLoop Optimizer
„ Starting the RSLoop Optimizer Software
„ Configuring a Loop to Communicate with a Processor
„ Editing and Deleting Loops
„ Testing Communications
„ Troubleshooting Installation

SETTING
. . . . . . . . . .U. P. . .R. S. .L. I.N. X. . F. .O.R. . R. .S. L. .O. O. .P. .O. .P.T.I.M. I.Z. E. .R. . . . . . . . . .
To have RSLoop Optimizer communicate to your processor, you must have RSLinx configured
and running. For each processor that RSLoop Optimizer will communicate with, you need to have
an RSLinx DDE/OPC Topic defined.

NOTE: This section provides an overview of the steps required in the communication
software. For more information on configuring the software and defining a DDE/OPC topic, see
“DDE Topics” on page 141 or “OPC Topics” on page 145 and the RSLinx documentation.

RSLoop Optimizer User’s Guide 5


INSTALLATION
2 Setting up ProcessLogix for RSLoop Optimizer

To configure an RSLoop Optimizer loop to communicate with your processor:

NOTE: These steps are not needed if you are using the control loop simulator.

1. Install RSLinx.
2. Configure RSLinx to communicate with your processor.
3. Define an RSLinx topic that RSLoop Optimizer can use to communicate with your PLC.

SETTING
. . . . . . . . . .U. P. . .P.R. O. .C. E. .S.S. L. .O.G. .I X. . F. .O.R. . R. .S. L. .O. O. .P. .O. .P.T.I.M. I.Z. E. .R. .
Release 2.0 of RSLoop Optimizer has the capability to connect to ProcessLogix. To have
RSLoop Optimizer communicate to your processor, you must have ProcessLogix configured and
running. You must also have RSLoop Optimizer installed on the OPC server.

NOTE: These steps are not needed if you are using the control loop simulator.

1. Open RSLoop Optimizer and then close it.


2. It is necessary to configure DCOM (Distributed Com). To do so, select Start > Run and type
Dcomcnfg. Press ENTER.

3. Under Applications, select Expertune.RSTune and press ENTER.

NOTE: If the Expertune.RSTune application is not available, start RSLoop Optimizer,


connect to the simulator and then exit and restart Dcomcnfg.

6 RSLoop Optimizer User’s Guide


.....
INSTALLATION
Setting up ProcessLogix for RSLoop Optimizer

4. Click the Security tab, select “Use custom access permissions”, and then click the Edit
button.

5. You must add an access permission that allows access for the Remote OPC server to
communicate with RSLoop Optimizer. Selecting Everyone includes all users and logins. If
security is a concern, contact your local system administrator for restrictive access.

6. Click OK three times to save your settings and close Dcomcnfg.


7. Start RSLoop Optimizer. The ProcessLogix selection will now be available in the New Loop
Setup and Edit Loop Setup dialog boxes.

RSLoop Optimizer User’s Guide 7


INSTALLATION
2 Installing RSLoop Optimizer

INSTALLING RSLOOP OPTIMIZER


.........................................................
Your RSLoop Optimizer package contains a CD-ROM and a Master Disk. RSLoop Optimizer is
copy protected, and the Master Disk activates the software.
To install the RSLoop Optimizer software on Windows 95, 98, NT 4.0 or Windows 2000
operating systems:
1. Close all open programs in Windows.
2. Insert the RSLoop Optimizer CD-ROM into the drive. If you have AutoRun enabled on the
computer, continue with step 3. Otherwise:
‹ Click Start, then click Run. The Run dialog box opens.
‹ In the Open edit box, type drive:\setup, where drive is the letter of the drive containing
the CD-ROM. Click OK.

3. In the Open edit box, type drive:\setup, where drive is the letter of the drive containing the
CD-ROM. Click OK.
4. Follow the directions on the screen.
5. When prompted for the product’s serial number, enter the last six digits of the serial number
(found on the label of the Master Disk).
6. When asked if you want to move activation now, click Yes. Insert the Master Disk into the
disk drive.
7. The utility for moving activation, EvMove, runs. Use the EvMove dialog boxes to move
activation from the Master Disk to your root directory (usually C:). For help using EvMove,
see “How Activation Works” on page 179 or EvMove online help.
8. Remove the Master Disk and follow the directions on the screen. When the setup utility
finishes, an entry for the RSLoop Optimizer application program is displayed in the program
list in the Rockwell Software group.
9. Store the CD-ROM and the Master Disk in a safe place. (For more information on product
activation, see “Activation” on page 179.)

STARTING
. . . . . . . . . . . .T.H. E. . R. .S. L. .O. O. .P. .O. .P.T. I.M. I.Z. E. .R. .S. O. .F.T. W. .A. R. .E. . . . . . . . .
To start RSLoop Optimizer software on a PC:
1. Click Start.
2. Select Programs > Rockwell Software > RSLoop Optimizer.

8 RSLoop Optimizer User’s Guide


.....
INSTALLATION
Configuring a Loop to Communicate with a Processor

3. Select RSLoop Optimizer. The main window opens.

From this window you can define a new loop, choose an existing loop to either tune or edit, or
delete a loop. Loops that have already been created are listed in the Choose a Loop box in the
main window. For more information, see “Editing and Deleting Loops” on page 14.

CONFIGURING A LOOP TO COMMUNICATE WITH A


PROCESSOR
.........................................................
In RSLoop Optimizer, you must first provide basic processor and addressing information for each
loop you want to tune.
These steps are not needed if you are using the control loop simulator.

NOTE: For important information about programming the PID instruction in your processor,
please see “Recommendations for Programming PID Loops” on page 175.

We recommend using the PD file type when you program the PID loop if you are using a New
Platform PLC-5 processor.

1. Start RSLoop Optimizer.


2. On the RSLoop Optimizer main window, click New Loop.
3. The New Loop dialog box opens.

RSLoop Optimizer User’s Guide 9


INSTALLATION
2 Configuring a Loop to Communicate with a Processor

4. Type a name for the loop in the File name box. The file extension .tun is added automatically.
5. Click Save. The RSLoop Optimizer Setup dialog box opens, as shown here.

6. Choose the Processor Type. The information on the dialog box changes to show the available
options for the selected processor.

NOTE: ProcessLogix is supported in RSLoop Optimizer.

If you are configuring one of the processors listed in the RSLoop Optimizer Setup window
through ProcessLogix, we recommend that you select the processor you will be connecting to
(such as PLC-5 or SLC 5/02) instead of ProcessLogix.

7. Under Communications Via, select the type of communications you want to use — OPC or
DDE.
8. If you selected:
a) DDE: Continue with step 10.
b) OPC: The Remote computer field is enabled. Double-click the empty field or click the
browse button to the right of the box. The Browse Network Computers dialog box opens.

NOTE: If you are “talking” to the local computer, please leave this field blank.

9. Navigate through the network to locate the remote computer to which you want to establish
communications. Either double-click the computer name or select the computer name and
click OK.
10. Complete the remaining areas on the dialog box as described in the following table:

10 RSLoop Optimizer User’s Guide


.....
INSTALLATION
Configuring a Loop to Communicate with a Processor

If you selected Set these


Parameter descriptions
processor: parameters:
PLC-5 PD file PV Engineering units The engineering units displayed by the AutoTune
PLC-5 integer file sequence when it requests a set point change. These
SLC 5/03, 5/04 units are for display only.

SLC 5/02, 5/05


ControlLogix
MicroLogix 1200/1500
(All processors) Topic The RSLinx Topic. You can select the topic from the
drop-down list.
(All processors) Sample Interval The sample interval of your controller or to an interval
at least four to 10 times less than the equivalent dead
time of your process. Equivalent dead time is the time it
takes for your process variable to change appreciably
after the controller output changes.
RSLoop Optimizer uses the sample interval time to:
‹ Collect data to analyze
‹ Update the faceplate trend and bar graphs
The sample interval you select should be at least as long
as the processor scan time. It should also match the
sampling time set in RSLinx.
Computer Only displayed if OPC is selected for Communications
Via.
The computer network name of the remote OPC Server.
If the OPC server is local, leave this field blank.
PLC-5 PD file Loop Update Time The Loop Update Time is a parameter that is held inside
PLC-5 integer file (view-only) the PDI control block. It must be set when you are pro-
SLC 5/03, 5/04 gramming the block. When the PID control block exe-
cutes, it uses the Loop Update Tim in the PID
SLC 5/02, 5/05
calculation. It is important that the Loop Update Time
ControlLogix in the control block corresponds exactly to the actual
MicroLogix 1200/1500 sample period of the loop. The PID control block should
be activated by a timer. The timer preset value should
therefore be the same as the Loop Update Time. If this
is not the case, the PID calculation will be incorrect.
The SLC PID instruction can operate in Timed mode or
STI mode. In Timed mode, the instruction executes
every Update Time Period. In STI mode, the instruction
should be placed in an STI interrupt subroutine. It will
then execute every time the STI subroutine is scanned.
When using STI, also apply the Loop Update Time to
the PLC-5 PD file.

RSLoop Optimizer User’s Guide 11


INSTALLATION
2 Configuring a Loop to Communicate with a Processor

If you selected Set these


Parameter descriptions
processor: parameters:
PLC-5 PD file PID Instruction The addresses used in the PID instruction in your ladder
PLC-5 integer file Addresses logic file.* The Processor Type determines how many
SLC 5/03, 5/04 addresses are required.
SLC 5/02, 5/05
MicroLogix 1500
ControlLogix Tags scoped to pro- Tags in ControlLogix can be scoped to either controllers
gram files or program files. If your tags are scoped to program
files, select the check box.
If you select the check box, the Program file box opens.
Type the name of the program where your PID control
block loop tag resides. Type it in the same format as it
was entered when you programmed the PID instruction.
ProcessLogix Control Module The name of the control module. Do not type period (.)
separators between the Control Module name or the
Tagname. RSLoop Optimizer adds the periods automat-
ically when it is addressing ProcessLogix.
(All processors) Tag Name The tag name of the PID control block.*

* If using OPC communications, you can select from a list of available PID instruction addresses and tag names.
(See “Browsing OPC Item Names” on page 13 for more information.)

11. Click Save.


12. To:
‹ Return to the main window: Click Close.

‹ Add trends or loops: See “Setting Up an Extra Trend” on page 44.

‹ Go to the Faceplate and Trend window: Click Faceplate.

12 RSLoop Optimizer User’s Guide


.....
INSTALLATION
Configuring a Loop to Communicate with a Processor

BROWSING OPC ITEM NAMES


The ability to browse for OPC item names is a new feature, available only with RSLinx version 2.3
or later, which allows you to browse the network for OPC items such as PID instruction addresses
and control block tag names (RSLinx version 2.3 or later only).
The Browse OPC Item Names dialog box opens when you click one of the browse buttons
(shown at left) next to certain browse-enabled fields in the Edit Setup dialog box. You can also
double-click the address field that you wish to browse to open the Browse OPC Item Names
dialog box.

Scroll bar

Scroll arrows

1. To navigate in the dialog box, scroll down the hierarchy of OPC Item names until you reach
the item name that you wish to use.
2. Click the item name to select it and click OK. The selected item name is transferred to the
Edit Setup dialog box. The topic name appears in brackets next to the item name.
Or, you can double-click the item to simultaneously select it and apply it to the Edit Setup
dialog box.

NOTE: Browsing is only available with OPC communications, not with DDE.

RSLoop Optimizer User’s Guide 13


INSTALLATION
2 Editing and Deleting Loops

EDITING
. . . . . . . . . .A.N. D. . .D. E. .L.E.T. I.N. G. . .L.O. O. .P. S. . . . . . . . . . . . . . . . . . . . . . . . . .
EDITING AN EXISTING LOOP
The setup parameters for an existing loop can be edited at any time.
1. Click the name of the loop in the Choose a Loop list.

2. Click Edit Setup. The RSLoop Optimizer Setup dialog box opens. See “Configuring a Loop
to Communicate with a Processor” on page 9 for detail on the options in this dialog box.

NOTE: When you are editing an existing control loop, options in the RSLoop Optimizer Setup
dialog box are grayed out if there is archived data stored for that loop.

Archives are created:


„ By RSLoop Optimizer when you run the AutoTune sequence
„ When you select Archive>Archive On
„ When you turn archiving on by clicking the Tape Recorder icon.

To select a new PID loop or change the location, do one of the following:
1. Click Save As to create a new loop.
2. Click Close to go to the main window. Click New to create a new loop.

NOTE: If you want to configure a new loop that is similar to another (same PLC), first select
the loop in the Choose a Loop list, then click New Loop. The new loop will be a copy of the
original. Now you can change addresses to complete the setup of the new loop.

14 RSLoop Optimizer User’s Guide


.....
INSTALLATION
Testing Communications

DELETING A LOOP
To delete a loop (a .tun file and all associated data files):
1. In the main window, click the loop you want to delete in the Choose a Loop list.
2. Select File > Delete Loop.
3. To:
‹ Delete archived data for this loop: Select Yes in the dialog box.

‹ Keep archived data for this loop: Select No in the dialog box. Data can be deleted
manually later if desired.

TESTING COMMUNICATIONS
.........................................................
The link between RSLoop Optimizer and the server can be either DDE or OPC.
RSLoop Optimizer automatically determines the available communications methods. If there is a
choice, you can choose between DDE or OPC in the Edit Setup dialog box.

NOTE: When you have a choice, OPC is the preferred method of communications.

You can test the communications through the Setup dialog box to see if the server is responding
correctly.
„ To test communications, click Test.
RSLoop Optimizer attempts to read the process variable for the loop from the server.
RSLoop Optimizer displays either an error message or the current process variable of the loop.

TROUBLESHOOTING INSTALLATION
.........................................................
If RSLoop Optimizer does not start up or run properly, check that the communication software is
installed. RSLoop Optimizer works with RSLinx version 2.3 or later and ProcessLogix version
3.0.0 or later. The communication software provides communication between the programmable
controller and a personal computer in the Microsoft Windows NT, Windows 95, Windows 98 or
Windows 2000 environment.
If you get a LINX Initialization error message in RSLoop Optimizer when you try to call up the
Control Loop Setup window, check these items.
„ Check to see if RSLinx is running. If not, did you install it? Can you run RSLinx by itself?
„ Check the configuration of the RSLinx topic for proper station address and communications
device.
„ Make sure your cable or card is plugged in.

RSLoop Optimizer User’s Guide 15


INSTALLATION
2 Troubleshooting Installation

„ Check the RSLinx topic to be sure that the Station number is set to the node address of the
processor with which you want to communicate.
„ If you get the error “Foreign application won’t perform DDE method or operation,” you might
have tried to access the faceplate before all of the RSLinx drivers have fully initialized. Wait
and then try again.
„ Check to see if your Control Block address is pointing to a PID controller.

16 RSLoop Optimizer User’s Guide


Q . . . . S. TART
. .UICK ............................ 3

.....
This chapter gives you a step-by-step approach to get you started using RSLoop Optimizer. More
detailed explanations about the tuning process and how you can edit, verify, and analyze your data
can be found in the remaining chapters of this User’s Guide.
This chapter covers:
„ Tuning a Loop
„ Guidelines for Optimizing Loops

TUNING
. . . . . . . . .A. . L. .O. O. .P. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1. Establish and test communications as shown in “Testing Communications” on page 15.
2. Click Faceplate to communicate with your PID loop or software simulation. The Faceplate
window opens.

3. Click AutoTune.

NOTE: You can cancel the AutoTune sequence and return to normal operation at any time by
clicking the End Sequence button.

4. Follow the instructions on the screen to tune the loop.

RSLoop Optimizer User’s Guide 17


Q U I C K ST A R T
3 Guidelines for Optimizing Loops

For each question in AutoTune, help is available by clicking Help. Detailed information on
AutoTune is provided in “Using AutoTune to Collect Data” on page 53.
5. When you have completed the AutoTune sequence, RSLoop Optimizer displays suggested
PID tuning parameters, the Time Data Window for the loop, and the safety factor, derivative,
and filter information. Click Download to send these parameters to the processor or
simulation.
6. A sample of the screen after AutoTune has completed is shown here.

GUIDELINES
. . . . . . . . . . . . . .F.O. R. . O. . P. .T.I M. .I.Z.I .N.G. . L. .O. O. .P.S. . . . . . . . . . . . . . . . . . . .
These guidelines help you optimize loops and identify process equipment problems. They are
especially helpful for a control loop that is difficult to tune.
While controller tuning can attenuate disturbances caused by process equipment problems, if not
corrected, these problems can result in more severe equipment, process, or safety problems over
time.
To completely check the control system:
1. Collect process variable data for some time with the controller in Manual.
2. Watch for any periodic load disturbances.
3. If load disturbances occur, try to identify the sources. Minimizing or eliminating load
disturbances will allow the controller to do a much better job.

18 RSLoop Optimizer User’s Guide


.....
Q U I C K ST A R T
Guidelines for Optimizing Loops

4. Collect process variable and controller output data with the controller in Auto under normal
operating conditions.
5. Is the controller output operating at one end of the span?
6. Is a valve operating near its seat? If so, the valve or final control element might need to be
resized to give better controller output resolution.
7. Perform the hysteresis check. (See “Hysteresis Check” on page 78 for more information.)
8. Perform an open loop step test (Manual mode) at several different locations in the controller
output span, for example, at 20%, 40%, 60%, and 80%. (See “Controller in Manual (Open
Loop)” on page 163 for more information.)
9. Check the new tuning parameters and the model identified in the Process Model window. (See
“Options in the Process Model Window” on page 125.)
10. Are the models (or PID tuning parameters) at each step significantly different? If the
parameters are more than a factor of two different, consider trying to linearize the loop. If you
cannot linearize the loop, use the most conservative tuning values.
11. Perform an open loop step test in the opposite direction as in step 8.
12. Compare PID tuning parameters or the models identified in the Process Model window.
13. Does the process respond differently in the up direction versus the down? If so, can you reduce
or eliminate the discrepancy? If not, use the more conservative tuning values.
When tuning a loop, it is important to keep in mind other factors that can affect the control loop.
For example, sensors must be properly located, calibrated correctly, and able to respond quickly
enough to expected process changes. Valves must be sized correctly. The entire design of the
control system affects how well the system can be tuned.
For more information on optimizing your loop, select Help > Optimization Steps on the
Faceplate or the first window in RSLoop Optimizer.

RSLoop Optimizer User’s Guide 19


Q U I C K ST A R T
3 Guidelines for Optimizing Loops

20 RSLoop Optimizer User’s Guide


T. .UNING
. . . . .T. HEORY
........................... 4

.....
This chapter provides a basic explanation of PID control, including an example of a simple control
loop. Explanations are also provided for the various tuning types that you can select when using
RSLoop Optimizer.
This chapter covers:
„ Description of Proportional, Integral, and Derivative Control
„ PID Loop Example
„ RSLoop Optimizer Theory
„ Tuning Types:
‹ Load Tuning
‹ Safety Factor
‹ Setpoint Tuning

DESCRIPTION OF PROPORTIONAL, INTEGRAL, AND


DERIVATIVE CONTROL
.........................................................
Proportional, integral, and derivative (PID) control is a means of controlling a process. The
process that is being controlled is often referred to as the PID control loop. PID control is based on
a set of equations that determines what the output value of the loop (usually the valve) should be
based on a given set point and the value of the process variable. This output value is used to drive
the control actuator, such as a control valve, or variable-speed drive.
When there is a difference between the desired set point and the actual process variable value, the
output value of the PID calculation changes in an attempt to bring the process variable back to set
point. The difference between set point and process variable is called the error of the loop.
Error is introduced into the system in two ways: By a set point change or by a load change
occurring.
The equations used to control the loop contain several variables. The three main variables are:
„ Proportional gain: The change in controller output is proportional to the change in error.
„ Integral gain: The change in controller output is proportional to the amount of time the error
is present. Also called reset.
„ Derivative gain: The change in controller output is proportional to the change in the rate-of-
change of the error. Also called rate.

NOTE: The units for each gain parameter vary depending on the type of processor.

RSLoop Optimizer User’s Guide 21


TU N I N G T H E O R Y
4 PID Loop Example

PID loop tuning is the procedure you perform to determine the best possible value for each gain
factor given the process you are controlling.
Determining if a system is well tuned is application-dependent; but in general, a well-tuned system
is one that:
„ Responds with little or no overshoot
„ Runs at maximum efficiency, closely tracking the set point
„ Provides the fastest response to an upset
„ Compromises between the above three factors
„ Reaches stability
In some systems, one factor might be more desirable than another. For example, some overshoot
might be tolerable to get a faster response.

PID LOOP EXAMPLE


.........................................................
This is an example of how a simple PID loop operates. It is a basic temperature control loop.

Setpoint Error
In PID Equation Out

Process Controller
Variable Output

Temperature
Sensor Heating
Valve

This system might control the heating to a room in a building. The people occupying the room can
adjust the desired temperature by changing the setting (setpoint) on a thermostat. The temperature
sensor sends the actual room temperature (process variable) to the controller.
Room temperature could be affected by load changes — the outside air temperature might get
colder, causing the room to get colder, or many people could come into the room and turn on
computers or copy machines, causing the room to get warmer.
The difference between the setpoint and the actual temperature is called the error. The error signal
is fed to the PID equation and a new output value (controller output) is calculated and sent to the
heating valve to try and bring the temperature back to setpoint.
If the room gets colder, the difference between the current setpoint and the room temperature
increases. The heating control loop would have to respond to this increased error.

22 RSLoop Optimizer User’s Guide


.....
TU N I N G T H E O R Y
PID Loop Example

If the control loop is tuned properly, the system can respond quickly and efficiently. If the system
is not tuned properly, problems could occur.
If the room is heated too fast, for example, the room temperature might exceed or overshoot the
setpoint. The control loop must back down on the heating, but if it does this too fast, the room
temperature would go below the setpoint. The system might oscillate like this for a long period of
time before it settles down, if it ever settles down.
Heating the room too slowly would also cause problems. The occupants would be uncomfortable,
and keep changing the setpoint to make the system respond, causing the system to keep chasing the
new setpoint.
In either case, an improperly tuned system is inefficient, can cause equipment problems, and will
not achieve the desired goals of the system.

PROPORTIONAL ONLY CONTROL


Sometimes applications use proportional only control. Proportional control responds to the change
in error of the system. With proportional only control, there is typically some difference between
the setpoint and the process variable, called offset. An example is shown here.

Setpoint
Offset
Process variable

The process variable in the graph does settle out, but it does not reach setpoint. The amount of
offset from setpoint depends on the amount of proportional gain and the conditions affecting the
control loop.
The proportional gain can be increased in order to decrease the amount of offset. However, too
much proportional gain can cause the controller to respond too aggressively, and the process
variable could overshoot the setpoint and then continue to oscillate. An example of this is shown
here.

Setpoint
Offset
Process variable

RSLoop Optimizer User’s Guide 23


TU N I N G T H E O R Y
4 PID Loop Example

PROPORTIONAL PLUS INTEGRAL (PI) CONTROL


Since proportional only control typically has some offset, proportional plus integral (PI) control
can be used to eliminate the offset and bring the process variable very close to setpoint.
Here is an example of PI control.

Setpoint
Process variable

With integral action, the change in controller output is proportional to the amount of time the error
is present. In the example above, the proportional gain responds to the setpoint change, and as time
passes, the integral action works to eliminate the offset and bring the process variable back to
setpoint.
The proper amount of integral action must be used. If there is too little integral action, the system
will be sluggish and take too long to get to setpoint. If there is too much integral action, the system
could end up oscillating and never settle down.

PROPORTIONAL PLUS INTEGRAL PLUS DERIVATIVE (PID)


CONTROL
With derivative action, the change in controller output is proportional to the change in the rate of
change of the error. It can compensate for a changing process variable. Therefore, derivative action
inhibits rapid changes of the measurement more than proportional action.
Sometimes derivative action is thought of as a brake on the controller output. It is often used to
prevent overshoot. When a load or setpoint change occurs to the system, derivative action causes
the controller output to move in the “wrong” direction as it approaches setpoint. This prevents or
limits overshooting the setpoint and can make the system settle in to the setpoint faster.
Generally, you can use more proportional and integral gain if you are using derivative action.
Since derivative works off the rate-of-change, it can cause the controller output to be very “jittery”
if there is noise in the measurement. Because of this, use caution when applying derivative action
on noisy loops. Unfortunately, most loops are noisy. Use derivative action carefully.
Here is an example of PID control.

Setpoint

Process variable

24 RSLoop Optimizer User’s Guide


.....
TU N I N G T H E O R Y
RSLoop Optimizer Theory

The same amount of proportional and integral action was used in this example as was used in the
example of PI control. A small amount of derivative action was added to limit the overshoot and
cause the process variable to settle in to the setpoint a bit faster.

RSLOOP OPTIMIZER THEORY


.........................................................
RSLoop Optimizer uses an advanced frequency response method coupled with an expert system to
determine the best tuning parameters for your control loops. RSLoop Optimizer can tune the loop
from data collected from only one “bump” or pulse (like a setpoint change) in auto or manual
mode. RSLoop Optimizer converts the data to frequency response. Note that the calculated PID
settings are only as good as the data collected to build the frequency response. The frequency
response uniquely represents a “process signature” that identifies that particular process.
RSLoop Optimizer runs an expert system to find the best tuning parameters and also to create a
model of the process. The modeling allows powerful analysis to be done on the process.

TUNING TYPES
Various types or methods of tuning exist to allow a system to be tuned optimally, depending on the
application and the type of changes to which the system might need to respond. RSLoop Optimizer
allows you to choose between two types of tuning.
„ Load tuning
„ Setpoint (Lambda) tuning
For most loops, we recommend that you use PI or PID fastest load tuning. Load tuning gives better
response to load upsets. If, however, you need tuning that gives no overshoot, use setpoint tuning.

The various methods RSLoop Optimizer uses for analysis are discussed in “Control Loop
Analysis” on page 123.

NOTE: You can use RSLoop Optimizer to help you design a setpoint filter. By using a setpoint
filter you can get good response to both setpoint changes and load upsets. (See “Control Loop
Analysis” on page 123 for more information.)

L oad Tuni ng
Load tuning gives PI and PID tuning parameters optimized for load changes at the controller
output. Load changes are the most difficult disturbances for the system to control. They are also
the most common.
There is always a trade-off between fast response and sensitivity to changing process conditions.
RSLoop Optimizer lets you further specify the type of load tuning you want to use, as well as a
safety factor to control the sensitivity of load tuning.

RSLoop Optimizer User’s Guide 25


TU N I N G T H E O R Y
4 RSLoop Optimizer Theory

Load Tu ning Typ es


With RSLoop Optimizer you can specify the type of Load Tuning you want to use.

The three types of Load Tuning (with Safety Factor = 1) are:


„ Fastest: Optimal (minimum absolute error to load step)

„ Fast: Quarter amplitude damping

„ Slow: 10% overshoot

The fastest tuning with the lowest safety factor is the most sensitive to a changing process.
Conversely, the slowest tuning with the highest safety factor is the least sensitive. The sensitivity
of the loop can be analyzed using the Robustness plot, which is discussed in “Control Loop
Analysis” on page 123.

Load Tu ning w it h N o O ver sho ot


For load tuning with no overshoot, decrease integral action in the fastest category by a factor of 3.
For example, if your controller uses integral in time/rep, multiply the integral setting by 3. If
integral is in rep/time, divide by 3. Setpoint tuning also gives you no overshoot.

Saf ety Fact or


RSLoop Optimizer uses a safety factor to control the sensitivity of load tuning.

The safety factor setting can be between 1.0 and 5.0. A setting of 1 means the tuning is very
sensitive to small changes in the process but could become unstable if subjected to large or sudden
load changes. A safety factor of 5.0 gives you conservative tuning; the loop will respond somewhat
more slowly but is more stable when subjected to large or sudden load changes.
More conservative tuning is appropriate in most situations, and 2.5 is the default setting. For faster
response decrease the safety factor.

WARNING: Most control loops are somewhat non-linear. To be stable when the process
changes, most loops require tuning with a safety factor larger (more conservative) than 1.

If you enter a Safety Factor that might cause the system to be too sensitive, the message “Warning:
Safety factor makes the loop dangerously sensitive to process changes” is displayed.
You might then want to change the safety factor to a more conservative number, but this is only a
warning. You can still download the more sensitive value.

Set poi nt Tuni ng


Setpoint (or lambda) tuning matches the setpoint response to a first order time constant (or lag
time) that you enter. System response is first delayed by the process dead time. This method is
popular in applications, such as in the paper industry, where overshoot is not acceptable.
With Setpoint tuning, the closed loop response should be the identified process dead time plus the
target first order time constant (lambda time) you enter. The loop will achieve setpoint in roughly 4
lambdas.

26 RSLoop Optimizer User’s Guide


U . . . . RSL
. .SING . . . .O. PTIMIZER
. . . .OOP .................... 5

.....
This chapter provides you with information on the use of the basic windows of RSLoop Optimizer,
including the menu commands, displays, display options, and button functions.
This chapter covers:
„ Faceplate and Trend Window
„ Changing the Display of the Faceplate and Trend Window
„ Changing Controller Settings
„ Debugging Communications
„ Using the Off-Line Analysis & PID Tuning Screen
„ Creating a Report for a Control Loop
„ Setting Up an Extra Trend
„ Setting up Extra Loops
„ Using the Extra Trends and Extra Loops
Step-by-step procedures are also provided in the online help system of the software.
The details of control loop tuning using the methods available in RSLoop Optimizer are covered in
“Tuning Control Loops” on page 53.

NOTE: RSLoop Optimizer comes with a control loop simulation program that can be used to
help you learn how RSLoop Optimizer works without being connected to a process. To use the
control loop simulation:

1. In the Choose a loop box in the Main window, click Simulate.tun.


2. Click Faceplate.
3. See “Faceplate and Trend Window” below.

RSLoop Optimizer User’s Guide 27


USING RSLOOP OPTIMIZER
5 Faceplate and Trend Window

FACEPLATE
. . . . . . . . . . . . . A. .N.D. .T. .R.E. N. .D. .W. .I N. .D. O. .W. . . . . . . . . . . . . . . . . . . . . . . .
The Faceplate and Trend window is the screen where you begin the process of tuning and testing
your control loops.
The Faceplate and Trend window displays the process variable (PV), setpoint (SP), and controller
output (CO) loop variables in a bar graph, as actual values, and in trend lines. Each is the same
color in each display.

NOTE: Controller output (CO) is sometimes referred to as the controlled variable (CV).

To display the Faceplate and Trend window:


„ From the main window: Double-click a loop in the Choose a loop list.

Or
„ From the Setup window: Click Faceplate.

The Faceplate for ... window opens. The example below is based on the simulate.tun loop.

Span settings

Archive On/Off
button

Menus

Bar graph
display

Real-time
trend display

Controller
mode

PID
parameter
values (see
units by
hovering over Buttons Trend time
values)

28 RSLoop Optimizer User’s Guide


.....
USING RSLOOP OPTIMIZER
Changing the Display of the Faceplate and Trend Window

The Faceplate and Trend window includes:


„ Menus: Access options and features

„ Span settings: Allows changes to the display ranges and colors

„ Archive On/Off Button: Allows you to turn the archiver on and off with just the click of this
button.
„ Real-time trend display: Displays real-time data from your processor

„ PV, CO, or SP display: If you hold the cursor over any point in the real-time trend display,
the PV, CO, or SP values at that time are displayed. The values that are displayed depend on
the Span settings. (See “Changing the Value of the Left and Right Axes” on page 32 for more
information.)
„ Buttons: Perform various commands

„ PID and Filter (F) parameter values: The current processor PID values and the new values
that will be downloaded to the process if Download is selected. In RSLoop Optimizer, the PV
filter value is also displayed. This value is also downloaded to the processor.
„ Controller mode: The current controller mode, auto or manual.

„ Bar graph display: Displays the loop variables in individual bar graphs and boxes.

TURN ON ARCHIVING
To collect and archive data in RSLoop Optimizer, you must be sure to turn the archiving function
on. To do so, click the Tape Recorder icon (shown at left). Only data that is collected after
archiving is turned on will be recorded.

CHANGING THE DISPLAY OF THE FACEPLATE AND


TREND WINDOW
.........................................................
You can change the display of the Faceplate and Trend window to meet your needs.

CHANGING THE TREND DISPLAY


On the Trend display, you can change:
„ How ticks are displayed
„ Whether the process variable, controller output, or setpoint span is used for the right and left
axes
„ Length of the trend (displayed as the horizontal axis of the real-time trend display)

RSLoop Optimizer User’s Guide 29


USING RSLOOP OPTIMIZER
5 Changing the Display of the Faceplate and Trend Window

To change how ticks and trend length are displayed:


1. Select Options > Trend Options in the Faceplate and Trend window.
2. The Trend Options dialog box opens.

3. The available options are:


Full or partial tick marks: Full ticks provide a gray line that covers the entire trend. Partial
ticks are a very short white line. On some monitors and systems the full tick marks or grid
lines will flash.
Number of horizontal or vertical ticks: Specifies the number of horizontal or vertical tick
lines. For none, enter 0.
Trend length: Specifies the length of the trend graph in seconds.
Trend background colors: Select the trend background colors. The normal trend
background color is the background color used by the Extra Loops Setup window and the
Time Plot window. If you change the trend background colors, the new colors take effect for
all your loops.

NOTE: It is helpful to change background colors to remind you that archiving is on. It is
recommended that you set the Normal background color to black and the Archiving
background color to blue.

4. Click OK to save the information from the Trend Options window to your setup file.

30 RSLoop Optimizer User’s Guide


.....
USING RSLOOP OPTIMIZER
Changing the Display of the Faceplate and Trend Window

CHANGING THE SPAN, COLORS, AND DECIMAL PLACES


The Trend Setup dialog box allows you to change display settings for the process variable (PV),
controller output (CO), and setpoint (SP).
1. To change how ticks and trend length are displayed:
‹ Select Options > Display Spans, Colors, Decimals in the Faceplate and Trend window.
Or
‹ Right-click with the cursor over the graph and select Display Spans, Colors, Decimals.
Or
‹ Double-click the graph.

NOTE: You can also change these options by clicking the Span button on the top left and right
of the Trend display).

2. The Trend Setup dialog box opens:

3. Select the tab for the parameter whose variable display characteristics you want to change (PV,
CO, SP). The following options are available on each tab:
‹ Engineering span: These values are for information only. They show the full
engineering range of the selected variable. The PV and CO engineering spans are the
spans used by your controller.
‹ Display span: These spans are for the bar graphs and trend display only. Adjust these to
view the range of data you want displayed on the bar and trend displays. The smaller the
span, the higher the resolution on the display.

The display spans for the variable you select in the “Use XX for right/left axis” box are
shown in that variable’s color at the top and bottom of the trend graph. (See “Changing the
Value of the Left and Right Axes” on page 32 for more information.)

RSLoop Optimizer User’s Guide 31


USING RSLOOP OPTIMIZER
5 Changing the Display of the Faceplate and Trend Window

These spans are for the Faceplate display only. The display spans should be within the
engineering span. SP and PV display spans must be the same. If you change either the PV
or SP display span, RSLoop Optimizer prompts you and automatically changes the other.

On a new loop, RSLoop Optimizer automatically sets the display spans to a 25% range
around the current PV and CO values. If you set any span, RSLoop Optimizer will no
longer automatically set any display span for that loop.
‹ Current value: This value is for information only. The current value is shown in its
appropriate color.
‹ Line Color: Allows you to change the line color of the selected variable. Click the Line
Color button or the current value for the variable whose color you wish to change. Select a
new color and click OK. The new color displays in the Current value box on the dialog
box. If you change the PV, CO or SP colors, your color selections take effect for all of
your loops.
‹ Decimal places: This option changes the number of places shown after the decimal point.
The number of decimal places is for the Faceplate window only. It has no effect on the
accuracy of the value stored in the archive files. Use the Current value window to see the
visual effect of changing the number of decimal places. The number of decimal places
must be in the range 0 to 5.
‹ Line width: This option lets you define the width of the lines in the trend display. When
you select OK, your width selections for PV, CO and SP take effect for all your loops (the
width selections are saved in EXPERTUN.INI). The line width must be in the range 1 to 4.
‹ Display on graph: Check or uncheck the box to hide or show the variable on the real
time trend display. If the variable is hidden on the trend display it is still read and
displayed in the digital value window, and archived to disk.
4. Click OK to exit this window and save your changes.

CHANGING THE VALUE OF THE LEFT AND RIGHT AXES


You can display the values for two variables (PV, CO, or SP) along the left and right vertical axes
of the display. To change the value that is displayed, select the option you want from the Use list at
the upper right or left of the trend display.

CHANGING THE DISPLAY OF THE FACEPLATE AND TREN D WINDOW


You can choose to display different combinations of the bar graph, trend display, and tuning
information through the View menu. The View menu contains:
„ Faceplate Only
„ Faceplate & Trend
„ Faceplate, Trend & Tuning

32 RSLoop Optimizer User’s Guide


.....
USING RSLOOP OPTIMIZER
Changing the Display of the Faceplate and Trend Window

A sample of what you will see for each View option is shown below:

FACEPLATE ONLY

FACEPLATE & TREND

RSLoop Optimizer User’s Guide 33


USING RSLOOP OPTIMIZER
5 Changing Controller Settings

FACEPLATE, TREND & TUNING

CHANGING CONTROLLER SETTINGS


.........................................................
The setpoint, controller output, controller mode, and PID settings can be changed through the
Faceplate and Trend window.

CHANGING THE SETPOINT AND CONTROLLER OUTPUT


When changing the setpoint, the value must be within the process variable spans of the loop.
When changing the controller output, the value can only be changed when the processor is in
Manual mode. The value entered must be between the controller output spans for the loop.
To change the value of the setpoint or controller output in the Faceplate and Trend window:
1. Double-click the Setpoint or Controller Output box.
2. The Data Entry dialog box opens. Type the new value or use the arrow buttons to select a new
value.
3. Click Enter.

34 RSLoop Optimizer User’s Guide


.....
USING RSLOOP OPTIMIZER
Debugging Communications

CHANGING THE CONTROLLER MODE


The controller mode box below the bar graph allows you to change the controller mode. To change
the mode, click the arrow and choose Auto (closed loop) or Manual (open loop).
RSLoop Optimizer always displays the mode as read from your controller. When you change
modes, there is a slight delay before the new mode is displayed while RSLoop Optimizer writes
the new mode to the controller and reads it back.

DEBUGGING COMMUNICATIONS
.........................................................
Data Spy allows you to display raw data before scaling, formatting, or adjusting decimal points.
Data Spy is available through the Faceplate and Trend window. To use Data Spy, select
Options > Data Spy. The Spy dialog box opens.

The Mode as ASCII chars box displays each character of the mode string as its ASCII value.
The type of communications being used (DDE or OPC) is shown at the bottom of the dialog box.
This window can remain open while other RSLoop Optimizer windows are active. It always stays
on top.

OPTIONS MENU
.........................................................
This menu contains five choices.
‹ Trend Options
‹ Display Spans, Colors, Decimals
‹ DDE Spy
‹ Bring back Previous PID settings to New
‹ Tuning Report

RSLoop Optimizer User’s Guide 35


USING RSLOOP OPTIMIZER
5 Faceplate Buttons

FACEPLATE BUTTONS
.........................................................
The buttons underneath the Trend window on the Faceplate allow you to choose to tune from
previously archived data, use the AutoTune sequence, or close the Faceplate and Trend window.
Descriptions of each of the buttons are included below. Detailed use of the buttons in various
tuning functions is described in “Tuning Control Loops” on page 53.

TUNE FROM ARCHIVED DATA BUTTON


The Tune from archived data button brings up a list of archived data files. (See “Tuning Control
Loops” on page 53 for more information.) This is similar to the window that appears when using
Offline Analysis.
Name of the original
file (added by
RSLoop Optimizer)

“Yes” indicates that


the file has been
edited

The list shows the name of the archive file, the date and time when the data was collected, and
whether the file is an edited version of an archived file.
To work with an archived file, click the filename. The buttons below the archived file list are:
„ Tune: This button displays the Time data window. From this window, you can have
RSLoop Optimizer determine tuning parameters and perform analysis on the data. (See
“Tuning Control Loops” on page 53 for details on using the Time data window.)
„ Copy to ASCII: This button allows you to save your data to an ASCII file (extension .asc).
The file can be named and placed in any folder. You can also save the data as a print file (.prn)
or as a data file in comma separated value format (.csv).
„ Time Plot: The Time data window displays the process variable and controller output data.
Use this window to verify that your data meets tuning requirements, or to edit data to optimize
it before calculating new parameters.

„ Delete: This button deletes the selected archived data file from your hard disk.

NOTE: Delete removes the selected archived data file for the control loop, not the actual
control loop. To delete the control loop file, see “Editing and Deleting Loops” on page 14.

„ Back: This button closes the archive data file list window and returns you to the Faceplate
window where you can collect more data.
„ Change Notes: Allows you to edit the Loop Notes that appear on the right. It is a good idea to
make a small set of notes here for each archive file.

36 RSLoop Optimizer User’s Guide


.....
USING RSLOOP OPTIMIZER
Simulate Window

The Loop Notes box to the right of the archive list displays notes that have been entered
concerning the loop. RSLoop Optimizer automatically adds notes to the Loop Notes when a file is
edited. You can also enter notes manually by clicking Change Notes.
1. To edit the Loop Notes for a data set, select the data set.
2. Click Change Notes.
3. Type your changes in the Edit Notes window.
To start a new line in the Edit Notes window, press CTRL + ENTER.
4. Click OK to save your changes or Cancel to abandon them.

AUTOTUNE BUTTON
AutoTune starts the AutoTune sequence. This is a sequence of questions that you can follow to
have RSLoop Optimizer automatically calculate new PID tuning parameters for your control loop.
The AutoTune sequence is described in “Using AutoTune to Collect Data” on page 53.

CLOSE BUTTON
The Close button closes the Faceplate and Trend window and takes you back to the
RSLoop Optimizer main window. It does not close RSLoop Optimizer.

SIMULATE WINDOW
.........................................................
When you open the faceplate for a loop with a processor type of “Software simulation,” the
Simulate window opens minimized. This simulated control loop allows you to gain experience
with RSLoop Optimizer without being connected to a processor. The simulator lets you simulate
flow, level, temperature and pH loops; also typical loop control problems such as hysteresis,
stiction and non-linearity.

NOTE: The information in the Simulate window is the same as the information on the
Faceplate and Trend window, except for the Advanced button. Any changes to information in
the Simulate window will also be changed in the Faceplate and Trend window.

RSLoop Optimizer User’s Guide 37


USING RSLOOP OPTIMIZER
5 Simulate Window

The functions you can do from the basic Simulate window are listed here. For information on the
Advanced button features, see “Advanced Simulate Window” on page 38.

To: Do these steps:

Change the setpoint, Note: The controller output value can only be changed in Manual
controller output, or PID mode.
values ‡ Double-click the box.
‡ Delete the old value and type the new value.
‡ Click Enter.

Switch between Auto and Click the drop-down and select Manual or Auto.
Manual modes
Restore the initial tuning Click Initial PID. This option returns the initial tuning values,
parameters regardless of how many settings you have downloaded.
This is different than the Bring back Previous PID settings to
New option on the Faceplate and Trend window Options menu.
The Bring back option restores only the previous PID values, not
the initial values.

Ad vanced S imula te Wind ow


The Advanced simulate window allows you to select one of seven process types and change the
load.

38 RSLoop Optimizer User’s Guide


.....
USING RSLOOP OPTIMIZER
Simulate Window

If you select a non-linear process, characterizer information is displayed, as shown here.

The options in the Advanced Simulate window are:

To: Do these steps:

Display the Advanced ‹ Click Advanced from the Simulate window.


Simulate window ‹ Click No.
Change the process type In the Process type box, select the type of process. The
diagram labels change to reflect the new process type. The
trend display also shows the change.
Change the process load In the Process Load box, click +5% to increase the load or –
5% to decrease it. The trend display on the Faceplate and
Trend window shows the impact on the loop.
Experiment with When the Process type is set to a non-linear loop, the
Characterizer Controller Characterizer dialog box opens. This allows you
to experiment with the Characterizer.
Click Demo Instructions for more information on using the
Characterizer in the Simulate window.
For more information on the Characterizer (available only
with RSLoop Optimizer), see “Using the Output
Characterizer” on page 91.

RSLoop Optimizer User’s Guide 39


USING RSLOOP OPTIMIZER
5 Using the Off-Line Analysis & PID Tuning Screen

USING THE OFF-LINE ANALYSIS & PID TUNING


SCREEN
.........................................................
If you have archived data, you can work with RSLoop Optimizer offline. Offline tuning allows you
to verify and edit data and calculate tuning parameters without opening the faceplate and going
online.
To work offline:
1. Start RSLoop Optimizer.
2. Select the loop you want to work with.
3. Click Off-line. The Off-Line Analysis and PID Tuning dialog box opens.
From this window, you can:
‹ Perform functions that are available in the faceplate when Tune From Archived Data is
selected. (See “Using Archived Data” on page 58 for more information.)
‹ Use the Time Data window by clicking Tune. (See “Using the Time Data Window” on
page 65 for more information.)
‹ Create a tuning report using Options > Tuning Report. (See “Creating a Report for a
Control Loop” on page 40 for more information.)
‹ View a performance summary and a control loop time line analysis.

CREATING
. . . . . . . . . . . .A. .R. .E.P. O. .R.T. .F. O. .R. .A. .C. .O. N. T. .R.O. .L. .L.O. O. .P. . . . . . . . . . . .
You can use the tuning report to create a record of the tuning results for a control loop. Reports can
only be produced while tuning or for an archived data set. (See “Using Archived Data Files” on
page 57 for more information.)
RSLoop Optimizer creates reports in Microsoft® Word (version 97 SR-1 or higher). Word must be
installed in order to use the reporting feature.
You can create a report while tuning or from archived data.
To create a report:
1. Select tuning for the loop.
2. On the Faceplate and Trend window, select Options > Tuning Report.
3. Wait while the report is being prepared. Doing other work on your computer could interfere
with the insertion of graphics in your report.
4. Maximize Word to see the report.
5. To save the report, select File > Save in Word. RSLoop Optimizer automatically names the file
for you.

40 RSLoop Optimizer User’s Guide


.....
USING RSLOOP OPTIMIZER
Creating a Report for a Control Loop

NOTE: When you open the report in Word, you will see a message that tells you the document
contains macros and asks what you want to do. If you disable macros, the document will open
as read-only and you will be unable to edit it. You must select Enable Macros to open the
report for editing.

ABOUT THE REPORT


RSLoop Optimizer inserts the following items when you create a tuning report:
„ Current and new tuning values
„ Loop Notes
„ Time Data window
„ PID Tuning Grid
„ Process Model
„ Robustness Plot
„ Frequency Response (Bode) Plot
„ Simulation to Setpoint
„ Simulation to Load Upset
RSLoop Optimizer uses bookmarks in a Word template file to create the report.
You will see blank graphics in the report. These are placeholders, or bookmarks, for graphics that
you can add. See “Adding To a Report” on page 41 for instructions for filling in these blank
graphics. For information on using bookmarks and customizing the report, see the online help in
RSLoop Optimizer and Microsoft Word.

ADDING TO A REPORT
When adding graphics to a report that is open, RSLoop Optimizer adds the item to the report. If a
report for this loop already exists and is not open, you can:
„ Use the Existing Report: The item is added to the add the item to the existing report.

„ Write Over: The existing report is replaced with a new report that contains only the item you
are adding. You can add the standard information to this report by using Options > Tuning
Report.
This table describes how to get data for the placeholders that are added to an RSLoop Optimizer
report. It also lists the bookmarks for each type of data, if applicable.

RSLoop Optimizer User’s Guide 41


USING RSLOOP OPTIMIZER
5 Creating a Report for a Control Loop

Location in
Where to find the data in RSLoop Optimizer Bookmark to select
report
Initial Tests, 1. Select an archived data file that was collected with the InitialTestAuto
Automatic Mode controller in Auto mode, or create one.
2. Tune from this data file to display the Time data
window.
3. Select Options > Report > Just Add This To
Report.
Initial Tests, Man- 1. Select an archived data file that was collected with the InitialTestManual
ual Mode controller in Manual mode, or create one.
2. Tune from this data file to display the Time data
window.
3. Select Options > Report > Just Add This To
Report.
Hysteresis Check 1. Open an archived data file collected for a hysteresis Hysteresis
check. (See “Hysteresis Check” on page 78.)
2. From the Time data window, select Options >
Hysteresis Check > Automatic.
3. Click OK on the Valve and noise diagnosis and
analysis message to close it.
4. On the Time data window, select Options > Report
> Just Add This To Report.
Hysteresis Check 1. Open an archived data file collected for a hysteresis none
(text data) check. (See “Hysteresis Check” on page 78.)
2. From the Time data window, select Options >
Hysteresis Check > Automatic.
3. On the Valve and noise diagnosis and analysis dialog
box, select Options > Add To Report.
Linearity 1. Open an archived data file collected for none
characterization. (See “Using the Output
Characterizer” on page 91.)
2. From the Time data window, select
Options > Characterizer.
3. Complete the process of building a characterization
curve. (See “Using the Output Characterizer” on
page 91.)
4. On the final Build A Characterizer window, click
Add To Report.
Asymmetry, Pro- 1. Collect data with the controller in manual mode and AsymmetryIncreasingPV
cess Model adjust the controller output (CO) so that the process
Increasing PV variable (PV) rises.
2. Tune the data.
3. Click Analysis on the faceplate.
4. From the Process Model window, select Options >
Add to Report.

42 RSLoop Optimizer User’s Guide


.....
USING RSLOOP OPTIMIZER
Creating a Report for a Control Loop

Location in
Where to find the data in RSLoop Optimizer Bookmark to select
report
Asymmetry, Pro- 1. Collect data with the controller in manual mode and AsymmetryDecreasingPV
cess Model adjust the controller output (CO) so that the process
Decreasing PV variable (PV) falls.
2. Tune this set of data.
3. Click Analysis on the faceplate.
4. From the Process Model window, select Options >
Add to Report.
Closed Loop 1. Collect data with the old tuning parameters and Before_Setpoint
Before and After include a setpoint change.
(Before, Setpoint 2. Tune the data.
change)
3. From the Time data window, select
Options > Report > Just Add This To Report.
Closed Loop 1. Collect data with the old tuning parameters. Top Statistical analysis
Before and After 2. Tune the data. graphic: Before_Statistics
(Before)
3. From the Time data window, select
Options > Report > Just Add This To Report. Bottom graphic: Before
4. From the Time data window, select
Options > Statistical Analysis.
5. From the Statistical Analysis window, select Options
> AddToReport.
Closed Loop 1. Collect data with the new tuning parameters and After_Setpoint
Before and After include a setpoint change.
(After, Setpoint 2. Tune the data.
change)
3. From the Time data window, select
Options > Report > Just Add This To Report.
Closed Loop 1. Collect data with the new tuning parameters. Top Statistical analysis
Before and After 2. Tune the data. graphic: After_Statistics
(After, Statistical
3. From the Time data window, select
analysis)
Options > Report > Just Add This To Report. Bottom graphic: After
4. From the Time data window, select
Options > Statistical Analysis.
5. From the Statistical Analysis window, select
Options > AddToReport.
Power spectrum 1. From the Time data window, select First graphic: 1
Options > Power and either Power of Deviation, PV,
or CO. Second graphic: 2
2. From the Power Spectral Density window select
Options > Add to Report.
3. Display one of the other Power Spectral Density
graphs. Select Options > Add to Report.
Auto or Cross 1. From the Time data window, select none
Correlation Options > Correlation.
2. Choose one of the correlation graphs.
3. Select Options > Add to Report.

RSLoop Optimizer User’s Guide 43


USING RSLOOP OPTIMIZER
5 Setting Up an Extra Trend

Ed iti ng a Re por t
Once created, you can edit your report to be specific to your company.
„ Replace all occurrences of “Company Name” with your company’s name. You can double-
click on text in the headers or footers to edit it.
„ Change the letter on the cover page to suit your needs.
„ If using RSLoop Optimizer, delete any blank graphs or data that you do not want to use.
„ Edit or add notes about the graphics in the report.
„ Summarize your findings in the Conclusions and Recommendations section.

NOTE: When you open the report, you will see a message warning that the document
contains macros and asking what you want to do. If you disable macros, the document will
open as read-only and you will be unable to edit it. You must select Enable Macros to open the
report for editing.

For information on using Word, or for customizing the report template, see the online help in
RSLoop Optimizer or Microsoft Word.

Pr int ing a Rep ort


You can print your loop report anytime from within Microsoft Word.
1. From Word, press CTRL + A to select the entire report, then press F9 to update the report
information.
2. Select File > Print.

SETTING UP
. . . . . . . . . . . . . .A. N. . E. .X. T. R. .A. .T. R. .E.N. D. . . . . . . . . . . . . . . . . . . . . . . . . . .
You can add extra trend lines to the Faceplate and Trend window. The Extra Trend variable must
be in the same PLC as the loop.
In RSLoop Optimizer you can add as many trends as needed. The data from added trends in
RSLoop Optimizer are saved with the archives, so they can be used for tuning and analysis. Once
trends are created, you can set up extra loops to group the trends for analysis. (See “Setting up
Extra Loops” on page 47 for more information.)
RSLoop Optimizer also allows you to enter the filter address setup. (See “Filter Address Setup” on
page 47 for more information.)
If the Processor Type is set to Software Simulation, you will not see the Extra Trends on the
Faceplate and Trend window.

44 RSLoop Optimizer User’s Guide


.....
USING RSLOOP OPTIMIZER
Setting Up an Extra Trend

NOTE: If archives have been collected for a loop, trends cannot be deleted and
communication data cannot be changed. To delete trends or change communication data for a
trend, either:
„ Delete the existing archives for the loop. (See “Using Archived Data Files” on page 57 for
more information.)
„ Create a new loop by clicking Save As in the Setup window.

To create a new trend:


1. In the main window, click the loop to contain the extra trend.
2. Click Edit Setup. The RSLoop Optimizer Setup window opens.
3. Click Advanced. The Extra Trends and Advanced Loop Setup dialog box opens.

4. Click Extra Trends. The blank Setup Extra Trends window opens.
5. Click Add Trend. The Trend 1 tab is added, as shown here.

NOTE: The options in address info will reflect the communication package and processor
type selected in the RSLoop Optimizer Setup screen.

RSLoop Optimizer User’s Guide 45


USING RSLOOP OPTIMIZER
5 Setting Up an Extra Trend

6. Set Eng span to the full engineering range of the trend variable.
7. Set Inst span to the instrument range of the trend variable. This is the range of the value
reported to RSLoop Optimizer by the server. When gathering data from a PLC, you may need
to set the Inst span to the Numeric range (0 to 40%, for example).

NOTE: When RSLoop Optimizer reads an Extra Trend value, it scales the values from the
instrument span to the engineering span. If the value is not scaled, set Inst span to the same
value as Eng span.

8. In the address info section, complete the boxes as needed for your communication system and
process.

If you are using: Do this:


RSLinx Type the Item information. This is the address of the extra trend in your
PLC. If your processor is a:
‡ SLC: Item will contain the register address, such as N7:88.
‡ PLC-5: Item will contain a register address or the PD block address
followed by a parameter, such as PD10:2.SP.
ControlLogix Tags in ControlLogix can be scoped to either controllers or program
files. If your tags are scoped to program files, select the check box.
If you select the check box, the Program file box opens. Type the name
of the program where your PID control block loop tag resides. Type it in
the same format as it was entered when you programmed the PID
instruction.
In the Item box, type a tag name and parameter, such as PID1.PV.
ProcessLogix Type the CM.Item name in the format:
<ControlModule>.<Tag>.<Parameter>
A typical entry would be CM.PID1.PV.

9. Set the display information. The options are:

Box Description

Description The name of the trend. This name is used on the Faceplate and Trend
window. PV, CO, and SP cannot be used as names of extra trends.
Display span The range of data that will be displayed on the Faceplate and Trend
window for this trend. The smaller the span, the higher the resolution on
the display.
Decimal places The number of digits shown after the decimal point in the Extra Trend
value displays. This only affects the display. Decimal places can be set
from 0 to 5.
Line width The width of the trend line in the Faceplate and Trend window. Line
width can be set from 1 to 4.

46 RSLoop Optimizer User’s Guide


.....
USING RSLOOP OPTIMIZER
Setting up Extra Loops

Box Description

Line color The color of the trend line in the Faceplate and Trend window. To
select a color:
‡ Click Line Color.
‡ Select the color.
‡ Click OK.

Display on graph RSLoop Optimizer only. Select this box to display the new trend in the
Faceplate and Trend window. The new trend data is read and archived
even if it is not displayed.

10. Click Test to determine if your server is responding correctly to the address information.
RSLoop Optimizer reads the variable from the server and displays the variable or an error
message.
Both the raw instrument value and the scaled engineering value are shown. The raw instrument
value is the value that is actually reported by the server. The scaled value is in engineering units
and will appear on the Faceplate window. You can change its color or enter a different number of
decimal places. To change the color click the engineering value.

EXTRA TRENDS COMMUNICATIONS INFORMATION


The information to be entered depends on the type of communications RSLoop Optimizer is using:
DDE or OPC. With OPC communications, the Computer, Topic and Item names need to be
entered. With DDE communications, only the Topic and Item names must be entered. The Extra
Trend variable does not need to be in the same PLC as the loop.

FILTER ADDRESS SETUP


1. Click the Advanced button on the Edit Setup window
2. Then click Filter Address to bring up the Filter Addresses Setup window. This is where you
set up the addresses within your controller from where RSLoop Optimizer will read and
download the loop’s filter value.

SETTING
. . . . . . . . . .U. P. . .E. X. T. .R.A. . L. .O.O. .P.S. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
In RSLoop Optimizer, you can trend and analyze more than one loop at a time. This allows you to
monitor other processes while collecting data for tuning and analysis. The types of processes that
can be monitored include cascade control, interacting loops, and feedforward control loops.
To monitor other process loops, you must have extra trends set up. (See “Setting Up an Extra
Trend” on page 44 for more information.) Once data has been collected from other process loops,
RSLoop Optimizer can be set up to analyze and tune these other process loops. To define an extra
loop, you must tell RSLoop Optimizer which extra trends belong to which extra loop.

RSLoop Optimizer User’s Guide 47


USING RSLOOP OPTIMIZER
5 Setting up Extra Loops

If trends are not assigned to a loop, they are displayed on the Faceplate and Trend window, but
are not available for analysis.
1. In the:
‹ RSLoop Optimizer Setup window: Click Advanced, then click Loop Setup.

‹ Offline window: Select Options >Loop Setup.

The RSLoop Optimizer Loop Setup window opens, as shown here.

2. To:
‹ Add a loop: Click Add Loop. Type the name of the loop in Loop Description. This is the
description of the loop that will be used in the Time data window.
‹ Edit an existing loop: Select the loop from the Loop Description list.

NOTE: The Faceplate loop cannot be changed in the Loop Setup dialog box. It must be
changed in the RSLoop Optimizer Setup dialog box. (See “Editing and Deleting Loops” on
page 14 for more information.)

3. Complete the boxes as needed. Box descriptions are provided in the following table.

Box Description
Process variable goes … when Select up if the process variable (measurement)
controller output goes up: increases when the controller output increases.
Select down if the process variable decreases when
the controller output increases.

48 RSLoop Optimizer User’s Guide


.....
USING RSLOOP OPTIMIZER
Setting up Extra Loops

Box Description
Controller type Select the controller from the list.
Proportional Band or Gain Display only. Proportional band and gain are related
by:
PROPORTIONAL BAND = 100/GAIN
Units on Integral (or reset) Display only. Shows the time units for Integral or
Reset action. This is the setting of the time action for
the derivative action. If integral is in minutes/repeat
or repeats/minute, derivative units will be in minutes.
P, I, and D Multipliers Display only.
Filter Units Selects the units to be uses by the PV filter analysis. If
you select Same As D, the units for the filter will be
the same as those your controller uses for its
derivative action.
Inverse Response Select this option only if you are sure you have an
inverse response process.
When the Inverse Response Process is selected,
RSLoop Optimizer assumes that the process has a
negative lead and an integrator (or long lag time)
combined with a lag and dead time. This type of
process is also described as having a shrink-swell
phenomena. With inverse response processes, when
the CO changes, the PV initially moves the in the
opposite direction of where it will end up.
Change Displayed Archive Determines which set of data is displayed in the graph
in the lower right of the dialog box. The graph is
scaled based on your display ranges. The display
ranges are saved in the .tun file.
The graph shows the archived data and helps you
choose which trend belongs to which loop. The graph
can also be used to manually examine interactions
between the trended variables.

RSLoop Optimizer User’s Guide 49


USING RSLOOP OPTIMIZER
5 Using the Extra Trends and Extra Loops

Box Description
Description, Line, PV, CO, SP Select the PV, CO, and SP of the loop by clicking the
selection box in the appropriate column. A loop must
have a PV and CO. SP is optional.
When the Time data window opens, the trend selected
as the PV will be shown as the top graph. The trend
selected as the CO will be shown as the bottom graph.
(See “Using the Time Data Window” on page 65 for
more information.)
To turn off the display of a line, click its description.
The description button will appeared popped-out, and
the line will disappear.

4. When changes are complete, click OK to save your changes.

USING
. . . . . . . .T.H. E. . E. .X. T. R. .A. .T. R. .E. N. .D.S. .A. N. .D. .E. X. .T.R. A. . .L.O. O. .P. S. . . . . . . . . .
In RSLoop Optimizer, the extra trends and extra loops are available through the Faceplate and
Trend window, Time data window, and Analysis windows. To set up extra trends for analysis, you
must configure extra loops.
In the Faceplate and Trend window, the trends are displayed on the graph and the value of one
trend at a time is displayed below the controller output value.

To view the
value of another
trend, select the
trend from the
list.

50 RSLoop Optimizer User’s Guide


.....
USING RSLOOP OPTIMIZER
Using the Extra Trends and Extra Loops

When the Time data window is open and extra loops are available, a box is added to the top of the
window. Select the loop you want to analyze from the drop-down list. The trend that was selected
as the process variable in the extra Loop Setup window is displayed in the top graph. The trend that
was selected as the controller output is displayed in the bottom graph. (See “Using the Time Data
Window” on page 65 for more information.).

Select the loop


you want to
analyze from
the list.

RSLoop Optimizer User’s Guide 51


USING RSLOOP OPTIMIZER
5 Using the Extra Trends and Extra Loops

52 RSLoop Optimizer User’s Guide


T. .UNING
. . . . .C. ONTROL
. . . . . . . L. OOPS
................... 6

.....
RSLoop Optimizer makes analyzing, optimizing, and tuning control loops fast, accurate, and easy.
You can simply follow an AutoTune sequence, or manually gather data and then have
RSLoop Optimizer calculate the tuning parameters. You can edit the data to optimize the new
parameters, and you can test the parameters before downloading them to your controller.
You can tune data online or offline. Online tuning is done from the Faceplate and Trend window.
Off-line tuning is done from the Off-line Analysis and PID Tuning window, which is selected by
clicking Off-line in the main window.
This chapter covers:
„ Collecting Data
„ Using AutoTune to Collect Data
„ Manually Collecting Data
„ Using Archived Data Files
„ Using the PID and PV Filter Display

COLLECTING DATA
.........................................................
With RSLoop Optimizer, you can follow the AutoTune sequence to determine PID tuning
parameters, or you can manually gather data and tune using that information. (See “Data
Collection Methods” on page 163 for more information.)

USING AUTOTUNE TO COLLECT DATA


AutoTune prompts you to gather data. RSLoop Optimizer uses the data to calculate new PID
tuning parameters for your control loop.
AutoTune can be done with the controller in either Manual or Auto mode. If the controller is in:
„ Manual mode: The controller output is changed

„ Auto mode: The setpoint is changed

When gathering data:


„ Collect the process variable and controller output data from a step or pulse test. You can make
a setpoint change (in Auto) or a controller output change (in Manual).
„ Both the process variable and controller output must start and end at a steady state condition
and include the complete response to the setpoint or controller output change. When steady

RSLoop Optimizer User’s Guide 53


TU N I N G C O N T R O L L O O P S
6 Collecting Data

state settles out, both the process variable and controller output are relatively flat horizontal
lines in the Trend display, moving within the range of normal process noise.
„ RSLoop Optimizer analyzes process variable and controller output data pairs.
„ All process variable filtering must be removed from the signal.

WARNING: The data must not be from a load or process upset. Loads must not change
during the test and the range of test data should be as linear as possible. If a load change
occurs during the test, click End Sequence and begin the test again.

When you use the AutoTune sequence, data is automatically archived.

NOTE: You can stop the AutoTune sequence at any time by clicking End Sequence.

1. From the main window, click the loop to tune.


2. Click Faceplate.
3. Click AutoTune. The Performing Auto-Tune Sequence area changes, as shown here.

If your loop is erratic or cycling, try:


‹ Putting the loop in Manual mode and waiting for it to settle out.
‹ Putting it in Auto mode and entering a low proportional gain and a low integral gain. Wait
for the loop to settle out.

NOTE: You should allow for a least 30 samples of flat-line data before continuing.

4. When your process data is steady state, click Yes. The Performing Auto-Tune Sequence area
notifies you of the selected setpoint, as shown here.

5. RSLoop Optimizer needs to produce a bump in your process by making a setpoint or


controller output change. The default is 7.

54 RSLoop Optimizer User’s Guide


.....
TU N I N G C O N T R O L L O O P S
Collecting Data

To use a different value, click Different. You are prompted for a value. You can use negative
numbers if needed. Click Enter.

NOTE: If you are using the Simulate.tun file that comes with RSLoop Optimizer, you might
want to use a larger value. The default is not much larger than the process noise, so you will
get better data if you use 10 or 15.

6. Click OK.
7. If the loop is in Auto mode or you are tuning a simulated loop, go to step 10.
a) If the loop is in Manual mode, the following prompt displays:

b) If you click Yes, you are prompted:

To get good data for tuning, RSLoop Optimizer needs to see the process variable respond
to the controller output. The amount of process variable response needs to be at least 4 to 6
times larger than the normal peak-to-peak noise in your process.
c) After the process variable moves by this amount, click Yes. RSLoop Optimizer changes
the controller output back to its original value.
8. The Performing Auto-Tune Sequence area prompts “Is the process settled out?”

9. When the process has steady state, click Yes.


10. The name of the archive file for this data is displayed. Click OK.
11. The Time data window for the data opens (See “Calculating Tuning Parameters” on page 67
for more information.) You can start verifying or editing your data and determining new PID
tuning values.

RSLoop Optimizer User’s Guide 55


TU N I N G C O N T R O L L O O P S
6 Manually Collecting Data

MANUALLY COLLECTING DATA


.........................................................
Requirements for gathering valid data:
„ Collect the process variable and controller output data from a step or pulse test. You can make
a setpoint or controller output change.
„ Both the process variable and controller output must start and end at a steady state condition
and include the complete response to the setpoint or controller output change. You should
allow at least 30 samples at each steady state.

WARNING: Plant data taken for RSLoop Optimizer analysis and tuning must have all process
variable filters removed from the signal.

NOTE: The data must not be from a load or process upset. Loads must not change during the
test and the range of test data should be as linear as possible. If a load change occurs during
the test, stop collecting data and start over.

COLLECTING DATA
In some cases, you might want to collect data manually instead of using the AutoTune sequence.
This is a basic procedure to collect data manually. This is a closed loop test with the controller in
the Auto mode.
Examples of other methods of collecting data manually are provided in “Application Notes” on
page 163.

NOTE: The data must not be from a load or process upset. Loads must not change during the
test and the range of test data should be as linear as possible. If a load change occurs during
the test, stop collecting data and start over.

1. Make sure the controller output is not at 0%, 100%, or saturated into a limit. If it is, change the
controller output to between 5% and 95% (or not at a limit). Valves are usually non-linear at
their limits.
2. Let the loop settle out (reach steady state).
3. Select Archive > Archive On (or click the Tape Recorder icon).
4. Change the controller setpoint by about 10%.
5. Wait for the process variable to respond an appreciable amount, then change the setpoint back
to its original value. Skip this step if your process can tolerate a new operating point.
6. Let the loop settle out (reach steady state).
7. Select Archive > Archive Off.

56 RSLoop Optimizer User’s Guide


.....
TU N I N G C O N T R O L L O O P S
Using Archived Data Files

DATA PAIR AND SAMPLE INTERVAL REQUIREMENTS


To get valid data for tuning and analysis:
„ The total points used for analysis must be at least 33 and not larger than one billion
„ If there are more than 1025 data pairs (process variable and controller output),
RSLoop Optimizer compresses the data to 1025 pairs.
„ Very high quality tuning can be determined with between 200 and 500 points of data.
If the data is compressed, the quality of the analysis and tuning might be poorer if the loop has a
small equivalent dead time compared to the data sample interval. Equivalent dead time is the
amount of time that it takes for your process variable to start changing appreciably after the
controller output changes.
Data should be collected with a sample interval that is at least 4 times faster than the equivalent
dead time of your process. If it is not, RSLoop Optimizer displays a message stating that, for
optimal tuning, the sample interval should be smaller.

USING ARCHIVED DATA FILES


.........................................................
RSLoop Optimizer stores data in archived data files that you can use to:
„ Test your loop
„ Prepare for manual tuning
„ Calculate tuning parameters
„ Perform “what if” analysis
„ Verify and edit data
„ Copy to an ASCII file
You can also add notes to the archived data.

ARCHIVING DATA
Data collected with the AutoTune sequence is automatically archived.
You can also manually archive data:
1. Select Archive > Archive On.
2. RSLoop Optimizer starts archiving data to a file with the same root as the .tun file.
For example, if the .tun file is FIC100.tun, the first archive file will be FIC100.001, the next
archive will be FIC100.002, and so on.
3. When you are done collecting data, select Archive > Archive Off.

RSLoop Optimizer User’s Guide 57


TU N I N G C O N T R O L L O O P S
6 Using Archived Data Files

When you turn archiving on, RSLoop Optimizer displays the name of the file where the data is
archived in the title bar of the Faceplate and Trend window:

NOTE: See online help for rules on archive file naming.

USING ARCHIVED DATA


Once archived data is collected, you can display it in the:
„ Faceplate and Trend window: Click Tune from archived data.

„ Off Line Analysis and PID Tuning window: In the main window, click Offline. The
Offline button is available after data has been archived.
The list of files looks like this in the Faceplate and Trend window:

It looks like this in the Off Line Analysis and PID Tuning window:

NOTE: The Time and Date shown in the “Collected” column indicate the time and date the
archive was started, based on the computer’s clock.

TUNING FROM ARCHIVED DATA


1. Click the archived data file name.
2. Click Tune.
3. The Time data window opens and the new tuning parameters are displayed.
4. Verify or edit the data. Zoom in to make sure you have a steady state at both the beginning and
end.

58 RSLoop Optimizer User’s Guide


.....
TU N I N G C O N T R O L L O O P S
Using Archived Data Files

5. Choose the desired tuning (Fastest, Fast, Slow, Setpoint, or Lambda).


6. Click Analysis and check the simulation results. Adjust tuning to be more or less aggressive,
based on the desired response.
7. When you are done tuning the data, click Back or Done Tuning.
8. Download new tuning to the controller.

DELETING ARCHIVED FILES


To delete an archived file, select the archived data file name from the Off-line Analysis and PID
Tuning window. Click Delete. The remaining data files will not have their file extensions
renumbered.

NOTE: This function does not delete the Control Loop file (.tun). See “Editing and Deleting
Loops” on page 14 for information on deleting a control loop configuration file.

ADDING NOTES TO AN ARCHIVED DATA FILE


The Loop Notes box to the right of the archived data files displays notes about the selected file.
RSLoop Optimizer adds notes automatically when a file is edited and saved. You can also add
notes manually.
1. Select the archive file from the list. Any existing loop notes are displayed.
2. Click Change Notes. The Edit Notes dialog box opens.
3. Type your notes in the Edit Notes dialog box.
To start a new paragraph in the Edit Notes window, press CTRL + ENTER.
4. Click OK.

SAVING ARCHIVED DATA TO A DIFFERENT FORMAT


Archived data files can be saved to an ASCII (.asc), printer (.prn), or comma-separated variable
(.csv) file. Once saved in these formats, data can be imported into other applications, such as MS
Excel or Lotus.
1. Select the data file.
2. Click Copy to ASCII.
3. The Save Data to ASCII File dialog box opens.
4. In the File name box, type the file name for the file.
5. In the Save as type box, select the file type.
6. Click Save.
An example of an ASCII file is shown below.

NOTE: Only a small portion of the information that is available is shown in the following
example. Depending on the number of trends created and the amount of archived data
collected, you will normally see more information.

RSLoop Optimizer User’s Guide 59


TU N I N G C O N T R O L L O O P S
6 Using Archived Data Files

Header Section
==============
Number Of Header Items: 40
Scan Interval: 1
Time Stamp Units: milliseconds
Number Of Channels: 3
Date/Time Data Collected: 10/16/97 11:06AM
Version: 9.06.16
Who Created Me: RSLoop Optimizer
Current P: 2
Current I: .58333
Current D: 0
Current F: 0
Channel 1 Description: PV
Channel 1 Eng. Min. Span: 0
Channel 1 Eng. Max Span: 100
Channel 2 Description: CO
Channel 2 Eng. Min. Span: 0
Channel 2 Eng. Max Span: 100
Channel 3 Description: SP
Channel 3 Eng. Min. Span: 0
Channel 3 Eng. Max Span: 100
Response Direction: up
Controller Algorithm: Allen Bradley PLC-5 PD file ISA, D on PV
Controller Type: ideal
PB Or Gain: gain
Integral Units: min/rep
PB Multiplier: 1
Integral Multiplier: 1
Derivative Multiplier: 1
Mode: 1
PID: 4
TimePlot AutoScale PV: 0
TimePlot AutoScale CO: 0
TimePlot PV Min: 41.63655
TimePlot PV Max: 49.87732
TimePlot CO Min: 39.31247
TimePlot CO Max: 55.48609
TimePlot Number of Lines: 0
TimePlot Line Position1: 0
Timeplot Line Position2: 0
Timeplot Line Position3: 0
Timeplot Line Position4: 0
Timeplot Line Position5: 0
Timeplot Line Position6: 0
Timeplot Line Position7: 0
Timeplot Line Position8: 0
Timeplot Line Position9: 0
Timeplot Line Position10: 0
Timeplot Line Position Hyst1: 0
Timeplot Line Position Hyst2: 0

60 RSLoop Optimizer User’s Guide


.....
TU N I N G C O N T R O L L O O P S
Using Archived Data Files

Timeplot Line Position Hyst3: 0


Timeplot Line Position Hyst4: 0
Characterizer Fit Type: 0
Characterizer Language: 0
Characterizer Lines: 0
Characterizer Blue Y1: 0

Number Of Points: 192


ArchiveNotes: Data collected manually with the controller in Auto
mode.

Data Section
============
PV CO SP
----------- ----------- -----------
41.46768 39.78901 42
41.30512 40.99653 42
41.62125 41.36135 42
41.5027 39.8148 42
41.64124 40.96721 42
41.89695 38.49328 40.85577
42.13604 31.08119 37.29519
42.30678 25.70074 35
42.32682 24.43569 35
42.26803 23.97164 35
41.42966 23.6704 35
39.54797 25.02115 35

RSLoop Optimizer User’s Guide 61


TU N I N G C O N T R O L L O O P S
6 Using Archived Data Files

USING THE PID AND PV FILTER DISPLAY


The current and new PID and F (PV filter) settings are displayed in the lower left of the Faceplate
and Trend window and in the Off Line Analysis and PID Tuning window (see the sample
below).

The Current PIDF settings are the PIDF values currently being used by the controller. The
New PIDF settings are the values that have been calculated through AutoTune or tuning, or
entered manually. They will be downloaded when you click the Download button. When values
are downloaded, the New settings are updated to reflect changes in the archived data or tuning. If
no changes have been made, N/A displays.
The Current and New F settings are the process variable filter times, which are set during tuning
by the Use... PV Filter option. They can also be manually entered. The filter time units default to
the same as the units for the derivation but can be set in the Loop Setup window. (See “Setting up
Extra Loops” on page 47 for more information.) If the value of P or I is changed, the Performance
Increase is recalculated and the analysis windows update if they are open.

CHANGING AND DOWNLOADING PIDF PARAMETERS TO THE


CONTROLLER
The PIDF values can be changed through the Faceplate and Trend window. The values can be
changed manually or you can have RSLoop Optimizer calculate them automatically using the
options described in “Controller Tuning” on page 69. When the values are correct for your system,
they can be downloaded to the controller.
Ch angi ng P ID P ara meter s Man uall y
1. Click the New box of the parameter you want to change.
2. Delete any existing characters.
3. Type the new value.
4. In the same manner, adjust the other tuning parameters, so that you have a “matched set” of P,
I, D and F.
5. You can now download the values as described below.

NOTE: Download is only available from the Faceplate, Trend and Tuning window.

62 RSLoop Optimizer User’s Guide


.....
TU N I N G C O N T R O L L O O P S
Using Archived Data Files

D ow nlo adin g P ID F P ara meter s to the Co ntr oll er

WARNING: Downloading different gain values while the processor is in the Run or Remote
Run mode might cause unexpected machine operation, which can result in injury, loss of life,
or machine damage.

To download the new PIDF parameters to the controller or the software simulator:
1. Click Download on the Faceplate and Trend window.

2. The Download dialog box opens.

3. Click Yes.
After the values are downloaded, the Current and New parameters should be identical.

NOTE: The Filter parameter must be configured before it can be downloaded. To use a filter,
you must modify the PLC code. (See “Filter Address Setup” on page 47 for more information.)

R etr ie ving Pr evi ous PID F S et tin gs


To check what the PIDF settings were before the download, you can use the Bring Back Previous
PIDF Settings to New option. When you select this option, the New settings are replaced with the
settings that had been in the Current column before the download.
To retrieve the previous values, select Options > Bring back Previous PIDF settings to New.
The values under New are changed to the values that were in Current before the download. These
values can be downloaded.

RSLoop Optimizer User’s Guide 63


TU N I N G C O N T R O L L O O P S
6 Using Archived Data Files

64 RSLoop Optimizer User’s Guide


U
. .SING . . . .T.IME
. . . . THE . . .D . . .W
. .ATA . .INDOW
.............. 7

.....
This chapter covers:
„ Changing the Time Data Window Display
„ Calculating Tuning Parameters
„ Controller Tuning
„ Editing Data in the Time Data Window
„ Verifying Data Using the Time Data Window
You can also access the output Characterizer from the Time data window. (See “Using the Output
Characterizer” on page 91 for more information.)

NOTE: Before working with data, it might be helpful to review “Data Pair and Sample Interval
Requirements” on page 57.

The Time data window displays the process variable and controller output data. Use this window
to verify that your data meets tuning requirements, or to edit data to optimize it before calculating
new parameters.
This window opens when:
„ The AutoTune sequence is complete
„ You select an archived data file and click Tune
„ You are in the Off-line Analysis and PIDF Tuning window and click Time Plot or Tune
This window can be moved anywhere on your screen and remains on top of other
RSLoop Optimizer windows. A sample Time data window is shown here.

RSLoop Optimizer User’s Guide 65


USING THE TIME DATA WINDOW
7

TIME DATA TOOLBAR


The toolbar is located near the top of the time data window.

Button Menu Command Description


Tune (Tuning Fork) button on Faceplate Calculate Tuning

Zoom > Zoom In Zoom In

Zoom > Zoom out to see all data Zoom out to see all data

Edit > Average Average

Edit > Line edit Line Edit

Edit > Filter Filter

Edit > Undo Undo Changes

Options > Statistical Analysis Statistical Analysis

Options > Histogram > Histogram of PV Histogram of PV

Options > Hysteresis Check > Automatic Hysteresis Check (automatic)

Options > Stiction Check Stiction Check

Options > Characterizer Characterizer

Options > Power > Power of PV Power of PV

Options > Correlation > Cross Correlation of Cross Correlation


PV and CO

Options > Report > Full Tuning Report Full Tuning Report

66 RSLoop Optimizer User’s Guide


.....
USING THE TIME DATA WINDOW
Changing the Time Data Window Display

CHANGING
. . . . . . . . . . . .T. H. .E. .T. I.M. E. . .D. A. .T.A. .W. .I.N.D. O. .W. . D. .I.S.P. L. .A.Y. . . . . . . . . . .
You can scale the Y-axis or change the line weight and type of graph that is displayed.

SCALING THE Y-AXIS


1. To change the scaling on the:
‹ PV (top) graph: Click Options > PV Axis Scale.
‹ CO (bottom) graph: Click Options > CO Axis Scale.

2. If:
‹ Auto Scaling is checked (the default), select Auto Scaling. This turns off auto scaling and
opens the Set Scale dialog box.
‹ Scaling is not checked, select Set Min, Max Scale.
3. Type the values that you want for the y-axis.
4. Click OK.

CHANGING LINE WEIGHT


Select Options > Thick Lines to make the lines in the graphs thicker. Click it again to make the
lines thinner.

CHANGING THE GRAPH TYPE


You can display the Time data window to a bar graph. Select Options > Plot As Bars. Select this
option again to switch it back.

CALCULATING TUNING PARAMETERS


.........................................................
You can calculate tuning parameters when the Time data window opens. The Time data window
opens:
„ Upon completion of the AutoTune sequence
„ When you click Tune from archived data from the faceplate, select a data file, and then click
Tune
„ From the Off-line Analysis and PIDF Tuning window when you select a data file and then
click Tune

RSLoop Optimizer User’s Guide 67


USING THE TIME DATA WINDOW
7 Calculating Tuning Parameters

When the Time data window opens, RSLoop Optimizer calculates and displays New PIDF
parameters for the control loop. It also adds the Controller Tuning, Probable Performance Increase
(or Are Current Settings Stable), and Analysis options to the Faceplate and Trend window.

Analysis button New PIDF parameters and Controller tuning


(Check your data by probable performance selections
clicking this button) increase or “Are current
settings stable?” message

The PIDF parameters are based on the data collected for your loop. More specifically, the data
shown in the Time data window is used for all calculations. If you modify or zoom in this
window, the results will change.
Before the loop is tuned, the New column displays N/A (not applicable) for each parameter. The
parameters in the New column are recalculated as you make changes in the Controller Tuning
section of the Faceplate and Trend window and as you make changes to data in the Time data
window.
You can also change any of the New tuning parameters yourself. Click the box of the parameter
you want to change, edit the value, and press Enter.
The Probable Performance Increase is updated as the PIDF parameters change and tells you how
much better the controller will respond to a load upset with the new PIDF parameters. It is the
percent probable performance increase in integrated absolute error (IAE) to a load upset assuming
the controller does not overshoot to a load upset with either the current or new parameters. If the
controller overshoots, the performance increase is an approximation that is roughly proportional to
the IAE improvement. It is still a good predictor of performance.
This box says None if the Probable Performance Increase is insignificant. Adding derivative might
increase the performance in these cases. (Click the Use derivative if possible box.)

68 RSLoop Optimizer User’s Guide


.....
USING THE TIME DATA WINDOW
Controller Tuning

To determine the optimal tuning parameters for your loop:


„ Verify and edit your data using the Time data window (below).
„ Select the desired tuning factors in the Controller Tuning section of the Faceplate and Trend
window (below).
„ Analyze the effects of the new PIDF parameters using the Analysis windows. (See “Control
Loop Analysis” on page 123 for more information.)

CONTROLLER TUNING
.........................................................
When the Time data window opens, you can select the controller tuning factors that you want to
use for this loop.
In RSLoop Optimizer, the tuning factors include a filter option that allows you to experiment with
types and sizes of filters.

NOTE: See “Tuning Theory” on page 21 for definitions of load tuning, setpoint tuning, safety
factor, and other RSLoop Optimizer parameters.

To select controller tuning factors:


1. From the:
‹ Faceplate and Trend window: Click Tune from archived data. Select a file and click
Tune.
‹ Off-line window: Click Tune.

‹ Time data window: Click the Tuning Fork icon.


The Time data window opens and the Controller Tuning section is added to the Faceplate and
Trend window, as shown here.

2. Pick the type of tuning you want to use:


‹ Load Tuning - Fastest: Recommended for most loops. Provides minimum absolute error
to step load.
‹ Load Tuning - Fast: Provides quarter amplitude damping.

‹ Load Tuning - Slow: Provides 10% overshoot.

‹ Set Point Tuning: Provides good setpoint response at the expense of good regulation.

RSLoop Optimizer User’s Guide 69


USING THE TIME DATA WINDOW
7 Using the PID Grid to Check Relative Response Time

‹ Lamba tuning: Select lag rule or Intg (integrator) rule. These options are grayed out if
they are not applicable to the process you are working on.

NOTE: To see what the PIDF settings would be for each type of tuning, click PID Grid, where
you will be able to change the settings and see the effects in one window.

3. For:
‹ Load Tuning: Type a Safety Factor between 1 and 5, with 1 being the most sensitive.

‹ Set Point Tuning: Type a Response time (in seconds). For a faster response, use a
smaller response time. For slower response, use a larger response time. The default value
that RSLoop Optimizer sets is conservative to prevent overshoot on setpoint change.
‹ Lambda Tuning: Type a Lambda time (sec). The lambda time sets the speed of
response. Adjust the lambda for the first order response time to setpoint you want. For
faster response, use a smaller lambda. For slower response, use a larger lambda.
4. To use derivative gain, select Use derivative if possible.
5. If you want to use filtering:
a) Select the Use PV Filter checkbox.
b) Select the type of filter from the PV Filter list.
RSLoop Optimizer calculates the largest possible filter without degrading performance.
Simulation and robustness plots update instantly to reflect your filter type and size.

6. Click Done tuning. The Time data window closes. If you are using the Off-line Analysis and
PID Tuning window, the PIDF parameter display is also closed.

USING
. . . . . . .T. H. E. . PID
. . . . G. . R. I.D. .T.O. .C. H. .E.C. K. .R. .E.L.A. T. I.V.E. .R. E. .S.P.O. N. .S.E. T. .I M. .E. .
Relative response time (RRT) is an indicator of the speed of the control loop. The smaller the
relative response, the faster the loop; the larger the response, the slower the loop. You can use this
number for comparisons.
The values for RRT are provided in the PID Tuning Grid. To open the grid, open the Time data
window and click PID Grid.
To derive the relative response time, RSLoop Optimizer:
„ Calculates the closed loop frequency response to a load upset
„ Finds the frequency value where the amplitude ratio peaks
„ Converts this frequency value to the period
If you use the faster tunings (Load fastest or Load fast), the PV might oscillate around the setpoint.
The period of this oscillation in the time response is roughly the same as the relative response time.
Change the relative response time by adjusting the safety factor or lambda time.

70 RSLoop Optimizer User’s Guide


.....
USING THE TIME DATA WINDOW
Editing Data in the Time Data Window

You can adjust the safety factor and the lambda time directly from the PID Grid making it easier to
directly see the effects on the RRT. Simply click on the set of values you would like to work with
then change them at will.
To prevent interaction in interacting loops, adjust the safety factor or lambda value (setpoint
speed) so that the relative response time is different by a factor of 5. For example, if you have 3
interacting loops and the fastest one has a period of 1 second, adjust tuning in the other two to
result in a relative response time of at least 5 and 25.
If you have a cascade loop, the master loop should have a relative response time that is 3 times
slower (larger) than the slave loop. Tune the slave loop and then tune the master. If the master has
a relative response time less than 3 times the slave loop, detune the master to get a relative
response time of 3 times the slave.

EDITING DATA
. . . . . . . . . . . . . . . .I.N. .T. H. .E. .T.I.M. E. . D. .A. T. .A. .W. .I .N.D. O. .W. . . . . . . . . . . . . .
Data in the Time data window can be zoomed, averaged, edited by line, and filtered.
After you edit the data, RSLoop Optimizer automatically recalculates and displays the PIDF
tuning, based on the changes.

ZOOMING
After collecting data, you might want to zoom in on the data you want to use for tuning. This is
typically the smallest window of data that starts at a steady state condition and ends within about
5% of steady state. You can zoom manually or use Auto Zoom. When Auto Zoom is used,
RSLoop Optimizer automatically tries to zoom in on the data that offers the best tuning.

Z oomin g Man uall y


To zoom in on your data:
1. Select Zoom > Zoom in or click the Zoom In button, shown at left.
2. Click the graph where you want to begin zooming.

RSLoop Optimizer User’s Guide 71


USING THE TIME DATA WINDOW
7 Editing Data in the Time Data Window

3. Click again where you want to end zooming. The portion of the graph you selected is
highlighted.

4. To change the zoomed area, click a new spot. You can do this as many times as needed.
Clicking the graph anywhere to the right of the midpoint moves the right edge of the
highlighted area. Clicking to the left of the midpoint moves the left edge.
‹ To include all of the data points to the left, click just outside the left side of the graph. To
include all of the data points to the right, click just outside the right side of the graph.
‹ To stop zooming, click Cancel Zoom.
5. Click Zoom Now or click the Zoom In button.
You can zoom in as many times as needed.
To return to the previous view, select Zoom > Zoom Back to Previous.
To return to the view of all data, select Zoom > Zoom Out or click the Zoom Out button.

Us ing Au to Zoom
To use Auto Zoom:
1. Select Zoom > Auto Zoom. The data is highlighted.
2. Click Zoom Now to accept the data.
Auto Zoom attempts to zoom based on the current data. If RSLoop Optimizer does not have the
proper data to perform Auto Zoom, the error message “Cannot automatically find a zoom location
in the data” is displayed. You can then either zoom manually, or recollect data and retry Auto
Zoom. (See “Data Collection Methods” on page 163 for methods of collecting data.)

AVERAGING DATA
RSLoop Optimizer uses your initial data as the steady state basis for all tuning and modeling.
Ideally, this data should start and end at steady state. However, if your initial data is noisy or
cycling, averaging might improve your tuning results. Average the controller output and the
process variable data to just where it starts changing due to the bump introduced as part of the test.

72 RSLoop Optimizer User’s Guide


.....
USING THE TIME DATA WINDOW
Editing Data in the Time Data Window

To average a portion of your data:


1. Select Edit > Average or click the Average button.
2. Click the beginning point of the data you want to average.
3. Click the end point of data you want to average. That section of data is highlighted.

Process
Variable

4. To change the area, click at the new spot. You can do this as many times as needed. Clicking
the graph anywhere to the right of the midpoint moves the right edge of the highlighted area.
Clicking to the left of the midpoint moves the left edge.
‹ To include all of the data points to the left, click just outside the left side of the graph. To
include all of the data points to the right, click just outside the right side of the graph.
‹ To stop averaging, click Cancel Avg.
5. To modify your data, click on the graph at the new beginning or end point of the data you wish
to average.
6. To accept the change click Avg now.
You can undo the last averaging operation by selecting Edit > Undo or clicking the Undo button.

CHANGING DATA POINTS TO A LINE


The line edit option allows you to change a series of data points to a line between two points you
select. This is useful for removing any noise spikes or other spurious data from your graph.
1. Select Edit > Line edit or click the Line Edit button.
2. Click the beginning data point you want to edit.
3. Click the point where the line should end.

RSLoop Optimizer User’s Guide 73


USING THE TIME DATA WINDOW
7 Editing Data in the Time Data Window

4. RSLoop Optimizer changes the data to be a line between the two points you picked. You can
edit as many data points as needed.

Noise spikes
have been
edited into a line.

5. Click OK.

To undo the line editing session, select Edit > Undo or click the Undo button. You can edit both
the PV and OP data.

FILTERING DATA
1. Select Edit > Filter (or click the Filter button). The Process Variable Filtering dialog box
opens.

2. Select the Filter type from the list. For filter descriptions, see the online help.
3. Type the Filter time constant in seconds. Pick a filter time large enough to eliminate as much
noise as possible without degrading loop performance. If the filter time constant is too large, it
can hurt loop performance, because the control system will try to control the filter.

WARNING: Filtering modifies your plant data. If you use a PV filter, subsequent tuning will be
based on the filtered process variable.

4. Click Test to test the effects of filtering. The graph in the Time data window is redrawn with
the filter values applied.
5. Click OK to accept the filter values or Cancel to ignore the changes.
To undo the filtering change, select Edit > Undo or click the Undo button.

74 RSLoop Optimizer User’s Guide


.....
USING THE TIME DATA WINDOW
Verifying Data Using the Time Data Window

SAVING CHANGES
After making editing changing in the Time data window, you can save the changes by selecting
Edit > Save changes. The edited data is automatically saved in a new archive data file.
RSLoop Optimizer keeps both the original and the edited data file or files. The edited file is
indicated by “Yes” in the Edited column. RSLoop Optimizer automatically adds a note that
identifies the original file.
The file that the
edited file was
created from.

Yes indicates
that data in this
file was edited.

VERIFYING DATA USING


. . . . . . . . . . . . . . . . . . . . . . . . . .T. H. .E. .T.I.M. E. . D. .A. T. .A. .W. .I .N.D. O. .W. . . . . . .
Use these tools to verify data:
„ Statistical Analysis
„ Histogram
„ Hysteresis Check

STATISTICAL ANALYSIS
Statistical analysis can be used to check the improvement in control with the new tuning
parameters. Before tuning, collect the normal operating data (with no setpoint changes) with the
controller in Auto. Download the new tuning parameters and collect normal operating data again.
Compare the statistics for both sets of data.
Statistical analysis will be applied to the selection in the Time data window. When using
statistics, be sure to compare apples to apples. For example, you may wish to compare statistics
for steady-state performance with old tuning and new tuning. In this case, you will want to select
data where there are no setpoint changes.

NOTE: Be sure to turn Archiving on when collecting data so you can save and compare the
two sets of data. Select Archive > On to start archiving. Select Archive > Off when data
collection is complete.

After you gather data for statistical analysis:


1. On the faceplate, select Tune from archived data.
2. Select the file to analyze.
3. Click Time Plot. The Time data window opens.
4. Use the zoom tools to zoom in on the portion of the data you wish to analyze.

RSLoop Optimizer User’s Guide 75


USING THE TIME DATA WINDOW
7 Verifying Data Using the Time Data Window

5. Select Options > Statistical Analysis. The Statistical Analysis dialog box opens, along with
the Histogram of PV window. (See “Hysteresis Check” on page 78 for more information.)

The Time data window also changes to show the statistics as mean, standard deviation, and 2x
standard deviation lines on the process variable graph.

2x Standard
deviation (green
lines)

Mean (red line)

Standard deviation
(blue lines)

The statistical information can be added to the loop report by selecting Options > Add to
Report.You will be given the option to add the data to the Before Statistics or the After Statistics
section of the report.
Definitions of the statistics are:
„ Sample (raw): The data collection sample interval in the archive.

„ Mean (µ): The average of your data.

mean = sum of your measurement data-


-------------------------------------------------------------------------
number of data points

76 RSLoop Optimizer User’s Guide


.....
USING THE TIME DATA WINDOW
Verifying Data Using the Time Data Window

„ Standard Deviation: The square root of the sample variance.

standard deviation = sample variance

„ Sample Variance: The spread or dispersion of your data.


2
( mean – x ( i ) )
sample variance = -------------------------------------------------------------
number of data points – 1

„ Variability: The relative value of variance. It is expressed as a percentage of the mean,


allowing comparison between the level of variability in different processes.

100x2 ( standard deviation )


variability = ----------------------------------------------------------------
mean

„ IAE - Integrated Absolute Error: Performance of a loop is judged by how closely the
controlled variable is held to the setpoint, both for setpoint changes and load changes. There
are many mathematical ways of judging this, and IAE is one type. IAE is a measure of
controller error defined by the integral of the absolute value of a time dependent error
function. When comparing IAE statistics, be sure to select equivalent time ranges for
comparison. The IAE calculation is not normalized for time.
„ CO Statistics: This capability is available in RSLoop Optimizer only. Travel and Reversals:
is the amount of valve travel and reversals. Travel is the total distance the valve has traveled in
the CO showing in the time graph. Reversals is the number of times the valve has changed
direction in CO showing in the time graph. Use these numbers along with the time simulations
to analyze and reduce valve wear. You should collect data from normal operating conditions in
automatic for these tests.
Set Travel and Reversals per Hour, Day, Week, Month, or Year to see how much your valve
would have travelled or reversed during that time period. For example, if your travel is
100%/day this means the valve would move a distance of its entire range in one day: it could
move from 0% to 100%, or it could move back and forth from 50% to 60%, 5 times each way.

RSLoop Optimizer User’s Guide 77


USING THE TIME DATA WINDOW
7 Verifying Data Using the Time Data Window

HISTOGRAM
The histogram option allows you to see the statistical spread of your data. Move the cursor over a
bar on the Histogram window to see the percentage of your data that is in this bar.
You can display a histogram of error, PV (as shown below), or CO. With a histogram of error, if
the data are grouped on one side of zero, a non-linearity is indicated.

In general, you will expect to see a bell-shaped curve for the histogram. A differently shaped
curve, such as the one shown here, bears further investigation. For example, a bi-modal curve (two
bell shapes separated by a flat spot in the middle) is an indicator of stiction in the valve.

HYSTERESIS CHECK
RSLoop Optimizer can perform a hysteresis check on your data. Hysteresis is a dead band in the
movement of a device upon a change of direction.
For example, if a valve is moving in one direction, it continues to move if the air signal keeps
moving in the same direction. But when the air signal changes direction, the valve has to stop and
reverse motion. Conditions like static friction and lost motion in linkages take time to overcome.
This time, or hysteresis, must be compensated for by the air signal increasing to an amount equal to
the hysteresis before the valve will move in the other direction.
If RSLoop Optimizer cannot calculate hysteresis from your data, an error message is displayed.
Click Yes to this message to display information on how to properly gather data to perform a
hysteresis check.
If your hysteresis is more than 1% for valves with positioners or 3% for valves without positioners,
consider repairing or changing equipment to try to reduce the hysteresis.

78 RSLoop Optimizer User’s Guide


.....
USING THE TIME DATA WINDOW
Verifying Data Using the Time Data Window

C oll ecti ng Dat a f or a H yst ere sis Che ck


The hysteresis check requires several controller output changes while the controller is in Manual
mode: two steps in one direction and one step in the other. To collect data for a hysteresis check:
1. In the Faceplate and Trend window, select Manual mode.
2. Select Archive > On or click the Tape Recorder button.
3. Wait for the process variable to settle out and collect a little more data to get normal process
noise.
4. Increase the controller output by 5%.
5. Wait for the process variable to settle out.
6. Increase the controller output by another 5%.
7. Wait until the process variable settles out.
8. Decrease the controller output by 10%.
9. Wait until the process variable is at steady state.
10. Hysteresis data can be added to the report by selecting Options>Add to Report from the
Valve and Noise Diagnosis & Analysis window.
(See “Data Collection Methods” on page 163 for additional methods of collecting data.)

NOTE: To properly assess hysteresis, the size of the bumps must be larger than the
hysteresis. The trouble is, you don’t know how much hysteresis exists before you do the tests.
If you make a CO bump, and nothing happens, then that bump does not count. You must
make another bump.

P er for min g t he H yst ere sis C hec k


Once the data has been collected, you can do the Hysteresis check:
1. Click Tune from archived data.
2. Select the archive file collected above.
3. Click Tune. You might see a message indicating that the data is questionable for tuning. You
can ignore this, as it does not reflect on the data’s suitability for a hysteresis check. Click OK.

RSLoop Optimizer User’s Guide 79


USING THE TIME DATA WINDOW
7 Verifying Data Using the Time Data Window

4. To check automatically: Select Options > Hysteresis check > Automatic or click the
Hysteresis button. The time data graph changes as shown below.

5. To check manually: Select Options > Hysteresis Check > Manually Choose.
‹ Four vertical lines are displayed on the graph. Drag the first three lines to a settled area
before each of the three controller output changes. Place the fourth line to a settled area
near the end of the graph (after the last CO change). To move a line, move the cursor over
it until the cursor turns into a double-sided arrow ( ). Hold down the left mouse button
and drag the line.
‹ Click Find.
6. The areas RSLoop Optimizer used to calculate hysteresis are indicated on the graph.
RSLoop Optimizer finds each of the three areas where steady state occurred in the process
variable after a step change. The areas are:
‹ p2: From the first steady state area to the second

‹ p3: From the second steady state area to the third

‹ A magenta line is drawn at the noiseband minimum and maximum values.


7. The controller output graph is labeled at each step change (C1, C2, and C3). If the controller
output data is noisy, average the data to make it clean between steps. (See “Averaging Data”
on page 72 for more information.)
8. Hysteresis data can be recorded in the report by selecting Options > Copy to Clipboard and
adding to the appropriate section of the report.

No tes on the Hys ter esis Ch eck


During the hysteresis check, information is displayed on valve sizing and transmitter span. Process
gain that is too high could be an indication of incorrect valve sizing, incorrect valve characteristic,
or a transmitter span that is not correct for the loop. If any of these items are incorrect, the loop can
be difficult to control, and usually results in a cycling loop.

80 RSLoop Optimizer User’s Guide


.....
USING THE TIME DATA WINDOW
Verifying Data Using the Time Data Window

Valve Oversized
An oversized valve cannot provide very fine control. Any valve has a rangeability factor that
determines how precisely it regulates. A good control valve might have a rangeability of 100 to 1,
which means you can make 1% adjustments in the output. The valve can also be referred to as
having a resolution of 1%. This allows finer control with less chance of inducing hunting or
cycling.
If a valve is oversized, the usable operating range of the valve gets smaller. For example, a valve
with a rangeability of 100 to 1 could be oversized for an application to the point that its effective
usable operating range is only 50 to 1 (process gain of 2). This translates to a resolution of 2%.
The oversized valve can only be adjusted within 2% instead of 1%. It no longer has tight control,
and the process might be hunting within the valve resolution. The oversized valve could also be
operating on its seat. A command could be sent to the valve, but it might not move off its seat since
control isn’t precise.
The solution to an oversized valve is to change the valve trim or replace the valve with one of the
appropriate size.

Valve Undersized
An undersized valve can be a safety problem since it might not have the range to control the
process. The solution to an undersized valve is to change the valve trim or replace the valve with
one of the appropriate size.

Transmitter Span Too Large


The most likely reason for the process gain to be too small is if the process variable transmitter
span is larger than it needs to be. The resolution of the measurement improves with a smaller
transmitter span.
The resolution of your measurement is the smallest change that your system can detect.
For example, you have a choice of two transmitters connected to a controller. The controller has a
12-bit analog to digital converter with a resolution of 1 in 4096 (212 = 4096). Converted to
percentage: 1/4096 = 0.0002441 ≈ 0.024%.

Controller A/D Span of 0 to 4096


Resolution of 1 degree

Resolution
of 0.024% Span of 100 to 500
Resolution of 0.1 degree

You are measuring temperature and one of the transmitters has a span of 0 to 4096. With the
12-bit converter described above, you are only able to measure and control within 1 degree:
4096 * 0.024% ≈ 1

RSLoop Optimizer User’s Guide 81


USING THE TIME DATA WINDOW
7 Adding Data from the Time Data Window to the Report

The other transmitter has a span of 100 to 500 degrees. Your resolution would improve
approximately 0.1 degrees: 500 – 100 = 400 400 * 0.024% ≈ 0.1
Now your system could detect a change of 0.1 degrees instead of 1 degree.
If you only need to detect and control a measurement within a certain range, choose a transmitter
span that represents what you need.

Transmitter Span Too Small


The process gain of the loop might be large if the transmitter span is too small or too narrow. The
solution is to widen the span. This will result in small movements to the control valve, causing
large changes to the PV. Since small valve movements are subject to valve problems, a large
process gain will have the effect of amplifying any valve problems.

NOTE: If a PV signal is scaled within the PLC ladder logic, you may lose some resolution for
the control. You should take extra care to ensure that the PV signal reaching the PID block
has adequate resolution for your control needs.

ADDING DATA FROM THE TIME DATA WINDOW TO THE


REPORT
.........................................................
To add data from the Time data window to the report, select either:
„ Options > Report > Full Tuning Report: Generates the full tuning report.

„ Options > Report > Just Add This to Report: Places this graphic in the tuning report for
this loop. RSLoop Optimizer displays a list of options for placing the time plot into the report.
„ Options > Copy to Clipboard: Copies the data to the clipboard from which it can be pasted
into the appropriate section of the report.
(See “Creating a Report for a Control Loop” on page 40 for more information on reporting.)

USING POWER SPECTRAL DENSITY PLOTS


.........................................................
Power Spectral Density graphs show the relative power in the signal at various frequencies ranging
from twice the sample time to twice the data collection period. Power Spectral Density graphs are
useful for seeing the potential improvement from better tuning.
More information on interpreting and applying the Power Spectral Density graphs is provided in
“Using Power Spectral Density Graphs” on page 149.
To display this graph, select Options > Power from the menu or click the Power of PV button.
Select one of the following options:
„ Power of Deviation shows the spectrum of Error (PV - setpoint). This option might not
always be available.

82 RSLoop Optimizer User’s Guide


.....
USING THE TIME DATA WINDOW
Using Power Spectral Density Plots

„ Power of PV shows the spectrum of the process variable.

„ Power of CO shows the spectrum of the controller output.

Sample Power of CO Graph

COLLECTING DATA FOR POWER SPECTRAL DENSITY GRAPHS


When gathering data for analysis with a Power Spectral Density graph, the data should not have
any setpoint or manual output changes. Collect data at normal operating conditions.
Collect process variable data with the controller in Auto (closed loop) before and after tuning. The
lower the amplitude in the power spectral density graphs, the better the tuning.
The power spectrum of open loop data defines the break point between frequencies containing
disturbances or those containing insignificant noise. The goal is to react to disturbances only.
Therefore, the graph can also be used to identify any cyclic disturbances and their frequencies. To
do this, collect process variable data with the controller in manual (open loop) mode. Spikes in the
power spectral density graph below the crossover frequency are suspect. Is the spike from a cyclic
disturbance, or could it be caused by mechanical vibrations, or some other source?

OPTIONS FOR VIEWING POWER SPECTRAL DENSITY GRAPHS


The Options menu on the Power Spectral Density graph allows you to customize the graph using
the following functions:
„ Linear or Logarithmic: Peaks from cycling are often easier to see on a linear scale. Large
and small amplitude signals are often easier to see at on a logarithmic display. On a
logarithmic display, each frequency range has the same importance, so small signals are easily
seen.
„ Frequency (X-axis) units of measure: Cycles/sec (Hz), radians/sec, or seconds.
Radians/sec is typically used for the Process Frequency Response and Power Spectral Density
plots. Process and controller time constants correspond well to frequency response plots.
„ Y-axis scale: Set to power or the square root of power. The Y-axis is Deviation, PV, or CO,
depending on the graph selected.
„ Power or Cumulative Power: Standard Power Spectral Density Graph.

Cumulative Power is only available if Linear is selected. This option displays the Cumulative
Power Spectral Density graph, which quickly shows you how many of the cyclic disturbances

RSLoop Optimizer User’s Guide 83


USING THE TIME DATA WINDOW
7 Using Power Spectral Density Plots

are below a certain frequency. Cumulative power is used to detect frequency ranges where the
power increases. It is also useful for determining the frequency at which the power stops
increasing. It is a sum of all the power normalized so that the total is 100%. (The Deviation,
PV, or CO on the Y-axis is displayed as a percentage.) The standard power spectrum might not
easily show the contribution of a frequency to the total noise present. A frequency on the
power spectrum could be 10% of total noise or 90%; Power Spectral Density alone does not
show this. Cumulative Power shows that a certain percentage of the cyclic disturbances are
below a specific frequency.
„ Lines: Display the graph using lines. Lines are useful for finding tendencies and trends. This
can be misleading, however, if the distance between points is not constant, as when the
frequency is displayed in seconds. This is an example of a display using lines. In this case, it
might be better to use bars (see the example for Bars, below).

„ Bars: Bars are useful for seeing the exact location of the points, the number of points, and the
value for each point.

„ Report > Add to Report: Places this graphic in the tuning report for this loop. (See
“Creating a Report for a Control Loop” on page 40 for more information.)

ZOOMING AND OMITTING ZERO FREQUENCY


These options are on the Power Spectral Density Zoom menu. (See “Zooming” on page 71 for
information on Zoom in, Zoom Back to previous, and Zoom Out.)

84 RSLoop Optimizer User’s Guide


.....
USING THE TIME DATA WINDOW
Using Power Spectral Density Plots

Omit Zero Freq (DC) omits frequencies close to zero from the graph and adjusts the Y-axis
accordingly. This zooms in on the data as shown in the examples below.

Without Omit Zero Freq (DC) checked

With Omit Zero Freq (DC) checked

SCALING THE Y-AXIS


You can enter your own minimum and maximum scale for the Y-axis (the vertical axis) using the
options in the Y-Axis Scale menu.
Auto Scaling is set by default. A checkmark next to Auto Scaling on the menu indicates that it is
set.
If auto scaling is on:
1. Turn off auto scaling. Select Y-Axis Scale > Auto Scaling.
2. Enter the minimum and maximum values that you want for the Y-axis and click OK.
If auto scaling is off:
1. Select Y-Axis Scale > Set Min, Max Scale.
2. Enter the minimum and maximum values that you want for the Y-axis and click OK.
3. To return to the original scaling, select Y-Axis Scale > Auto Scaling.

RSLoop Optimizer User’s Guide 85


USING THE TIME DATA WINDOW
7 Using Cross and Auto Correlation

INCREASING THE NUMBER OF DATA PAIRS


For tuning and analysis, you would rarely need more than about 500 data pairs. However, for more
accurate Power Spectral Density or Correlation plots, you might want to use more points. The
maximum number of pairs is set to 1024 by default.
To change the maximum number of data pairs:
1. Close the faceplate to return to the main RSLoop Optimizer window.
2. Select a loop in the Choose a Loop list.
3. Select Options > Advanced.
4. Select a number from the Maximum Number Of Points list on the Frequency tab and click
OK.
This setting applies only to the currently selected loop and is in effect in future sessions of
RSLoop Optimizer until you change it.

USING CROSS
. . . . . . . . . . . . . . . .A.N. D. . .A. U. .T.O. .C. .O. R. .R.E. L. A. .T.I.O. N. . . . . . . . . . . . . . . . .
The correlation options (listed below) help you check loop interaction and detect hidden cycling.
„ Cross Correlation of PV and CO: Cross Correlation can help you determine whether two
loops are interacting with each other.
„ Auto Correlation of PV and CO: Auto Correlation helps detect hidden cycling. Oscillations
are more evident in the Auto Correlation graph than in the Time data window.
To display a correlation graph:
1. From the Time data window, click Options > Correlation.
2. Select one of the following options:
‹ Cross Correlation of PV and CO
‹ Auto Correlation of PV
‹ Auto Correlation of CO

86 RSLoop Optimizer User’s Guide


.....
USING THE TIME DATA WINDOW
Loop Summary Table

A sample of the Auto Correlation graph is shown here.

In the cross correlation graph, the correlation shown on the graph should be near zero if there are
no dependencies. The closer the correlation is to 1 or –1, the greater the interaction between the
two loops. For most normal situations, the correlation bars should shrink away to inside the blue
bars within 10 dead times.
In the auto-correlation graph, a reduction in area under the auto-correlation curve tells you if
tuning has improved the control by making it more random.

LOOP SUMMARY TABLE


.........................................................
The Loop Summary Table helps you select the best tuning values for your control loop. Click the
Loop Summary button situated near where RSLoop Optimizer displays recommended tuning
values.
When you analyze a loop with RSLoop Optimizer you will often make a number of disturbances in
the loop. You will zoom in to analyze each disturbance. RSLoop Optimizer will come up with
slightly different tuning values depending on the quality of the data, whether or not the loop is non-
linear, and perhaps the direction of the disturbance. Use the Loop Summary Table to record and
view all the different tuning values.

RSLoop Optimizer User’s Guide 87


USING THE TIME DATA WINDOW
7 Loop Summary Table

The Loop Summary Table calculates the average tuning values and also the most conservative
tuning values. Some loops are non-linear and behave differently at different ends of the range.
Some loops behave differently in one direction to the other. For example, temperature loops
usually heat up quicker than they cool down. With these loops, you should analyze the loop at
different ends of the range and/or in both directions and use the most conservative tuning values.

COLUMN DESCRIPTIONS
Archive column: The archive file number from which the tuning values were obtained.

Zoom start, end columns: The portion of the archive file from which the tuning values were
obtained.
P, I, D, F columns: The recommended tuning values.

Fit column: The quality of frequency data fit.

Gain column: The process gain obtained by RSLoop Optimizer

DT column: The process dead time obtained by RSLoop Optimizer

Lag1 column: If RSLoop Optimizer modelled the process to have a single or double lag the first
or only process lag is shown.
Lag2 or Lead column: If RSLoop Optimizer modelled the process to have a double lag or a lead,
the second process lag or the lead time is shown. A process lead is only shown if the loop is an
inverse response process.
Intg column: If RSLoop Optimizer modelled the process as an integrating process, ‘yes’
displays.
Stability column: Relative Stability Index. This shows the most conservative or most stable
tuning as 100. All other tuning rows are listed relative to the most conservative row. They have
values less than 100 indicating the amount they are less conservative. For example, a value of 50
indicates that tuning is twice as aggressive as the most conservative tuning. When you add another
row of tuning values to the table, the entire column may change.
RRT column: The relative response time of the loop with these tuning values.

88 RSLoop Optimizer User’s Guide


.....
USING THE TIME DATA WINDOW
Loop Summary Table

Units row: The second row of the table (in grey) shows the units for the model. If different models
contain different units then the Loop Summary table converts the models with longer time units to
those of shorter ones. For example, if one model had units in seconds and another in minutes, the
model with units in minutes would be converted to seconds.
Add button: Click the Add button to add an extra line of tuning values to the Loop Summary
table. The values added correspond to the PID tuning values currently visible in the column
headed ‘New’.
Remove button: Click the Remove button to remove the line that is currently highlighted.

Copy to New button: Click this button to have RSLoop Optimizer copy the PID and F values on
the currently highlighted line to the ‘New’ column. It is the reverse of the Add button.
Double-clicking on a line of PID and F values has the same effect as clicking the Copy to New
button.
Right-click on the window for other methods of copying PID and F values to the New column:
„ Add the window to a Microsoft Word document
„ Copy the window to the clipboard as a bitmap so that it can be pasted into any document.

RSLoop Optimizer User’s Guide 89


USING THE TIME DATA WINDOW
7 Loop Summary Table

90 RSLoop Optimizer User’s Guide


U
. .SING . . . .O. UTPUT
. . . . THE . . . . . .C. HARACTERIZER
................. 8

.....
RSLoop Optimizer provides both output and pH (input) Characterizers. This chapter only
discusses the output Characterizer. (See “Using the pH Linearizer” on page 109 for more
information.)
This chapter covers:
„ Example of When to Use the Output Characterizer
„ Building a Characterization Curve
„ Using Characterizer with RSLogix Frameworks
„ Examples of Using the Characterizer Code in RSLogix 5
Many control loops are difficult to tune because they are non-linear. This means that the process
gain changes as a function of the measurement or controller output. Without any linearization, the
controller needs to be tuned for the condition where the process gain is the highest. This results in
sluggish tuning everywhere else. Linearizing these loops improves control because the controller is
better tuned over the complete operating range.
The output Characterizer takes the output of the controller and transforms it to a value so that the
control loop is linear over the entire range of control. A control loop with a characterizer should
allow you to have robust optimal tuning parameters anywhere over the CO or PV range.
Use the output characterizer:
„ If servo control is important
„ If you need to linearize flow loops, jacket temperature in split-range chemical reactors, or
slave loops in cascades
„ For any loop where the setpoint will change
„ If the linearity of the loop changes with load or production rate
Characterizer can supply code in FORTRAN, Basic, C, or X-Y line endpoints. If you are using
RSLogix Frameworks, you can download the X and Y values directly to the Lin function. Use the
code to program the PID loop in your ladder logic. (See “Using Characterizer with RSLogix
Frameworks” on page 100 for ladder logic examples.)

PID Block Characterizer

PV Output
to valve

Using an output characterizer

RSLoop Optimizer User’s Guide 91


USING THE OUTPUT CHARACTERIZER
8 Example of When to Use the Output Characterizer

EXAMPLE OF WHEN TO USE THE OUTPUT


CHARACTERIZER
.........................................................
A typical example of when to use the output Characterizer is shown here. This process oscillates
toward one end of the range and has sluggish response at the other.

With a characterizer, you might be able to get uniform performance across the entire range of your
process. This allows your process to run optimally without de-tuning for oscillations.

Characterizer tests the final control element with the rest of the process to guarantee a good fit
between the characterization curve and the installed characteristic of the final control element and
process.

BUILDING
. . . . . . . . . . . A. . C. .H. A. .R.A. C. .T.E. R. .I Z. .A.T. I.O. N. . .C. U. .R.V. E. . . . . . . . . . . . . . . . .
Before using the output Characterizer, make sure the controller is tuned to stabilize the loop at that
value of controller output where the loop gain is highest.
You must complete these steps to use the Characterizer:
„ Collect process data
„ Start the Characterizer
„ Run the Build Characterizer Wizard

92 RSLoop Optimizer User’s Guide


.....
USING THE OUTPUT CHARACTERIZER
Building a Characterization Curve

COLLECTING PROCESS DATA


You need to collect some process data at different operating points in either auto or manual. If you
collect data in auto mode, you will bump the setpoint rather than the controller output.
1. On the Faceplate and Trend window, select manual or automatic control.
2. Select Archive > Archive On.
3. In:
‹ Auto mode: Change the setpoint to 10% of the process variable.

‹ Manual mode: Change the controller output to 10% of the process variable.

4. Let the process reach steady state.


5. Increase the setpoint (manual) or controller output (manual) by 15% of the initial controller
output.
6. Let the process settle out (reach steady state).
7. Repeat steps 5 and 6 until you have collected data at 7 data points.
8. Select Archive > Archive Off.

STARTING CHARACTERIZER
1. On the Faceplate and Trend window, click Tune from archived data.
2. Select the archive file you just created.
3. Click Tune.
4. In the Time data window, select Options > Characterizer.
5. Place a vertical line over each steady state area and double-click. This places a line at that
point, as shown in the example below.

NOTE: RSLoop Optimizer saves your characterization curve. Therefore, if you have already
built a characterization curve for this archive, the lines are already placed. You can go directly
to the Build Characterizer Wizard or adjust the line positions first.

Added lines at
each steady
state area

‹ Adding a line: Place the cursor where you want the line and double-click.

RSLoop Optimizer User’s Guide 93


USING THE OUTPUT CHARACTERIZER
8 Building a Characterization Curve

‹ Moving a line: Position the cursor over a line (cursor changes to a double ended arrow),
hold down the left mouse button and drag.
‹ Deleting a line: Position the cursor over the line (cursor changes to a double ended
arrow) and double-click.
6. Click Build. Follow the instructions in “Run the Build Characterizer Wizard,” below.

RUN THE BUILD CHARACTERIZER WIZARD


This wizard walks you through verifying the process characteristic, selecting linear or hyperbolic
fit, and selecting the programming language.
The steps required for the Build Characterizer Wizard depend on the type of fit, Piecewise Linear
or Hyperbolic, that you choose.
If you choose Piecewise Linear, the Characterizer creates a characterizer that is split into several
line segments.
If you choose Hyperbolic, the Characterizer creates a characterizer that uses one simple equation.
The equation is:
CO
Valve = -----------------------------------------------
[ L + ( 1 – L ) × CO ]
Where:
‹ Valve= Output of the Characterizer
‹ CO= Controller output
‹ L= Linearity constant
The hyperbolic characterizer allows you to tune it in the field by adjusting L. This might permit
you to correct a problem without looking at the entire process characteristic. If the loop cycles at
low CO, increase L. If cycling at high CO, decrease L. At the end of the characterizer wizard,
RSLoop Optimizer provides you with code to include in your control program. This code includes
the equation above. To adjust L in the field, change the value of L used in your program. See
page 105 for example ladder logic for the hyperbolic fit.
You need to adjust controller gain when you adjust L. As a general rule, prior to applying a
characterizer, the controller has already been tuned to stabilize the loop at that value of controller
output where the loop gain is highest. Therefore, when the characterizer is properly applied, it
reduces the loop gain at that output, and allows the controller gain to be increased by the same
factor. The gain of the characterizer at 0% CO is 1/L, and at 100% CO is L. So if L is set at less
than one to eliminate cycling at 100% CO, the controller gain can be increased by a factor of 1/L.
Conversely, if L is set at greater than one to eliminate cycling at 0% CO, the controller gain can be
increased by a factor of L. In both cases, the controller gain can be increased. This is the purpose of
the characterizer — to allow a higher controller gain while keeping stability across the operating
range.

94 RSLoop Optimizer User’s Guide


.....
USING THE OUTPUT CHARACTERIZER
Building a Characterization Curve

R unn ing th e B uild C har acte rize r Wizar d wit h P iec ewi se L inea r f it
1. If you haven’t done so, on the Time data window, click Build.

NOTE: If you have already built a characterization curve for this archive, the final characterizer
screen, shown on page 96, is displayed.

2. The Build Characterizer Wizard starts and displays a graph of PV vs. CO, similar to the one
shown here.

Each point plotted (with a +) on the graph corresponds to one of the lines you placed on the
time graph. Look at this graph to verify your process characteristic.
‹ Does the curve represent your process? If not, click Cancel and collect another set of data.
‹ Below the graph, RSLoop Optimizer lists the process’s lowest and highest gains and their
ratio. The ratio of the highest gain to lowest gain should be less than two, with an absolute
maximum of three. RSLoop Optimizer comments on the linearity of your loop and
provides some direction on the benefit of characterization for your loop. If the loop does
not require characterization, click Cancel.
‹ If characterization seems appropriate, click Next to continue. (You might see some graphs
flash briefly across the screen.)
3. Select Piecewise Linear as the type of fit.
4. Click Next.
5. Use the Lines to Use list box to select the number of line segments to use.
6. Click Next.
A graph is displayed that shows both the characterizer lines and the process characteristic.
Drag the red and blue boxes on the characterizer so that the line matches the process
characteristic.
To move a box, place the cursor over the box. The cursor changes to crosshairs (+) over red
boxed or a double-ended arrow over a blue box. Drag the box as needed.

RSLoop Optimizer User’s Guide 95


USING THE OUTPUT CHARACTERIZER
8 Building a Characterization Curve

You start with a graph that looks something like:

After moving the red and blue boxes, the graph looks something like:

NOTE: Use the Auto Adjust button to automatically move the red design points between the
actual process characteristics. With the cursor, space the red design points as you want them
and click Auto-Adjust to move them up or down to the proper location.

7. To add a box, place the cursor where you want the new box. Double-click.
8. To delete a box, place the cursor over the box and double-click.
9. Click Next.
You might not be able to get the curves to match exactly at this point. The last wizard screen
will allow you to expand the graph above and below the current endpoints, giving you more
room to move the blue endpoints. This can help you achieve a closer match.
10. Select the programming language for your characterizer code. Click Finish.
If you selected X-Y pair list, be aware that X is the vertical axis (the characterizer input).
11. On the final screen, you can make changes to the characterizer and copy the characterizer
code. The buttons and options are described in “Final Characterizer Wizard Screen” on
page 99.

96 RSLoop Optimizer User’s Guide


.....
USING THE OUTPUT CHARACTERIZER
Building a Characterization Curve

R unn ing th e B uild C har acte rize r Wizar d w it h H ype rb olic Fit
1. If you haven’t done so, on the Time data window, click Build.

NOTE: If you have already built a characterization curve for this archive, the final characterizer
screen, shown on page 96, is displayed.

2. The Build Characterizer Wizard starts and displays a graph of PV vs. CO, similar to the one
shown here.

Each point plotted (with a +) on the graph corresponds to one of the lines you placed on the
time graph. Look at this graph to verify your process characteristic.
‹ Does the curve represent your process? If not, click Cancel and collect another set of data.
‹ Below the graph, RSLoop Optimizer lists the process’s lowest and highest gains and their
ratio. The ratio of the highest gain to lowest gain should be less than two, with an absolute
maximum of three. RSLoop Optimizer comments on the linearity of your loop and
provides some direction on the benefit of characterization for your loop. If the loop does
not require characterization, click Cancel.
‹ If characterization seems appropriate, click Next > to continue. (You might see some
graphs flash briefly across the screen.)
3. Select Hyperbolic fit.
4. Click Next.
A graph is displayed that shows both the characterizer line and the process characteristic.
5. Drag the red and blue boxes on the characterizer so that the line matches the process
characteristic.

RSLoop Optimizer User’s Guide 97


USING THE OUTPUT CHARACTERIZER
8 Building a Characterization Curve

You start with a graph that looks something like:

NOTE: Use the Auto Adjust button to automatically move the red design points between the
actual process characteristics. With the cursor, space the red design points as you want them
and click Auto-Adjust to move them up or down to the proper location.

After you adjust the line, the graph looks something like this.

NOTE: You might not be able to get the curves to match exactly at this point. The last wizard
screen allows you to adjust the graph to get a closer match.

6. Click Next.
7. Select the programming language for your characterizer code.
8. Click Finish.
9. On the final screen, you can make changes to the characterizer and copy the characterizer
code. The buttons and options are described in the following.

98 RSLoop Optimizer User’s Guide


.....
USING THE OUTPUT CHARACTERIZER
Building a Characterization Curve

FINAL CHARACTERIZER WIZARD SCREEN


The final Characterizer Wizard screen allows you to adjust the Characterizer results.

„ Process characteristic and characterizer: You can edit the graph in the same manner as
in step 6.
„ Choose The Type of Fit: Change the fit type to Piecewise Linear or Hyperbolic. You need
to edit the graph again as described in the specific procedures.
„ Hyperbolic Fit: (Hyperbolic Fit Characterizer only.) The linearity constant for the hyperbolic
equation.
„ Zoom: Click Expand Top or Expand Bottom to extend the display of the graph above or
below, respectively. You can then drag, create, and delete boxes above or below the original
graph in the same manner as in step 6. Once expanded, additional buttons become available:
Shrink Top returns the top of the graph to its original position (any changes made in the area
above the graph remain). Shrink Bottom performs the same function as Shrink Top, except
on the bottom of the graph, and Expand All or Shrink All expands or contracts both.
„ Auto Adjust: The Auto Adjust button automatically moves all the red design points between
the actual process characteristics. With the cursor, space the red design points as you want
them and click Auto Adjust to move them up or down to the proper location.
„ Language for Characterizer Code: Select FORTRAN, Basic, C, X-Y pair list (Piecewise
Linear Fit only) or Structured text for the programming language.

NOTE: With the Structured Text option, you can copy the resulting code from the Code to
use area into a control block that is using structured text language and your loop will be
linearized.

„ Create Code: Updates the code if you made changes to the characterizer graph.

RSLoop Optimizer User’s Guide 99


USING THE OUTPUT CHARACTERIZER
8 Using Characterizer with RSLogix Frameworks

„ Copy: Copies the displayed code to the clipboard.

„ Report: Creates a report with, or adds to an open report, a graphic of this dialog. (See “Using
RSLoop Optimizer” on page 27 for more information about reporting.)
„ Close: Closes the dialog.

„ Gains: Displays Linearity Info (maximum and minimum gain, loop linearity, etc.).

„ Help: Displays online help regarding the characterizer.

The information on this screen is saved so that the next time you run the characterizer for the same
archived data file, it is immediately display so that you do not have to complete all the steps in the
Build Characterizer Wizard again.

USING CHARACTERIZER
. . . . . . . . . . . . . . . . . . . . . . . . . .W. I.T. H. . R. .S. .L.O. G. .I .X. .F. R. A. .M. E. .W. O. .R. K. .S. .
The X,Y values can be directly downloaded to the Frameworks Lin function block.
In RSLogix Frameworks:
„ Connect the CV_EU output of your PID function block to a Lin function block.
„ Configure your Lin function block as a straight-through transfer function. Set SegTot=1,
X1=0, X2=100, Y1=0, Y2=100.
„ Name your Lin function after the PID function block. For example, if you named your PID
block TIC1, name the Lin function block TIC1_Lin.
„ Make sure the Engineering Units Min and Max for the CV_EU output of the PID function
block are 0 and 100.

100 RSLoop Optimizer User’s Guide


.....
USING THE OUTPUT CHARACTERIZER
Examples of Using the Characterizer Code in RSLogix 5

EXAMPLES OF USING THE CHARACTERIZER CODE IN


RSLOGIX 5
.........................................................
This section includes two examples of characterizer code translated to ladder logic in RSLogix 5
programming software. The code is different depending on whether you chose piecewise linear or
hyperbolic fit while building the characterization curve.

PIECEWISE LINEAR FIT EXAMPLE


RSLoop Optimizer’s characterizer provided the following code for a piecewise linear fit with
seven lines.

X-Y Pair List BASIC


X = characterizer input (controller REM CO is the controller output.
output) REM (characterizer input).
Y = characterizer output (final output) REM Valve is the characterizer output.
X Y REM NOTE: This code does no CO
limiting.
0 0
3.956 13.29 If (CO <3.956) Then
8.907 27.97 Valve = 3.359*CO + 0
ElseIf (CO <8.907) Then
28.71 53.5
Valve = 2.966*CO + 1.555
42.54 63.99 ElseIf (CO <28.71) Then
50.57 71.33 Valve = 1.289*CO + 16.49
ElseIf (CO <42.54) Then
84.38 92.31
Valve = 0.7584*CO + 31.72
100 100 ElseIf (CO <50.57) Then
Valve = 0.915*CO + 25.06
ElseIf (CO <84.38) Then
Valve = 0.6205*CO + 39.95
Else
Valve = 0.4924*CO + 50.76
End If

Ladder logic corresponding to this code is shown on the following pages.

RSLoop Optimizer User’s Guide 101


USING THE OUTPUT CHARACTERIZER
8 Examples of Using the Characterizer Code in RSLogix 5

PID
PID
0000
Control Block PD12:0
Process Variable N10:4
Tieback 0
Control Variable N13:0
Setup Screen

Write data block


AO1
LES CPT
0001 Less Than (A<B) Compute
Source A N13:0 Dest N10:62
0< 0<
Source B 3.956 Expression (3.359*N13:0)+0.0
3.956 <

Write data block


AO1
GEQ LES CPT
0002 Grtr Than or Eql (A>=B) Less Than (A<B) Compute
Source A N13:0 Source A N13:0 Dest N10:62
0< 0< 0<
Source B 3.956 Source B 8.907 Expression (2.966*N13:0)+1.555
3.956 < 8.907 <

Write data block


AO1
GEQ LES CPT
0003 Grtr Than or Eql (A>=B) Less Than (A<B) Compute
Source A N13:0 Source A N13:0 Dest N10:62
0< 0< 0<
Source B 8.907 Source B 28.71 Expression (1.289*N13:0)+16.49
8.907 < 28.71 <

102 RSLoop Optimizer User’s Guide


.....
USING THE OUTPUT CHARACTERIZER
Examples of Using the Characterizer Code in RSLogix 5

Write data block


AO1
GEQ LES CPT
0004 Grtr Than or Eql (A>=B) Less Than (A<B) Compute
Source A N13:0 Source A N13:0 Dest N10:62
0< 0< 0<
Source B 28.71 Source B 42.54 Expression (0.7584*N13:0)+31.72
28.71 < 42.54 <

Write data block


AO1
GEQ LES CPT
0005 Grtr Than or Eql (A>=B) Less Than (A<B) Compute
Source A N13:0 Source A N13:0 Dest N10:62
0< 0< 0<
Source B 42.54 Source B 50.57 Expression (0.915*N13:0)+25.06
42.54 < 50.57 <

Write data block


AO1
GEQ LES CPT
0006 Grtr Than or Eql (A>=B) Less Than (A<B) Compute
Source A N13:0 Source A N13:0 Dest N10:62
0< 0< 0<
Source B 50.57 Source B 84.38 Expression (0.6205*N13:0)+39.95
50.57 < 84.38 <

Write data block


AO1
GEQ CPT
0007 Grtr Than or Eql (A>=B) Compute
Source A N13:0 Dest N10:62
0< 0<
Source B 84.38 Expression (0.4924*N13:0)+50.76
84.38 <

RSLoop Optimizer User’s Guide 103


USING THE OUTPUT CHARACTERIZER
8 Examples of Using the Characterizer Code in RSLogix 5

Rungs for 1771-IFE module at rack 0, group 0, slot 0


12 Bit Analog Input

Block Transfer Write


control block
N10:0 BT9:1 BTW
0008 ] [ ] [ Block Transfer Write (EN)
0 EN Module Type 1771-IFE 12 Bit Analog Input
Rack 000
(DN)
Block Transfer Write
configure bit Group 0 ( ER)
B11:0 Module 0
] [ Control Block BT9:1
0 Data File N10:20
First scan of ladder Length 37
or SFC step Continuous No
S:1
] [
15
Block Transfer Read
control block
BT9:0 BTR
0009 ] [ Block Transfer Read (EN)
EN Module Type 1771-IFE 12 Bit Analog Input
Rack 000
(DN)
Group 0 ( ER)
Module 0
Control Block BT9:0
Data File N10:0
Length 20
Continuous No

Rungs for 1771-OFE module at rack 0, group 1, slot 0


12 Bit Analog Output

Block Transfer Write


control block
BT9:3 BT9:2 BTW
0010 ] [ ] [ Block Transfer Write (EN)
EN EN Module Type 1771-OFE 12 Bit Analog Output
Rack 000
(DN)
Group 1 ( ER)
Module 0
Control Block BT9:3
Data File N10:62
Length 13
Continuous No

104 RSLoop Optimizer User’s Guide


.....
USING THE OUTPUT CHARACTERIZER
Examples of Using the Characterizer Code in RSLogix 5

Block Transfer Read


control block
BT9:3 BT9:2 BTR
0011 ] [ ] [ Block Transfer Read (EN)
EN EN Module Type 1771-OFE 12 Bit Analog Output
Rack 000
(DN)
Group 1 ( ER )
Module 0
Control Block BT9:2
Data File N10:57
Length 5
Continuous No

0012 (END )

HYPERBOLIC FIT EXAMPLE


RSLoop Optimizer’s Characterizer provides the following BASIC code for a hyperbolic fit.

REM CO is the controller output


REM (characterizer input).
REM Valve is the characterizer output.
REM NOTE: This code does no CO limiting.

Y = CO / 100
X = Y / (0.3492 + (1 – 0.3492)*Y)
Valve = X* 100 + 0

RSLoop Optimizer User’s Guide 105


USING THE OUTPUT CHARACTERIZER
8 Examples of Using the Characterizer Code in RSLogix 5

PID
PID
0000
Control Block PD12:0
Process Variable N10:4
Tieback 0
Control Variable N13:0
Setup Screen

CPT
0001 Compute
Dest N7:0
0<
Expression N13:0 | 100

CPT
0002 Compute
Dest N7:1
0<
Expression N7:0 | (0.3492+((1.0-0.3492)*N7:0))

Write data block


AO1
CPT
0003 Compute
Dest N10:62
0<
Expression (N7:1*100)+0

Rungs for 1771-IFE module at rack 0, group 0, slot 0


12 Bit Analog Input

Block Transfer Write


control block
N10:0 BT9:1 BTW
0004 ] [ ] [ Block Transfer Write (EN)
0 EN Module Type 1771-IFE 12 Bit Analog Input
Rack 000
(DN)
Block Transfer Write
configure bit Group 0 ( ER)
B11:0 Module 0
] [ Control Block BT9:1
0 Data File N10:20
First scan of ladder Length 37
or SFC step Continuous No
S:1
] [
15

106 RSLoop Optimizer User’s Guide


.....
USING THE OUTPUT CHARACTERIZER
Examples of Using the Characterizer Code in RSLogix 5

Block Transfer Read


control block
BT9:0 BTR
0005 ] [ Block Transfer Read (EN)
EN Module Type 1771-IFE 12 Bit Analog Input
Rack 000
(DN)
Group 0 ( ER )
Module 0
Control Block BT9:0
Data File N10:0
Length 20
Continuous No

Rungs for 1771-OFE module at rack 0, group 1, slot 0


12 Bit Analog Output

Block Transfer Write


control block
BT9:3 BT9:2 BTW
0006 ] [ ] [ Block Transfer Write (EN)
EN EN Module Type 1771-OFE 12 Bit Analog Output
Rack 000
(DN)
Group 1 ( ER)
Module 0
Control Block BT9:3
Data File N10:62
Length 13
Continuous No

Block Transfer Read


control block
BT9:3 BT9:2 BTR
0007 ] [ ] [ Block Transfer Read (EN)
EN EN Module Type 1771-OFE 12 Bit Analog Output
Rack 000
(DN)
Group 1 ( ER )
Module 0
Control Block BT9:2
Data File N10:57
Length 5
Continuous No

0008 (END )

RSLoop Optimizer User’s Guide 107


USING THE OUTPUT CHARACTERIZER
8 Examples of Using the Characterizer Code in RSLogix 5

108 RSLoop Optimizer User’s Guide


U
. .SING . . . .P.H. .L.INEARIZER
. . . . THE ..................... 9

.....
Many control loops are difficult to tune because they are non-linear. This means that the process
gain changes as a function of the measurement or controller output. Without any linearization, the
controller needs to be tuned for the condition where the process gain is the highest. This results in
sluggish tuning everywhere else. Linearizing these loops improves control because the controller is
better tuned over the complete operating range.
The pH Linearizer takes the input of the controller and transforms it to a value so that the control
loop is linear over the entire range of control. A control loop with a characterizer should allow you
to have robust optimal tuning parameters anywhere over the PV range.
Use the pH (input) Linearizer for:
„ pH loops
„ Oxidation-reduction loops
„ Temperature control loops on distillation columns, where the temperature profile is steep in
the center
pH Linearizer can supply code in FORTRAN, Basic, C, or X-Y line endpoints. If you are
programming the PID loop in ladder logic, see “Examples of Using the Linearizer Code in
RSLogix 5” on page 114.
This chapter covers:
„ Using the pH Linearizer
„ Programming the pH Linearizer into Your PLC
„ Examples of Using the Linearizer Code in RSLogix 5

USING
. . . . . . . .T.H. E. . P. .H. . L. .I N. .E.A. R. .I Z. .E.R. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
The pH Linearizer wizard walks you through designing a pH Characterizer.
Before using the pH Linearizer, you need to:
„ Know the ranges for your pH transmitter
„ Collect data
To use the pH Linearizer:
1. On the main window, select the loop.
2. Select Options > pH Linearizer. The Enter pH transmitter ranges dialog box opens.

RSLoop Optimizer User’s Guide 109


USING THE PH LINEARIZER
9 Using the pH Linearizer

3. Type the range for your transmitter. An example is shown here.

4. Click Next. The Enter Titration Data dialog box opens.


5. Type the titration data. Some guidelines for entering data:
‹ The data should represent the entire range of pH input you want to linearize.
‹ The data should be within the minimum and maximum ranges set for the transmitter.
‹ The order in which data is entered is not important. RSLoop Optimizer will sort the data
for you.
‹ Data must be changing in the same direction. RSLoop Optimizer checks to make sure the
signs of the slopes for your data are the same.
‹ If you need to add more rows, click Add a New Row.

NOTE: Use Remove Last Row to delete any empty rows before clicking Next.

110 RSLoop Optimizer User’s Guide


.....
USING THE PH LINEARIZER
Using the pH Linearizer

NOTE: After you enter your titration data and click Next, your titration data is saved to the .tun
file. Returning to the pH characterizer will bring up the last data you entered, even if you
cancel before completing the pH Linearizer wizard.

6. Click Next. The Build a Characterizer dialog box opens. An example is shown here.

Process
variable (pH)
scale

Titrated
volume scale

Each point plotted (with a +) on the graph corresponds to one of the values you entered. Check
this graph to verify your process characteristic.
‹ Does the curve represent your process? If not, click Cancel and enter another set of data.
‹ Below the graph, RSLoop Optimizer lists the process’s slopes. The lowest slope is the
lowest gain and the highest is the highest gain. The ratio (Max/Min) of the highest gain to
lowest gain should be less than three, preferably less than 2. RSLoop Optimizer also
indicates the linearity of your loop and provides suggestions for how to improve it. If the
loop does not require characterization, click Cancel.
‹ If characterization seems appropriate, go to the next step.
7. Click Next. (You might see some graphs flash briefly across the screen.) The Build a
Characterizer dialog box opens.
8. In the Build a Characterizer dialog box, you can drag the red and blue boxes as needed to
change the process characteristic.

NOTE: Use the Auto Adjust button to automatically move the red design points between the
actual process characteristics. With the cursor, space the red design points as you want them
and click Auto-Adjust to move them up or down to the proper location.

RSLoop Optimizer User’s Guide 111


USING THE PH LINEARIZER
9 Using the pH Linearizer

Each red box represents a data point that you entered.


To move a box, place the cursor over the box. The cursor changes to crosshairs (+). Drag the
box to the new position.
To add a box, place the cursor where you want a new box and double-click.
To delete a box, place the cursor over the box and double-click.
9. Click Next. The dialog box for selecting a programming language opens, as shown here. This
is the language RSLoop Optimizer uses to write code for this characteristic.

10. Select the programming language.

NOTE: If you selected X-Y pair list, be aware that X (the characterizer input) is the vertical
axis.

11. Click Finish. On the final screen, you can make changes to the characterizer and copy the
characterizer code.

‹ Process characteristic and characterizer: You can edit the graph in the same manner
as in step 8.
‹ Language for Characterizer Code: Select FORTRAN, Basic, C, X-Y pair list
(Piecewise Linear Fit only) or Structured text for the programming language.

112 RSLoop Optimizer User’s Guide


.....
USING THE PH LINEARIZER
Programming the pH Linearizer into Your PLC

NOTE: With the Structured Text option, you can copy the resulting code from the Code to
use area into a control block that is using structured text language and your loop will be
linearized.

‹ Code to use: You can edit the code in this box.

‹ Create Code: Updates the code if you made changes to the characterizer graph.

‹ Copy: Copies the displayed code to the clipboard.

‹ Report: Creates a report with, or adds to an open report, a graphic of this dialog. (See
“Creating a Report for a Control Loop” on page 40 for more information about report
functions.)
‹ Gains: Displays the gains of this loop.

‹ Close: Closes the dialog.

‹ Help: Displays help about the pH Linearizer.

PROGRAMMING
. . . . . . . . . . . . . . . . .T.H.E. . P. H. . .L. I.N. E. .A. R. I. Z. E. .R. .I .N.T. O. . Y. .O. U. .R. .P. L. .C. . . .
The pH Linearizer characterizer must be applied to both the pH signal and the setpoint. The PLC
must see both of these signals characterized.
To program the pH Linearizer into your PLC:
1. Scale your controller between 0 and 100%.
2. Display the uncharacterized pH.
3. Set the setpoint entry to a point before characterization.
4. Setpoint and process variable values for display and operation should be reading values before
the characterizer block.
Setpoint
Characterizer Controller
Setpoint
Operator
Setpoint
PID Controller

Operator
Process Controller
Variable Process Variable
Process
Variable
Characterizer

RSLoop Optimizer User’s Guide 113


USING THE PH LINEARIZER
9 Examples of Using the Linearizer Code in RSLogix 5

EXAMPLES OF USING THE LINEARIZER CODE IN


RSLOGIX 5
.........................................................
This section includes two examples of characterizer code translated to ladder logic in RSLogix 5
programming software. The code is different depending on whether you chose piecewise linear or
hyperbolic fit while building the characterization curve.
The pH Linearizer provided the following code for a pH transmitter range of 2 to 12, with 10
points of titration data.

X-Y Pair List BASIC


X = characterizer input PV or SP REM PV is the PV or SP input
Y = characterizer output to PV or SP REM (characterizer input).
REM ToCont is the characterizer output.
X Y
REM NOTE: This code does no PV limiting.
1.999 0
If (PV <2.301) Then
2.301 11.13
ToCont = 36.8*PV - 73.56
3 22.24 ElseIf (PV <3) Then
ToCont = 15.89*PV - 25.45
3.499 33.35
ElseIf (PV <3.499) Then
5.999 44.46 ToCont = 22.25*PV - 44.52
ElseIf (PV <5.999) Then
7 55.54
ToCont = 4.446*PV + 17.79
8.001 66.65 ElseIf (PV <7) Then
9 77.76 ToCont = 11.07*PV - 21.93
ElseIf (PV <8.001) Then
9.598 88.87 ToCont = 11.1*PV - 22.13
9.899 100 ElseIf (PV <9) Then
ToCont = 11.13*PV - 22.37
ElseIf (PV <9.599) Then
ToCont = 18.54*PV - 89.13
Else
ToCont = 37.13*PV - 267.6
End If

Ladder logic corresponding to this code is shown on the following pages.

114 RSLoop Optimizer User’s Guide


.....
USING THE PH LINEARIZER
Examples of Using the Linearizer Code in RSLogix 5

PID
0000 PID
Control Block PIDA
Process Variable PV_LIN
Tieback 0
Control Variable PIDA_CV
Setup Screen

LES CPT
0001 Less Than (A<B)
Compute
Source A PV_PH
Dest PV_LIN
0<
0<
Source B 2.301
Expression (36.8 * PV_PH)-73.56
2.301<

GEQ LES CPT


0002 Grtr Than or Eql (A>=B) Less Than (A<B) Compute
Source A PV_PH Source A PV_PH Dest PV_LIN
0< 0< 0<
Source B 2.301 Source B 3 Expression (15.89*PV_PH)-22.45
2.301< 3<

GEQ LES CPT


0003 Grtr Than or Eql (A>=B) Less Than (A<B) Compute
Source A PV_PH Source A PV_PH Dest PV_LIN
0< 0< 0<
Source B 3 Source B 3.499 Expression (22.25*PV_PH)-44.52
3< 3.499<

GEQ LES CPT


Grtr Than or Eql (A>=B) Less Than (A<B) Compute
0004
Source A PV_PH Source A PV_PH Dest PV_LIN
0< 0< 0<
Source B 3.499 Source B 5.999 Expression (4.446*PV_PH)+17.79
3.499< 5.999<

GEQ LES CPT


0005 Grtr Than or Eql (A>=B) Less Than (A<B) Compute
Source A PV_PH Source A PV_PH Dest PV_LIN
0< 0< 0<
Source B 5.999 Source B 7 Expression (11.07*PV_PH)-21.93
5.999< 7<

GEQ LES CPT


0006 Grtr Than or Eql (A>=B) Less Than (A<B) Compute
Source A PV_PH Source A PV_PH Dest PV_LIN
0< 0< 0<
Source B 7 Source B 8.001 Expression (11.1*PV_PH)-22.13
7< 8.001<
GEQ LES CPT
0007 Grtr Than or Eql (A>=B) Less Than (A<B) Compute
Source A PV_PH Source A PV_PH Dest PV_LIN
0< 0< 0<
Source B 8.001 Source B 9 Expression (11.13*PV_PH)-22.37
8.001< 9<

RSLoop Optimizer User’s Guide 115


USING THE PH LINEARIZER
9 Examples of Using the Linearizer Code in RSLogix 5

GEQ LES CPT


0008 Grtr Than or Eql (A>=B) Less Than (A<B) Compute
Source A PV_PH Source A PV_PH Dest PV_LIN
0< 0< 0<
Source B 9 Source B 9.598 Expression (18.54*PV_PH)-89.13
9< 9.958<
GEQ CPT
0009 Grtr Than or Eql (A>=B) Compute
Source A PV_PH Dest PV_LIN
0< 0<
Source B 9.598 Expression (37.13*PV_PH)-267.6
9.598<

116 RSLoop Optimizer User’s Guide


V. .ALVE
. . . .S . . . . . .W
. .TICTION . . . . .O
. .IZARD . .VERVIEW
............ 10

.....
The word stiction is made from the words ‘stick’ and ‘friction’. It is the resistance to the start of
motion. Stiction or stick-slip occurs because of tight packing, undersized actuators, or corroded
stems. Sticking at the seat is very common especially for valves designed for tight shutoff.
For an example of stiction, think of moving a desk on a hardwood floor a quarter of an inch. When
you start pushing on the side of the desk the pressure builds up until it finally breaks loose and
moves farther than you wanted it to. Valve stiction is similar — where pressure builds up and the
valve finally moves, resulting in the valve settling in the wrong place. The effect is that stiction
always produces an oscillating process variable.
Of all the valve problems, stiction is the most harmful to a process, since the controller will push to
move the valve, until the process variable reaches the set point. If stiction is present, the valve will
move too much and the process variable will go too far. Then, the controller output will reverse
direction and the same thing will happen again. The limit cycle caused when the control valve
sticks and then suddenly slips during a change in input signal is called stick/slip cycle.
This chapter covers:
„ The Stiction Wizard
„ Stiction Check
„ Using the Stiction Wizard

THE STICTION WIZARD


.........................................................
The Stiction Wizard helps you discover if valve stiction is degrading performance. The wizard
guides you (automatically) through determining a quantitative measure of the stiction in your
control loop. Anything more than 0.5% stiction will decrease your loop’s performance —
correcting the situation may dramatically reduce cycling and improve performance. The wizard
also allows for manual selection of the stiction band, allowing for stiction determination even in
the cases where noise is excessive.
It is impossible to give a general rule of how much stiction a loop can tolerate. It depends on the
loop and the overall process. The important thing is to determine if the amount of stiction in the
loop is detrimental to the overall process.

RSLoop Optimizer User’s Guide 117


VA L V E S T I C T I O N W I Z A R D O V E R V I E W
10 Stiction Check

STICTION CHECK
.........................................................
Using RSLoop Optimizer’s stiction checker, you can get a quantitative measurement of the stiction
in a loop. This makes it easier for you to diagnose lack of performance.

HOW TO COLLECT DATA FOR STICTION


The following steps will guide you through process of gathering data for the stiction wizard to
analyze.
1. Put your control in Manual mode (as shown below) and start archiving data (by selecting
Archiving On from the Archive menu, or clicking the tape recorder icon).

2. After the process variable has settled out, collect a little more data (45 seconds or more) to get
normal process noise, then double-click Controller Output and quickly increase it by 5%.
3. Wait until the process variable (PV) settles out (wait at least 30 seconds) and increase the
controller output (CO) quickly by another 0.2%.
4. Repeat Step 3 until the PV moves from the change you made.
5. In the RSLoop Optimizer PID Analyzer/Tuner, zoom in on the steps, being sure to get initial
steady state data, and select Stiction Check from the Options menu.

118 RSLoop Optimizer User’s Guide


.....
VA L V E S T I C T I O N W I Z A R D O V E R V I E W
Stiction Check

After you have collected the data, the archived data should have small steps similar to the sample
below.

You will be able to see the stiction where the PV line suddenly realizes that the CO has been
increasing all along while it has been stuck on the same path. It will then jump up to the CO line
and resume on track (the jump is circled in the illustration above).

S ti ctio n A nal ysis - F ir st Page


After you have collected data, the analysis report of the stiction consists of two separate pages. On
the first page, the stiction tester will first attempt to place lines before each controller output
change. You can drag, add or delete lines with your mouse if you wish. Click Next when the lines
accurately mark times just before each CO change.

S ti ctio n A nal ysis - S econ d P age


Next, the stiction tester will draw horizontal lines in the PV graph to indicate the average value of
the PV for each CO settled value. Each section of CO settled area will have a corresponding PV
area marked in a yellow, then red, line. The red line indicates the PV values averaged during this
time frame. The yellow lines extend to the previous red line so you can easily see if the PV has
moved.
To detect small stiction, our CO changes are small. When the valve overcomes the stiction, the PV
may move a corresponding small amount. The average PV will help you to detect small changes
(corresponding to the small CO change) among the process noise.

RSLoop Optimizer User’s Guide 119


VA L V E S T I C T I O N W I Z A R D O V E R V I E W
10 Using the Stiction Wizard

USING
. . . . . . . .T.H. E. . S. .T. I.C. T. I. O. .N. .W. .I .Z.A. R. .D. . . . . . . . . . . . . . . . . . . . . . . . . . .
1. On the Faceplate and Trend window, click Tune from archived data.
2. Select the archive file you just created.
3. Click Tune.
4. In the Time data window, select Options > Stiction Check.
5. A message box prompts you to drag lines before each CO change. There are already lines
placed on the graph because RSLoop Optimizer makes an attempt to place them for you
initially, you are just “fine-tuning” the settings.

6. To Add A Line: Move the cursor to a settled area you would like to mark. Double-click or
right-click and select Add. Add a line for each settled area in the data. The dashed line is
currently selected.
To Move A Line: To position a line, drag it with the mouse: Position the cursor over a line
(cursor changes to a double-headed arrow: ↔), hold down the left mouse button and move the
cursor.
To Delete A Line: Position the cursor over the line (cursor changes to a double-headed arrow:
↔). Double-click or right-click and select Delete.
7. Once your lines are placed correctly click Next on the upper left corner of the graphs.
8. Another message box prompts you to drag the lines to mark the stiction band (once again
RSLoop Optimizer has attempted to place them for you).

9. Red line: The length of the red line indicates the time the PV has been averaged. If you feel
the red lines are not long enough, repeat the test increasing the time between each small CO
change. The height of the red line is the average value of PV during this time.
Yellow line: The yellow lines extend as far as the previous red line so you can easily see if the
PV has moved.
10. Mark Stiction Band: RSLoop Optimizer has placed two vertical lines on the graph,
attempting to automatically mark the COs of the stiction band. Move these COs to accurately

120 RSLoop Optimizer User’s Guide


.....
VA L V E S T I C T I O N W I Z A R D O V E R V I E W
Using the Stiction Wizard

mark the stiction band, if necessary. The first line should mark the settled time before the first
small CO change. RSLoop Optimizer has probably placed this line correctly. The second CO
should mark the settled time that the PV actually moved from one of the small steps you made.
11. Click the Next button at the top left of the graphs.
12. The results are displayed, giving you the % Stiction, along with the High controller output and
the Low controller output used in the calculation of the % Stiction.

13. The stiction information can be added to the loop report by clicking the Report button.

RSLoop Optimizer User’s Guide 121


VA L V E S T I C T I O N W I Z A R D O V E R V I E W
10 Using the Stiction Wizard

122 RSLoop Optimizer User’s Guide


C . . . . . . .L.OOP
. .ONTROL . . . .A. NALYSIS
.................... 11

.....
RSLoop Optimizer provides advanced analysis tools that you can use to test your tuning
parameters before downloading them to the controller. Five of the analysis tools are available by
clicking Analysis on the Faceplate. They include:
„ Process Model
„ Process Frequency Response (Bode) Plot
„ Control Loop Simulation Plot
„ Robustness Plot
„ Performance Summary
These tools can be used to do “what if” analysis of your tuning parameters before you download
them to the controller.
RSLoop Optimizer also provides these analysis tools:
„ Time Line Analysis
„ Performance Evaluation
„ Power Spectral Density plots
„ Auto- and Cross-Correlation

NOTE: The quality of the information in the analysis windows depends on the quality and
relevance of the data that you collected. RSLoop Optimizer models are based on frequency
response. Frequency response is based on the data shown in the Time data window.

USING
. . . . . . . .T.H. E. . S. .T. A. .N.D. A. .R.D. . A. .N. A. .L.Y. S. I. S. . T. .O. O. .L.S. . . . . . . . . . . . . . . .
1. To use the Process Model, Process Frequency Response, Control Loop Simulation, Time Line
Analysis and Robustness plots:
2. Open the Faceplate and click Tune from archived data or
3. Select the loop name and click Off-line
4. Select the archive file to tune.
5. Click Tune. The Time data window opens.

RSLoop Optimizer User’s Guide 123


CONTROL LOOP ANALYSIS
11 Process Model

NOTE: You must work with an archive file that contains at least one valid bump. The bump
can be from data collected in Manual or Auto mode.

Analysis button
(Check your
data by clicking
this button)

6. Click Analysis. All four analysis plots open.

NOTE: If you close one of the analysis windows, all of the analysis windows close.

When you change a PID tuning value, the Control Loop Simulation and Robustness plots
update immediately. See “Robustness Plot” on page 133.

7. Begin working with the plots by selecting a model from the Process Model window.

PROCESS MODEL
.........................................................
The Process Model window shows the process model type identified for your control loop.
RSLoop Optimizer uses your process frequency response to identify the model as first order,
second order, or integrating process.

NOTE: The quality of your models, simulation, and robustness depend on the quality and
relevance of your time data.

1. Adjust the plot windows so that you can see the Process Model, Process Frequency Response,
and Robustness Plot.
2. Check the data on the Process Frequency Response and Robustness Plots.
3. In the Process Model window, select a different Model type from the list (Force steady state
gain or Allow gain to float). The plots change to reflect the new model.

124 RSLoop Optimizer User’s Guide


.....
CONTROL LOOP ANALYSIS
Options in the Process Model Window

4. Check the data on the Process Frequency Response and Robustness Plots.
5. In the Process Model window, select the Model type that fits your data the best.

NOTE: The Process Frequency Response plots both the actual and the model data. Choose
the model that is closest to the actual data of Amplitude Ratio and phase. The most important
frequencies are where the phase is between approximately 90 and 180 degrees (phase lead)
or –90 and – 180 degrees (phase lag).

The Robustness Plot shows the trade-off between tight tuning and sensitivity to process
changes. If you have two sets of tuning with about the same robustness, you can generally
choose the faster response.

6. Once you’ve determined the best Process Model, you can use the Process Simulation window
and the Robustness Plot to analyze the calculated and current PID parameters.

OPTIONS
. . . . . . . . . . I.N. . T. H. .E. .P. R. .O. C. .E.S. S. . M. . O. .D.E. L. . W. . I. N. .D.O. W. . . . . . . . . . . . . .
The table in this window shows the gain, dead time, and time constant values for the selected
Model type. If RSLoop Optimizer identifies the model as second order, you see two Time constant
entries in the table: 1st Time constant and 2nd Time constant. If your process type is integrator, the
first order time constant value displays the word integrator. (The integrator process is discussed
more in “Application Notes” on page 163) If the model is second order and the roots are
imaginary, the time constant displays the word imaginary.

MODEL TYPE
All of the analysis windows depend on the model type chosen. Two models are available. When
you choose a different model, all the analysis windows update. The model types are:
„ Allow gain to float: Causes RSLoop Optimizer to ignore steady state information and fit the
model based on higher frequencies. These higher frequencies are more important to optimal
and stable closed loop control.

RSLoop Optimizer User’s Guide 125


CONTROL LOOP ANALYSIS
11 Options in the Process Model Window

„ Force steady state gain: Forces the steady state gain to be equal to the amplitude ratio at the
lowest frequency. The model is fit using the remaining good frequencies. The lowest (or zero)
frequency values for amplitude ratio and phase are not plotted on the frequency plot, so at the
lowest plotted frequency, the model frequency response might not appear to match the
process.
If you selected the Inverse Response option in the Advanced window during loop setup, the model
will also show a lead time and integrator.

STARTING THE SIMULATOR


This option is available by selecting Start Simulator With This Model from the Options menu.
This starts the simulator using information from the selected model. See “Simulate Window” on
page 37.

ADDING TO A REPORT
Adds the information from this window to the report. Y This option is available by selecting Add
to Report from the Options menu. See “Creating a Report for a Control Loop” on page 40.

USING DYNAMIC MATRIX CONTROL (DMC)


Dynamic Matrix Control is a multivariable control algorithm that uses plant models to achieve
optimal control. In DMC, a model of the individual pieces of the process are represented in a
coefficient matrix. Each process in the matrix is modeled by using the open loop step response of
the process. RSLoop Optimizer calculates and creates a file with the coefficient vector that can be
used with a DMC product.
To select this option, select DMC from the Options menu. The Process Model window expands
as shown here.

The Sample interval is the interval between moves or between coefficients of the step response
vector. Enter a number equal to or greater than the sample interval of your process data.
Click Save vector to create a text file with the coefficient vector representing the step response of
the process model.The standard Windows Save dialog box is displayed. You can accept the default
file name and location or specify your own. The file contains three columns of numbers. The first

126 RSLoop Optimizer User’s Guide


.....
CONTROL LOOP ANALYSIS
Process Frequency Response (Bode) Plot

column contains the vector coefficients, the second column contains the coefficient counter or
index, and the third column contains the time.

PROCESS FREQUENCY RESPONSE (BODE) PLOT


.........................................................
The Process Frequency Response plot (also known as a Bode plot) shows both the actual and the
model process frequency responses for comparison. Actual process data usually is noisy or jittery
at higher frequencies (toward the right). Use this plot to help you determine which process model
is best. In general, you want the closest fit at frequencies where the phase is between about -90 and
-180 degrees.
RSLoop Optimizer uses the data in this plot to calculate new PID tuning parameters.

The left vertical axis is the scale for the amplitude ratio in decibels. Two plots of amplitude ratio
are provided, one based on actual data and the other based on the Model type.
The right vertical axis is the scale for phase angle in degrees. Two plots of the phase angle are
provided, one based on actual data and the other based on the Model type.
The amplitude ratio and phase angle are plotted against frequency in radians/time (logarithmic
scale) on the horizontal axis. The lines are color coded.
The process frequencies most important to process control are those between about minus 90 and
minus 180 degrees of phase.
In Process Frequency Response plots for first order time constants, the corner frequency (or cut-off
frequency) is where the amplitude ratio starts to turn and the phase lag equals 45 degrees. Consider
a sine wave input to a process at this corner frequency. The output of a first order process has half
the input power at the corner frequency.

RSLoop Optimizer User’s Guide 127


CONTROL LOOP ANALYSIS
11 Control Loop Simulation Plot

A lag time or first order time constant of 10 has a corner frequency of 1/10. A PID controller with
an integral time of 10 also has a corner frequency of 1/10. A PID controller with a derivative time
of 10 has a corner frequency of 1/10; however, for derivative, this represents a phase lead of 45
degrees rather than phase lag.
To find these frequencies:
1. Look at the red scale on the right of the plot. Locate –90 and –180.
2. Find the stretch of the red phase angle line between –90 and –180. These are the most
important phases.
3. See where the –90 and –180 phase points line up vertically with the blue amplitude ratio line.
These are the most important amplitude ratios.
The Process Frequency Response plot is based on process data only, and therefore does not update
if the PID tuning changes. It only updates when the Model changes. This can happen if you change
the model type, or if you zoom in to a different bump in the Time data window.
The Options menu on the Process Frequency Response window allows you to:
„ Display the plot in Radians/sec. This is the default.
„ Display the plot in Cycles/sec.
„ Show High Frequencies. With this option checked, RSLoop Optimizer shows amplitude ratio
and phases for frequencies with phases lower than –270 degrees.
„ Add to Report. See “Creating a Report for a Control Loop” on page 40 for more information
on reports.

CONTROL LOOP SIMULATION PLOT


.........................................................
The Control Loop Simulation plot shows you a simulated response so you can see how the loop
will respond before downloading tuning parameters. Use this plot to perform “what if” analysis on
your control loop by trying different settings and checking the response.
You can view setpoint response and response to a process upset. Setpoint responses and process
upset responses can be very different. Normally, you cannot easily test your plant with process
upsets, but RSLoop Optimizer can show you the simulated response. Reducing or eliminating
process upsets is generally more important to product quality and waste reduction than setpoint
response.
The Control Loop Simulation plot allows you to simulate the entire loop and do valve wear
analysis through a:
„ Setpoint plot
„ Load plot
„ Response to measurement noise plot
It also allows you to compare the actual process variable to the simulated process variable.

128 RSLoop Optimizer User’s Guide


.....
CONTROL LOOP ANALYSIS
Control Loop Simulation Plot

If you change the model of your process, or change a PID tuning parameter, the simulation is
instantly recalculated to reflect your changes.
All of the plots show the response for both the current and new PID parameters for comparison.
New PID parameters are shown in red and current parameters are shown in blue.

OPTIONS IN THE CONTROL LOOP SIMULATION PLOT


The options in the Control Loop Simulation window are:
„ Options > Thick Lines: Makes the plot easier to read.

„ Options > Add to Report: See “Creating a Report for a Control Loop” on page 40 for more
information on reports.
„ Time Range > Expand or Shrink: The scale on the Control Loop Simulation is initially set
by RSLoop Optimizer. To increase the scale, select Expand. To decrease the scale, select
Shrink.

SETPOINT PLOT
The Setpoint Plot shows the response to a setpoint change for the current settings and the new
settings.
This is the first plot displayed if you selected Setpoint tuning on the Faceplate. If it is not
displayed, select Set Point plot from the Options menu.
A setpoint plot is shown here.

S etp oint Fi lt er
When the Set Point Control Loop Simulation plot is selected, you can also apply and change the
Set Point Filter.
You can achieve good response to both setpoint changes and upsets with the setpoint filter. With
many loops, tuning that is good for reducing the effects of process upsets results in setpoint
response with lots of overshoot. The Set Point Filter conditions the setpoint command before it
reaches the controller in order to dampen the overshoot.

RSLoop Optimizer User’s Guide 129


CONTROL LOOP ANALYSIS
11 Control Loop Simulation Plot

1. Make sure Set Point Plot is selected on the Control Loop Simulation window Options menu.
2. Select Options > Set Point Filter > Use Lead/Lag Set Point Filter. RSLoop Optimizer
applies a filter to the setpoint of the simulated loop and modifies the Control Loop Simulation
plots to show the results. The filter is applied to the simulation of the New PID settings.
The PV plot displays the filtered setpoint in black. The PV and CO with the filter applied are
shown in magenta.
RSLoop Optimizer calculates the lead time and displays lead time, lag time, and the lead/lag
ratio at the top of the Control Loop Simulation window.
3. You can also adjust the ratio of lead to lag time. RSLoop Optimizer automatically sets the lag
time to approximately the integral time (in seconds). To adjust the ratio, select Options > Set
Point Filter > Adjust Lead/Lag Set Point Filter. Enter a number between 0 (full filtering)
and 1 (no filter) with up to four places after the decimal point (for example, 0.0625).

Pr ogr ammi ng the Set poi nt Fil ter


Once you have the setpoint filter adjusted to your satisfaction, note the lead and lag times
displayed on the Control Loop Simulation plot. You can use these values to program the filter in
your loop.
Include these equations in a block of code to program the filter. ( // indicates a comment.)
Initialize y1 to the current setpoint of the controller.
//Lag calculation
y = SPuserSet + LagTime * (y1 - SPuserSet) / (LagTime + SampleInterval)
//Lead calculation
SPcontroller = y + LeadTime/SampleInterval*(y - y1)
y1 = y/* save for next calculation

Variable Description
SPuserSet User entered setpoint
LagTime lag time (from Control Loop Simulation window)
LeadTime lead time (from Control Loop Simulation window)
SampleInterval calculation interval for this lead lag code (same as controller scan rate)
y1 last value of y

y intermediate value (output of lag)


SPcontroller value to send to the controller’s setpoint input

130 RSLoop Optimizer User’s Guide


.....
CONTROL LOOP ANALYSIS
Control Loop Simulation Plot

LOAD PLOT
The Load plot shows a simulation of a process upset. RSLoop Optimizer applies a step load
change to the simulation.
This is the first plot displayed if you selected Load Tuning on the Faceplate. If it is not displayed,
select Load plot from the Options menu.
This example shows the response to a process upset. The upper portion of the window shows the
process variable response and the lower portion shows the controller output response.

RESPONSE TO MEASUREMENT NOISE PLOT


Shows the response of the loop to noise. This can be used to see the effects of a process variable
filter or for analyzing valve wear.

RSLoop Optimizer User’s Guide 131


CONTROL LOOP ANALYSIS
11 Control Loop Simulation Plot

ACTUAL PV COMPARED TO SIMULATED


This option shows how the process model responds to the actual controller output from the Time
Data window.
RSLoop Optimizer predicts the process variable based on the process in the Process Model
window. With this plot, the actual controller output is run through the process model. The output
of the model is shown in the lower plot and the actual process variable is shown in the upper plot.

VALVE WEAR ANALYSIS


RSLoop Optimizer provides valve wear indicators to help you predict valve wear. The indicators
allow you to compare controller output travel and direction changes to determine wear. Valve wear
analysis is available from the Control Loop Simulation Set Point, Load, and Response to
Measurement Noise plots.
These plots have a box in the center that contains the Valve Travel Index and Reversal Index.
Click the arrows to the right of the box to scroll through the values. Current tuning values are
shown in blue. New values are shown in red.
Typically, the Response to Measurement Noise plot is the most useful for valve wear analysis.
This plot gives a quantitative comparison and effectiveness of PV filtering.
The options in the Valve Travel box includes:
„ Valve Travel: The total distance the controller output moves in the time of the simulation.
Compare current and new to see the effect on valve wear.
„ Valve Reversals: The number of times that the controller output changes direction in the
time of the simulation. More reversals usually result in more valve wear.
„ Valve Travel Index: The percent of improvement in controller output travel from current to
new. If the new PID tuning parameters and filter result in more travel than the current ones, the
Valve Travel Index will be negative.
„ Valve Reversal Index: The percent of improvement in controller output reversals from
current to new. If the new PID tuning parameters and filter result in more reversals than the
current ones, the Valve Reversal Index will be negative.

132 RSLoop Optimizer User’s Guide


.....
CONTROL LOOP ANALYSIS
Robustness Plot

To reduce wear, use PV filtering or adjust the PID values. If your system allows it, try adding the
filter value that RSLoop Optimizer recommends first. If this does not reduce wear enough,
consider modifying the tuning parameters. When adjusting the PID values, keep in mind that:
„ Removing derivative action results in the greatest reduction in valve movement.
„ Reducing proportional action will usually be more effective than reducing integral action.
„ For the least wear, select PI tuning with a large safety factor or lambda. Although the
robustness will be good, there will be poor response to setpoint changes and upsets.
„ There is always a tradeoff between fast tuning, robustness, and valve wear. For least wear,
select PI tuning with a large safety factor or lambda.

ROBUSTNESS PLOT
.........................................................
The RSLoop Optimizer Robustness plot shows how sensitive your loop is to process gain or
process deadtime changes. The Robustness plot graphically shows the tradeoff between tight
tuning and stability. If you have two sets of tuning parameters with about the same robustness, you
can generally choose the faster response. An example Robustness plot is shown here.

New

Current

Safety factor area. The


plots should be outside
of this region (above
and to the right)

The two axes of the plot are process gain and dead time.
The plot has a region of stability and a region of instability. The red (new tuning parameters) and
blue (current tuning parameters) lines on the robustness plot are the limit of stability. To the right
and above the lines, the closed loop process is unstable. To the left and below the lines, the closed
loop system is stable.
The crosshairs in the safety factor area are at the actual process gain and deadtime. Generally, a
safety factor or divisor of 2 is reasonable for a control loop. For practical system stability, keep the
limit of stability line outside the safety factor area.
For example, in the Robustness plot shown above, the line for the current tuning parameters is
inside the safety factor area. These parameters offer very tight tuning, but if the system encounters

RSLoop Optimizer User’s Guide 133


CONTROL LOOP ANALYSIS
11 Robustness Plot

a high gain ratio, it will be in the region of instability. The line representing the new tuning
parameters is well outside the safety factor area, offering more stability.
Robustness plots are calculated using the Process Model and controller tuning values. The
accuracy of the plot depends on the accuracy of the model.
Whenever you choose a different model in the Process Model window, the Robustness plot
refreshes. This plot also updates when a new Safety Factor value is entered on the faceplate.
RSLoop Optimizer conservatively estimates process dead time when dead time gets close to the
sample interval. If your plant has very small dead time, the model appears less stable and the verge
of stability lines is lower. The simulations (which use the model) also appear less stable than your
plant.

OPTIONS IN THE ROBUSTNESS PLOT


The options in the Robustness plot are:
„ Actual Gain and Dead Time
„ Gain and Dead Time Ratio
„ Add to Report
„ Robustness Increase and Closest Distance
„ Dial in Robustness

Ac tual Gain and De ad T ime


You can display the Robustness plot with axes of gain and deadtime.
To display this plot, right-click the plot and select Actual Gain and Dead Time. This plot is
displayed by default.

G ain and Dead Ti me R ati o


This changes the plot to show Dead Time Ratio and Gain Ratio. To display this plot, right-click the
plot and select Use Gain and Dead Time Ratio.
The gain ratio is:

process gain
gain ratio = -------------------------------------------------------------------------------------------------
process gain the controller was tuned for

The deadtime ratio is:

process deadtime
deadtime ratio = -------------------------------------------------------------------------------------------------------------
process deadtime the controller was tuned for

At the cross, where both ratios are 1, the process gain and deadtime are at the process values you
tuned for.

Ad d t o R epor t
See “Creating a Report for a Control Loop” on page 40 for information on reports.

134 RSLoop Optimizer User’s Guide


.....
CONTROL LOOP ANALYSIS
Performance Summary

R obu stne ss I ncr ease and C lo sest Di stan ce


These options assign a numerical value to the robustness. They are displayed at the top right of the
plot.
Closest Distance is only available if Gain and Dead Time Ratio is selected. This allows you to
scroll through the values for Robustness Increase and the Closest Distance for the new and current
parameters.
The Robustness Increase is the percent that the robustness improves with the new tuning. It is
based on comparing the Closest Distance of the new and current tuning. If the loop is less robust
with the new tuning, the Robustness Increase will be negative.
The Closest Distance is the closest that the robustness line comes to the crosshairs in the safety
factor area. This gives a conservative relative measure of the robustness of the loop.

D ial in Ro bust ness


With the cursor, you can drag the new (red) robustness line to get the robustness you want. When
you drag the robustness line, the controller gain is automatically adjusted to yield the robustness
you dial in by dragging. Drag it to the left for a less robust loop with faster response (higher gain)
or to the right for a more robust loop with slower response. On many loops adjusting the safety
factor will yield a better tradeoff between robustness and response since RSLoop Optimizer
adjusts I and D also.

PERFORMANCE SUMMARY
.........................................................
The performance summary (shown below) allows you to view overall trade-off’s of performance,
robustness and valve wear at a glance. This table provides a listing of Performance increase,
robustness increase, valve travel index, valve reversal index, Current RRT, and New RRT.

Performance Increase is roughly proportional to the Integrated Absolute Error improvement.


However, with overshoot it is a good measure and predictor of performance.
Robustness Increase is the percent that the robustness improves with the new tuning. It is based
on comparing the Closest distance of the new and current tuning. If the loops less robust with the
new tuning then Robustness Increase will be negative. You can use the robustness increase as a
quick and rough way of assigning a numerical value to the change in robustness from current to
new settings. If either loop is unstable, the Robustness Increase will show N/A.
Valve Travel Index is the percent improvement in the controller output travel from the current to
new. If the new PID tuning parameters (and filter) result in more travel than the current ones, the
Valve Travel index will be negative.

RSLoop Optimizer User’s Guide 135


CONTROL LOOP ANALYSIS
11 Control Loop Performance Evaluation

Valve Reversal Index is the percent improvement in controller output reversals from the current
to new. If the new PID tuning parameters (and filter) result in more reversals than the current ones,
the Valve Reversal Index will be negative.
Current RRT (sec) is your current relative response time. See the glossary for a definition of
RRT.
New RRT (sec) is the value RSLoop Optimizer uses to replace the current relative response time.

CONTROL LOOP PERFORMANCE EVALUATION


.........................................................
This option available in RSLoop Optimizer only.
In one glance, you can easily compare and evaluate the trade-offs in your control loop. Quickly
compare:
„ Performance
„ Robustness
„ Valve wear (travel and reversals)
„ Relative response time (RRT)
„ Characterizer Enhancements
In general, the higher the bars for the tuning set you are optimizing, the better. Blue bars indicate
current tuning, while the red bars indicate new tunings.
If you are optimizing new tuning values, you would want the red bars as high as possible.
However, there are always trade-offs: performance and robustness, and perhaps performance and
valve life. The Control Loop Performance Evaluation lets you explore and analyze these trade-
offs.
1. With off-line data collected, click Tune, then the Analysis button on the faceplate (as shown
below).

136 RSLoop Optimizer User’s Guide


.....
CONTROL LOOP ANALYSIS
Control Loop Performance Evaluation

2. The Performance Summary window opens.

3. Click the Evaluation button. The Performance Evaluation window opens.

PERFORMANCE
The red (new) performance bar is inversely related to the current safety factor.

Safety Factor New Performance


1 100%
2 50%
2.5 40%

The red performance bar does not take into account any manual changes you may have made to the
new values, however the blue bar is always set relative to the red one. The blue bar is set based on
the performance increase. If the performance increase is negative then the blue bar will be higher
than the red one. In this case, the current settings will probably perform better to load upsets than
the new ones.

ROBUSTNESS
RSLoop Optimizer sets the bars for robustness equal to the closest distance for the current and new
tunings.

RSLoop Optimizer User’s Guide 137


CONTROL LOOP ANALYSIS
11 Time Line Analysis

VALVE DUTY
To get the best Valve Duty analysis, set the Control Loop Simulation to Measurement Noise
Response so the valve travel and reversals correspond to an operating control loop. The bars show
valve travel and reversals

TIME LINE ANALYSIS


.........................................................
Use the Time Line Analysis to help understand the relationships between the time of each
component in the control loop. Generally, each component in the control loop should be at a time
that is appropriate relative to other components. For example, the sample interval should always
be shorter than the dead time in the loop. If the sample interval is close to the dead time then
shortening the sample interval will improve the performance of the loop.

NOTE: The time line analysis can be added to the full loop report in Microsoft Word.

In general, for optimal performance, the times for each item should be in the following order on the
time line:
„ Sample Interval
„ Filter Time
„ Derivative Time
„ Dead Time
„ Equivalent Dead Time (if a second order process)
„ Integral Time
„ Relative Response Time (RRT)
Each of these items is marked on the time line if they are not zero.
So that you can easily compare the time of each component of the control loop, RSLoop Optimizer
converts each component's time into seconds. The Integral and Derivative times are taken from the
New column. For easy comparison, the controller Integral and Derivative times have been
converted from Series or Parallel to equivalent Ideal controller Integral and Derivative tuning
constants (unless your controller already uses an Ideal structure).
If the process is second order (contains 2 lags) then an equivalent dead time is calculated and
marked. For the Time Line analysis equivalent, dead time is defined as:
Equivalent Dead Time = Dead Time + Smaller of the 2 lags
The time axis is on a logarithmic scale. To see precise times, hover the mouse cursor over the
graph and the Tool Tip Help will list the time where the mouse is currently located.

138 RSLoop Optimizer User’s Guide


.....
CONTROL LOOP ANALYSIS
Time Line Analysis

1. With off-line data collected, click Tune, then the Analysis button on the faceplate (as shown
below).

2. The Performance Summary window opens.


3. Click the Time Line button. The Control Loop Time Line Analysis window opens.

TIME EVALUATIONS
In general, the relative times of each item should be in the order listed above. Where possible,
RSLoop Optimizer evaluates appropriate relative times and places a colored bar with a message
between the times. The colors have the following meanings:
Green - Excellent or OK

Yellow - Caution; this is an area where performance may be improved

Red - Improvements can be made to significantly increase performance (see example below)

RSLoop Optimizer User’s Guide 139


CONTROL LOOP ANALYSIS
11 Time Line Analysis

Sometimes there is not much room to see the text in the colored evaluations. To see the text for the
evaluation, hover the mouse cursor over the text and the Tool Tip Help will display the full
message. Making the Time Line graph wider may also help to see a message. Make the Time Line
taller if some of the evaluations are cut off. RSLoop Optimizer evaluates the following:
1. Sample Interval compared to Dead Time
2. PV Filter compared to Controller Derivative Time
3. Controller Derivative compared to Controller Integral Time
4. PV Filter compared to Dead Time or Equivalent Dead Time (if second order)

NOTE: RSLoop Optimizer only performs evaluations when the values are not zero.

140 RSLoop Optimizer User’s Guide


DDE
. . . . .T.OPICS
............................. 12

.....
RSLoop Optimizer requires a DDE or OPC topic for each control loop you need to communicate
with. See “OPC Topics” on page 145 for information on using OPC topics.

WHAT
. . . . . . . I.S. . A. . D. .D. .E. .T. O. .P. I.C. ?. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
A topic is a path from Windows’ Dynamic Data Exchange (DDE) to a processor. When a DDE-
compatible Windows application makes a DDE request for information from a communication
package such as RSLinx, it must specify a topic name and an item. The information stored in the
topic determines:
„ Which communications Driver Type and Driver Number to use
„ Whether to access a local or remote station
„ What station number to access
„ What kind of processor is at that station number
„ How to communicate with the processor: poll or unsolicited
„ How long to wait before registering a time-out error
You can also have multiple topics to communicate with several different processors at once. The
minimum number of topics needed in a project is one for each different processor with which you
wish to communicate. For example, you might have a topic named Poll 25 that communicates with
a PLC-5 processor at station 25 and a topic named Poll 18 that communicates with a PLC-5/250
processor at station 18.
Multiple topics can be used in reference to the same processor. One topic called Poll 25 might poll
station 25 for data. Another topic called Wait 25 might wait for an unsolicited message from
station 25. You could even have additional topics that poll station 25 at different poll rates.

NOTE: Different topics can be used simultaneously, and different DDE-compatible Windows
applications can use the same topics simultaneously.

RSLoop Optimizer User’s Guide 141


D D E TO P I C S
12 Setting Up a DDE Topic in RSLinx

SINGLE PROCESSOR EXAMPLE


The following example shows how you could configure topics to solve a simple data monitoring
problem. This example shows a process using a PLC-5 connected to the computer with a Data
Highway Plus network (through a 1784-KT card). The diagram below shows the connections:

Computer

1784-KT
10

Data Highway Plus Network

PLC-5
50

In this process, you might want to monitor:


„ Various addresses in the processor every five seconds to update a Microsoft Excel chart
„ PID addresses in the processor every one second for use with RSLoop Optimizer
In both cases, you could be reading data from several different data files or a single large data file.
It might be helpful to concentrate your data in a single data file, since this improves the efficiency
of the communications and lowers overall network traffic.
To monitor these addresses, you would create two topics:
1. One that polls the processor once every five seconds to read data from the PLC-5 every five
seconds (for Excel).
2. Another to poll data from the processor once every second to read data from the PLC-5 every
second (for RSLoop Optimizer).
Usually, when working with RSLoop Optimizer, you will just set up one topic for each PLC. To
keep things simple, use the PLC name as the topic name.

SETTING UP
. . . . . . . . . . . . . .A. .D. .D. E. . .T.O. .P.I .C. .I N. . .R. S. .L. I.N. X. . . . . . . . . . . . . . . . . . .
1. Open RSLinx.
2. Select DDE/OPC > Topic Configuration.
3. Browse to and highlight the PLC you wish to communicate with.
4. Click New.

142 RSLoop Optimizer User’s Guide


.....
D D E TO P I C S
Setting Up a DDE Topic in RSLinx

5. Type the topic name.


6. Click the Data Collection tab to set communications options. Remember that the polling rate
should be 10 times faster than the process dead time (but no faster than the PLC scan time).
7. Click Apply and then click Done.

RSLoop Optimizer User’s Guide 143


D D E TO P I C S
12 Setting Up a DDE Topic in RSLinx

144 RSLoop Optimizer User’s Guide


OPC
. . . . . T. OPICS
............................. 13

.....
RSLoop Optimizer requires an OPC or a DDE topic for each control loop you need to
communicate with. See “DDE Topics” on page 79 for information on working with DDE topics.

WHAT
. . . . . . . I.S. . A. .N. .O. P. .C. . T. .O. P. .I C. .?. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
A topic is a path from Windows’ OLE for Process Control (OPC) to a processor. OPC is a
communications protocol that provides a defined set of COM interfaces that, in turn, provide data
access functions. OPC can be used by the server as a more flexible and powerful alternative to the
Dynamic Data Exchange (DDE) communications protocol.
When an OPC-compatible Windows application makes an OPC request for information from a
communication package such as RSLinx, it must specify a computer name, topic name and an
item. The information stored in the topic determines:
„ Which communications Driver Type and Driver Number to use
„ Whether to access a local or remote station
„ What station number to access
„ What kind of processor is at that station number
„ How to communicate with the processor: poll or unsolicited
„ How long to wait before registering a time-out error
You can also have multiple topics to communicate with several different processors at once. The
minimum number of topics needed in a project is one for each different processor with which you
wish to communicate. For example, you might have a topic named Poll 25 that communicates with
a PLC-5 processor at station 25 and a topic named Poll 18 that communicates with a PLC-5/250
processor at station 18.
Multiple topics can be used in reference to the same processor. One topic called Poll 25 might poll
station 25 for data. Another topic called Wait 25 might wait for an unsolicited message from
station 25. You could even have additional topics that poll station 25 at different poll rates.

NOTE: Different topics can be used simultaneously, and different OPC-compatible Windows
applications can use the same topics simultaneously.

RSLoop Optimizer User’s Guide 145


O P C TO P I C S
13 Setting Up an OPC Topic in RSLinx

SINGLE PROCESSOR EXAMPLE


The following example shows how you could configure topics to solve a simple data monitoring
problem. This example shows a process using a PLC-5 connected to the computer with a Data
Highway Plus network (through a 1784-KT card). The diagram below shows the connections:

Computer

1784-KT
10

Data Highway Plus Network

PLC-5
50

In this process, you might want to monitor:


„ Various addresses in the processor every five seconds to update a Microsoft Excel chart
„ PID addresses in the processor every one second for use with RSLoop Optimizer
In both cases, you could be reading data from several different data files or a single large data file.
It might be helpful to concentrate your data in a single data file, since this improves the efficiency
of the communications and lowers overall network traffic.
To monitor these addresses, you would create two topics:
1. One that polls the processor once every five seconds to read data from the PLC-5 every five
seconds (for Excel).
2. Another to poll data from the processor once every second to read data from the PLC-5 every
second (for RSLoop Optimizer).
Usually, when working with RSLoop Optimizer, you will just set up one topic for each PLC. To
keep things simple, use the PLC name as the topic name.

SETTING UP
. . . . . . . . . . . . . .A. N. . O. . P. .C. . T. .O.P. I.C. . I.N. .R. .S. L. .I N. .X. . . . . . . . . . . . . . . . .
1. Open RSLinx.
2. Select DDE/OPC > Topic Configuration.
3. Browse to and highlight the PLC you wish to communicate with.
4. Click New.

146 RSLoop Optimizer User’s Guide


.....
O P C TO P I C S
Setting Up an OPC Topic in RSLinx

5. Type the topic name.


6. Click the Data Collection tab to set communications options. Remember that the polling rate
should be 10 times faster than the process dead time (but no faster than the PLC scan time).
7. Click Apply and then click Done.

RSLoop Optimizer User’s Guide 147


O P C TO P I C S
13 Setting Up an OPC Topic in RSLinx

148 RSLoop Optimizer User’s Guide


U . . . . P. OWER
. .SING . . . . . .S.PECTRAL
. . . . . . . .D.ENSITY
............ 14

.....
G RAPHS

This appendix contains examples that demonstrate practical uses of power spectral density to
answer the following questions:
„ Is Control Improved By Tuning?
„ Is Valve Life Extended?
„ Is an Oscillation Hidden in the Noise from a Flow Loop?

IS CONTROL IMPROVED BY TUNING?


.........................................................
Power spectral plots can help determine the improvement in response for new tuning values,
without having to bump the system with a setpoint or load change. The objective is to keep the
power at low frequencies and long periods as low as possible.
In the three examples below (collected in Manual mode, Auto mode with the current tuning
parameters, and Auto mode with the new tuning parameters), it is difficult to tell which are the best
tuning parameters.

Man ual Mode

RSLoop Optimizer User’s Guide 149


USING POWER SPECTRAL DENSITY GRAPHS
14 Is Control Improved By Tuning?

Cu rr ent Tu ning Pa rame ter s ( Au to Mode)

Ne w Tuni ng Par amet ers (A ut o Mod e)

The statistical analysis shows a small improvement in standard deviation from Current to New, but
Manual mode has the smallest. Statistical analysis does not always provide the best evidence of
improvement. The power spectral plots are clearer.
The cumulative power plots below show that the new tuning parameters are the best. The objective
is to keep the power at long periods as low as possible.

150 RSLoop Optimizer User’s Guide


.....
USING POWER SPECTRAL DENSITY GRAPHS
Is Control Improved By Tuning?

C ur re nt Tuni ng Par amet ers (A ut o Mod e)

Man ual Mode

RSLoop Optimizer User’s Guide 151


USING POWER SPECTRAL DENSITY GRAPHS
14 Is Control Improved By Tuning?

Ne w Tuni ng Par amet ers (A ut o Mod e)

The following graphs confirm that the new tuning parameters are the best. The objective, again, is
to keep the power low at low frequencies (long periods). Power at low frequencies is lowest with
the new parameters. The difference might not be immediately apparent because the scale on the
graphs is different. Note that for current parameters, the vertical axis has 6 decades, Manual mode
has 5, and New has only 4.

Cu rr ent Tu ning Pa rame ter s ( Au to Mode)

152 RSLoop Optimizer User’s Guide


.....
USING POWER SPECTRAL DENSITY GRAPHS
Is Control Improved By Tuning?

Man ual Mode

N ew Tu ning P aram eter s ( Au to Mode)

Finally, bumping the system confirms the power spectral data. The new tuning responds much
better, as the power spectral plots predicted.

C ur re nt Tuni ng Par amet ers, S etpo int C hang e in Au to Mode

RSLoop Optimizer User’s Guide 153


USING POWER SPECTRAL DENSITY GRAPHS
14 Is Valve Life Extended?

Manual Mod e, C ont r olle r Ou tpu t C han ge

Ne w Tuni ng Par amet ers , S etpo int C hang e in A uto Mode

IS VALVE LIFE EXTENDED?


.........................................................
Displaying the power spectral density for the controller output (CO) can help you determine if the
valve effort has been reduced, thus increasing its life. Collect data from a setpoint change and/or
from normal operation conditions in Automatic mode. The lower the power at high frequencies
(short periods), the less effort is required by the valve.

SETPOINT CHANGE TO CHECK VALVE LIFE EXTENSION


The graphs below shows how to use data from a setpoint change to determine which set of
parameters will extend a valve's life the most.

154 RSLoop Optimizer User’s Guide


.....
USING POWER SPECTRAL DENSITY GRAPHS
Is Valve Life Extended?

C ur re nt Tuni ng Par amet ers

N ew Tu ning P aram eter s

C ur re nt Tuni ng Par amet ers

RSLoop Optimizer User’s Guide 155


USING POWER SPECTRAL DENSITY GRAPHS
14 Is Valve Life Extended?

Ne w Tuni ng Par amet ers

Cu rr ent Tu ning Pa rame ter s

Ne w Tuni ng Par amet ers

The new tuning parameters reduce the effort made by the valve and increase the valve’s life.

OPERATION IN AUTO MODE TO CHECK VALVE LIFE EXTENSION


You can examine data collected in Auto mode under normal operation with no setpoint changes to
check for valve life extension. The data used in this section was collected from the same loop as
above.

156 RSLoop Optimizer User’s Guide


.....
USING POWER SPECTRAL DENSITY GRAPHS
Is Valve Life Extended?

According to the Process Frequency Response plot (shown below), if the tuning parameters are not
aggressive, the bandwidth will be about 0.2 Hz (natural frequency is 0.4 Hz). All the frequencies
over 0.2 Hz are useless (5s) if the setpoint does not change.

C ur re nt Tuni ng Par amet ers

N ew Tu ning P aram eter s

RSLoop Optimizer User’s Guide 157


USING POWER SPECTRAL DENSITY GRAPHS
14 Is Valve Life Extended?

Cu rr ent Tu ning Pa rame ter s

Ne w Tuni ng Par amet ers

Cu rr ent Tu ning Pa rame ter s

158 RSLoop Optimizer User’s Guide


.....
USING POWER SPECTRAL DENSITY GRAPHS
Is an Oscillation Hidden in the Noise from a Flow Loop?

N ew Tu ning P aram eter s

IS AN OSCILLATION HIDDEN IN THE NOISE FROM A


FLOW LOOP?
.........................................................
The power spectrum is an excellent tool to uncover hidden oscillations in a PV (process variable)
signal. An oscillation is displayed as a peak in the power spectrum.
This peak corresponds to the fundamental frequency of the cycling. If the cycling is a sine wave,
the peak is the only noticeable frequency. If the cycling is not a sine wave, other peaks occur at
multiple frequencies.

SINE WAVE IN A FLOW LOOP


Cycling is present in the following flow loop, and this cycling is clearly at a period of 2.2 seconds.

T ime P lot ( M anual Mode )

RSLoop Optimizer User’s Guide 159


USING POWER SPECTRAL DENSITY GRAPHS
14 Is an Oscillation Hidden in the Noise from a Flow Loop?

Time Pl ot (A uto mati c Mod e)

Po wer S pect ru m ( Ma nual Mode)

Po wer S pect ru m ( Aut omat ic Mo de)

The cycling is probably caused by the positioner because the frequency of the sine wave does not
vary with the amplitude of the PV.

160 RSLoop Optimizer User’s Guide


.....
USING POWER SPECTRAL DENSITY GRAPHS
Is an Oscillation Hidden in the Noise from a Flow Loop?

NON-SINUSOIDAL CYCLE
Multiple peaks occurring at harmonics in a power spectrum indicate a non-sinusoidal cycle. Find
the lowest frequency peak and look for equipment cycling at that frequency. In many cases, the
origin of these kind of peaks is another loop tuned too aggressively.

T ime P lot

P ow er Sp ectr um

RSLoop Optimizer User’s Guide 161


USING POWER SPECTRAL DENSITY GRAPHS
14 Is an Oscillation Hidden in the Noise from a Flow Loop?

162 RSLoop Optimizer User’s Guide


A . . . . . . . . . .N. OTES
. .PPLICATION ...................... 15

.....
This chapter contains examples of data collection, diagnostics for various types of conditions, and
explanations of handling problem loops when using RSLoop Optimizer. (See “Guidelines for
Optimizing Loops” on page 18 for more information.)
‹ Data Collection Methods
‹ Examples of Data Editing
‹ Integrating (Non-Self-Regulating) Loops
‹ Temperature Control of Extruders
‹ Cascading Loops

DATA COLLECTION METHODS


.........................................................
When you gather data manually instead of using the AutoTune feature, there are a number of
methods you could use to try and collect the best possible data for tuning. Here are some general
examples.
To get good data for tuning, RSLoop Optimizer needs to see the process variable respond to the
controller output, and not just to noise. When performing these tests, the amount of process
variable response needs to be 4 to 6 times larger than the normal peak-to-peak noise in your
process.
When you perform the test, wait until the process variable responds at least by this amount, and
then change the set point or controller output back to the original value.

WARNING: Plant data taken for RSLoop Optimizer analysis and tuning must have all process
variables filters removed from the signal.

CONTROLLER IN MANUAL (OPEN LOOP)


This is an open loop step test. When you are tuning with the controller in Manual mode, you
change the controller output instead of the set point.
1. Set the controller to manual.
2. Make sure the controller output is not at 0%, 100%, or saturated into a limit. If it is, change the
controller output to between 5% and 95% (or not at a limit). Valves are usually non-linear at
their limits.
3. Let the loop settle out (reach steady state). You should allow for at least 30 samples of steady
state before continuing.

RSLoop Optimizer User’s Guide 163


APPLICATION NOTES
15 Data Collection Methods

4. Select Archive > Archive On.


5. Change the controller output by about 10%.
6. Wait for the process variable to respond an appreciable amount. Change the output to its
original value. Skip this step if your plant can tolerate a new operating point.
7. Let the loop settle out (reach steady state). You should allow for at least 30 samples of steady
state before continuing.
8. Select Archive > Archive off.

CONTROLLER IN AUTO (CLOSED LOOP)


This test is the same as the one above, except you change the set point of the controller instead of
changing the output. The controller is in Auto mode. You will make set point bumps equivalent to
5% or 10% of the PV scale.
The test usually goes faster if you remove the integral action from the controller. If the integral is
in time/rep make it 0, if in rep/time make it very large. You can use the Faceplate window to
change the integral value, or you can change it from the PID Setup window in RSLogix.

CONTROLLER IN AUTO (USING A MANUAL STEP TEST)


In this test, the controller starts in Auto mode. It is temporarily put in Manual mode, the controller
output is changed, and then the controller is put back in Auto mode.
1. Make sure the controller output is not at 0%, 100%, or saturated into a limit. If it is, change the
controller output to between 5% and 95% (or not at a limit). Valves are usually non-linear at
limits.
2. Let the loop settle out (reach steady state).
3. Select Archive > Archive On.
4. Put the controller in Manual and quickly change the controller output by about 5 to 10%.
5. Immediately put the controller back in Auto.
6. Let the loop settle out (reach steady state).
7. Select Archive > Archive Off.

NOTE: If the controller returns the valve to valve limits (0% or 100%), repeat this test with a
different set point. When the valve is saturated, you will not get accurate tuning results.

CONTROLLER IN MANUAL (FAST PLANT TEST)


In this doublet pulse test, the process variable settles fairly quickly, especially on slow loops with
large lags. You need some type of a timing device, such as a stopwatch, for this test.
1. Check to be sure the controller output is not at 0%, 100%, or saturated into a limit. If it is,
change the controller output to between 5% and 95% (or not at a limit).
2. Let the loop settle out (reach steady state).
3. Select Archive > Archive On.

164 RSLoop Optimizer User’s Guide


.....
APPLICATION NOTES
Examples of Data Editing

4. Put the controller in Manual. Be ready with a stopwatch or timer.


5. Change the controller output by about 10%. Start the timer.
6. When you see the process variable move significantly more than the noise in the loop:
a) Change the output in the opposite direction by twice as much as the change you made in
step 5.
b) Immediately record the time that has passed since the first change. Call this time T.
c) Start timing again.
7. As soon as time T has passed, return the output to its original value from step 2.
8. Wait for a period of time equal to twice time T to pass. Again, you would like to see at least 30
samples at steady state.
9. Select Archive > Archive Off.

The data collected in these two graphs was collected from the
same loop, except the one on the right included a step change. In
this case, the doublet pulse saved 25 minutes.

EXAMPLES
. . . . . . . . . . . . O. .F. .D. A. .T.A. .E. .D.I .T.I .N.G. . . . . . . . . . . . . . . . . . . . . . . . . . . .
Once you collect data, you must decide if you need to edit that data to get the best possible results.
Here are some examples of editing using real plant data collected from a variety of process plants.
Ideally you should use data from one process response. Zoom in on the data from that response and
edit out any noise spikes or invalid data. In some cases, you might not want to zoom in on the data.
This could occur if you need some initial data to average to get a good initial steady state.

RSLoop Optimizer User’s Guide 165


APPLICATION NOTES
15 Examples of Data Editing

EXAMPLE OF NOISY DATA


In this case, the process variable data is very noisy. From the Time data window, use
Edit/Average to average out the noise in the flat (steady state) parts of the curve. Filtering can be
used to smooth out the noise during transient responses.
For information on the Average function, see “Averaging Data” on page 72.

Sometimes data requires multiple editing steps to have optimal data for tuning. The next example
demonstrates this situation.

EXAMPLE OF DATA THAT IS CYCLING AND HAS NOISE SPIKES


In this example, the data is cycling and has many large noise spikes. The data cannot be used as is.

To optimize the data, you should:


1. Zoom in on the data as shown in the highlighted area.
2. Use Edit > Line Edit to edit out noise spikes.
3. Consider doing power spectral density analysis to determine the cause of the cycling.

166 RSLoop Optimizer User’s Guide


.....
APPLICATION NOTES
Examples of Data Editing

The zooming, editing and averaging in this example would look like:

When you edit out the noise spikes, the actual range of movement for the process variable and the
controller output can now be seen more easily on the Time data window graphs.
This data allows RSLoop Optimizer to calculate optimal tuning parameters.

EXAMPLE OF A PROCESS THAT RESPONDS FASTER IN ONE


DIRECTION
In this example, the zoomed areas are both shown on one graph. In practice, each area would
require a separate zoom procedure. Zoom in on each of the shaded areas and get tuning constants
for each. Use the more conservative tuning values.

This process responds faster in the positive (increasing) direction than it does in the negative
(decreasing) direction. To find the optimal tuning parameters for this data:
1. Zoom in on the data when it is increasing.
2. Make your desired controller tuning selections.
3. Note the new tuning parameters calculated by RSLoop Optimizer.
4. Zoom out on the data to return it to its original form.
5. Zoom in on the data when it is decreasing.
6. Make your desired controller tuning selections.

RSLoop Optimizer User’s Guide 167


APPLICATION NOTES
15 Integrating (Non-Self-Regulating) Loops

7. Note the new tuning parameters calculated by RSLoop Optimizer.


8. Compare the two sets of tuning parameters, and use the more conservative values. The more
conservative values will have the smaller gain, smaller derivative, and smaller integral (if
rep/time) or larger integral if sec/repeat.

INTEGRATING (NON-SELF-REGULATING) LOOPS


.........................................................
If a process settles out after being given a step change, it is called self-regulating. If it does not, it is
called non-self-regulating or integrating. This is much like the integral action of a controller, which
keeps going if the error remains. An integrating process can take a long time to (or might never)
reach steady state (settle out) after a manual step change in the controller output. Examples of
these loops are:
„ Most liquid level loops
„ Composition and temperature on distillation columns
„ Composition and temperature on stirred tank chemical reactors
„ Temperature on extruders
„ Some gas pressure loops
„ Digital blending systems that are controlling volume
RSLoop Optimizer provides optimal tuning for integrating loops. Collect data for an integrating
loop in:
„ Manual mode using the method described in “Controller in Manual (Fast Plant Test)” on
page 164. The loop must start and end with PV and CO at steady state.
„ Auto mode using any of the methods described. The loop must start and end with PV and CO
at steady state. The Fast Plant Test in Auto works quite well on integrating processes.
If you are approaching a new loop or the loop is cycling, we suggest using proportional only
control when you collect data. Set the proportional gain to a value such as 0.5 to give stable
control. Use no integral action. The loop settles faster when performing the test if no integral
action is used. If your controller uses integral in time/rep, set the integral to a large number. If your
controller uses integral in rep/time, set the integral to zero.

NOTE: To omit integral action, if your controller uses integral in:


Time/rep: Set the integral to a large number.
Rep/time: Set the integral to zero.

168 RSLoop Optimizer User’s Guide


.....
APPLICATION NOTES
Temperature Control of Extruders

TEMPERATURE CONTROL
. . . . . . . . . . . . . . . . . . . . . . . . . . .O. F. . E. .X.T. R. .U.D. E. .R.S. . . . . . . . . . . . . . . .
Temperature loops on extruders tend to be dominant lag or integrator-like loops. They take a long
time to reach the desired temperature.
When collecting data for these loops, use a small safety factor (about 1.5). Use derivative action if
the output goes to a heater. This might cause the output to oscillate, but provides better response.
To collect data for this type of loop in Manual mode, see “Controller in Manual (Fast Plant Test)”
on page 164.
To collect data for this type of loop in Auto mode:
„ Possible initial setting: Proportional value of about 80, or gain of 1.25
„ Possible initial setting: Derivative value of about 1 min
„ Do the step test with no integral action in the controller. The loop settles faster.
„ Leave derivative action in.

NOTE: To omit integral action, if your controller uses integral in:


Time/rep: Set the integral to a large number.
Rep/time: Set the integral to zero.

CASCADING LOOPS
.........................................................
In cascading loops, the output of one control loop (or controller) manipulates the set point of
another. Using a cascade design can greatly improve performance of the control system when the
process can be split into separate control levels.
A typical application of a cascading loop is trying to control the level of a liquid in a vessel. The
master loop measures the liquid level in the vessel, compares it to a set point, and calculates a new
output command. This output command becomes the new set point for the slave controller, which

RSLoop Optimizer User’s Guide 169


APPLICATION NOTES
15 Cascading Loops

measures the flow, compares it to the set point sent by the master, and then adjusts the flow rate,
maintaining the desired level in the vessel.

Level (Master) Controller

LT LC
Flow (Slave) Controller

FC
Level
Transmitter
Flow
FT Transmitter

COLLECTING DATA FOR CASCADING LOOPS


In general, when tuning cascaded loops, tune the slave (inner) loops first, then the master (outer)
loop. To tune cascading loops:
1. Set the slave loop to local so it receives the set point from the user.
2. Collect data from the slave loop process variable and controller output using the AutoTune
sequence or one of the manual methods.
3. Enter the PID settings determined by RSLoop Optimizer into the slave loop controller.
4. Set the slave loop to Remote to receive its set point from the master loop controller.
5. Collect data from the master loop’s measurement and controller output. The controller output
is the set point sent to the slave loop. Use either the AutoTune sequence or one of the manual
methods.
6. Check interactions between the loops. Compare the integral settings that RSLoop Optimizer
calculated for the slave and master loops. The master loop integral setting in units of
time/repeat should be at least 3 to 4 times larger than that of the slave loop. If it is not, increase
the integral time of the master loop to be 3 to 4 times that of the slave loop to avoid
interactions.

NOTE: In RSLoop Optimizer you can use the Relative Response Time feature to check for
interactions between the master and slave loops. (See “Using the PID Grid to Check Relative
Response Time” on page 70 for more information.)

7. See online help for instruction on tuning and analyzing cascade loops simultaneously.

170 RSLoop Optimizer User’s Guide


G
. .ETTING . . . .I NFORMATION
. . . . . . THE . . . . . . . . . . . Y. OU
. . .N
. .EED
...... A

.....
Use this chapter to review the sources of additional information about RSLoop Optimizer
software, including online help and technical support. This chapter helps you to find what you
need efficiently.
You can find more information about RSLoop Optimizer through:
„ Online Help
„ Online Books
„ Technical Support Services
If you need quick help to get started using RSLoop Optimizer software, the RSLoop Optimizer
User’s Guide can help you to learn what you need to know to see results fast. Use it with the online
help system to get information about features and functions in RSLoop Optimizer.

SUPPLEMENTAL READING
.........................................................
These Rockwell Software materials might be useful when setting up and using RSLoop Optimizer.

For more information on: See:


RSLinx RSLinx Getting Results Guide or online help

ONLINE HELP
.........................................................
RSLoop Optimizer includes online help, a tutorial, and optimization steps that provide general
overview information, comprehensive step-by-step procedures, and context-sensitive control
definitions. To view online help while using RSLoop Optimizer:
„ Choose Help > Contents or Help > Search for Help on from the main window or Faceplate
and Trend window
„ Click the Help button in dialog boxes
„ Move the cursor to the box, button, or item you want help with and press F1
The tutorial guides you through the basics of using RSLoop Optimizer. It is available from the
main RSLoop Optimizer window. To use the Tutorial, select Tutorial > Tutorial.

RSLoop Optimizer User’s Guide 171


G E T T I N G T H E I N F O R M A T I O N YO U N E E D
A Online Books

The optimization steps provide detailed information on optimizing your loop. It is available
through the Faceplate and Trend window. To use the optimization steps, select Help >
Optimization Steps.

ONLINE BOOKS
.........................................................
In RSLoop Optimizer, the Online Books feature allows you to immediately access and search the
product documentation for RSLoop Optimizer from the Help menu. This feature contains the
User’s Guide in electronic book format. From the main window, open the User’s Guide by
selecting Help > Online Books.

TECHNICAL SUPPORT SERVICES


.........................................................
If you cannot find answers to your questions in the RSLoop Optimizer User’s Guide publication or
in the online help, you can call Rockwell Software technical support at the numbers listed on the
copyright page. The technical support staff is available Monday through Friday from 8 A.M. to
5 P.M. eastern time, except holidays.
Also, take a look at the Support and Training help file for information about training classes
offered at Rockwell Software. In RSLoop Optimizer, select Help > Support and Training.

172 RSLoop Optimizer User’s Guide


.....
G E T T I N G T H E I N F O R M A T I O N YO U N E E D
Technical Support Services

WHEN YOU CALL


When you call, you should be at the computer running RSLoop Optimizer and be prepared to
provide the following information:
„ Product serial number. This is on the Activation disk labels or product box. (You can also find
the serial number online: In RSLoop Optimizer, select Help > About RSLoop Optimizer.)
„ Product version number.
„ Hardware you are using.
„ Exact wording of any messages on the screen.
„ Description of what happened, and what you were doing when the problem occurred.
„ Description of how you tried to solve the problem.

RSLoop Optimizer User’s Guide 173


G E T T I N G T H E I N F O R M A T I O N YO U N E E D
A Technical Support Services

174 RSLoop Optimizer User’s Guide


R
. .ECOMMENDATIONS
. . . . . . . . . . . . . . . FOR
.................. B

.....
P ROGRAMMING PID L OOPS

This appendix provides information on using RSLoop Optimizer with the PID instruction used in
the Allen Bradley PLC-5 and SLC 500 families of processors.

LADDER LOGIC CONSIDERATIONS


.........................................................
The PID instruction should be activated by the done bit of a timer. Since a block transfer is
synchronous and might finish in several scans, do not use a block transfer to activate the PID
instruction.
To help ensure correct integral and derivative calculations:
„ Make sure the loop update time and the actual triggering of the instruction are the same.
„ PLC-5 timers are accurate to 10ms. We recommend a PID update of 100ms or less. This
ensures that the PID calculation error will be no larger than 10%.
„ A processor’s scan time can vary with the amount of logic or operations it must perform. The
integral and derivative calculations will not be accurate unless the PID scan time is
significantly larger (about ten times) than the largest possible scan time. Again, we
recommend a PID update of 100ms or less (although your application might require a longer
update time).
„ Set up your ladder logic to correct the timer’s accumulator (the timer that triggers the PID
blocks) by the status word of the processor scan time. Write the timer's accumulated value to
the PID loop update time.
Because the time when an STI is scanned can vary, we do not recommend using an STI for PID
calculation.

PROCESSOR CONSIDERATIONS
.........................................................
PLC-5 PROCESSORS
We recommend that you use the PD file type with dependent gain’s derivative calculation on PV.
The PD file type is only available in New Platform PLC-5 processors.

RSLoop Optimizer User’s Guide 175


RECOMMENDATIONS FOR PROGRAMMING PID LOOPS
B Loop Setup Parameters in RSLoop Optimizer

De ad ba nd
PLC-5 processors allow you to set a dead band range in which the controller output will not
respond to the error. We recommend that you do not use a dead band as it can cause cycling.

De riv ati ve ga in
If you are using a PLC-5 processor with firmware Series/Rev earlier than B/M, C/L, D/C, or E/A
and derivative gain, be aware that switching from manual to auto might cause a spike in the output
of the controller. To avoid the spike, set D (derivative gain) to zero, switch to auto mode, then set
D to the desired value.
The following equations describe the output spike (D is the derivative value and T is the loop
update time).
If D is on error:

D
Output spike = [ ( error now ) – ( error when you switched mode ) ] × ----
T
If D is on PV:

D
Output spike = [ ( PV now ) – ( PV when you switched mode ) ] × ----
T
We recommend that you select the “D on PV” option.

SLC 500 PROCESSORS


We recommend that you set the Reset and Gain Range (RG) bit. The RG bit is only available in
SLC 5/03 and 5/04 processors.

CONTROLLOGIX PROCESSORS
We recommend you use PID with the dependent gains and derivative calculation on PV.

LOOP SETUP PARAMETERS


. . . . . . . . . . . . . . . . . . . . . . . . . . . . .I .N. .R. S. .L. O. .O. P. . O. . P. T. .I M. .I .Z.E. R. . . . . .
CONTROL BLOCK ADDRESS
If you select the PLC-5 PD file type in RSLoop Optimizer, there is one address to enter under PID
Instruction Addresses on the Setup dialog box when you configure the loop. If you select PLC-5
integer file or SLC 5/02, 5/03, 5/04, there are three addresses to enter when you configure the loop.
Enter the Control Block (CB) address of the PID instruction in the same format as when you
programmed the PID instruction. The Control Block is a file that stores PID status and control bits,
constants, variables, and internally used parameters. The Control Block type (integer or PD)
affects how you should program the logic to execute the PID instruction. See the Allen-Bradley
PLC -5 Instruction Set Reference Manual for examples.

176 RSLoop Optimizer User’s Guide


.....
RECOMMENDATIONS FOR PROGRAMMING PID LOOPS
Loop Setup Parameters in RSLoop Optimizer

I nteg er cont r ol
Integer control requires a false to true rung transition to execute. This Integer PID operation is
called a rung transitional execution.
Integer control uses 23 consecutive elements of data table memory per PID instruction. One
integer element equals one word of data table memory. For example, if you use N10:0 as your
control address, elements N10:0 through N10:22 are reserved for the PID instruction.

NOTE: Use caution to avoid accidentally overwriting these reserved addresses.

WARNING: If the PV goes from 4095 to 4096, the instruction sees zero for the PV. If the PV
goes from 0 to –1, the PID instruction sees 4095 for the PV.

P D cont ro l
PD control executes as long as the rung is true. PD control does not require a false to true
transition. This PD PID operation is called a rung conditional execution. PD control uses one
element of data table memory per PID instruction. One PD element equals 82 words of data table
memory. For example, if you use PD10:0 as your control address, your next available address is
PD10:1.
Use the done bit of a timer to execute the PID block; do not use a block transfer.

CONTROL VARIABLE ADDRESS


The CV address box is displayed only if you have a PLC-5 integer or SLC 500 processor selected.
Enter the Control Variable element address. This address is where the PID instruction copies its
calculated PID output value. This is not word 17 in the control block of the PID instruction. Enter
the address in the same format as when you programmed the PID instruction. Sample ladder logic
is shown below.

This is the
value to enter.

RSLoop Optimizer User’s Guide 177


RECOMMENDATIONS FOR PROGRAMMING PID LOOPS
B Loop Setup Parameters in RSLoop Optimizer

PROCESS VARIABLE ADDRESS


The PV address box is displayed only if you have a PLC-5 integer or SLC 500 processor selected.
Enter the process variable element address. This address stores the process input value. Enter the
address in the same format as when you programmed the PID instruction. Sample ladder logic is
shown below.

PV OR SP ENGINEERING UNITS
These are the units displayed by the AutoTune sequence when it asks for a setpoint change. These
are for your display purposes only.
The suggested PV engineering units are:
„ PLC-5 PD file type: The PV Engineering units should match the Engineering Units min/max
boxes in the PID instruction.
„ PLC-5 integer file type: If setpoint scaling is on, the PV Engineering units should match the
scaled engineering units. If setpoint scaling is off, the PV Engineering units should be
unscaled units.
„ SLC 500: If setpoint scaling is on, the PV Engineering units should match the scaled
engineering units. If setpoint scaling is off, they should be unscaled units.
„ ControlLogix 5550 PID type: The PV Engineering units should match the Engineering Units
min/max boxes in the PID instruction.
„ ControlLogix 5550 PIDE type: The PV Engineering units should match the PVEUMax and
PVEUMin fields in the PIDE block.

178 RSLoop Optimizer User’s Guide


A
. .CTIVATION
................................. C

.....
Rockwell Software products are copy-protected. Only a computer with access to the activation key
can run the software. The key is located in an activation file, which is located on the Master Disk
supplied with the program. The activation file contains one activation key per product. Each key
contains one or more licenses, depending on how many copies of the product you purchased.

NOTE: Store your Master Disk in a safe place. If your activation becomes damaged, the
Master Disk might be the only means to run your software in an emergency.

HOW ACTIVATION WORKS


.........................................................
During the setup process, the setup program gives you the opportunity to move the activation file
from the Master Disk to the root directory of the drive on which you are installing the software.
When you launch a Rockwell Software product, the software first checks your local hard drives,
then network hard drives, and finally local floppy drives for activation. If the system fails to detect
either the activation file or the Master Disk, the product starts in Demo mode, which means you
cannot connect to a controller, but you can simulate process dynamics using the simulator. Demo
mode restricts key functions and often restricts file access to only specific project files.

NOTE: Systems attached to extensive networks can take quite a while to search for activation
files on all available drives. You can use the CHECKDRIVES environment variable to specify
or limit the drives your software checks for activation files and to specify the order in which they
are checked. Refer to the activation utilities online help file, COPYPROT.HLP.

RSLoop Optimizer User’s Guide 179


ACTIVATION
C Protecting Your Activation Files

PROTECTING YOUR ACTIVATION FILES


.........................................................
WARNING: Certain anti-virus software packages, such as Norton Anti-virus, can corrupt the
activation files. Configure your anti-virus software to avoid checking the files EVRSI.SYS,
ICOM.SYS, EVICOM.SYS and 386SWAP.PAR.

To avoid damaging your activation files, do not perform the following operations with activation
files on the hard drive.
„ Restore from backup
„ Upgrade the operating system
„ Reinstall the same version of DOS
„ Uninstall DOS
„ Compress or uncompress the hard drive
„ Turn off Windows for Workgroups 32-bit file access. If activation files were moved to a hard
drive with 32-bit file access on, turning off 32-bit file access results in activation files being
lost. (You can turn on 32-bit disk access and 32-bit file access in Windows for Workgroups
without harming the activation file.)
Defragmentation utilities will not harm activation files.
Before running any type of utility that might modify the structure or organization of the hard drive,
remove activation from the hard drive:
1. Use the Move Activation utility (EvMove) to move activation files from the hard drive to an
activation disk. Run EVMOVE.EXE from your Master Disk or your hard drive (typically
located in C:\PROGRAM FILES\ROCKWELL SOFTWARE\RSUTIL).
2. Perform the hard disk operation
3. Move the activation files back to the hard drive.

NOTE: You must use the move utility, EvMove, to move activation files. Attempts to copy,
move or e-mail an activation file by other means will damage the file.

ACTIVATING RSLOOP OPTIMIZER


.........................................................
Depending on your needs, you can activate RSLoop Optimizer from a:
Hard drive. The activation key resides on your computer’s hard disk. Use this method if you will
typically use RSLoop Optimizer on only one computer. This is the default method if you activate
RSLoop Optimizer during installation. To run RSLoop Optimizer on a different computer, move
the activation key back to the Master Disk, and then to the hard drive of the new computer.

180 RSLoop Optimizer User’s Guide


.....
ACTIVATION
Finding More Information About Activation

Disk drive. The activation key resides on a floppy disk (activation disk). Use this method if you
will typically use RSLoop Optimizer on more than one computer — for example, if you want to
run RSLoop Optimizer on a desktop computer at some times and a portable computer at others.
Network drive. The activation keys reside on a network drive. Use this method if you have
purchased multiple licenses of the software and want several users to be able to activate the
software simultaneously over a network. See the online help for instructions on moving activation
to a network drive.

RUNNING THE ACTIVATION UTILITIES


The utilities for moving and resetting activation are called EvMove and Reset respectively. Reset
is used when an activation file has been damaged. The files EVMOVE.EXE and RESET.EXE are
located on your Master Disk and on your hard drive (typically in C:\PROGRAM
FILES\ROCKWELL SOFTWARE\RSUTIL). You can run these programs with one of these
methods:
„ Start > Run
„ Start > Programs > Rockwell Software > Utilities > Move Activation or Reset Activation

FINDING MORE INFORMATION ABOUT ACTIVATION


.........................................................
The activation online help (COPYPROT.HLP) provides more extensive information on activation,
including subjects such as:
KEYDISK. Set this environment variable to tell your computer to look for activation on floppy
drives.
CHECKDRIVES. Specify which drives to search for activation.

Network activation. Move activation to a network server to allow multiple users access to the
activation.
Moving activation. See detailed instructions for moving activation.
Resetting activation. See detailed instructions for using the Reset utility to repair a damaged
activation file.
Troubleshooting. Look up error messages and get problem-solving suggestions.
You can access online help:
„ From the Help button on one of the EvMove or Reset dialog boxes
„ From the RSLoop Optimizer main window: Select Help > Copy protection
„ Without running either RSLoop Optimizer or the activation utilities. Find and run the file
COPYPROT.HLP on either your Master Disk or your hard disk.

RSLoop Optimizer User’s Guide 181


ACTIVATION
C Some Common Questions

SOME COMMON QUESTIONS


.........................................................
My activation files were damaged. What should I do?
If you have lost the activation because the activation file is damaged, you need to reset activation.
Call Rockwell Software Technical Support or refer to the Reset Codes instructions on the
Rockwell Software Technical Support Web page. The phone number and Web address are listed
on the inside front cover of this manual. If you cannot obtain a reset code immediately, follow the
instructions below to use the Master Disk to activate the software as a temporary solution.
To use the Master Disk to activate the software:
1. Set the KEYDISK environment variable to TRUE. (Please refer to the online help.)
2. Insert your Master Disk in the floppy drive.
3. Run your software as usual. Your software will find the activation on the Master Disk.

I accidentally deleted the software directory on my hard disk. Do I need to call


Rockwell Software for replacement activation files?
No. Deleting the program files does not delete your activation. The activation files are not stored in
the program directory; they are located in the root directory. Your activation files won’t be lost
unless you format the hard disk, tamper with hidden files in the root directory, or perform certain
other hard disk operations (see “Protecting Your Activation Files” on page 180).
To get the software running again, simply reinstall the software, but do not move the activation
when given the opportunity.

Why can’t I move activation to a floppy disk on a Windows NT system?


It has to do with a disk modification that NT does not allow. If you have access to a Windows 95,
98 or 2000 machine, you can create a disk that will work under NT. Format a floppy disk and move
any activation file to it under Windows 95, 98 or 2000. (You can move the activation back off the
disk if you want to keep it where it was.) Now take that disk to your Windows NT machine and
move the activation to it.

182 RSLoop Optimizer User’s Guide


G
. .LOSSARY
................................. D

.....
Activation disk. Any disk (floppy or hard) containing an activation file. An activation disk can be
used to activate the software. This is different than a key disk (Master Disk) in that at least one
license of the software must be available on the activation disk to activate the software.
Activation file. A hidden read-only system file that “activates” a Rockwell Software product. The
software will run properly only if your system can find the correct activation file.
Activation key. Activation files contain a database of activation keys. Each key is particular to a
certain product and must be accessible on a local or remote drive for that product to run.
Archiving. The action of saving data collected from a particular control loop to the hard drive.
This data file is saved to the same directory as your control loop (.tun) file.
Auto mode. In Auto mode, the controller or processor automatically controls the output
commands based on its program. This is a closed loop.
AutoTune. The RSLoop Optimizer AutoTune sequence automates the process of collecting data
for PID tuning. Answer the questions to the RSLoop Optimizer AutoTune sequence and
RSLoop Optimizer finds optimal tuning for your loop.
Averaging filter. The averaging filter is a moving average filter — every sample interval it gives
the average of the previous time constant of values. The effect of the time constant is about half
that of the first order filter. To get the equivalent first order time, use an averaging filter with an
averaging window length of twice a first order constant. The averaging filter is a good filter for
reducing frequencies of noise occurring at the filter time. If you have a specific frequency you
want to remove, setting the average filter time equal to the period of that noise should completely
remove it (period is the inverse of frequency). In general, it is not as good as the Butterworth at
higher frequencies.
Butterworth filter. See Second order Butterworth filter.

Bump test. See Step test.

Cascading loops. The output of one control loop manipulates the setpoint of another control
loop. Includes a master loop and a slave loop(s).
Closed loop. A control loop with feedback. The process variable is compared to a setpoint and a
new output command is sent. This occurs with the controller in the Auto mode.
Control Block. A file that stores PID status and control bits, constants, variables, and internally
used parameters. The Control Block type affects how you should program the logic to execute the
PID instruction.
Controller gain. The ratio of a change in the output to a change in either the controlled variable or
the setpoint.

RSLoop Optimizer User’s Guide 183


GLOSSARY
D

Controller output. The current output command of the controller. It is sometimes referred to as
the Controlled Variable.
Cycling (oscillating). A condition in a control loop where the process variable does not settle out
at setpoint, but continues to change, often going both above and below setpoint.
DDE. Dynamic Data Exchange. A method of transferring data from one Windows application to
another. For example, RSLinx uses DDE to provide PLC data to RSLoop Optimizer.
Dead band. A user-specified range above and below the setpoint where controller output does not
respond to the error. The dead band lets you control how closely the process variable matches the
setpoint without changing the output. We recommend that you refrain from using dead band as it
can cause cycling.
Dead time. The amount of time that occurs before the process variable moves appreciably after
the controller output changes.
Derivative gain. Causes the change in controller output to be proportional to the change in the
rate-of-change of the error; also called rate.
Disturbance. An undesired change in a variable applied to a system which tends to affect
adversely the value of a controlled variable.
Disturbance, cyclic. Disturbances that occur on a repeatable, periodic basis.

DMC (dynamic matrix control). A multi-variable control algorithm that uses plant models to
achieve optimal control. In DMC a model of the individual pieces of the process are represented in
a coefficient matrix. Each process in the matrix is modeled by using the open loop step response of
the process.
Error. In a control loop, the difference between the setpoint and the process variable.

Filtering. Used to smooth the data to eliminate noise or other inconsistencies.

First order filter. The most commonly used filter. Also called a first order lag. You can
implement it with the equation:

PV + LagTime ( PVf1 – PV )
PVf = -------------------------------------------------------------------
LagTime + SampleInterval
First order process. A process whose describing differential equation is a first order equation.
The time constant for a first order process is called lag time.
Frequency response plot. If you introduce a sine wave into a linear process, the output of the
process is also a sine wave. However, the output might not be the same size and might be shifted in
time relative to the input. The relative size of the output sine wave compared to the input is called
the dynamic process gain or amplitude ratio and the amount of time shift is called the phase. A
different sine wave frequency introduced in your process might give a different amplitude ratio
and phase. If you tried this for a broad range of different sine wave frequencies, you would get a
spectrum of amplitude ratio and phase data at each frequency from which a frequency plot like the
one in RSLoop Optimizer could be made.

184 RSLoop Optimizer User’s Guide


.....
GLOSSARY

Gain. See Controller gain, Derivative gain, Integral gain, Process gain, Proportional gain.

Hysteresis. A lag in the movement of a device upon a change of direction.

IAE - Integrated Absolute Error. Performance of a loop is judged by how closely the controlled
variable is held to the setpoint, both for setpoint changes and load changes. There are many
mathematical ways of judging this, and IAE is one type. IAE is a measure of controller error
defined by the integral of the absolute value of a time dependent error function.
Improvement Indices. See valve travel index, valve reversal index and Robustness Increase.

Integral gain. Causes the change in controller output to be proportional to the amount of time the
error is present; also called reset.
Integrator. If a process settles out after being given a step change it is called self-regulating. If it
does not, it is called non-self-regulating or integrating. This is much like the integral action of a
controller, which keeps going if the error remains. An integrating process can take a long time to
(or might never) reach steady state (settle out) after a manual step change in the controller output.
Interval (sample interval). The time in seconds that RSLoop Optimizer uses to collect data. This
sample interval is also used to update the trend and bar graphs.
Key disk. A floppy disk that can be used to activate the software even if that disk contains zero
licenses. The Master Disk is the only key disk. This differs from an activation disk in that an
activation disk must contain at least one license.
Lag. The effect of something happening after a change occurs. For example, the valve moves after
the command is sent. The amount of lag time varies depending on the system equipment and
design.
Lag time. The amount of time after the dead time that the process variable takes to move 63.3% of
its final value after a step change in valve position. Lag time is the time constant for a first order
process.
Lambda. See Setpoint tuning.

License. Authorization to use a specified number of instances of software. A product’s activation


key contains a license for each copy of the software you have purchased. For example, if you
bought seven copies of RSLogix 5, the RSLogix 5 key on the Master Disk contains seven
“licenses” of RSLogix 5. You can move the activation file for RSLogix 5 to seven different
computers.
Linear. The type of relationship that exists between two variables when the ratio of one variable to
the corresponding value of the other is constant over the entire range of possible values.
Load change. In a control loop, a change occurring other than a setpoint change, that causes a
disturbance in the system. For example, in a temperature loop, more people coming into a room
would raise the room temperature causing the loop to respond.
Load tuning. Provides PI and PID tuning parameters optimized for load changes at the controller
output. Load changes are the most difficult disturbances for the system to control, but they are also
the most common.
Load upset. See Load change

RSLoop Optimizer User’s Guide 185


GLOSSARY
D

Manual mode. The mode of the controller where the output command is under the control of the
operator, and not the control loop. This is an open loop.
Master Disk. This disk is supplied with the software. It contains a database of keys in an
“activation file” that enables the software to run. Be sure to store your Master Disk in a safe place.
If your activation file becomes damaged, the only way you can run your software (until the
activation is reset) is with your Master Disk.
Modeling. A mathematical approximation of the control loop. It is based on actual data and loop
response. The model can then be used for testing the response of the loop with different tuning
parameters and under different conditions.
Noise. Unwanted spikes or disturbances in the system. Noise could be seen on an active
transmitter measuring temperature, if for example, the transmitter was subjected to electrical noise
from nearby contactors or similar equipment. Noise should be edited out of data that is to be used
to calculate tuning parameters.
See also Normal process noise.
Noiseband. When performing a hysteresis check, the amount of noise as a percent of the process
variable range. More than 2% might be an indication that filtering should be used.
Normal process noise. Minor variations in the process variable (PV) that are not caused by the
loop’s control. Normal process noise can come from sources such as electrical interference,
magnetic fields, turbulence in flow loops, or waves in a tank in level loops.
Offset. In a proportional only control loop, the difference between the setpoint and the settled out
value of the process variable.
Open loop. A control loop without feedback. The controller does not send new output commands.
The operator can change the output command. Occurs with the controller in the Manual mode.
Overshoot. If a process variable is responding to a new setpoint or to a load change, and initially
goes beyond (above or below) the goal, it is known as overshoot.
Power Spectral Density. Useful for seeing the potential improvement from better tuning. Shows
the relative power in the signal at various frequencies ranging from twice the sample time to twice
the data collection period.
Process gain. The steady state ratio of the output of a process to a change in its input.

Process upset. An upset that is not from changing the setpoint. A process upset is something that
causes your process variable to deviate from setpoint when you were running at steady state. An
example in a flow loop would be a change in downstream pressure. In a level loop controlled by
outflow, an increase in inflow would be an upset.
Process variable. The variable that the control loop is trying to control. It is used as feedback for
the loop.

186 RSLoop Optimizer User’s Guide


.....
GLOSSARY

Proportional gain. When the change in controller output is proportional to the change in error.

Quarter amplitude damping. A control loop response in which the size (amplitude) of the
overshoot or undershoot of each successive cycle is one fourth the size of the previous cycle is
called quarter amplitude damping.
Rangeability. Any valve has a rangeability factor that determines how precisely it will regulate. A
good control valve might have a rangeability of 100 to 1, which means that you can make 1%
adjustments in the output. The valve can also be referred to as having a resolution of 1%.
Rate. See Derivative gain.

Relative Response Time (RRT). is a relative indicator of the speed of the control loop. The
smaller the relative response, the faster the loop. The higher the relative response value, the slower
the loop. Use this number for comparison purposes.
The Relative Response Time is dependant on the speed of response: you can change it by adjusting
the safety factor or lambda time.
Reset. See Integral gain.

Resolution. The smallest change that your system can detect.

Reversals. The number of times the valve has changed direction in CO showing in the time
graph.
Robustness. An indication of how sensitive your loop is to process gain or process deadtime
changes. A very robust loop tends to remain stable under most conditions. It is not very sensitive,
however, and might respond slowly or not hold control tightly to normal changes. The Robustness
plot graphically shows the tradeoff between tight tuning and stability. See also Sensitivity.
Safety factor. Controls sensitivity when using Load type tuning. The setting can be between 1
and 2.5. A setting of 1 means the tuning is very sensitive to small changes in the process but could
become unstable if subjected to large or sudden load changes. A safety factor of 2.5 gives you
conservative tuning; the loop will respond somewhat slower but is more stable when subjected to
large or sudden load changes.
Second order Butterworth filter. This is a high performance second order filter. It is a good
filter to eliminate noise, since it causes the least amount of phase addition for the most amount of
noise reduction compared to other filters. You can implement it with this equation:

v1 + SampleInterval ( PV – PVf1 )
v = --------------------------------------------------------------------------------
Tau + SampleInterval

PVf1 + 2 ⋅ SampleInterval ( v – PVf1 )


PVf = ------------------------------------------------------------------------------------------
Tau + 2 ⋅ SampleInterval
Second order filter. The second order filter uses half your time constant in each of two cascaded
first order filters. This results in an overall time constant equivalent to a first order one.
Sensitivity. An indication of how quickly a control loop can respond to load or setpoint changes.
A loop that can respond very quickly or hold control very tightly is less robust. If it is subjected to
sudden large changes it might not be able to react without going unstable.

RSLoop Optimizer User’s Guide 187


GLOSSARY
D

Server. RSLoop Optimizer uses RSLinx or the ProcessLogix OPC server as the server for
communications to the controller. The link between RSLoop Optimizer and the server can be
either DDE or OPC. RSLinx version 1 use a DDE link. RSLinx version 2 or later and
ProcessLogix use an OPC link.
Setpoint. The desired operating point of the control loop.

Setpoint tuning. Used to match the setpoint response to a first order time constant (or lag time)
that you enter. System response is first delayed by the process dead time. This method is popular in
the paper industry on some loops when operators want no overshoot. Also known as lambda
tuning.
Settled out. See Steady state.

Simulation. Simulation of a control loop is accomplished by using a model of the loop based on
actual data collected from the loop. The model can be used to simulate how the loop will react
under different tuning parameters or conditions.
Steady state. The condition when both the process variable and controller output are relatively
flat horizontal lines in the Trend display, moving within the range of normal process noise. A
process variable or controller output that is ramping or in a transient condition is not steady state.
The process variable does not have to be at setpoint.
Step change. A change of the setpoint or controller output from one steady state value to another.

Step test. A change made to the setpoint or controller output in order to analyze the response of
the control loop.
Stiction. The word stiction is made from the words stick and friction. It is the resistance to the
start of motion. Stiction or stick-slip occurs because of tight packing, undersized actuators, or
corroded stems. Sticking at the seat is very common especially for valves designed for tight
shutoff.
Time constant. For a first order lag filter, the time constant is the time to reach 63.2% of the final
value in response to a step change.
Travel. The total distance the valve has traveled in the CO showing in the time graph.

Valve characteristic. The type of response a valve has to a command is its characteristic. It is a
function of the valve plug design. The correct characteristic should be chosen for the specific
application.
Valve sizing. Choosing a valve to have the proper range and flow characteristics for a specific
application.
Valve Travel Index. The percent improvement in the controller output travel from the current to
new. If the new PID tuning parameters (and filter) result in more travel than the current ones, the
Valve Travel index will be negative.

188 RSLoop Optimizer User’s Guide


.....
GLOSSARY

Valve Reversal Index. The percent improvement in controller output reversals from the current
to new. If the new PID tuning parameters (and filter) result in more reversals than the current ones,
the Valve Reversal Index will be negative.
Verify. The process of using the Time data window to confirm that the control loop data collected
is optimal for calculating tuning parameters.

RSLoop Optimizer User’s Guide 189


GLOSSARY
D

190 RSLoop Optimizer User’s Guide


INDEX
...........................................................
A B
activate archiving 29 bargraph display 29
activation 181 bars (Power Spectral Density Graph) 84
damaged 182 Basic programming language 99, 112
different computers 181 Bode plot 127
disk 183 Bring Back Previous PID Settings to New 63
trouble creating 182 bump test
file 179, 183 see step test 183
from disk drive 181 Butterworth filter (second order) 187
from hard drive 180
key 179, 183
moving 181 C
online help 181
protecting 180 C programming language 99, 112
reset 181, 182
calculating tuning parameters 68
searching drives for 181 cascade loop 169, 183
troubleshooting 181, 182 collect data 170
Actual PV compared to simulated 132
relative response time 71
analysis windows 123 change
Process Frequency Response Plot 127
PID parameters 62
Process Model 124 Characterizer
robustness plot 133 input (pH) 109
analysis, valve wear 132
build 109
archive 36, 58, 183 wizard 109
accessing 58 output 91
creating 14
build 94
delete 59 code 99, 112
deleting 59 collect data for 93
notes 59
hyperbolic fit 97
run from 59 linearity constant 94
tune from 36 piecewise linear fit 95
archiving
start 93, 120
turning on 29 wizard 94
ASCII, copy to 59 CHECKDRIVES 181
Auto Adjust button 99
closed loop
auto correlation 86 see auto mode
Auto mode 53, 56, 183 test 56, 164
auto scaling 67, 85
collect data 53
auto zoom 71 cascade loop 170
AutoTune 37, 53, 183 manual 56, 163
average 72, 166
color, trend line 31
filter 183 communications
debugging 35
testing 15
configure
loop 9, 10

RSLoop Optimizer User’s Guide xi


INDEX

control block 183 data 72


address 176 archive 36, 58, 59
control loop 183 accessing 58
performance evaluation 136 archive, deleting 59
setup window 10 collecting 53, 163
simulation 128 manually 163
simulation plot edit 71, 165
load 131 pairs 57, 86
load upset 131 points 57
setpoint 129 requirements 53, 56, 57
control, PI 24 verify 75
controlled variable 28, 177 viewing 71
controller Data Spy 35
change mode 35 DCOM 6
gain 183 DDE 141, 184
in auto topic 5, 6
Closed Loop 164 dead band 176, 184
Manual Step Test 164 dead time 184
in manual debug, communications 35
fast plant test 164 decimal places 31
Open Loop 163 delete
output 22, 184 archive 59
changing on faceplate 34 loop 15
tuning 25, 69 derivative 24
offline 69 gain 21, 24, 70, 176, 184
optimal parameters 69 selecting 70
ControlLogix 5550 processor 1, 176 Dial in Robustness 135
copy protection display spans 31
see activation 179 Distributed Com. See also DCOM.
copy to ASCII 59 disturbance 184
corner frequency 127 DMC
correlation 86 see dynamic matrix control 126, 184
auto 86 download 63
cross 86 PID parameters 62
create code 99 dynamic matrix control 126, 184
cross correlation 86
cumulative power 84, 150
cut-off frequency 127 E
CV address 177
cyclic disturbance 83
edit, data 165
cycling 72, 159, 184 editing an existing loop 14
example 166 engineering span 31
hidden 86
engineering units 11, 178
equivalent dead time 57
error 21, 184
D
damaged activation 182

xii RSLoop Optimizer User’s Guide


.....
INDEX

example H
cycling and noisy data 166
noisy data 166
hidden cycling, detecting 86
PID loop 22
histogram 78
plant test 165
hyperbolic fit, output Characterizer 97
process responds faster in one direction 167
hysteresis 78, 185
expand control loop simulation 129
notes 80
extra
performing check 79
loop, adding 47
trend 44
setting up 44
extruders 169 I
temperature control 169
IAE 77
see integrated absolute error 185
F information, additional 171
initialization error
faceplate 17, 28, 35 LINX 15
RSLinx 15
and trend window 28
bargraph display 29 input characterizer 109
features 2 installation 5, 8
integer control 177
files, delete archive 59
filter 184 integral gain 21, 24, 185
average 183 integrated absolute error. 185
integrating loops 125, 168
first order 184
option 70 integrator 185
PV 70 interaction, preventing 71
interval 185
second order 187
Butterworth 187 sample 57
time constant 74 inverse response process 49
first order 124, 184
filter 184
FORTRAN programming language 99, 112 K
frequency
response 25, 127, 184 key disk 182, 185
KEYDISK environment variable 181

G
L
gain 24
controller 183 ladder logic 175
derivative 21, 70, 176, 184 lag 185
integral 21, 24, 185 time 185
process 81, 124, 186 lambda
proportional 21, 23, 187 tuning 26, 188
graph value 71
changing type (Time data window) 67 lead, process 49
Measurement Noise Response 132 license 179, 185
line color 31
line edit 73
linear (Power Spectral Density) 83

RSLoop Optimizer User’s Guide xiii


INDEX

linearity constant 94 move


linearizer activation 181
build 109 moving your software 180
pH 109
RSLogix5 example 114
wizard 109 N
lines (Power Spectral Density Graph) 84
LINX initialization error 15 new loop 9
load new platform PLC-5 9, 175
changes 22, 185
noise 186
plot 131 spikes 73
tuning 25, 185 noiseband 186
no overshoot 26
noisy data 72
selecting 69 example 166
types 26 normal process noise 186
logarithmic (Power Spectral Density) 83
note
loop archive 59
add 47 loop 59
adding 9
cascade 169
configure 9
creating 9
O
edit 14
extra 47 Off-Line Analysis and PID Tuning window 40, 53, 58
integrating 125, 168 Offline button 58
interaction, checking 86 offline tuning 40, 53, 69
new 9 offset 186
notes 37, 59 Omit Zero Freq (DC) 85
problem 18 online books 172
setup parameters 10, 176 online help 171
editing 14 activation 181
PID instruction addresses 12, 176 OPC 145
processor type 175, 176 topic 5, 6
PV engineering units 11 open loop 186
RSLinx topic 11, 141, 145 see manual mode
sample interval 11 step test 163
test 163
operating system requirements 2, 4
M optimize loops 18
order
first 124
main window 9
second 124
manual mode 186
over network 181
manual step test
overshoot 23, 26, 186
controller in auto 164
master disk 186
activating with 182
Measurement Noise Response graph 132
P
mode
changing controller 35 parameter
model calculating tuning 68
see Process Model 126 displays 31
modeling 186 PD control 177

xiv RSLoop Optimizer User’s Guide


.....
INDEX

PD file type 9, 175 Process Model 124, 126


performance evaluation DMC 126
control loop 136 start Simulator 37
Performance increase 135 types 125
Performance Summary 135 window 124
pH Linearizer 109 ProcessLogix
build 109 set up 10
RSLogix5 example 114 setting up for RSLoop Optimizer 6
using 109 programming language 99, 112
wizard 109 Basic 99, 112
PID 21, 24 C 99, 112
change parameters manually 62 FORTRAN 99, 112
download parameters 62 structured text 99, 112
grid 70 X-Y pair list 99, 112
instruction addresses 12 proportional
instruction reference 175 gain 21, 23, 187
loop example 22 only control 23
tuning 58 plus integral control 24
piecewise linear fit plus integral plus derivative 24
output Characterizer 95 PV
plant test 163 address 178
examples 165 engineering units 11
PLC-5, new platform 9, 175 filter option 70
plot PV engineering units 11
load 131
robustness 133
Power Spectral Density 82, 83, 149, 186 Q
bars 84
cumulative power 84 quarter amplitude damping 187
cycles/sec 83 quick start procedure 17
data pairs 86
linear graph 83
lines 84
logarithmic graph 83
R
Omit Zero Freq (DC) 85
radians/sec 83 range, see span
seconds 83 rangeability 187
square root of power 83 real time trend display 29
y-axis scale 83, 85 report
zooming 84 add to 42, 82
probable performance increase 68 create 40
problem loops 18 edit 41, 44
process macros 41
gain 81, 124 open 41
noise, normal 186 print 44
upset 54, 56, 186 save 40
variable 22, 186 tuning 40
variable address 178 Report options
Process Frequency Response Plot 127 Just Add This to Report 42
process gain 186 requirements, operating system 2, 4
reset activation 181, 182
resolution 187

RSLoop Optimizer User’s Guide xv


INDEX

Reversals 187 Simulate window 37


robustness 187 simulation 188
plot 133 sample loop 27
Robustness increase 135 simulator 37
Rockwell Software, contacting 172 span
RSLinx 4, 5, 6, 11, 141, 145 display 31
topic 10, 11 engineering 31
setup 11 spikes 73, 83
RSLogix5, pH Linearizer example 114 square root of power 83
RSLoop Optimizer stability, checking with robustness plot 133
installing 8 start RSLoop Optimizer 9
moving 180 statistical analysis 75
setup window 10 steady state 53, 188
starting 9 step change 188
theory 25 step test 188
run RSLoop Optimizer 9 open loop (manual) 163
stiction 117, 188
structured text language 99, 112
S supplemental reading 171
support, technical 172
safety factor 70, 133, 187
sample interval 11, 57, 185
Save As (setup window) 14 T
saving changes, Time data window 75
scale Y-axis, Time data window 67 technical support services 172
second order 124 temperature control of extruders 169
Butterworth filter 187 test
filter 187 communications 15
sensitivity 187 plant 163
see robustness plot 133 step, open loop 163
set up ProcessLogix 10 theory, RSLoop Optimizer 25
setpoint 22, 188 thick lines (Time data window) 67
changing on faceplate 34 time constant 188
filter filter 74
programming 130 Time data window 55, 65
plot 129 add data to report 82
tuning 26, 188 auto zoom 71
selecting 69 changing graph type 67
setting up ProcessLogix for RSLoop Optimizer 6 saving changes 75
settled out scale Y-axis 67
see steady state 53 scale y-axis 67
setup parameters zoom 71
editing 14 timeline analysis 138
setup PV engineering units 11 topic
setup window DDE 5, 6
control loop 10 OPC 5, 6
opening 14 RSLinx 10
options gray 14 transmitter span
RSLoop Optimizer 10 too large 81
shrink control loop simulation 129 too small 82
shrink-swell Travel 188
see inverse response process 49

xvi RSLoop Optimizer User’s Guide


.....
INDEX

trend 28, 35 V
adding 44
display 29
valve
display, changing 31
characteristics 188
extra 44
life 154
options 30, 31
oversized 81
troubleshooting 172
reversals 132
activation 181, 182
sizing 188
communications 15
travel 132
tuning 17, 25, 69
undersized 81
automatically 37
wear
controller 69
analysis 132
determine optimal parameters 69
indicators 132
from archived data 36, 59
Valve Reversal Index 136, 189
lambda 26
Valve Travel Index 135, 188
offline 40, 53, 69
View menu 32
parameters, calculating 68
report 40
setpoint 26
turn on archiving 29 W
WINtelligent LINX
U see RSLinx 11

use derivative if possible 70


use filter option 70 X
X-Y pair list programming language 99, 112

Z
zoom 71

RSLoop Optimizer User’s Guide xvii


xviii RSLoop Optimizer User’s Guide

You might also like