Siemens SIMATIC NET PROFIBUS Servisní příručka Strana 159

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 238
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 158
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);
Zobrazit stránku 158
1 2 ... 154 155 156 157 158 159 160 161 162 163 164 ... 237 238

Komentáře k této Příručce

Žádné komentáře