PID - Scanner 2000
PID - Scanner 2000
The PID controller compares a user defined setpoint (SP) to the current process value (PV) and adjusts the 4-20 mA analog output
in an attempt to make the PV equal the SP. The 4-20mA output is used to position a final control element which is usually a valve
coupled to a current-to-pneumatic (I/P) converter.
The controller acts on the difference between the PV and the SP based on the combined settings for three tuning factors:
The Scanner scales or “normalizes” the process variable operating range to a range of 0 to 1, so the gain values used with the Scan-
ner PID controller may be significantly smaller than those used with a controller that is not normalized.
Both a gain and an integral value must be entered if the process variable is to achieve the user-specified setpoint. In some cases,
the use of a gain alone can result in an offset between the setpoint and process variable that cannot be resolved without an
integral adjustment.
The integral value is typically very small, well below 1, and should be used in combination with a proportional constant.
2
Scanner Solution
The integrated PID control of the Scanner® 2000 and Scanner® 2200 and the configuration and tuning controls built into the Mod-
WorX™ Pro software provide a powerful solution for a variety of control applications. The control valve position is regulated via a
4-20 mA output, as shown in the illustration below. The analog output is standard on the Scanner® 2200, and is available on an
optional expansion board for the Scanner® 2000.
The tuning tools within ModWorX™ Pro eliminate the need for a partner to monitor the valve indicator. The software plots the
process variable, setpoint and valve position in an easy-to-read, scaleable graph and updates the output in realtime so a single
operator can monitor the impact of every tuning change and determine when an optimum response is achieved.
Important: Operators must configure and tune PID control settings to operate in accordance with their specific application. As
with any automated control system, operators are advised to take safety precautions to guard against control changes that could
cause personal injury or property damage.
4-20 mA output
3/4” conduit
H L
RTD
assembly
H L Flow
Control valve
Orifice flange or cone meter
3
ModWorX™ Pro
ModWorX™ Pro, the software interface for the Scanner®
2000 and Scanner® 2200 , allows the user to configure,
tune and maintain a PID controller.
Then, using the tuning dialog, the user can change the
tuning parameters and observe the system response.
The user can switch between manual and automatic
operating modes and observe the system’s response to
changes in valve position and the controller’s response
to changes in tuning values. A user can even view the
progression of the controller response in a time-scale
graph and pause the graph as necessary to make tun-
ing adjustments.
For example, when a new gas well or zone is introduced in a field of old wells, the new well often produces at a higher pressure
and delivers a higher volume of gas than the old wells. If the new well is tied into an existing production facility, it will dominate
and prevent the old wells from flowing into the production system. The new well may also have a shut-in pressure that exceeds
the older production system. To limit the flow and the pressure, a single control valve is installed.
In this example, the user would configure the Scanner for PID with secondary pressure control. The user would enter two setpoints,
one for the flow rate desired and one for the maximum pressure desired. The Scanner would control the valve in accordance with
the flow rate setpoint until the pressure reached its limit, at which time the controller would throttle the valve to quickly bring the
pressure back to the acceptable range. Once the pressure is in check, the controller would transition back to flow control.
Unlike the primary controller that is used to control flow in accordance with a fixed setpoint, the secondary pressure controller
does not require a balance of gain and integral values. Because the secondary controller is concerned only with reducing pressure
quickly, gain is the only tuning value required.
4
Configuring the Controller
Simple PID Controller
1. From the Configure PID Control screen, change the controller type to Simple PID
Controller.
2. Select the type of controller action desired
(direct or reverse).
3. From the Process Variable section, select
the parameter that you want to control. If
the parameter you wish to control is based
on an analog input, you must configure the
input before configuring the PID Controller.
See the ModWorX™ Pro manual for details.
The execution period of the controller is
automatically set to match the sampling
and/or calculation period of the process
variable being controlled.
4. Enter the Range Low and Range High values
for the process variable you will control (for
example, 0 to 200 In. H2O, as shown).
5. Enter the desired setpoint.
6. In the Control Loop section, you may enter tuning values, if known. Otherwise,
use the tuning dialog (step 8) to discover the appropriate values.
7. Click Apply to save the settings. The 4 to 20 mA output will automatically be
configured for PID control.
8. Click on the Tune button in the Control Loop section of the screen. See Tuning
the Controller, page 7, for tuning instructions.
5
Configuring the Controller (cont’d)
Controller Action: Direct or Reverse?
To configure the PID controller, the user must define the type of controller action desired. The action setting answers the question
“what type of change in the controller output (increase or decrease) is required to bring the process variable in line with the con-
trol setpoint?”. If an improper action setting is selected, the controller will respond in a manner opposite the intended response
(increasing temperature, rather than decreasing it, for example).
Direct action causes the output value to change in the same direction as the change in PV (increase in PV ► increase in controller
output).
Reverse action causes the output value to change in the opposite direction as the change in PV (increase in PV ► decrease in
controller output).
Direct Acting
The control valve will fail in the closed
position. An increased controller output
opens the valve, and decreases the SETPOINT SCANNER INCREASED VALVE
CONTROL PROCESS
process value. 2000 OPENS
OUTPUT VALVE VARIABLE
CONTROLLER
In this example, the error is initially
FAIL CLOSE
positive (PV - SP>0). The positive error is
counteracted by an increased control-
PROCESS ERROR DECREASED
ler output; therefore, this controller is
direct-acting.
Reverse Acting
The control valve will fail in the open
position. A decreased controller output
opens the valve and decreases the SETPOINT SCANNER DECREASED VALVE
CONTROL PROCESS
process value. 2000 OUTPUT VALVE OPENS VARIABLE
CONTROLLER
In this example, the error is initially
FAIL OPEN
positive (PV - SP>0). The positive error
is counteracted by a decreased control-
PROCESS ERROR DECREASED
ler output; therefore, this controller is
reverse-acting.
6
Tuning the Controller
Press the Tune button on the
Configure PID Control screen to
open the Tune PID Control dialog.
From this screen, an operator can
observe the system’s response to
changes in tuning values, valve
position and setpoint. When the
process variable tracks to the set-
point in a stable trend, the control-
ler is properly tuned.
Configuring the
Display
Main Graph. The graph display allows the user to monitor the system’s response to changes in valve position, setpoint and tuning
values. The x axis displays time, the left y axis displays valve position in percentage, and the right y axis displays the range of the
controller in the engineering units associated with the process variable being controlled. The progression of the graph can be
paused for observation while data continues to be gathered, and then unpaused to display the accummulated data.
Strip Graph. The small graph at the top of the screen scales the viewing area of the main graph. By moving the slider bar left and
right, the user controls how much of the data collected is visible on the screen.
Setpoint Control. The setpoint can be changed two ways: by moving the slider bar or by entering a value in the field below the
bar. The setpoint can be entered in engineering units or a percentage; to change the format, click on the Setpoint Scale field and
change the selection in the dropdown menu. To plot the setpoint on the graph, make sure the Plot checkbox beneath the slider
bar is checked. Changes will not become effective until you press Apply.
Valve Position. The valve position is displayed as a percentage. In automatic mode, the controller sets the valve position via the 4
to 20 mA output; in manual mode, the user can change the valve position by moving the slider bar or entering a value in the field
below the slider bar. To plot the setpoint on the graph, make sure the Plot checkbox beneath the slider bar is checked. Changes
will not become effective until you press Apply.
PID Control Loop. The control constants (Kp, Ki and Kd ) can be changed using the arrows or by selecting the existing value with
the mouse and re-entering a new value. Changes will not become effective until you press Apply.
In manual mode, the user can adjust the valve position and observe the system’s response.
1. To place the controller in Manual mode, click on Output Mode and select Manual from the dropdown menu.
2. Change the valve position (type value or move slider bar).
3. Observe the response in the trend graph. With this information, tuning algorithms (such as Ziegler-Nichols) can be used to
estimate appropriate tuning values.
In auto mode, the user can adjust the setpoint and observe the system’s response.
1. To place the controller in Auto mode, click on Output Mode and select Auto from the dropdown menu.
2. Enter a new setpoint (type value or move slider bar).
3. Observe the response on the graph. With this information, tuning algorithms (such as Ziegler-Nichols) can be used to estimate
appropriate tuning values.
7
Maintaining the Controller
The field operator can modify the setpoint and override the valve position setting from the Manage PID Controller screen without
affecting the controller’s configuration, which remains secure and inaccessible to those without security access.
To access the Manage PID Controller screen, click Manage PID from the menu buttons at the top of the ModWorX™ Pro main
screen.
8
Configuring the Valve Control Signal (Analog Output)
The analog output provides the control signal for opening and closing the valve. An analog output is standard on the Scanner®
2200 EFM, and is easily added to the Scanner® 2000 with an optional expansion board.
9
Testing the Analog Output
ModWorX™ Pro gives users quick and
easy tools for calibrating and testing the
4 to 20 mA output signal, which can be a
timesaver in troubleshooting operating
issues.
4-to-20 mA Calibration
To calibrate the analog output, navigate to the Configure Analog Output
screen perform the following steps:
4-to-20 mA Testing
To test the analog output following adjustments, click the Test Output button at the bottom of the Configure Analog Output
screen. A Test Analog Output dialog box will appear.
Enter the output value (in milliamps) you wish to apply and click Apply. The Scanner will send the signal to the receiving device.
If everything in the loop is properly connected and calibrated, the readout of the receiving device should match the test value
entered in the Test Analog Output screen.
10
Frequently Asked Questions
Does the Scanner PID controller “bump” when you switch from “auto” to “manual” mode?
In some process control systems, the switch from manual to automatic mode can result in a sudden change in the output, which
then settles back to the setpoint. The Scanner PID controller eliminates this “bump” in the output by implementing what is com-
monly called “bumpless transfer” between manual and automatic modes.
When a controller receives an error signal, the integral term of the controller will increase with each execution period. Normally,
this integral action will result in a change in the output. However, when the valve has reached an absolute limit (fully open or fully
closed), the integral action can no longer change the valve position, and the integral term continues to act on the unresolved er-
ror. This is referred to as “integral windup.”
Integral windup can also occur when a system override is applied, such as the secondary pressure control in the Scanner. When
the secondary controller takes control of the system, the original controller is not switched off, so it still receives an error signal,
which over time “winds-up” the integral term.
Integral windup can cause oscillation and numeric overflow and result in significant control inefficiencies. The Scanner PID con-
troller is designed to prevent problems associated with integral windup.
My controller is running in auto mode, but it appears to be stuck in the 100% (or 0%) valve position. Why?
This response may be caused by an improper controller action setting (for example, a setting which may be telling a fully closed
valve to close). Verify that the controller is configured for the correct action (direct or reverse). See page 6 for more information.
I am controlling the flow rate and the update in the controller output seems very slow. Why?
The execution period for the PID controller is the same as the calculation period for the flow run. The default setting for flow run
calculation is 60 seconds. At this default value, the system response may be too slow for optimal control. The flow run calculation
period (execution period) can be changed on the ModWorX Pro Flow Run Configuration screen.
To avoid computational delay entirely, consider using the raw differential pressure or pulse meter measurement for control rather
than the computed flow run values.
© 2010 Cameron International Corporation (“Cameron”). All information contained in this publication is confidential and propri-
etary property of Cameron. Any reproduction or use of these instructions, drawings, or photographs without the express written
permission of an officer of Cameron is forbidden.
11
5569.0501
[email protected]
INDIA KENYA