5. Initial Programming
234
The field “Sensitivity” refers to how many times the watchdog will be achieved to activate the
bWatchdogReset diagnostics. If the task Cycle Time reaches the Sensitivity field value multiplied by
the Time field, the diagnostics will also be indicated.
Attention should be given to the fact that the watchdog of the CPU is not used to protect the user
application from surge at cycle time, but of crashes.
In order to protect the system regarding to possible configuration error, the MasterTool Xtorm checks
the watchdog (Software Watchdog) and the minimum and maximum limits of the task cycle time
(Interval) in all cyclic tasks, during the compilation. It is important to highlight that the user will have
to be careful when changing the pre-defined values by the project profiles as in this way it may put in
risk the system execution. So, it is recommended to use the default values, with the watchdog
configured at 1000 ms.
Figure 5-15. Configuring the Created Task
Table 5-5 shows the verifications done by the MasterTool Xtorm where the Sensitivity field is 1
(one). For the Custom Profile there is no consistency in the task interval nor in the watchdog time.
Task
Type
Minimum Interval
Maximum Interval
MainTask
Cyclic
5 ms
750 ms
CyclicTask
Cyclic
5 ms
2147483 ms
TimeInterruptTask00
Cyclic
500 us
2147483 ms
Table 5-5. Allowed Settings