Siemens SIMATIC NET PROFIBUS Manual de servicio Pagina 108

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 238
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 107
Description of the DP Functions, Data, and Error Codes
DP Base Programming Interface for CP 5613/CP 5614
108
C79000-G8976-C108-01
4.1.20 DP_get_result
Purpose
This function fetches the confirmation (result) of an asynchronous job. The result of
every asynchronous job must be fetched with this function.
Depending on the transferred timeout time, the function returns
immediately
or
after the monitoring time has elapsed. If the timeout time "forever" is entered,
DP_get_result waits until the confirmation has arrived.
Note 1
If a function is still waiting for asynchronous confirmations when DP_close is sent,
DP_get_result is terminated with the error class DP_ERROR_USR_ABORT.
Note 2
The confirmations can arrive in any order. Below, there is an example of a
sequence:
The user program sends a DP_enable_event call so that it will be notified of
alarms.
The user program sends a DP_ds_write call, for example, to reassign
parameters to slave 10.
The user program then calls the DP_get_result function in a second thread
and obtains a confirmation for the DP_ds_write job.
Only after DP_get_result has been called again, does the DP_enable_event
confirmation signal that there is an alarm for slave 10.
Syntax
DPR_DWORD DP_get_result(DPR_DWORD user_handle, // in
DPR_DWORD timeout, // in
DPR_WORD *req_type, // out
DPC1_REQ_T *result, // out
DP_ERROR_T *error // out
Vista de pagina 107
1 2 ... 103 104 105 106 107 108 109 110 111 112 113 ... 237 238

Comentarios a estos manuales

Sin comentarios