Hardware Manual for the PCD2.M5 Series│Document 26/856; Version EN 12│2014-07-24
Saia-Burgess Controls AG
Software watchdog
PCD2.M5_ Classic CPUs and expansion housings
3-52
3
3.16 Softwarewatchdog
The hardware watchdog provides maximum security. However, for non-critical
applications,asoftwarewatchdogmaybesufcient,wherebytheprocessormonitors
itself and the CPU is restarted in the event of a malfunction or a loop.
The core of the software watchdog is the instruction SYSWR K 1000. When this is
rstissued,thesoftwarewatchdogfunctionisactivated.Thisinstructionmustthenbe
issued at least every 200 ms, or the watchdog will trigger and restart the controller.
Instruction: SYSWR K 1000 ;Softwarewatchdoginstruction
R/K x ;Parametersaspertablebelow
;Kconstantorvaluein
;register
x = 0 The software watchdog is deactivated
x = 1 Thesoftwarewatchdogisactivated;iftheinstructionisnot
repeated within 200 ms, there will be a cold start
x = 2 Thesoftwarewatchdogisactivated;iftheinstructionisnot
repeatedwithin200ms,XOB0willbecalledandthenthere
will be a cold start
XOB0callsareenteredinthePCDhistoryasfollows:
"XOB0WDOGSTART" whereXOB0hasbeeninvoked
by the software watchdog
"XOB0STARTEXEC" whereXOB0hasbeeninvoked
because of a supply fault