WDogRefresh - method of object Pm

Refresh of the WatchDog program counter.
WDogRefresh(nProgram As Long, nCounter As Long)
Pm.WDogRefresh nProgram, nCounter
nProgram(Long) Number of the application (from 1 to 5) in PmWatchDog.ini
nCounter(Long) Value which the WatchDog counter is set to

WatchDog.exe is a program that watches up to 5 applications. Each application can have set up its own counter in the WatchDog program. WatchDog decreases these counters in regular interval (decrements the value by 1). If some counter reaches the value 0, then the WatchDog presumes that the application stops off (the application halted or somebody terminated it, etc.) and restart it over again (or restart the whole OS Windows).

So as the WatchDog wouldn't restart the PROMOTIC application, the application must regularly call the WDogRefresh method. This application sets its counter in the WatchDog program to the nCounter value. The value nCounter must be big enough so as the WatchDog wouldn't zeroized the counter before the application calls the WDogRefresh method over again.

This method is not functional for Web panels in JavaScript language (and therefore it is not working in Web panels).
In the PmWDog.ini configuration in the [Global] section it is set the key: Period=1000 (i.e. WatchDog will decrement the counters every 1000 ms) and this application is specified in the [Program1] section. Then this application will call every 10 seconds (e.g. in the PmTimer object) the method:
VBScriptSelect and copy to clipboard

Pm.WDogRefresh 1, 20
By this the program1 counter is set to 20 every 10 seconds. WatchDog will decrease this value every second. If the application is halted, then the WatchDog would restart it by 20 seconds.
PROMOTIC 8.3.30 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
- Pm
- Abs
- Cos
- E
- Exp
- LN2
- PI
- Pow
- Sin
- Tan
- WDogRefresh
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice