Siemens SIMATIC NET PROFIBUS Manual de servicio Pagina 154

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 238
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 153
Description of the DP Functions, Data, and Error Codes
DP Base Programming Interface for CP 5613/CP 5614
154
C79000-G8976-C108-01
4.3.6 Querying Information about the DP Master
Uses of the DP Master Information
The process image of the CP 5613/CP 5614 contains a memory area where you
can read out the following information about the DP master:
x
Mode (OFFLINE, STOP, CLEAR, AUTOCLEAR, OPERATE)
x
Identification number of the certification
x
Hardware version
x
Firmware version
Example
"p" is a pointer to the process image that your user program obtained with the
"DP_get_pointer" call. To display this information in a simple application, you would
write a program similar to that below:
printf("master state -> %ld",
p->info_watch.master_info.USIF_state);
/* 0 means OFFLINE */
/* 1 means STOP */
/* 2 means CLEAR */
/* 3 means AUTOCLEAR */
/* 4 means OPERATE */
printf("master ident number -> %lx",
p->info_watch.master_info.ident_number);
/* in Motorola format */
printf("master HW version -> %lx",
p->info_watch.master_info.hw_version);
/* e.g. 0x00000102 for version 1.2 */
printf("master FW version -> %lx",
p->info_watch.master_info.fw_version);
Note
Writing these values is not permitted and does not change the master data.
Vista de pagina 153
1 2 ... 149 150 151 152 153 154 155 156 157 158 159 ... 237 238

Comentarios a estos manuales

Sin comentarios