FUNCTION_BLOCK E_SEL_xxx

ECC
ALGORITHM COPY0 IN ST : OUT := IN0; END_ALGORITHM
ALGORITHM COPY1 IN ST : OUT := IN1; END_ALGORITHM
			

An instance of an E_SEL_xxx FB type provides event-driven selection of data between two inputs whose type is specified by the xxx suffix in the FB type name. Data at the OUT variable is copied from the data ( IN0 or IN1, respectively) associated with the most recent event at the EI0 or EI1 input, followed by an event at the EO output.

These FB types are found in the src/select folder of the FBDK.

An example of this family of FB types is shown above, where xxx = REAL. Its operation is modeled by the Execution Control Chart (ECC) and algorithms also shown above.

An example of the use of an instance of the E_SEL_BOOL FB type can be found in the MONITOR device of the CODEC_TEST system configuration.