Function Block Modes

Inside this topic

Function Block Mode Basics
Mode Shedding Logic
Cascade Basics
(Use Ctrl+F to search this topic.)

Function block modes are described below. Supported modes vary with each function block. Some blocks support modes that are not supported in other blocks.

Out of Service (OOS): The block algorithm is not active. The output is maintained at the last value or at a specified failure action value.

Initialization Manual (IMan): The upstream block of a cascade pair is put into this mode when its downstream partner is in a non-cascade mode. This prevents the upstream block from closing the cascade. When the downstream block returns to a cascade mode (Cas or RCas), the upstream block leaves IMan and returns to its target mode.

Local Override (LO): The block is put into this mode when tracking is activated; the output is driven to a value other than that generated by normal block execution. When tracking is deactivated, the block returns to its target mode.

Manual (Man): The block output is set directly by the operator.

Automatic (Auto): In this mode, the control algorithm of the block is active. An operator-entered setpoint is used in the control algorithm to determine the block output.

Cascade (Cas): This mode is similar to Auto except that the setpoint is supplied by another function block through the CAS_IN parameter. The block maintains a back calculation output value (BKCAL_OUT) to provide bumpless mode transfer when the mode is changed.

Remote Cascade (RCas): This mode is similar to Cas except that the setpoint is supplied by an external control program through the RCAS_IN parameter. The block maintains a back calculation output value (RCAS_OUT) to provide bumpless transfer when the mode is changed.

Remote Out (ROut): This mode is similar to Man except that the OUT value is supplied by an external control program rather than directly by the operator. OUT is supplied through the ROUT_IN parameter. The block maintains a back calculation output value (ROUT_OUT) to provide bumpless transfer when the mode is changed.

The normal mode is the desired operating mode of the block that is set during configuration. Normal is meant to indicate that this is the mode in which the block should be operating during normal operation.

The target mode is the mode that is set manually or by another function during operation. These target modes must be listed during configuration as permitted modes for the block. IMan and LO are not selectable target modes. Unless you specify otherwise during configuration, the system assumes that you will write mode changes to the target mode field and read them from the actual mode field.

The following table lists the supported modes in specific function blocks. In addition, the Books Online information on individual function blocks lists the supported modes for that block.

Supported Modes for Function Blocks

Function Block

Supported Modes

Analog Input Function Block Out of Service (OOS)
Manual (Man)
Automatic (Auto)
Analog Output Function Block Initialization Manual (IMan)
Out of Service (OOS)
Local Override (LO)*
Manual (Man)
Automatic (Auto)
Cascade (Cas)
Remote Cascade (Rcas)
Arithmetic Function Block Out of Service (OOS)
Manual (Man)
Automatic (Auto)
Bias/Gain Function Block Out of Service (OOS)
Initialization Manual (IMan)
Local Override (LO)
Manual (Man)
Automatic (Auto)
Cascade (Cas)
Remote Cascade (Rcas)
Control Selector Function Block Out of Service (OOS)
Initialization Manual (IMan)
Manual (Man)
Automatic (Auto)
Deadtime Function Block Out of Service (OOS)
Manual (Man)
Automatic (Auto)
Device Control Function Block Out of Service (OOS)*
Local Override (LO)*
Automatic (Auto)
Cascade (Cas)
Remote Cascade (RCas)*
Discrete Input Function Block Out of Service (OOS)
Manual (Man)
Automatic (Auto)
Discrete Output Function Block Initialization Manual (IMan)
Out of Service (OOS)
Local Override (LO)*
Manual (Man)
Automatic (Auto)
Cascade (Cas)
Remote Cascade (RCas)*
Fuzzy Logic Control Function Block Out of Service (OOS)
Initialization Manual (IMan)
Local Override (LO)
Manual (Man)
Automatic (Auto)
Cascade (Cas)
Remote Cascade (RCas)
Remote Output (ROut)
Input Selector Function Block Out of Service (OOS)
Manual (Man)
Automatic (Auto)
Fieldbus Input Selector Extended Function Block Out of Service (OOS)
Manual (Man)
Automatic (Auto)
Integrator Function Block Out of Service (OOS)
Manual (Man)
Automatic (Auto)
Lab Entry Function Block Out of Service (OOS)
Manual (Man)
Lead/Lag Function Block Out of Service (OOS)
Manual (Man)
Automatic (Auto)
Manual Loader Function Block Out of Service (OOS)
Initialization Manual (IMan)
Local Override (LO)
Manual (Man)
Model Predictive Control (MPC) Out of Service (OOS)
Initialization Manual (IMan)
Manual (Man)
Automatic (Auto)
Local Override (LO)
Model Predictive Control Professional (MPCPro) Out of Service (OOS)
Initialization Manual (IMan)
Manual (Man)
Automatic (Auto)
Local Override (LO)
Cascade
MPC Process Simulator Out of Service (OOS)
Manual (Man)
Automatic (Auto)
Fieldbus Multiple Discrete Input Out of Service (OOS)
Manual (Man)
Automatic (Auto)
Fieldbus Multiple Discrete Output Out of Service (OOS)
Initialization Manual (IMan)
Manual (Man)
Automatic (Auto)
Cascade (Cas)
Local Override (LO)
Remote Cascade (RCas)
Multiplexed Analog Input Out of Service (OOS)
Manual (Man)
Automatic (Auto)
Neural Network Out of Service (OOS)
Manual (Man)
Automatic (Auto)
PID Function Block Out of Service (OOS)
Initialization Manual (IMan)
Local Override (LO)
Manual (Man)
Automatic (Auto)
Cascade (Cas)
Remote Cascade (RCas)
Remote Out (ROut)
Ratio Function Block Out of Service (OOS)
Initialization Manual (IMan)
Local Override (LO)
Manual (Man)
Automatic (Auto)
Cascade (Cas)
Remote Cascade (RCas)
Signal Characterizer Function Block Out of Service (OOS)
Automatic (Auto)
Splitter Function Block Out of Service (OOS)
Initialization Manual (IMan)
Manual (Man)
Automatic (Auto)
Cascade (Cas)
 

