ETcWatchdogAccumulationType
Offers watchdog accumulation types to compute the fraction processed.
Syntax
Definition:
TYPE ETcWatchdogAccumulationType :
(
WD_ACC_TYPE_MEAN := 1,
WD_ACC_TYPE_PRODUCT := 2
)UINT;
END_TYPEValues
|
Name |
Description |
|---|---|
|
WD_ACC_TYPE_MEAN |
Calculates the mean of the individual fractions processed over all monitored functions (recommended for independent functions). |
|
WD_ACC_TYPE_PRODUCT |
Calculates the product of the individual fractions processed over all monitored functions (recommended for dependent functions). |
Further information
With this enum you can set how a watchdog calculates the fraction of the executed functions (nFractionProcessed) when several functions are concatenated.
As an example to illustrate the mode of operation, it is assumed that three functions were monitored. The first was executed 100%, the second 50% and the third 0%.
WD_ACC_TYPE_MEAN | The average value of the execution fractions of all functions is returned as the result. In the example case the result would be: (100% + 50% + 0%) / 3 = 50%. |
WD_ACC_TYPE_PRODUCT | The product of the execution fractions of all functions is returned as the result. In the example case the result would be: 100% * 50% * 0% = 0%. |
The use cases differ depending on the program structure and the safe states of the machine.