FUNCTION_BLOCK E_TO_UINT
As shown in the ECC and algorithms below, 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.

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

Test Procedure
  1. Open and run events/E_TO_UINT in the FBDK.
  2. Exercise the FB by clicking on the event inputs.
Last updated: 2016-04-23.
©2016 Holobloc Inc.
Reuse is permitted under the Academic Free License version 3.0
with attribution to http://www.holobloc.com/doc/navigator.htm