Siemens SIMATIC NET PROFIBUS Manual de servicio Pagina 100

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 238
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 99
Description of the DP Functions, Data, and Error Codes
DP Base Programming Interface for CP 5613/CP 5614
100
C79000-G8976-C108-01
Parameters
Name Description
user_handle User handle assigned with the DP_open call.
request
Pointer to DP-V1 structure DPC1_REQ_S with entries for
the DP_get_actual_cfg job.
typedef struct DPC1_REQ_S
{
DPR_WORD order_id; // in
DPR_DWORD c_ref; // in
union
{
DP_DS_READ_T dp_ds_read;
DP_DS_WRITE_T dp_ds_write;
DP_ALARM_ACK_T dp_alarm_ack;
DP_ENABLE_EVT_T dp_enable_evt;
DP_GET_CFG_T dp_get_cfg;
}req;
} DPC1_REQ_T;
where
typedef struct DP_GET_CFG_S
{
DPR_BYTE length_s; // out
DPR_BYTE data_s[DPR_SLAVE_DATA_SIZE];
// out
} DP_GET_CFG_T;
The order_id is a job identifier assigned by the user
program. The identifier is returned unchanged in the
asynchronous confirmation and can be used to identify the
job to which the confirmation belongs.
The c_ref element specifies the slave. The value of c_ref
can be obtained using the function DP_get_cref(user_id,
slv_add).
The length_s element specifies the length of the data
received from the slave. The received data are entered in
data_s (see Section 4.7).
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 99
1 2 ... 95 96 97 98 99 100 101 102 103 104 105 ... 237 238

Comentarios a estos manuales

Sin comentarios