Siemens SIMATIC NET PROFIBUS Manual de servicio Pagina 80

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 238
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 79
Description of the DP Functions, Data, and Error Codes
DP Base Programming Interface for CP 5613/CP 5614
80
C79000-G8976-C108-01
Syntax
DPR_DWORD DP_set_mode (DPR_DWORD user_handle, // in
DPR_WORD mst_mode, // in
DP_ERROR_T *error ); // out
Parameters
Name Description
user_handle User handle assigned with the DP_open call.
mst_mode New mode to be set. The following constants can be used:
DP_OFFLINE: OFFLINE mode
DP_STOP: STOP mode
DP_CLEAR: CLEAR mode
DP_OPERATE: OPERATE mode
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).
Return Value
Name Description
DP_OK
The change in the DP mode was
activated.
otherwise if error->error_code ==
DP_RET_CP_REQ_ACTIV
There is still a DP_set_mode request
being processed.
otherwise if error->error_code ==
DP_RET_CP_WRONG_MODE
The selected master mode is not
permitted (a master mode has been
skipped).
other Unsuccessful completion of the function
Vista de pagina 79
1 2 ... 75 76 77 78 79 80 81 82 83 84 85 ... 237 238

Comentarios a estos manuales

Sin comentarios