Siemens SIMATIC NET CP 5613 Manual page 93

Dp base programming interface
Table of Contents

Advertisement

Parameters
Name
user_handle
request
error
DP Base Programming Interface for CP 5613/CP 5614
C79000-G8976-C108-02
Description of the DP Functions, Data, and Error Codes
User handle assigned with the DP_open call.
Pointer to DP-V1 structure DPC1_REQ_S with entries for
the write data record job.
typedef struct DPC1_REQ_S
{
DPR_WORD
DPR_DWORD
union
{
DP_DS_READ_T
DP_DS_WRITE_T
DP_ALARM_ACK_T
DP_ENABLE_EVT_T
DP_GET_CFG_T
}req;
} DPC1_REQ_T;
where
typedef struct DP_DS_WRITE_S
{
DPR_BYTE slot_number;
DPR_BYTE index;
DPR_BYTE length_m;
DPR_BYTE data_m[DPR_DPC1_MAX_LENGTH];
} 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.
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).
Description
order_id;
c_ref;
dp_ds_read;
dp_ds_write;
dp_alarm_ack;
dp_enable_evt;
dp_get_cfg;
// in
// in
// in
// in
// in
// in
93

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic net cp 5614

Table of Contents