F_VN_StopWatchdog

F_VN_StopWatchdog 1:

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

F_VN_StopWatchdog 2: Inputs

Name

Type

Description

hrStartWatchdog

HRESULT

HRESULT indicating the result of the function used to start the watchdog (If SUCCEEDED(hrStartWatchdog) equals false, no operation is executed.)

F_VN_StopWatchdog 3: 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)

F_VN_StopWatchdog 4: Return value

HRESULT

Further information

The output nFractionProcessed must be interpreted differently depending on the parameterization of the watchdog. This is set with ETcWatchdogAccumulationType when starting the watchdog.

Further information can be found under Watchdogs.

Required License

TC3 Vision Base

System Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT V3.1.4024.54 or later

PC or CX (x64) with PL50, e.g. Intel 4-core Atom CPU

Tc3_Vision