TuneWizard UserGuide
TuneWizard UserGuide
User Guide
Version 5
Published: November 13, 2017
Copyright © 2010-2017 PAS Global, LLC. All rights reserved worldwide.
Printed in U.S.A.
This document contains proprietary information of PAS Global, LLC (“PAS”), and is tendered subject to the condition that no
copy or other reproduction be made in whole or in part, and that no use be made of information herein except for the
purpose for which it is transmitted, without express written permission of PAS.
PAS makes no representations or warranties with respect to the contents hereof and specifically disclaims any implied
warranties of merchantability for any particular purpose. Furthermore, PAS reserves the right to revise this publication and
to make changes in content hereof without obligation of PAS to notify any person of such revision.
Trademarks
ADU, ADU Load Calc, Alarm Advanced Elements, Alarm and Event Analysis, Automation Integrity, ControlWizard, Cyber
Integrity, Dynamic Alarming, inBound, Integrity Software Suite, ISS, PlantState Suite, PSS, PSS Metrics, PSS Online, PSS
Report Builder, PSS Web, and TuneWizard are trademarks or registered trademarks of PAS. DOC4000 is a registered
trademark of PAS, currently licensed to Honeywell. All other trademarks or registered trademarks used herein are the
properties of their respective owners and are used for identification purposes only.
Contents
Conventions
The documentation uses consistent conventions to help you identify items. The following
table summarizes these conventions.
Convention Use
Bold • Window and menu items
• Technical terms, when introduced
Italics • Book titles
• Variable names
• Emphasized words
Fixed Font • File and folder names
• Commands and code examples
• Text you must type
• Text (output) displayed in the command-line interface
Color • Links
> • Submenu selections, such as Generate Reports > All
Brackets, such as [value] • Optional parameters of a command
Braces, such as {value} • Required parameters of a command
Logical OR, such as • Exclusive parameters. Choose one parameter.
value1 | value2
System Requirements
TuneWizard has the following minimum recommended hardware and software
requirements:
Installing TuneWizard
You must be logged in with Administrative privileges before you install or uninstall
TuneWizard. A reboot is not required.
Note: If previous versions of TuneWizard are installed, use Windows Start > Control
Panel > Programs > Uninstall a Program to remove the earlier version before
installing the latest update. Earlier stored data files and configuration settings will
persist on your system; those are saved outside of the installation folder.
To install TuneWizard:
1. Insert the TuneWizard installation CD into the CD-ROM drive of your computer.
Alternatively, open the Download folder where you saved the software package.
2. Use the Windows Start menu, select or type Run, and type D:\setup.exe (where
D: is the drive letter of your installation disk). Alternatively, double-click on the
setup.exe file.
3. Once the installation program is running, the InstallShield wizard will guide you
through the various steps of installation. In most cases, it will be sufficient to
accept the installation defaults.
4. You must read and agree with the End Users License Agreement (EULA) before
installing and/or using TuneWizard.
To uninstall TuneWizard:
1. Select Windows Start > Control Panel > Programs > Uninstall a Program.
2. Select TuneWizard from the list, right-click and select Remove or Uninstall.
3. Follow the directions to remove TuneWizard.
Note: The Uninstall feature will not delete any configuration or data files that you have
stored. If you have created files inside the My Documents > TuneWizard or
Program Files > TuneWizard folders (or any sub folders), the uninstall feature will
not remove these folders, but it will display a warning that not all components
could be removed. If you want to delete additional files that TuneWizard created,
use Windows Explorer.
License Activation
After installing the software, start TuneWizard from the Windows Start menu. The first
time you run TuneWizard, a window will display a System Code for your machine and
provide instructions on how to contact PAS to get your License Activation code.
You can contact PAS Technical Support to get the license activated. For more information,
see “Contacting PAS” on page x.
Overview
TuneWizard was developed with ease-of-use in mind. The process flow of loop tuning
actions is represented in the explorer tree on the left hand side of the application. Follow
the explorer tree from top to bottom.
Each node on the explorer tree is associated with a particular page in TuneWizard. Each
page deals with a different aspect of the loop tuning exercise. For most loops, you should
follow through all the pages in TuneWizard, starting on the top branch of the explorer
tree and working your way down through all the pages.
TuneWizard ships with a Process Simulator. Use this utility to try out loop tuning options
and to familiarize yourself with the many features of TuneWizard.
To use TuneWizard for diagnosing process problems and tuning your controller
for optimum performance:
1. Click Loop Details in the explorer tree, and then complete the following steps on
the Loop Details page:
a. Type a description for the control loop.
b. Select your controller type.
c. Select the method of data acquisition (data source).
2. Click Channels in the explorer tree, and then complete the following steps on the
Channels page:
a. Fill out the fields for your preferred method of data acquisition.
b. Turn on the Scan & Record Data.
c. Verify that TuneWizard displays the correct values for PV, SP, and CO.
d. Load or type the PID settings from the controller you are about to tune.
3. Click Acquire Data in the explorer tree, and then complete the following steps on
the Acquire Data page:
a. Turn on the Recording.
b. Do all the diagnostic and tuning tests.
c. Turn off the Recording.
4. Click View & Select Data in the explorer tree, and then complete the following
steps on the View & Select Data page:
a. Select the sections or periods of data related to each test that you did.
b. Use the link buttons on the tool bar to link the diagnostic test data to the
diagnostics and tune pages.
5. Click Hysteresis in the explorer tree, and let TuneWizard analyze your process and
diagnose problems.
6. Click Stiction in the explorer tree, and let TuneWizard analyze your process and
diagnose problems.
7. Click Linearity in the explorer tree, and let TuneWizard analyze your process and
diagnose problems.
8. Click Tune in the explorer tree, and then complete the following steps on the Tune
page:
a. Let TuneWizard calculate new settings for your PID controller and simulate
the results.
b. Load the new P, I, and D settings into your controller.
9. Test and print the results by completing the following steps:
a. Click Simulate in the explorer tree, and then record a setpoint change on the
Simulate page to verify the control loop performance.
b. Click Report in the explorer tree, and then link test data before and after
tuning to the Reports page.
c. Print a Diagnostics and Tuning Report to a document file on your hard drive.
Notes:
• For more information about this process, see “Tutorial” on page 6.
• For more information about operating theory and scientific explanations of the
concepts and components discussed in TuneWizard, see “Process and Control
Theory” on page 115.
• Read books about the best practices used in the Process Industry: The High
Performance HMI Handbook and The Alarm Management Handbook. These books
are available through PAS Global, LLC.
Tutorial
The following tutorial walks you through a simulated tuning scenario to illustrate how to
use the product.
1. Start TuneWizard from the Windows Start menu. The application will be in the PAS
folder.
2. Select New on the TuneWizard File menu.
3. Select the Loop Details node on the TuneWizard explorer tree. That is the top item
on the left side panel.
4. Select Process Simulator on the Data Source options list to the right.
Note: Normally, you would select a different Data Source here (for example DDE)
to get data directly from your control system, but for this brief tutorial we
will get data from a process simulator. You would normally also select your
controller type from the Controller Type list. In this case, TuneWizard
automatically selects the controller type associated with the process
simulator.
5. Change the Description of Control Loop to Simulated Flow Loop.
6. Select the Channels node on the TuneWizard left panel explorer tree.
7. Start the Process Simulator by selecting Start > All Programs > PAS > TuneWizard >
Process Simulator. We will get our sample data for this tutorial from the Process
Simulator.
Note: TuneWizard users can get their input data from actual controller outputs and try
out simulated settings to test process improvement following the
recommendations provided by TuneWizard. When you collect data from a real
control system there are additional items on the Channels page that you will have
to configure. For the tutorial, TuneWizard has done the necessary configuration to
interface with the process simulator.
8. In TuneWizard, click the Read PID, F button to read the current P, I, D, and F values
from the process simulator's controller. Verify that these numbers are the same as
in the process simulator.
9. Click File > Save, and save the newly created loop configuration file as
Tutorial.twz.
We are now ready to start collecting running data from our simulated process. As a
minimum, TuneWizard requires Process Variable (PV) and Controller Output (CO)
data from the control loop that you want to analyze and tune. For this Tutorial, we
will record the Setpoint (SP) as well. TuneWizard can record as many as eight
channels of data simultaneously.
10. Check the Scan & Record Data check box to start recording data from the data
source (the process simulator in this tutorial). Verify the PV, SP, and CO numbers
are the same as in the process simulator.
11. Select the Acquire Data node on the TuneWizard explorer tree. TuneWizard
displays a time trend of the data being recorded, and a message that it is
Recording to file 001.
12. Set the Trend Time Span to Show All. At this point we are ready to do process tests
that we can use later for analysis. We will make a setpoint change with the
controller in automatic for our first test.
13. On the Process Simulator, click inside the SP box and change the value to 60.
14. In TuneWizard, monitor the Process Variable (PV) and Controller response (CO) and
wait for both the CO and PV to settle out into straight lines. Note how long it took
the PV to stabilize at the 60% level (about 1.5 minutes).
15. On the Process Simulator, change the Mode to Manual.
16. Click inside the CO box and change the controller output to 43%.
17. In the graphic display, monitor the process response and wait for PV to settle out
into a straight line.
18. Uncheck the Scan & Record Data check box.
19. Click File > Save to save the newly recorded data to a permanent file on your
computer.
This concludes the testing for the tutorial. Normally, you will do more tests and use
test procedures designed for specific analyses (e.g. hysteresis or stiction). Although
these procedures are simple to follow, we will not fully discuss them during this
tutorial. For more details about these topics, see “Diagnostic and Tuning Tests” on
page 69.
20. Select the View & Select Data node on the TuneWizard explorer tree. TuneWizard
displays your data in two graph windows: The top graph shows process variable
(blue line) and setpoint (green line); the bottom graph shows controller output.
21. Let's select data for tuning the PID controller. Click the mouse on the CO graph a
short distance to the left of the CO step change you made. TuneWizard will place a
red vertical data selection line on the PV and CO graphs right where you clicked on
the graph. Click the mouse again, but this time on the PV graph a short distance to
the right of where the PV settled out into a straight line. You can click and drag the
lines left and right to properly position them. See the screenshot above to get an
idea of where the lines should be.
22. Click the Zoom In toolbar button to zoom into the data you selected. The graphs
are zoomed to display only the data you have selected.
23. Click the Save Current View to new Data File toolbar button to save the zoomed
data to a new file. You should see a new file appear in the file list. The file index is
002.
24. While the new data file is displayed, click the Use Data for Tuning toolbar button to
use the data for modeling and tuning. You could also have dragged the file from
the list and dropped it onto the Tune node of the explorer tree. TuneWizard will
display its Tune page.
25. Note the newly calculated P, I and D settings in the Controller Settings After Tuning
panel. Type those into the appropriate boxes on the Process Simulator.
26. Click the Acquire Data node of the explorer tree and check the Scan & Record Data
check box.
27. In the Process Simulator, click inside the SP box and change the setpoint to 50.
Congratulations!! You have successfully tuned your first Control Loop using TuneWizard.
Data Files
TuneWizard stores the process variable and controller output data together with every
sample's time stamp in data files. These files must reside in the same folder as the Loop
Configuration File. They have the same file name as the Loop Configuration File, but their
extensions are numbers starting at 001 and running through to 999.
Save As
Selecting Save As allows saving the configuration and data files to a new, user
selectable path. TuneWizard will automatically display the standard Windows Save
File As window. Select the desired path, enter a new file name, and click the Save
button.
Save to CSV File
Selecting Save to CSV File allows you to output the file into a format useful in other
applications, such as Microsoft Excel. TuneWizard will display the standard
Windows Save File As window and also allow options to save the file as Tab
Separated (*.txt), Space Separated (*.txt), or Comma Separated (*.CSV) files. Select
the desired path, enter a new file name, and click the Save button.
Recently Opened Files
A list of Recently Opened TuneWizard files appears below the Save functions.
Exit
Selecting this menu item closes the TuneWizard application. If there are any
unsaved files, TuneWizard will prompt you to save the files.
The control loop description is used as the heading for all printed reports. For this reason,
the length of the control loop description is limited to 40 characters.
To select a controller from the TuneWizard list of controllers, click on the Loop Details
page and select your controller type from the Controller Type drop down list.
TuneWizard will then use the appropriate controller structure, PID units and PID
multipliers when calculating PID controller settings.
If your controller is not listed, PAS will add it to our database and issue you with a new
list, free of charge, if you provide us with the information from the controller
documentation necessary for the configuration. Alternatively, you can configure
TuneWizard for your controller by selecting one of the generic controller structures and
selecting the correct PID units and PID multipliers.
Notes:
• Some controllers have user-selectable PID units. If the PID Units drop lists on the
Channels page are not grayed out, you will have to select the proper PID units in
accordance to your controller configuration.
• You cannot select a different controller if your Data Source on the Loop Details
page is set to Process Simulator or to Siemens TI505 PLC.
• If your controller uses multipliers (or divisors) on the P, I & D settings, a button
labeled Important Notes will be visible on the Loop Details page. It is only some
integer-based PLCs that use these multipliers to increase the resolution on P, I, & D
settings. Click this button for instructions of what numbers to use as multipliers if
you enter the P, I, & D parameters directly into the PLC registers.
The Important Notes Button is visible if the selected controller uses multipliers.
Process Simulator
TuneWizard is provided with a real-time process simulator that can simulate various
process types and also process defects. This allows you to experiment and get
comfortable with the many features of TuneWizard before using the software on an
actual process. The short name for TuneWizard Process Simulator is ProcSim. For more
information about the available options, see “Process Simulator Options” on page 22.
6. Click Scan and Record to run the simulator. The TuneWizard Process Simulator will
display. Alternatively: from the Windows Start menu, click Start > Programs >
TuneWizard > Process Simulator. The name of the executable file is ProcSim.exe.
7. Click the Read PID, F button to read the current P, I, D, and F values from the
process simulator's controller. Verify that these numbers are the same as in the
Process Simulator.
8. Select the Acquire Data node on the TuneWizard explorer tree.
Note: TuneWizard is recording the scanned data to a temporary file on your hard
disk and displays a message above the Record check box that it is recording
to data file xxx.
9. Click File > Save and save the newly created loop configuration file as
ProcSim.twz. You will see the application title change to reflect the new
configuration file name. TuneWizard will not save a data file if it is actively
receiving data (i.e. when Scan & Record Data is checked), but will display a
message informing the user of this.
You are now ready to do process tests that you can use later for analysis. For more
information about how to do the Hysteresis, Stiction, Linearity, and Tuning tests, and how
to do the analyses, see “Diagnostic and Tuning Tests” on page 69.
ProcSim can simulate various process deficiencies. Simply check the options required for
simulation.
• Hysteresis in the control valve
• A Sticky control valve
• A nonlinear process characteristic
ProcSim can simulate various forms of noise and process disturbances. Simply check the
options required for simulation.
• Excessive noise on the process variable measurement
• A constant, sustained process disturbance or Load Change
• Continuous random process disturbances
ProcSim has a built-in controller with a Series, velocity-type configuration. You can select
between Auto and Manual controller modes, can change the setpoint and P, I, and D
controller settings and the PV Filter setting, and in Manual mode you can change the
controller output.
The ProcSim controller scan rate is 0.5 seconds.
Notes on Filtering:
If you use the Analog to Digital converter to acquire PV data directly from a transmitter,
and the DCS, PLC, or Controller filters the PV signal internally, TuneWizard will not record
the PV signal exactly as the PID controller sees it. Because the controller receives a
filtered signal, you should filter the PV signal before tuning from the data. For more
information about filtering the PV signal, see “View and Select Data” on page 57. Use
exactly the same filter time constant as the DCS, PLC, or controller uses.
If filtering is done inside the transmitter, TuneWizard will already be recording the filtered
signal (similar to the one the PID controller sees), and the above method would not be
necessary.
Physical Connection
For the series communication, use a series PLC programming cable or a Null-Modem
cable. The cable must have a 9-pin female D-type connector at the PLC end and either a
25-pin or 9-pin female D-type connector at the computer end. The communications cable
must have the RCV and XMT signal wires crossed over. For more information about the
configuration details, see “Siemens TI Setup” on page 39.
Modbus
Due to its popularity, TuneWizard supports Modbus communications. It can
communicate via the RTU (Remote Terminal Unit) and ASCII protocols. It can read and
write binary (coil) data, integers and floating point numbers. For more information, see
“Modbus Setup” on page 41.
The Channels page provides input fields to enter data item names and parameters.
Server
DDE
Type the application name of the DDE Server into the Server text box. The application
name is normally the same as the executable file's name, without the .exe part.
OPC
Type the OPC Server's name into the Server text box. You can also use the OPC Browser
button to navigate to the correct server, in which case TuneWizard will automatically
enter the OPC Server's name into this text box.
Topic / Path
DDE
Type the Topic of the DDE Conversation into the Topic/Path text box. Consult your DDE
server documentation for details on the DDE Topic.
OPC
Most OPC Servers do not use a Path definition, and when OPC is selected Topic/Path is
not available. If your OPC Server uses a data path, consult its documentation for details
on setting the path.
Item
DDE
Type the Item name of the DDE Item into the appropriate Item text box. Consult your
DDE server documentation for details on the DDE Items.
OPC
If your OPC Server supports browsing it is recommended that you use the OPC Browser
button to select the desired OPC items. If not, consult your DDE server documentation for
details on configuring the OPC Items.
If your controller's CO, SP, Mode, P, I, D and F data are written to different items as the
items it is read from, select the Write Items Differ check box.
Advise
DDE
If the Advise check box is unchecked, TuneWizard will poll the DDE server for data. The
polling is done periodically, based on the Scan Time setting.
If the Advise check box is checked, TuneWizard requests that the DDE server notifies
(advises) TuneWizard when the data has changed. Upon notification, TuneWizard
requests the data from the server.
Note: Most DDE Servers support Polling and Advise modes of data transfer. However,
some DDE servers do not support Polling and some servers do not support Advise
loops. If you find that DDE communication is not possible, try toggling the Advise
mode.
OPC
Testing
Once you have completed the necessary fields you can click the Scan and Record Data
check box to initiate the data transfer. TuneWizard will connect to the data server and
obtain the data via DDE or OPC. If the connection cannot be established, TuneWizard
produces an error window with the cause of the failure and will suggest possible
remedies.
OPC Browser
If you have selected OPC as your data source on the Loop Details page, the Channels page
will display an OPC Browser button.
Use this function to browse to the item that you want to read for the PV, SP, CO, Mode, P,
I, D, F or Ch1 to Ch5 values.
DDE
If you have a GUS workstation there should be a software module installed named
TPSDDE.exe residing on the GUS. Run TPSDDE.EXE
TPSDDE is your DDE server, which will display on the Windows Task Bar, but it has no user
interface. It does not need one - all the calls to it are made via the Windows OS using
DDE.
To use TuneWizard for data acquisition through the GUS station via DDE:
1. Install TuneWizard on the GUS station.
2. On the Loop Details page: select DDE, and select the Controller Type you will be
tuning.
Server: TPSDDEServer
Topic: PDP
CO Item: tagname.OP
PV Item: tagname.PV
SP Item: tagname.SP
Mode Item: tagname.MODE
AUTO: AUTO
CASCADE: CAS
MANUAL: MAN
P: tagname.K
I: tagname.T1
D: tagname.T2
F: transmitter input point.TF
Notes:
• Change tagname to your desired loop tag name, e.g. FIC100.
• Only the first five fields above (Server thru SP Item) are required, you may leave
the rest blank.
• The GUS does not support writing back to the TDC.
OPC
If you have an Application Node, you can connect to the TDC-3000 via OPC, provided that
your Application Node was licensed with an OPC server. The OPC Server called TPN Server
is listed in the Microsoft Windows Registry as Hci.TPNServer.
To use TuneWizard for data acquisition through the Application Node via OPC:
1. Install TuneWizard on the APP Node.
2. On the Loop Details page, select OPC, and select the Controller Type you will be
tuning.
3. Ensure that Use Scaling, Use PID Multipliers and Write Items Differ are not
checked.
4. Set the Sampling Interval to 1 second (or use 5 to 10 seconds if it is a slow loop you
are monitoring)
Server: Hci.TPNServer
Topic:
CO Item: tagname.OP
PV Item: tagname.PV
SP Item: tagname.SP
Mode Item: tagname.MODE
AUTO: AUTO
CASCADE: CAS
MANUAL: MAN
P: tagname.K
I: tagname.T1
D: tagname.T2
F: transmitter input point.TF
Notes:
• Change tagname to your desired loop tag name, e.g. FIC100.
• Only the first five fields above (Server thru SP Item) are required, you may leave
the rest blank.
NovaTech D/3®
OPC
TuneWizard can be connected directly to a NovaTech D/3 DCS via OPC. Install TuneWizard
on any Windows computer. It does not need to be a DCM, but will need connectivity to
the D/3 OPC server. On the Loop Details page, select OPC, and select the desired
Controller Type.
The following figure illustrates the TuneWizard NovaTech Loop Details Page:
5. On the Channels page, type the OPC Server's name into the Server text box. Use
the OPC Browser button to navigate to the correct server. TuneWizard
automatically enters the OPC Server's name into this text box.
6. Ensure that Use Scaling, Use PID Multipliers, and Write Items Differ are not
checked.
7. Set the Sampling Interval to 1 second (or use 5 to 10 seconds for a slow loop)
Notes:
• Change PCMname to the name of the PCM in the configuration table and EPN to
the actual EPN. For example: EPN.PCM16A.FT101.1_PID.PID_MEVL for the PV.
• Only the fields thru SP Item are required. Leave the rest blank.
The following figure illustrates the TuneWizard NovaTech Channels Page:
PRF Controller
On the Loop Details screen, all the NovaTech D/3 Controller Mode selections are for the
PID controller type. NovaTech D/3 controller type with feedback (PRF). PRF controllers
will be treated like they are PID controllers. Feedback address in the NovaTech D/3 PRF
controller will not be considered by Tune Wizard for tuning.
Siemens TI Setup
On TuneWizard Loop Details page, select the Siemens TI505 through serial port option.
On the Channels page, select the appropriate Communications port, and then enter the
Loop Number (1 - 64) of the controller you want to analyze and tune.
Check the Scan and Record Data box. TuneWizard will attempt to connect to the desired
control loop. If successful, TuneWizard will read the Zero and Full Scale engineering units
(PVL and PVH) and the loop scan time from the PLC.
The first time that you connect to the loop, TuneWizard will also read the PID settings
residing in the PLC. You can force TuneWizard to read the PID settings at any time by
clicking the Read PID,F button.
Signal Range
For the CO and PV, enter the voltage level that corresponds to 4 mA in the Signal Zero
field and enter the voltage level that corresponds to 20 mA in the Signal F.S. (full scale)
field. Typically, if the 4-20 mA signal is passed through a 250 Ohm shunt, the values of 1
and 5 (volt) are used for Signal Zero and Signal F.S., respectively.
Engineering Range
The Engineering Range consists of the Eng Zero and Full Scale values of the PV. For a
transmitter producing a 4-20 mA signal, it will be the values of the PV at 4 mA and at 20
mA, respectively. This is also called the transmitter's range.
Auto Range CO
This feature should only be used if the CO channel of the A/D converter is connected in
parallel with an I/P converter. For more information, see “Acquire Data” on page 51.
You can use the TuneWizard Auto-Range feature to set the 0% and 100% voltage levels of
the CO measurement connected in parallel with the I/P. This cannot be done on an I/P
converter containing anything other than a coil in the circuit. Typically, smart positioners
have active electronic components and the voltage drop across the I/P is not proportional
to the 4-20 mA current.
Click on the Auto-Range CO button. Place the controller in manual and enter the
controller output in percent into the dialog box. Select the travel direction of the control
valve and then click the OK button. TuneWizard auto-ranges the 0% and 100% voltage
levels for the CO. These levels are typically around 0.75V and 3.75V respectively.
Modbus Setup
On the TuneWizard Loop Details page, select the Modbus protocol through serial port
option. Enter the address of the unit or PLC in the Modbus Slave Address text box.
On the Channels page, select the appropriate Communications port, Baud rate, number
of Data Bits, Parity, number of Stop bits, method of Flow control, and the Modbus
Mode to be used. These settings must match those of the Modbus Slave device you are
connecting to. For more information, see the operating manual of the Modbus device
you want to connect to.
Enter the register addresses of all the variables you wish to read. At the very least, you
must have valid addresses in the PV and CO fields. Clear all the fields that you do not
want to read.
Use Scaling
If the numbers that TuneWizard reads for your CO, PV and SP have a different range from
the Range Lo and Range Hi, you need to use Scaling factors. For example, the actual signal
may be scaled 0 - 4095. This is the case with some integer-based PLCs. You also have to
use scaling if you use an analog to digital converter as data source.
To use scaling, check the Rescale Signals box and enter the appropriate Signal Zero and
Signal Full-Scale values. When TuneWizard scans data, the raw values are indicated in the
Raw Values boxes while the final values are indicated in the Eng. Values boxes.
You should be able to find the PID multipliers from the OEM documentation. To enter the
desired multipliers for your controller, click on the Channels tab, check the Use PID
Multipliers box and enter the multipliers in the PID Multipliers edit boxes.
Notes:
• The PID values used by TuneWizard are equal to the controller settings multiplied
by the PID multipliers.
• If you manually enter the PID settings into the controller, you have to divide the
desired PID valued by the respective PID multipliers.
The following figure illustrates how item text boxes for writing have red backgrounds:
Com Port
The Com Port list is available when an A/D converter, the Siemens TI PLC, or Modbus is
selected as the Data Source. Simply click the button to select the communications port
that the TuneWizard PC is connected to.
Loop Number
The Loop Number text box is available when the Siemens TI PLC is selected as the Data
Source. Enter the number of the PID loop that you want to work on.
Engineering Values
The Eng Values fields display the PV and CO (and SP if configured) values when
TuneWizard scans the data. You must ensure that these numbers correspond to the
values indicated by the controller or HMI.
If TuneWizard is scanning the inputs (the Scan & Record Data box is checked) you can
change the controller's SP (in auto or manual) and CO (in manual only) by clicking in the
appropriate Eng Value field and typing the desired value into the Change Setting window
that displays.
Square Root of PV
This setting is important mostly if you are using an A/D converter to measure the PV as 4-
20 mA signal, or if you import a CSV file containing PV data of a 4-20 mA signal.
Flow measurement based upon a pressure differential produces a signal that is
proportional to the flow rate squared. The square root of the signal must be extracted
before the controller uses it.
Controller Mode
The controller mode panel is visible when the data source is DDE, OPC, or Siemens TI PLC.
For DDE and OPC, you need to enter the Mode Item name. TuneWizard displays the value
returned by the controller in the Current Value field. You have to define what the return
value is for Auto and Manual (and Cascade if necessary). TuneWizard compares the mode
returned by the controller to what you have defined auto and manual to be. Then, it
displays the actual mode in the Controller Mode field.
If TuneWizard is scanning the inputs (the Scan & Record Data box is checked) you can
change the controller's mode (to manual, auto or cascade) by clicking in the Controller
Mode field and typing the desired value into the Change Mode window that displays.
Controller Settings
The text boxes under the Ctl Settings heading must be configured with the PID settings in
the controller before tuning. With DDE and OPC these values can be read directly from
the controller by clicking on the Read PID, F button. The first time data is scanned from a
newly configured loop, TuneWizard will read the P, I, D, and F settings from the control
system.
If you are not reading the initial PID values via DDE or OPC, you must obtain the PID
settings from the controller in some other fashion and type them into the Ctl Settings
text boxes.
It is important to read the PID and F values accurately from the controller before tuning:
• TuneWizard uses these settings to simulate the behavior of the control loop before
and after tuning.
• In some cases, TuneWizard uses the F value during the calculation of PID settings.
• TuneWizard stores the settings for analysis, printing reports, or future reference.
Read PID, F
The Read PID, F button is visible if your data source selection is DDE, OPC, Modbus or
Siemens TI PLC. To use the Read PID, F button for OPC and DDE you must have the Items
for P, I, and D configured. It is important to read the PID and F values from the controller
before tuning:
• TuneWizard uses these settings to simulate the behavior of the control loop before
and after tuning.
• In some cases TuneWizard uses the F value during the calculation of PID settings.
• TuneWizard stores the settings for analysis, printing reports, or future reference.
If you are not reading the initial PID and F values via DDE or OPC, you must get these
settings from the controller in some other fashion and type them into the appropriate
text boxes on the Channels page.
The first time data is scanned from a newly configured loop, TuneWizard will read the P, I,
D, and F settings from the control system. You can force TuneWizard to read these
settings at any time by clicking the Read PID, F button.
Sampling Interval
Enter the period between two consecutive controller scans into the Sampling Interval
edit box. On some controllers this setting is fixed and may be found in the controller's
documentation, but on most controllers the scan time is adjustable and the setting must
be obtained directly from the controller.
If the process is very slow to respond (e.g. some level and temperature loops) or if the
controller scan time is significantly faster than the process response time, you may scan
data at a slower rate than the controller scans.
Never scan at a rate faster than the controller does except if you have a specific reason to
do so. The TuneWizard minimum scan time setting is 0.1 seconds, except when importing
CSV files. Then, you may import data scanned at any rate.
Note: Due to the non-deterministic nature of the Windows operating system, there is no
guarantee that the control loop will actually be scanned at the rate you enter.
However, provided that your processor is fast enough, in most cases scan rates of 1
per second or faster can be achieved successfully.
Scan
Once your configuration on the Channels page is complete, check the Scan & Record
Data check box to have TuneWizard scan all the inputs (Channels). Scanning can also be
turned on and off from the Acquire Data page.
Record
If TuneWizard is not recording data, a Not recording warning label is displayed on the
Acquire Data page. To record the data currently being scanned, check the Scan & Record
Data box.
When TuneWizard is recording data, the Scan & Record Data option is grayed out and the
index (number) of the file being recorded to is displayed in the top left of the page.
To stop recording data, uncheck the Scan & Record Data box. When recording is stopped,
the View & Select Data page is opened with the recorded file selected.
Copy to Disk
If you want to start working with data that has been recorded, but you don't want to
interrupt the recording process, click the Copy to disk now button. TuneWizard will write
all the data recorded up to that point into a new file that can be accessed while recording
to the original file continues. When the Copy to disk now button is selected, the View &
Select Data page is opened with the recorded file selected.
2. In the Channels page, enter the appropriate Range Lo and Range Hi values for the
CO and PV. TuneWizard assumes that the SP and PV has the same range.
5. Navigate to the location of your CSV file, select it, and click Open.
6. Ensure that TuneWizard has located the correct columns for Time, CO, PV, SP and
the first row with valid data. If your timestamps are not in the mm/dd/yyyy
hh:mm:ss am/pm format, the data will not import unless you select the Specify
sampling interval option and enter the data sampling interval in seconds.
7. Once this has all been set correctly, click the Create Data File button. TuneWizard
will create a new data file from the CSV data and display it on the View & Select
Data page.
Link Buttons
The View & Select Data page has a series of link buttons running along the top right side
of the page. These buttons are used to link the selected data segment to:
• Hysteresis analysis
• Stiction analysis
• Linearity analysis
• Statistical and Variability analysis
• Tuning
• Reports
For more information about these areas, see “Diagnostic and Tuning Tests” on page 69
and “Simulation and Reporting” on page 107.
Zoom
To zoom into data, do the following:
1. Click your mouse inside any graph window's data area where you want the zoom
to start from. TuneWizard draws a vertical red line through the point you selected
on all plots.
Note: The red lines drawn at this step become the starting and ending data points
for the analysis that follows.
2. Click your mouse inside any graph window's data area where you want the zoom
to end. TuneWizard draws a second vertical red line through the second point you
selected and enables the Zoom In button.
3. You can change the zoom area by re-selecting the start and end lines or by
dragging the lines with your mouse. Once you are satisfied with the placement of
the zoom perimeter lines, click the Zoom In button. TuneWizard zooms into the
area of data marked by the red vertical lines.
Notes:
• You can clear the selection lines at any time by clicking the Escape key.
• To zoom out by about 30%, click the Zoom Out button.
• You can zoom out to show all data by clicking the Unzoom button.
Essentially, a first-order filter is a first-order lag. If the filter receives a step on its input,
the response the output will reach 63.2% of its final value one filter time (Tf) later.
Because a filter takes some time to react, its output responds much less to high
frequency signals than to low frequency signals. In other words, the high frequencies (like
noise) are filtered out, while the low frequencies (like process variable changes) are
passed through.
Filtering
The optimum filter setting is one that smooths out signal noise, but has little effect on the
measured process characteristics. If a filter time constant is too large, it may obscure
process problems from the operator and the controller. If it is too short, it might not
reduce the PV noise levels.
Be sure to use a filter time constant that is short in comparison to the process dead time
and process time constant. Generally, you should try to use a filter no larger than 1/5th of
the shortest between dead time and time constant. Also, setting the time constant of a
first order filter equal to the period of the noise is a good starting point.
Another problem with excessive filtering is that the controller output response to
setpoint changes will cause excessive overshoot in the actual process. Due to the high
degree of filtering, this overshoot is not seen by the controller or the operator. The
controller is effectively swinging the process up and down to control the output of the
large filter.
If possible, remove the origin of the signal noise. For example:
• For noise in flow transmitters due to turbulence - use longer straight runs of pipe
• For noise in temperature measurement due to induced voltage in thermocouples -
Shield the thermocouple leads.
5. It is possible to totally ignore the use of a PV filter by selecting the Use original
data and ignore any filter option on the Tune page
Notes:
• Do not use filtered process data for tuning.
• Do not use unfiltered process data for tuning.
• Be very sure that you enter the correct PV filter value in the Filter field of the
Channels page.
• Always the P, I, D, and importantly, also the F-value, from the Controller Settings
After Tuning box on Tune page use as a group.
Filtering Data
In the event that TuneWizard was unable to obtain an original PV filter value, you can set
it from the View & Select Data page.
Note: TuneWizard allows you to test various filters on your process variable data. If your
PV data is already filtered, you should unfilter the data first before applying a new
filter.
2. Type the new PV filter setting in the space provided, and then click OK.
2. Enter the filter time constant you want to apply to the data using the time units
indicated in the PV Signal Filter dialog box.
3. Select the filter type to match that of your DCS or PLC. Most filters are 1st Order
Lag filters.
4. If your first PV data point is not on the average, it is best to force it to the average
by entering the number of points over which to take the average.
5. Click Preview to see the effects of the PV filter, and Reset to restore the original
data.
6. Once you are satisfied with your choice of filter time constant, click OK to save the
filtered data.
Do not use filtered data for tuning unless you understand the implications thereof and
the A/D converter note below. To force TuneWizard to calculate tuning settings based on
a specific filter time constant, you should check and enter your desired filter time
constant in the Unfilter data & use this filter text box on the Tune page.
Note: If you use an Analog to Digital converter to acquire PV data directly from the
transmitter, and the DCS, PLC, or Controller filters the PV signal internally,
TuneWizard will record the unfiltered PV signal while the PID controller sees a
filtered signal. In this case, you should filter the PV signal before tuning from the
data. Use exactly the same filter time constant as the DCS, PLC, or controller uses.
If filtering is done inside the transmitter, TuneWizard will already be recording the filtered
signal (similar to the one the PID controller sees), and the above method is not necessary.
Notes:
• When applying filtering after data was recorded: always use the filtered data to
tune from, and ensure to set the filter time of the DCS, PLC, Controller, or
transmitter to the same value before adjusting the PID constants.
• Readjusting the time constant of a process variable filter after tuning will require a
retune of the controller.
• Always use as little filtering as possible. Filtering slows down control loop response
and might hide process problems or deviations. Use only enough filtering to take
out high-frequency noise.
Unfiltering Data
If data was already filtered prior to recording it, you can remove the effects of the filter
(unfilter the data) to see what the original data looked like.
2. Enter the filter time constant that was active in the controller when recording the
data. Use the time units indicated in the Unfilter PV Signal dialog box.
3. Select the filter type to match that of your DCS or PLC. Most filters are 1st Order
Lag filters.
4. Normally, you would want to have the Rescale PV plot's Y-axis option checked
because unfiltering increases the amplitude of noise on the PV signal.
5. Click Preview to see the effects of unfiltering the PV, and Reset to restore the
original data.
6. Click OK to save the filtered data.
Note: Do not use unfiltered data for tuning unless you understand the implications
thereof.
The data does not have to be zoomed or saved. Just select the area on the plot that you
want to link and click the desired link button. TuneWizard zooms the data, saves it to a
new file, and links this new file to the target page. You can also drag a data file from the
View & Select Data files list and drop it directly on the analysis node on the TuneWizard
explorer tree on the left side of the main window.
Hysteresis Diagnostics
A valve with hysteresis acts as if there is some backlash or dead-band between the
control signal and the valve position. Every time the controller output changes direction,
all the hysteresis has to be taken up before the valve physically starts to move. Although
hysteresis may be caused by play in mechanical linkages, it can also be caused by
excessive friction in the valve, an undersized actuator, or a defective positioner. Another
problem with this condition is that controller output settings when raising the specified
setting will be different than when decreasing, even when the same point is met, due to
the slop in the controls.
On a process with hysteresis, the controller output signal to the control element (valve,
damper, etc.) has to change by an amount equal to the hysteresis before the control
element will move. Once the control element has begun to move in one direction it will
continue to move if the controller output keeps moving in the same direction. When the
controller output reverses direction, the control element will not move until the
controller output signal has changed in the new direction by an amount equal to the
hysteresis.
In other words, hysteresis is defined as the travel required by the controller output, after
a change of direction, to obtain a change in the process variable.
If trial and error methods of tuning are applied, very often a control loop with hysteresis
on the valve will have its controller's gain setting way too high. The person tuning the
controller makes small setpoint changes up and down while adjusting controller settings
in a trial and error fashion based on the process response. With hysteresis the loop is very
non-responsive and the tuner unknowingly increases the controller gain too high because
of this. The problem surfaces with larger setpoint changes when the controller passes
through to the other side of the hysteresis then the process is pushed far too much due to
the high controller gain. The control loop then has two problems: the original hysteresis
and a controller tuned too tightly.
Excessive hysteresis can be reduced in the following ways:
• Overhaul or replace actuator linkages
• Replace valve stem seal
• Use a larger actuator
• Fit a positioner
• Overhaul an existing positioner
Note: If due to hysteresis, you had to make a number of small steps in Controller Output
to move the Process Variable, TuneWizard should in most cases still be able to
identify the hysteresis. If not, you can edit the Controller Output data to compile
the small steps into one large step. This one large step must be at the position of
the step to which the Process Variable reacted.
TuneWizard will automatically calculate the hysteresis in the process. If the calculation
cannot be done due to invalid hysteresis data, TuneWizard will display a message to this
effect with the reason for the failure. In most cases the hysteresis test fails due to an
incorrect test procedure.
Basic Diagnostics
From the linked test data TuneWizard calculates the following:
• Hysteresis: the percentage of slackness between the controller and the process.
• Process Gain: the amount of change in PV for a unit change in CO.
• Noise: the percentage of undesired variation on the PV.
Impact on Control
TuneWizard also calculates the following:
• Hysteresis multiplied by Process Gain: essentially, this is the combined effect of
gain and hysteresis on variability.
• Noise Divided by Process Gain: this is the estimated effect of noise on controller
output for a PI controller on a process with dead time equal to the time constant.
Color Coding
To make it easier for the user to identify problems, TuneWizard uses a color coding
arrangement where each of three colors is interpreted differently:
• Red = Unacceptable or Very High (it may also be very low in the case of process
gain)
• Yellow = Questionable or High (it may also be low in the case of process gain)
• Green = Acceptable
The following table summarizes hysteresis alarm trigger levels.
Acceptable Unacceptable
Hysteresis (Hyst) Hyst < 2% Hyst > 3%
Process Gain (Gp) 0.5 < Gain < 2 Gp < 0.33 or Gp > 3
Noise Noise < 2% Noise > 3%
Hyst * Gain H * G < 2% H * G > 3%
Noise / Gain N / G < 2% N / G > 3%
Stiction Diagnostics
One very common problem found in control loops is stiction. This is short for Static
Friction, and means that the valve is sticky. In other words: more force is required to
induce valve movement than to sustain movement. Stiction might be caused by an over
tight valve stem seal, by sticky valve internals, by an undersized actuator, or a sticky
positioner.
With a sticky valve, the air pressure on the valve actuator diaphragm has to change
enough to overcome the stiction between the valve stem, ball or plug, and the seal,
before the valve stem will move. When the stiction is overcome the valve stem breaks
away (slips). After breaking away, the valve moves to its new position where it stops.
Having stopped, additional pressure is once again necessary to overcome the stiction. If
the pressure on the actuator diaphragm is increased further the slip-and-stick process is
repeated. This is referred to as a stick-slip cycle.
In this example, the process variable starts off below its setpoint, so the controller
increases its output. But, due to stiction, the valve doesn't actually move and the
controller output keeps increasing. During this time, excessive pressure builds on the
actuator diaphragm. Eventually, the valve slips, but it overshoots its desired position due
to the excessive pressure on the diaphragm. Then the process variable ends up above the
setpoint and the whole cycle reverses.
Controllers on loops displaying a stick-slip cycle will often be detuned erroneously in an
effort to stop the cycling. The detuning only creates a second problem in the control loop
- poor response. The original stiction remains present.
Before controller tuning is attempted, the control loop must be analyzed for stiction.
Excessive stiction can be reduced in the following ways:
• Overhaul or replace actuator linkages
• Replace valve stem seal
• Use a larger actuator
• Fit a positioner
• Overhaul an existing positioner
Note: If the controller output data is noisy due to your measurement setup (e.g., using a
current clamp), TuneWizard might detect false controller output changes. Then,
you should take the average of the controller output between changes.
TuneWizard will automatically calculate the stiction in the process. If the calculation
cannot be done due to invalid stiction data, TuneWizard will display a message to this
effect with the reason for the failure.
Basic Diagnostics
From the linked test data, TuneWizard calculates the following:
• Stiction: the percentage of stiction between the controller and the process.
• Process Gain: the amount of change in PV for a unit change in CO.
The TuneWizard estimation of the process gain from the stiction test data is normally less
accurate than that from the hysteresis test data. This is because a hysteresis test normally
consists of bigger step sizes leading to more accurate valve movement.
Impact on Control
TuneWizard also calculates the following:
• Stiction multiplied by Process Gain: essentially, this is the combined effect of gain
and stiction on variability.
Color Coding
To make it easier for the user to identify problems, TuneWizard uses a color coding
arrangement where each of three colors is interpreted differently:
• Red = Unacceptable or Very High (it may also be very low in the case of process
gain)
• Yellow = Questionable or High (it may also be low in the case of process gain)
• Green = Acceptable
The following table summarizes stiction alarm trigger levels.
Acceptable Unacceptable
Stiction Stiction < 1% Stiction > 2%
Process Gain 0.5 < Gain < 2 Gp < 0.33 or Gp > 3
Stiction * Gain S * G < 1% S * G > 2%
Linearity Diagnostics
A nonlinear process has different process gains under different operating conditions. This
makes tuning very difficult if not impossible. Nonlinearity includes (but is not limited to) a
variation in process gain depending on valve position and process conditions. In most
cases it is due to a valve characteristic that has not been matched with process
characteristic, but sometimes the process is inherently nonlinear, e.g. pH control.
With a nonlinear control loop, one can have optimal controller response only at one
operating point. The loop could be quite unstable or sluggish under all other conditions.
Often times, a nonlinear control loop will continuously be detuned and retuned,
depending on process conditions. If proper testing is done and the degree of nonlinearity
is established, corrective actions can be done. Otherwise a lot of time can be spent on
tuning a nonlinear control loop and the results remain unfavorable.
Without any linearization, the controller will need to be tuned for the condition when the
process gain is the highest. This results in sluggish response everywhere else.
Excessive nonlinearity can be reduced in the following ways:
• Replace valve trim with one having the correct characteristic
• Replace valve with one having the correct characteristic
• Use the correct cam profile on the positioner.
• Use a characterizer on the controller output
• Use a characterizer in the positioner (digital positioners only)
• Use gain scheduling (especially for an inherently nonlinear process)
TuneWizard will automatically calculate the nonlinearity of the process. If the calculation
cannot be done due to invalid test data, TuneWizard will display a message to this effect
with the reason for the failure.
Basic Diagnostics
From the linked test data TuneWizard calculates the following:
• Nonlinearity: maximum process gain to minimum process gain.
Color Coding
To make it easier for the user to identify problems, TuneWizard uses a color coding
scheme where each of three colors is interpreted differently:
• Red = Unacceptable or Very High (it may also be very low in the case of process
gain)
• Yellow = Questionable or High (it may also be low in the case of process gain)
• Green = Acceptable
The following table summarizes nonlinearity alarm trigger levels.
Acceptable Unacceptable
Nonlinearity Nonlinearity < 1.5 Nonlinearity > 2.5
Variability Analysis
TuneWizard provides statistical and power spectrum analyses to obtain more insight into
the noise content of the PV signal.
Data to Use
No specific tests are done for variability analysis. Normal steady state running data is
used for these analyses.
To link data to the Variability page, select the data on the View & Select Data page and
click the Variability Analysis button on the View & Select Data toolbar. Many data files
can be linked to the Variability page.
The actual PV and CO data is displayed in two time-based graphs. The statistical analyses
are displayed in a table and the power spectrum analysis is displayed in a Magnitude /
Period graph.
Statistical Analyses
The following statistical analyses are available on the Process Variable signal:
• Number of points in the data file
• Minimum value of the PV in the data file
• Maximum value of the PV in the data file
• Range (Maximum PV - Minimum PV)
• Mean or average value of the PV
• Standard Deviation (Std Dev) of the PV. This is a very good indication of the spread
of the data. The less the spread of the data is, the lower the standard deviation.
• Minimum Standard Deviation achievable through Minimum Variance Control
(MinVar SD). This is a theoretical number based on the spread of the data and the
process dead time. It indicates what the standard deviation could be if Minimum
Variance control is applied. This is the theoretical lowest standard deviation
possible for the control loop.
• Harris Index. This number is the Actual Standard Deviation divided by the
Minimum Variance Standard Deviation. The Harris Index represents the degree of
improvement possible in the control loop from a variability point of view. A Harris
Index of 1 means that the variability is already at a minimum. A Harris Index of 4
means that the variability can be reduced substantially.
Note: The Minimum Variance Standard Deviation calculation and the Harris Index
calculation both require a valid dead time. TuneWizard can get the dead time from
the Tune page, provided that there is at least one valid tuning data file linked to it.
Alternatively, you can enter your best estimate for dead time in the Dead Time
field.
If you move the mouse over the Power Spectrum graph, TuneWizard displays the
Magnitude and Period on its status bar.
You can zoom into any area of the power plot by clicking the window-zoom button and
then by clicking and dragging the mouse. The Unzoom button will zoom back to the
original plot.
The way in which TuneWizard tunes and calculates a filter while tuning is as
follows:
1. TuneWizard calculates a process model (gain, dead time, time constant) based on
the dynamic process response in the tuning data.
2. TuneWizard cancels the effect of the PV filter on the process dynamic response -
we call this the unfiltered process model. It uses the filter time from the Filter field
on the Channels page.
3. TuneWizard calculates a new suitable time constant for the process variable filter,
based on the process characteristics, tuning objective and noise level on the PV.
You can override the TuneWizard recommended filter by entering your own filter
time constant on the Tune page.
4. Next, TuneWizard calculates tuning settings based on the unfiltered process model
and the new filter time constant.
5. It is possible to totally ignore the use of a PV filter by selecting the Ignore PV filter
option on the Tune page
The following figure illustrates a typical step test to obtain tuning data on a self-regulating
process:
8. Return the Controller Output to its original value and if necessary, to below its
original value to bring the level back down.
9. Repeat these steps to obtain at least three sets of tuning data. This is necessary to
obtain a good average on the process dynamics and to be able to cast out bad test
data and still have test data left from which to tune.
The following figure illustrates a typical step test to obtain tuning data on an integrating
process:
6. Wait for the Process Variable to steady out at the new setpoint.
7. If necessary, return the controller output to its original value.
8. Repeat these steps to obtain at least three sets of tuning data. This is necessary to
obtain a good average on the process dynamics and to be able to cast out bad test
data and still have test data left to tune from.
The following figure illustrates a typical setpoint change with the controller in automatic
to obtain tuning data. This test was performed on an integrating process.
3. After the Controller Output change, there will be a transitional period. During this
period the Process Variable is developing into a ramp.
4. At least 50% of the data selection should have the period after the transition
where the PV is ramping at a constant rate.
The following figure illustrates typical test data for tuning of an integrating process (0 -
54.93 sec):
Difficult Processes
Two types of difficult process dynamics have been tuned on very successfully:
• Self-Regulating process with an initial fast response followed by a long, slow
response.
The main idea here is to select the initial fast dynamics and ignore the long slow
dynamics. If you include the slow dynamics too, TuneWizard might calculate tuning
settings that are too aggressive. The following figure illustrates a process with fast
and slow dynamics. The red selection lines show the data period that should be
used for tuning.
• Cyclic process.
This process type has a fast cyclic response combined with a slow lag response. The
fast dynamics up to the first peak should be selected for tuning. The following
figure illustrates a process with cyclic dynamics. The red selection lines show the
data period that should be used for tuning.
Many sets of tuning data can be linked to the tuning page to obtain a good average model
of the process. It is strongly recommended to use at least three sets of tuning data
captured from different tuning tests so that TuneWizard can calculate averages and for
you to verify the process characteristics.
Tuning Options
From the Tuning menu, you can select various tuning strategies as the basis for
calculating PID parameters:
• Tune for fast recovery after a disturbance (Disturbance Rejection)
• Tune for fast response to a setpoint change (Setpoint Tracking)
• Tune using the Internal Model Control (IMC) or Lambda tuning rules
• Tune a level control loop for Surge Tank applications
• You can also select an option to have TuneWizard override its internal safety
checks. This override is recommended only for very experienced control loop
tuners.
Tuning Slider
The Tune page has a slider for adjusting the Disturbance Rejection performance /
Setpoint Tracking performance / Closed Loop Time Constant - depending on the tuning
strategy selected on the Tuning menu. Use the slider to increase or decrease the control
loop speed or to increase or decrease control loop robustness. Remember that loops
tuned for fast response may go unstable far easier than loops tuned for slow response.
5. If more robustness is required move the Performance Slider one notch to the right
and redo Steps 2 - 5.
6. Once the test PID are set to work all the models (no red robustness bars on the
right hand side), the test settings may be used in the controller.
Disturbed Process
This test was done with the controller in manual. The process variable undergoes large
disturbances. The process model seems to be representative of the actual process - but,
obviously, the disturbances are not modeled. More tuning tests should be done so that a
representative average can be obtained.
The following figure illustrates a process model representative of process without
disturbances:
Noisy Process
This test was done with the controller in manual. The process variable is extremely noisy.
The process model seems to be representative of the actual process. More tuning tests
will have to be done to obtain representative average modeling parameters.
The following figure illustrates a process model fairly representative of actual process:
Hysteresis in Process
A few steps were done downwards and upwards with the controller in manual. The valve
in this process had about 3% hysteresis - this is apparent after the direction change. The
process model is not at all representative of the actual process. This data cannot be used
as tuning data.
Never tune from the first step after a change in controller output direction! The second
step in a hysteresis test can be tuned from, but the first or the last steps cannot be tuned
from.
The following figure illustrates a process model not at all representative of actual process:
Nonlinear Process
A few upward steps were done with the controller in manual. This process was nonlinear
- this is apparent from the increased process movement on similar valve movements. The
process model is not at all representative of the actual process. This data cannot be used
as tuning data.
Never tune from more than one step at a time if the process is nonlinear! Also, do not use
data from low process gain areas to tune from - the controller might run unstable in areas
where the process gain is high.
The following figure illustrates a process model not representative of actual process:
To obtain a process model that is more representative of the fast fan dynamics, zoom into
the area where the damper dynamics are prominent. The following figure illustrates a
Process model more representative of the fast damper dynamics:
To obtain a process model that is more representative of the fast process dynamics, zoom
into the area where the initial dynamics are prominent. The following figure illustrates a
process model more representative of the fast process dynamics:
Notes:
• If your process models are inaccurate due to noise or disturbances, use six
different sets of test data to tune from. The calculated averages of six process
models are more likely to be representative of the actual process.
• With greatly varying dynamics (as in the previous two examples), you should select
the most conservative group of PID settings, i.e. lowest controller gain / largest
proportional band, longest integral time / lowest integral rate and select the
derivative setting paired with the integral setting you use.
To force TuneWizard to select one or the other process type or process direction, double-
click on the item in the Tune grid. TuneWizard displays a window on which the user can
force TuneWizard to choose a specific process type and direction or to let TuneWizard
decide which option fits closer. You can also force TuneWizard to use a specific process
gain, dead time and time constant.
The following figure illustrates the TuneWizard modeling options:
Clicking Apply to Model will update the tune grid, the process model simulation, and all
control loop simulations.
Tuning Simulations
The following figure illustrates several tuning simulations:
Robustness Simulation
On some processes, the process gain and dead time may vary widely depending on
operating conditions, valve position, etc. If a control loop does not have adequate
robustness it will become unstable if the process gain or dead time increases. Therefore,
it is necessary to always ensure that a control loop has sufficient robustness to tolerate
process changes.
TuneWizard provides an estimate of the robustness in the control loop with the process
as configured on the Process panel and the controller as configured on the Controller
panel.
Recommend Robustness
It is recommended that a linear control loop should have a robustness factor of at least 3.
Control loops with a nonlinear process (where gain and / or dead time varies) should have
a minimum robustness as calculated below:
• Robustness on Dead Time >=
(longest dead time / dead time of selected process model) * 3
• Robustness on Process Gain >=
(highest process gain / process gain of selected process model) * 3
Increasing Robustness
The simplest way to increase the robustness is to slide the Disturbance Rejection slider on
the Tune page to the right.
Robustness can also be increased by decreasing the controller gain (or increasing the
proportional band). Controller gain has an effect on Gain and Dead Time robustness.
Adjusting the integral time has a more pronounced effect on Dead Time robustness, but it
will also influence the Gain robustness. If using derivative, keep the ratio of D to I
constant when adjusting I.
The time base of the process models are set according to the Options > Time Units menu
to set minutes or seconds, and the controller type is set according to the selections on
the Loop Details page.
To start the simulations with the same conditions as on the Tune page, click on the Copy
Settings from Tune Page button. If the Tuning page has a valid process model and tuning
parameters, these will be used as defaults for Control Loop 1. The original PID settings
entered on the Channels page and the process model on the Tune page will be used as
defaults for Control Loop 2.
To simulate the response of a control loop containing a self-regulating process, deselect
the Integrator option on the Process panel if it is selected. Then, enter the Process Gain
(Gp), Dead Time (td), and Time Constant (tau) of the process you wish to simulate into
the appropriate fields on the Process panel.
To simulate the response of a control loop containing an integrating process, select the
Integrator option on the Process panel if it is not selected. Then, enter the Process Gain
(Gp) and Dead Time (td) of the integrating process you wish to simulate into the
appropriate fields on the Process panel.
To simulate the response of the control loop with different P, I, and D controller
parameters, enter the desired parameters into the appropriate fields on the Controller
panel.
Simulation Graphs
TuneWizard displays the following simulations:
• Robustness Analyses
• Setpoint Change with Controller in Auto
• Disturbance Rejection with Controller in Auto
For more information about the graphs and how to interpret them, see “The Tuning
Page” on page 93 and the graphs described in other tuning topics.
To create a report:
1. Do all necessary diagnostic analyses and tuning.
2. On the View & Select Data page, select data files to publish. and then click the Use
Data on Reports Page button.
3. Select the Report page from the explorer tree on the left.
4. Type control loop notes as required.
Processes
Industrial processes can, for the most part, be classified into two process types:
• Self-regulating Processes
• Integrating Processes
In turn, the process can be modeled (or characterized) with reasonable accuracy with
only a few parameters. TuneWizard extracts the process characteristics from data
obtained during the tuning test.
Self-Regulating Process
A self-regulating process (such as flow, temperature, and pressure) can be characterized
with three parameters:
• Process Gain (Gp)
• Dead Time (td)
• Time Constant (tau).
where:
• Gp = process gain
• dPV = change in process variable in % of full scale
• dCO = change in controller output in %.
Note: To use the equation above, the change in process variable must be converted to
percentage of full scale and the change in controller output must be in percent.
The higher the process gain is, the lower the controller gain (or greater the proportional
band) should be.
Integrating Process
An integrating process (level and some temperature processes) can be characterized with
two parameters:
• Process Gain (Gp)
• Dead Time (td)
On an integrating process, the process gain is determined by dividing the rate of change
of the process variable by the change in controller output. The rate of change of the
process variable is calculated by measuring the change in process variable (dPV) over a
few time units (dt) and then dividing the percentage change by the number of time units
over which the measured was taken.
Gp = dPV / (dCO * dt)
where:
• Gp = process gain
• dPV = change in process variable over a certain time period in % of full scale
• dCO = change in controller output in %
• dt = the time period over which dPV is being measured.
Controllers
By controller structure is meant the way in which the P, I, and D - modes are configured
inside the PID controller. It is sometimes also called the controller algorithm. Three
distinct controller structures are available:
• Series
• Ideal
• Parallel
Many controllers are available with only one fixed structure, but some PLC and DCS
systems allow a selection between different structures. You should be able to find the
controller structure used from the OEM documentation.
Mathematical form:
Diagrammatic form:
Diagrammatic form:
Diagrammatic form:
PID Units
Controller manufacturers do not all use the same units for the PID parameters. When
tuning PID controllers, you have to ensure that you are using the correct units when
calculating new settings for your controller.
The proportional units are:
• Gain
• Proportional Band = 100 / Gain
The integral units are:
• Minutes per Repeat
• Repeats per Minute = 1 / (Minutes / Repeat)
• Seconds per Repeat = 60 * (Minutes / Repeat)
• Repeats per Second = 1 / (Seconds / Repeat)
The derivative units are:
• Minutes
• Seconds = 60 * Minutes
PID Multipliers
Some integer-based PLCs use multipliers to increase the resolution on its PID settings.
Then the number in the PLC's memory is different from the number one would normally
use. The relationship between the desired setting and the number actually used is:
Desired PID setting = PID setting in PLC memory, multiplied by the Multiplier.
For example:
• P setting in PLC = 50
• Multiplier for P = 0.01
• Actual controller gain = 50 * 0.01 = 0.5
Another example:
• You want an integral time of 0.1 minute
• The multiplier for I is 0.01
• The number you have to enter into the PLC is 0.1 / 0.01 = 10