
Description of the DP Functions, Data, and Error Codes
DP Base Programming Interface for CP 5613/CP 5614
C79000-G8976-C108-01
83
4.1.11 DP_read_slv_par
Purpose
This function queries the parameters of a currently active DP slave of the
CP 5613/CP 5614.
Syntax
DPR_DWORD DP_read_slv_par (DPR_DWORD user_handle,// in
DPR_WORD slv_add, // in
DPR_WORD type, // in
DPR_WORD *data_len; // out
DPR_BYTE *data; // out
DP_ERROR_T *error ); // out
Parameters
Name Description
user_handle User handle assigned with the DP_open call.
slv_add Address of the slave
type Required data type (see Section 4.7):
DP_SLV_TYP: General slave parameters
DP_SLV_PRM: Parameter assignment data
DP_SLV_CFG: Configuration
DP_SLV_ADD_TAB: Add tab data
DP_SLV_USR: User-specific data
With the last two, no data are supplied.
data_len
Address of a length variable - the number of valid bytes in
the data buffer is entered here.
data Pointer to a data area - the data area must be at least
DP_PAR_SIZE long (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).
Kommentare zu diesen Handbüchern