202 Creating and Running Algorithms
Chapter 6
Implementing
Multivariable Control
In this example, two PID algorithms each control part of a process and due
to the process dynamics are interactive. This situation can call for what is
known as a "decoupler." The job of the decoupler is to correct for the
"coupling" between these two process controllers. Figure 6-3 shows the two
PID controllers and how the de-coupler algorithm fits into the control loops.
As mentioned before, algorithm output statements don't write to the output
SCP channels but are instead buffered in the Output Channel Buffer until the
Output Phase occurs. This situation allows easy implementation of
decouplers because it allows an algorithm following the two PIDs to inspect
their output values and make adjustments to them before they are sent to
output channels. The decoupler algorithm's
Decoupl_factor1
and
Decouple_factor2
variables (assumes a simple interaction) are local and can
be independently set using ALG:SCALAR:
/* decoupler algorithm. (must follow the coupled algorithms in execution sequence) */
static float Decouple_factor1, Decouple_factor2;
O124 = O124 + Decouple_factor2 * O125;
O125 = O125 + Decouple_factor1 * O124;
Communication
Using Global
Variables
A more traditional method of inter-algorithm communication uses global
variables. Global variables are defined using the ALG:DEF command in the
form:
ALG:DEF 'GLOBALS','
<variable_declaration_statements>
'
Example of global declaration
ALG:DEF 'GLOBALS','static float cold_setpoint;'
Implementing Feed
Forward Control
In this example, two algorithms mix hot and cold water supplies in a ratio
that results in a tank being filled to a desired temperature. The temperature
of the make-up supplies is assumed to be constant. Figure 6-4 shows the
process diagram.
O124
O124
PID Controller ALG1
PID Controller ALG2
+
+
Decoupl_factor2
Process Interaction
Decoupl_factor1
+
_
_
+
+
O125
O125
Setpoint
Setpoint
ALG3
De-coupler
Figure 6-3. Algorithm Communication with Channels
+
Содержание VT1422A
Страница 2: ...This page is blank...
Страница 8: ...8 Notes...
Страница 22: ...22 Support...
Страница 57: ...Field Wiring 57 Chapter 2...
Страница 58: ...58 Field Wiring Chapter 2...
Страница 96: ...94 Programming the VT1422A VT1529A B for Remote Strain Measurement Chapter 3...
Страница 162: ...160 Programming the VT1422A for Data Acquisition and Control Chapter 4...
Страница 224: ...222 Creating and Running Algorithms Chapter 6...
Страница 419: ...VT1422A Command Reference 417 Chapter 7 Notes...
Страница 420: ...418 VT1422A Command Reference Chapter 7 Notes...
Страница 425: ...Specifications 423 Appendix A Thermocouple Type E 200 800 C SCPs VT1501 02 03A...
Страница 426: ...424 Specifications Appendix A Thermocouple Type E 200 800 C SCPs VT1508 09A...
Страница 427: ...Specifications 425 Appendix A Thermocouple Type E 0 800 C SCPs VT1501A 02A 03A...
Страница 428: ...426 Specifications Appendix A Thermocouple Type E 0 800 C SCPs VT1508A 09A...
Страница 429: ...Specifications 427 Appendix A Thermocouple Type E Extended SCPs VT1501A 02A 03A...
Страница 430: ...428 Specifications Appendix A Thermocouple Type E Extended SCPs VT1508A 09A...
Страница 431: ...Specifications 429 Appendix A Thermocouple Type J SCPs VT1501A 02A 03A...
Страница 432: ...430 Specifications Appendix A Thermocouple Type J SCPs VT1508A 09A...
Страница 433: ...Specifications 431 Appendix A Thermocouple Type K SCPs VT1501A 02A 03A...
Страница 434: ...432 Specifications Appendix A Thermocouple Type R SCPs VT1501A 02A 03A...
Страница 435: ...Specifications 433 Appendix A Thermocouple Type R SCPs VT1508A 09A...
Страница 436: ...434 Specifications Appendix A Thermocouple Type S SCPs VT1501A 02A 03A...
Страница 437: ...Specifications 435 Appendix A Thermocouple Type S SCPs VT1508A 09A...
Страница 438: ...436 Specifications Appendix A Thermocouple Type T SCPs VT1501A 02A 03A...
Страница 439: ...Specifications 437 Appendix A Thermocouple Type T SCPs VT1508A 09A...
Страница 440: ...438 Specifications Appendix A 5k Thermistor Reference SCPs VT1501A 02A 03A...
Страница 441: ...Specifications 439 Appendix A 5k Thermistor Reference SCPs VT1508A 09A...
Страница 442: ...440 Specifications Appendix A RTD Reference SCPs VT1501A 02A 03A...
Страница 443: ...Specifications 441 Appendix A RTD SCPs VT1501A 02A 03A...
Страница 444: ...442 Specifications Appendix A RTD SCPs VT1508A 09A...
Страница 445: ...Specifications 443 Appendix A 2250 Thermistor SCPs VT1501A 02A 03A...
Страница 446: ...444 Specifications Appendix A 2250 Thermistor SCPs VT1508A 09A...
Страница 447: ...Specifications 445 Appendix A 5k Thermistor SCPs VT1501A 02A 03A...
Страница 448: ...446 Specifications Appendix A 5k Thermistor SCPs VT1508A 09A...
Страница 449: ...Specifications 447 Appendix A 10k Thermistor SCPs VT1501A 02A 03A...
Страница 450: ...448 Specifications Appendix A 10k Thermistor SCPs VT1508A 09A...
Страница 454: ...452 Specifications Appendix A...
Страница 480: ...478 VT1529A B Verification Calibration Appendix C...
Страница 484: ...482 Glossary Appendix D Notes...