Advanced function blocks > State Transition Diagram (STD) function block

State Transition Diagram function block parameters

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

Table: STD function block system parameters

Parameter (Data Type)

Default Value

Description

DESC_INn

(String)

None

Configured label for transition input IN_Dn. As many as 40 characters.

ENABLE

(Boolean)

True

If ENABLE is False, STATE is set to Disabled (0). When ENABLE is set to True, STATE is forced to the initial state value ( state 1).

IN_Dn

(Discrete with status)

0

Transition value. A 1 indicates the transition is active and can cause a state change.

MATRIX

(16-bit unsigned integer matrix)

None

Holds the next state values for each state/transition combination.

OUT_Dn

(Discrete with status)

0

The discrete value with status for each configured state.

OVERRIDE

(Named Set)

None

Indicates when and how the normal logic is being overridden. Choices are:

  • None

  • All Associated Transitions Masked

  • State Forced.

RESET_STATE

(Boolean)

False

Forces the block to the initial state (state 1).

STATE

(Named Set)

Disabled

Text indicating the current state, a value from the named set you define for this block. The default named state for STD blocks is $ctlr_std_seq_states.

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 number of states configured.

STATE_IN_D

(Discrete with status)

0

If STATE_IN_D is 1, STATE is set to the value of  STATE_IN.

STATUS_OPT

(Named Set)

Always Use Value

Determines the block's behavior when the status of a particular input is Bad. Choices are:

  • Always Use Value

  • Ignore if Bad

  • Use Last Good Value.

TERMINAL

(Boolean)

False

If all entries in MATRIX for the current state are zero (no next state configured) or if masked transitions prevent transition to another state, then the TERMINAL parameter is set to True.

TRANSITION_MASK

(16-bit unsigned integer)

0

Integer representing a bitstring. Setting bits in TRANSITION_MASK to 1 prevents the corresponding transition from being seen as active regardless of its value or status.

VALID_TRANS

(16-bit unsigned integer)

0

An integer representing the bitstring that indicates the transitions that are possible from the current state. Any transitions masked by TRANSITION_MASK are not included.