Siemens SIMATIC NET PROFIBUS Manuel de service Page 159

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 238
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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);
Vue de la page 158
1 2 ... 154 155 156 157 158 159 160 161 162 163 164 ... 237 238

Commentaires sur ces manuels

Pas de commentaire