Configuration
CX20x2
49
Version: 1.7
7.3.5
Using a hardware watchdog
The function block
FB_PcWatchdog_BAPI
activates a hardware watchdog on the Embedded PC. The
watchdog can be used to automatically restart systems that have entered an infinite loop or where the PLC
has stopped.
The watchdog is activated with
bExecute
= TRUE and
nWatchdogTimeS
>= 1s.
Once the watchdog has been activated, the function block must be called cyclically and at shorter intervals
than nWatchdogTimeS, because the Embedded PC automatically restarts if the set time is less than
nWatchdogTimeS.
NOTE
Unwanted restart
The watchdog restarts the Embedded PC as soon as the time set for nWatchdogTimeS elapses.
Be aware of this behavior and disable the watchdog if you use breakpoints, carry out a PLC reset or an
overall reset, stop TwinCAT, switch to config mode or activate the configuration.
Requirements:
• Tc2_System library.
• TwinCAT v3.1.0
• A previously created PLC project in TwinCAT.
Locating the function block in TwinCAT:
1. Double-click on
Tc2_System
in the tree view under
PLC > PLC project > References
.
The Library Manager appears.
2. Under
Tc2_System > POUs > TIME
click on the function block
FB_PcWatchdog_BAPI
.
ð
The description of the function block can then be found under the
Documentation
tab or in the library
description under: FB_PcWatchDog_BAPI. If necessary, you can install the
Tc2_System
library at a
later stage via the
Add Library
button in the Library Manager.
Содержание CX20 2 Series
Страница 1: ...Manual EN CX20x2 Embedded PC 6 30 2020 Version 1 7...
Страница 2: ......
Страница 15: ...Product overview CX20x2 15 Version 1 7 4 3 Module overview...
Страница 76: ......