Siemens SIMATIC NET CP 5613 Manual page 171

Dp base programming interface
Table of Contents

Advertisement

Example of Access
"p" is a pointer to the process image that your user program obtained with the
"DP_get_pointer" call. The parameter idx is the value that the DP_watchdog
function returned as the index. For example, to read out the current count of the
watchdogs and to trigger the watchdog, you require a program section like that
shown below:
/* Output current count of the watchdog */
printf("watchdog time =%u\n",
/* Watchdog elapsed? */
if(p->info_watch.user_watchdog[idx].wd_state ==
{
// Timeout -> user-specific reaction !!
}
else
{
/* Trigger watchdog */
p->info_watch.user_watchdog[idx].wd_trigger++;
}
DP Base Programming Interface for CP 5613/CP 5614
C79000-G8976-C108-02
Description of the DP Functions, Data, and Error Codes
p->info_watch.user_watchdog[idx].wd_counter);
DP_WD_TIMEOUT)
171

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic net cp 5614

Table of Contents