Reset the watchdog timer
This FP instruction resets the watchdog timer to zero if the trigger EN is TRUE.
Corresponding F instructions: F142_WDT
All input and output variables used for programming this function have been declared in the POU header. The same POU header is used for all programming languages.
VAR
bStart: BOOL:=FALSE;
(*activates the instruction*)
END_VAR
When the variable bStart is set to TRUE, the function is carried out.
BODY
WORKSPACE
NETWORK_LIST_TYPE := NWTYPELD ;
ACTIVE_NETWORK := 0 ;
END_WORKSPACE
NET_WORK
NETWORK_TYPE := NWTYPELD ;
NETWORK_LABEL := ;
NETWORK_TITLE := ;
NETWORK_HEIGHT := 5 ;
NETWORK_BODY
B(B_F,FP_RESET_WATCHDOG!,,9,1,21,4,,?DEN?AENO);
B(B_CONTACT,,bStart,4,2,6,4,);
L(1,3,4,3);
L(6,3,9,3);
L(1,0,1,5);
END_NETWORK_BODY
END_NET_WORK
END_BODY
IF start then
(* Watchdog timer is reset *)
FP_RESET_WATCHDOG();
END_IF;