* These modes are only visible when the function block is extended to a Fieldbus device.


Function Block Mode Basics

Function blocks support modes with the relevant fields:

Each block supports a subset of the following modes through the named set parameter, SHED_OPT:

Modes have priority. The above is in inverse priority order. Higher modes have lower priority. For complete descriptions of all of the function block modes, refer to the Function Block Modes topic.


Mode Shedding Logic

Shed from or climb to a remote mode is determined by the parameter SHED_OPT. A block climbs and sheds through the same path. For example, if SHED_OPT specifies that a block should shed to Auto, then, if the block target mode is set to RCas, the block goes through Auto on the way to RCas.

Note Consider the effect of the fault state when selecting the mode shed option. Keep in mind that the fault state can cause the mode to go to Local Override instead of the expected mode from mode shedding.

Configuring Shed

The parameter SHED_OPT determines shed and climb for a remote mode. It can be configured as follows:

Shed With Return Options

Remote cascade connection failure shifts actual mode but keeps trying to restore remote cascade (in other words, the remote cascade target mode stays in effect).

Shed With No Return Options

For any shed with no return option, the target mode changes as determined by the option. Therefore, there is no attempt to restore the connection following failure. The behavior on change to the remote cascade target mode is identical to that for Shed With Return Options.

It is possible for the user to configure SHED_OPT so that it calls for a target mode that is not permitted. When doing this, the mode logic does the following rules as applied by the remote logic:


Cascade Basics

Cascades in FOUNDATION ä Fieldbus follow a strict if simple set of rules. A cascade is a two (2) way communication. The driving or master block provides an output that is used as the cascade input by a lower block commonly referred to as the slave. The slave provides an output that informs the master as to when its output is being accepted and the limit conditions that exist below it; this output is the back calculation output. The master reads this input through a back calculation input. (Refer to Advanced Topics - BKCAL Communications for more information.) For each cascade mode in a block, there is at least one cascade input and one back calculation output. For each block that is defined as control block, there is at least one output and one back calculation input.

When the target mode is changed to a cascade mode in the slave, the back calculation output is set with a substatus of Initialization Requested (IR). Upon seeing IR at the back calculation input, the master sets Initialization Acknowledge (IA) in its output substatus. The combination of IR in its back calculation output and IA in its cascade input is the trigger for the slave block to change the actual mode to the cascade. This logic is generally applicable to all cascade inputs and outputs and cascade modes (Cas, RCas, ROut). (See below for the exception.) The following figure and table illustrate the initiation and completion of a cascade with a master target mode of Auto and a slave initial mode of Auto. In fact, the initial slave mode could be any of the operating modes Man, Auto, RCas, ROut. The master target mode could be Man, Auto, RCas, ROut, Cas and, as long as the actual mode was not being forced to LO, the logic completes, as shown in the following figure.

Cascade Configuration

Example Cascade with Auto as Target Mode

Substatus

Mode

Condition

Slave BKCAL Output

Master OUT

Slave

Master

Cascade Is Not Possible Not Invited Anything Not Cas Target: Auto
Actual: IMan
Initialization Requested by Slave Initialization Requested Anything but IA Target: Cas
Actual: Auto
Target: Auto
Actual: IMan
Master Sees Initialization Request Initialization Requested Initialization Acknowledge Target: Cas
Actual: Auto
Target: Auto
Actual: IMan
Slave Sees Initialization Acknowledge Drops Initialization Requested and Changes to Normal Initialization Acknowledge Target: Cas
Actual: Cas
Target: Auto
Actual: IMan
Master Sees Normal Normal Drops Initialization Acknowledge and Changes To Normal Target: Cas
Actual: Cas
Target: Auto
Actual: Auto, assuming no other forcing condition.

The exception to the cascade handshaking behavior described above occurs when a CAS_IN or CAS_IN_D parameter has a NonCascade substatus. This is the case when there is no master control block providing a GoodCascade status to CAS_IN, but there is a parameter or calculation block providing a GoodNonCascade status to CAS_IN. In such cases the receiving block does not need to see an InitializationAcknowledge (IA) on CAS_IN. If the target mode is Cas, the actual mode will change to Cas immediately if the status on CAS_IN is GoodNonCascade (and nothing else is preventing the actual mode from climbing).