Advanced function blocks > Sequencer (SEQ) function block

Sequencer function block execution

The SEQ function block has a configurable number of states and a configurable number of outputs. By default the number of states is 16 and the number of outputs is 2. The MATRIX parameter defines a mask for each state that indicates how the outputs should be set when the block is in that state. The SEQ block's state can be set in two ways:

You can disable the SEQ block by setting the ENABLE parameter to False. This sets STATE to 0 and sets all the outputs to 0 (False). When the ENABLE parameter is changed to True and the STATE_IN_D parameter is not set, the block sets STATE to 1 and drives the outputs based on the mask for state 1.

If the STATE_IN_D parameter is 0 (False), setting RESET_SEQ to True resets STATE back to state 1. RESET_SEQ automatically resets to False after use.

Overrides

In normal operation the outputs of the block are a function of the current state and the configured pattern for that state. However, the parameter OUTPUT_MASK can be manipulated to prevent one or more outputs from being True. Setting bits in OUTPUT_MASK to 1 masks the corresponding output from becoming 1 (True) regardless of what is configured for that state. In practice OUTPUT_MASK is manipulated from within the module by a CALC block, for example, based on the current batch phase.