FUNCTION_BLOCK E_CTU

Hover on a highlighted element
to see its description.

ECC
ALGORITHM CU IN ST : (* Count Up *)
  CV := CV + 1;
  Q := (CV >= PV);
END_ALGORITHM

ALGORITHM R IN ST : (* Reset *)
  CV := 0;
  Q := FALSE;
END_ALGORITHM

An instance of this Function Block type implements an event-driven down-counter. Its operation is defined by the Execution Control Chart (ECC) and algorithms shown above.