CTD_LINT

CTD_LINT

PROGRAM CTD_LINT_DEMO
   VAR
     BOOL1,BOOL2,BOOL3: BOOL;
    LINT1,LINT2: LINT;
  FB:CTD_LINT;
   END_VAR
    FB(CD:=BOOL1,LD:=BOOL2,PV:=LINT1,Q=>BOOL3,CV=>LINT2);
END_PROGRAM

The block acts as a counter counting down to zero from the preset value pv.

InputTypeDescription Default value
CD BOOLRising edge counts one down False
LD BOOLSets the counter to its initial value pvFalse
PV LINTInitial value of the counter 0
OutputTypeDescription
Q BOOLState when the counter finished counting (counting finished: q=true).
CV LINTCurrent value of the counter

  • © Energocentrum Plus, s.r.o. 2017 - 2024