F_VN_StopWatchdog
Stops a watchdog and provide runtime information.
Syntax
Definition:
FUNCTION F_VN_StopWatchdog : HRESULT
VAR_INPUT
hrStartWatchdog : HRESULT;
END_VAR
VAR_OUTPUT
nFunctionsMonitored : ULINT;
nFractionProcessed : UDINT;
tRest : DINT;
END_VAR
Inputs
Name |
Type |
Description |
---|---|---|
hrStartWatchdog |
HRESULT indicating the result of the function used to start the watchdog (If SUCCEEDED(hrStartWatchdog) equals false, no operation is executed.) |
Outputs
Name |
Type |
Description |
---|---|---|
nFunctionsMonitored |
ULINT |
Returns the number of functions monitored |
nFractionProcessed |
UDINT |
Returns the fraction processed accumulated over the monitored functions in percent |
tRest |
DINT |
Returns the remaining computation time in us (may be negative) |
Weiterführende Informationen
Der Output nFractionProcessed muss je nach Parametrierung des Watchdogs anders interpretiert werden. Dies wird mit dem ETcWatchdogAccumulationType beim Starten des Watchdogs eingestellt.
Weitere Informationen finden Sie unter Watchdogs.
Required License
TC3 Vision Base
System Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT V3.1.4024.59 or later | PC or CX (x64) with PL50, e.g. Intel 4-core Atom CPU | Tc3_Vision |