====== CTD_LINT ====== {{:en:mervis-ide:35-help:ctd_lint.png}} ===== Block name ===== CTD_LINT ===== ST call ===== 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 ===== Description ===== The block acts as a counter counting down to zero from the preset value //pv//. ===== Inputs ===== |Input|Type|Description |Default value| |CD |BOOL|Rising edge counts one down |False | |LD |BOOL|Sets the counter to its initial value //pv//|False | |PV |LINT|Initial value of the counter |0 | ===== Outputs ===== |Output|Type|Description | |Q |BOOL|State when the counter finished counting (counting finished: //q//=true).| |CV |LINT|Current value of the counter | ===== Application example ===== {{:en:mervis-ide:35-help:ctd_lint_example.png}}