Siemens SIMATIC NET PROFIBUS Manual de servicio Pagina 91

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 238
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 90
Description of the DP Functions, Data, and Error Codes
DP Base Programming Interface for CP 5613/CP 5614
C79000-G8976-C108-01
91
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 write data record 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_DS_WRITE_S
{
DPR_BYTE slot_number; // in
DPR_BYTE index; // in
DPR_BYTE length_m; // in
DPR_BYTE data_m[DPR_DPC1_MAX_LENGTH];
// in
} DP_DS_WRITE_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).
For information on the elements slot_number and index,
please refer to the slave description.
The length_m element specifies the length of the data to
be sent to the slave in data_m.
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 90
1 2 ... 86 87 88 89 90 91 92 93 94 95 96 ... 237 238

Comentarios a estos manuales

Sin comentarios