
Description of the DP Functions, Data, and Error Codes
DP Base Programming Interface for CP 5613/CP 5614
C79000-G8976-C108-01
159
4.3.9 Reading PROFIBUS Statistical Data
Overview
In the process image of the CP 5613/CP 5614 there is a memory area in which the
CP stores statistical data of the connected PROFIBUS network allowing, for
example, diagnostic programs to read them.
Example of Access
"p" is a pointer to the process image that your user program obtained with the
"DP_get_pointer" call. To count, for example, the counter for the bus short-circuits
detected up to now, you would write a program like the following:
/* Output counter for bus short-circuits */
printf("bus ctrl err =%u\n",
p->info_watch.aspc2_event.bus_control_error);
Komentáře k této Příručce