Advanced function blocks > Sequencer (SEQ) function block

Sequencer function block parameters

The following table lists the system parameters for the function block:

Table: SEQ function block system parameters

Parameter (Data Type)

Default Value

Description

DECREMENT

(Boolean)

False

When True, causes the block to go to the previous state.

DESC_OUTn

(String)

None

Configurable label for OUT_Dn.

ENABLE

(Boolean)

True

Enables and disables the block. When ENABLE is False, STATE is set to 0 (zero) and all outputs are driven to 0. When ENABLE  is set 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.

INCREMENT

(Boolean)

False

When True, causes the block to advance to the next state.

MATRIX

(16-bit unsigned integer matrix)

None

Holds the configured values of the outputs for each state.

NUM_STATES

(8-bit unsigned integer)

16

Number of valid states not including state 0 (zero).

OUT_Dn

(Discrete with status)

0

Discrete output with status driven by the configured pattern and current state.

OUTPUT_MASK

(16-bit unsigned integer)

0

Bitstring that masks outputs preventing them from changing to 1 (True).

RESET_SEQ

(Boolean)

False

When set to True, forces the block to the initial state (state 1) if STATE_IN_D is 0.

STATE

(Named Set)

Disabled

Current state. The state name that appears is from the named set assigned to this parameter.

STATE_IN

(8-bit unsigned integer)

1

If STATE_IN_D is 1, STATE is set to the named set value corresponding to STATE_IN's value.

The valid range for STATE_IN is 0 through the value of NUM_STATES.

STATE_IN_D

(Discrete with status)

1

When STATE_IN_D is 1 (True), STATE is set by STATE_IN.

WRAP

(Boolean)

False

Determines whether the increment or decrement stops when the first or last state is reached.