.wdperiod Property

Function:

Sets the timeout period for the watchdog timer.

Syntax:

Word (16-bit unsigned integer)

Value Range:

0-3000. Default= 3000 (approximately 30 seconds)

See Also:

sys.wdenabled, sys.wdautoreset, sys.wdreset


Details

sys.wdperiod property defines the timeout period for the watchdog timer in approximately 10ms intervals.

For example: to generate a watchdog timeout of around 2 seconds, set sys.wdperiod to 200.

This value should be about twice the projected period of calls to sys.wdreset, ensuring enough time for the system to reload the watchdog before it triggers a system reset.

Please note, sys.wdperiod must be called after sys.wdenabled=Yes, or else the system will hang.


.wdperiod Property

Details