FUNCTION_BLOCK E_CTD

Hover on a highlighted element
to see its description.

ECC
ALGORITHM CD IN ST : (* Count Down *)
   CV := CV - 1;
   Q := (CV = 0);
END_ALGORITHM

ALGORITHM LD IN ST :
   CV := PV;
   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.