```
ALGORITHM A0 IN ST: N := 0; END_ALGORITHM
```

ALGORITHM A1 IN
ST: N := 1; END_ALGORITHM

ALGORITHM A2 IN ST: N := 2;
END_ALGORITHM

ALGORITHM A3 IN ST: N := 3; END_ALGORITHM

As shown in the above Execution Control Chart (ECC) and algorithms,
an occurrence of an event at one of the
`EIx`

inputs of an instance of this Function Block type, where
`x∈{0..3}`

, causes the value of the
`N`

output to be set to
`x`

, followed by the occurrence of an event at the
`EO`

output.