6. RAS FEATURES IN HF-W100E/IoT
6-14
6.3 Monitoring the CODESYS Runtime Environment
6.3.1 Overview
This function monitors whether the CODESYS runtime environment is running properly.
The function consists of the WDT control component that periodically triggers the watchdog
timer on HF-W100E/IoT from the CODESYS runtime environment and the CODESYS
monitor service running on the Windows environment.
Figure 6-4 Block Diagram of the Monitoring Functionality
(1) The WDT control component runs on the scheduler of the CODESYS runtime
environment and periodically retriggers the watchdog timer.
(2) The CODESYS monitor service periodically checks if a timeout is generated by the
watchdog timer. A watchdog timer timeout is generated when the WDT control
component is unable to retrigger and the time in the watchdog timer is less than the
timeout threshold (*1).
(3) When a timeout occurs, the CODESYS monitor service infers that some sort of error
occurred in the CODESYS runtime environment and notifies user applications by means
of the Windows event log and event objects. In addition, the CODESYS monitor service
executes the predefined action at the time of time-out (*2).
CODESYS monitor service
Windows®
Monitoring
functionality
Watchdog timer
CODESYS runtime
environment
CODESYS®
WDT control
component
Retrigger
Monitor