CTU_ULINT

CTU_ULINT

PROGRAM CTU_ULINT_DEMO
  VAR
     BOOL1,BOOL2,BOOL3: BOOL;
    ULINT1,ULINT2: ULINT;
   FB:CTU;
    END_VAR
    FB(CU:=BOOL1,R:=BOOL2,PV:=ULINT1,Q=>BOOL3,CV=>ULINT2);
END_PROGRAM

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

InputType Description Default value
CU BOOL Rising edge counts one up False
R BOOL Sets the counter to zeroFalse
PV ULINTFinal value of the counter 0
OutputType Description
Q BOOL State when the counter finished counting (counting finished: q=true).
CV ULINTCurrent value of the counter

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