Siemens SIMATIC NET PROFIBUS Manual de servicio Pagina 159

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 238
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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);
Vista de pagina 158
1 2 ... 154 155 156 157 158 159 160 161 162 163 164 ... 237 238

Comentarios a estos manuales

Sin comentarios