Example - Ladder Diagram
WDT Example
The WDT instruction resets the watchdog timer during the execution of a sequence program.
Ladder Diagram Example
![]()
For this example, the watchdog timer setting value is 10ms.
![]()
When the value, 1000, is assigned to the data registers, D0 and D1, the scan time is around 17 ~ 18ms.
This is greater than the watchdog timer set value of 10ms.
The User WDT error will appear.
WDTP
The WDTP one-shot instruction resets the watchdog timer during the execution of a sequence program.
Every time this instruction executes, it energizes the output only once.
Ladder Diagram Example
![]()
For this example, the watchdog timer setting value is 10ms.
![]()
When the value, 1000, is assigned to the data registers, D0 and D1, the scan time is around 17 ~ 18ms.
This is greater than the watchdog timer set value of 10ms.
The User WDT error will appear.