Hello Group members,
I am looking for a strategy to implemet ramp function for the SP of a flow controller (PID) in RCAS mode. Any suggestions?
I am aware of the feature SP_RATE_DN/UP in PID block, however they are applicable only in AUTO mode of the PID.
Thanks,Clean Tech
In reply to Youssef.El-Bahtimy:
This depends on how RCAS mode will be used I mean, continuous logic or secuential logic (from SFC, or PHASE). If sequential, from SFC in example, a new RCAS_IN value will be written on each SFC scan cycle so ramping vlues may be calculated within sfc. If continuous then RAMP block OUT connected to RCAS_IN may work but is important to properly manage back calculation to let RAMP block know what is happening on PID block. For PID RCAS mode back calculation parameter is RCAS_OUT (it's the same as BKCAL_OUT but for RCAS mode). However, RAMP block does not have BKCAL_IN parameter so it's not possible to directly connect PID/RCAS_OUT to RAMP/BKCAL_IN.
A solution is to interpose a BiasGain block between RAMP and PID blocks. In this way PID/RCAS_OUT may be connected to BiasGain/BKCAL_IN and RAMP/OUT may be connecto to BiasGain/IN_1.
The BiasGain must operate in AUTO mode wtih SP fixed to 0. (Another option is to set BiasGain/TRACK_IN_D ALWAYS to True and wire RAMP/OUT to BiasGain/TRACK_VAL).
If it is desired to allow PID mode changes while ramping it is possible to make RAMP block output track current PID setpoint. With this, when switched back to RCAS ramping will continue from current PID setpoint.
To implement this:
BiasGain/OUT must be connected to RAMP/IN
RAMP/ENABLED must be set to False when PID is not in RCAS and True when PID is in RCAS
RAMP/TRACK_IN_D must be set to True when PID is not in RCAS and False when PID is in RCAS
Final SP value must be written into RAMP/END_VALUE
Additional logic to write PID/SP_RATE_UP or PID/SP_RATE down into RAMP/RAMP_RATE (depending on current RAMP direction) could be useful if same ramping rates as for PID AUTO mode are desired