Sampled analyzer measurements should be processed with the SAMPLE_IN template before being used in an MPCPro block. The MPCPro block can be configured to reference the template's OUT parameter. The SAMPLE_IN template is located in the Advanced Control palette in Control Studio and is named MPC Analyzer Template.
SAMPLE_IN template
The SAMPLE_IN template's OUT value indicates when a new sampled analyzer measurement is available. The OUT value always indicates the last Good Measured Value. The following rules apply:
When a new measurement is available on the IN parameter of the SAMPLE_IN template, the new value is reflected in the SAMPLE_IN OUT value. The Status of OUT switches from Good Non-Cascade Constant to Good Non-Cascade for a period of time determined by the MPC_EXEC parameter.
The OUT parameter retains the last good measurement and a status of Good Non-Cascade Constant when a new measurement is not available.
The OUT parameter retains the last good value and a status of Good Cascade Constant if:
The status of IN is Bad
The instrument is in calibration as indicated by the CAL_ANALYZE discrete input (1=Analyze, 0=Calibrate Active)
An instrument fault is detected as indicated by the FAULT discrete input (1=Fault, 0=Good)
The ANALYZE_OPT parameter (FLAG or VALUE) must be configured to indicate if a new measurement is either shown through the NEW_DATA (0=>1) discrete input to the block or based on an IN change in the VALUE option.
SAMPLE_IN configuration parameters
The configuration parameters for the SAMPLE_IN template include those shown in the following table.
Parameter |
Description |
|---|---|
ANALYZE_OPT |
Defines if a new value is detected through the NEW_DATA discrete input FLAG option or is based on an IN change in the VALUE option. |
OUT_SCALE |
The operating range (in Engineering Units) of the IN parameters. |
HI_VALUE |
The maximum IN value that is propagated to OUT. |
LO_VALUE |
The minimum IN value that is propagated to OUT. |
MPC_EXEC |
The period of time that the OUT status remains Unlimited following the detection of a new measurement. Set MPC_EXEC to a minimum value of TSS/100. |
It is recommended that you verify and or manually enter the step responses associated with analyzer measurements especially if sample intervals are a significant portion of the configured Time to Steady State.