Siemens SIMATIC NET PROFIBUS Manual de servicio Pagina 76

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 238
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 75
Description of the DP Functions, Data, and Error Codes
DP Base Programming Interface for CP 5613/CP 5614
76
C79000-G8976-C108-01
4.1.7 DP_close
Purpose
With this function, a DP user program logs off for communication at the CP.
Note 1
If the logoff was successful, the user handle is no longer valid and must not
continue to be used. The pointer to the dual-port RAM obtained with the
DP_get_pointer function is also no longer valid.
Note 2
To shut down the DP master, your user program should first change the master to
the OFFLINE mode with the DP_set_mode function.
Note 3
To disconnect the CP completely from the bus, your application can then use the
DP_reset_cp function.
Syntax
DPR_DWORD DP_close (DPR_DWORD user_handle, // in
DP_ERROR_T *error ); // out
Parameters
Name Description
user_handle User handle assigned with the DP_open call.
error Address of a structure provided by the user program of the
type DP_ERROR_T - If an error occurred, the structure
contains details for troubleshooting (see Section 4.4).
Vista de pagina 75
1 2 ... 71 72 73 74 75 76 77 78 79 80 81 ... 237 238

Comentarios a estos manuales

Sin comentarios