
Description of the DP Functions, Data, and Error Codes
DP Base Programming Interface for CP 5613/CP 5614
120
C79000-G8976-C108-01
4.2.2 DPS_open
Purpose
With this function, a DPS user program logs on at the driver and sets the slave
parameters. If successful, the function returns a user handle. The user handle must
be included in all further function calls.
Note 1
In the slave mode DPS_SM_SIMPLE, the input data are taken automatically from
the default data of the slave module. If the slave is not operated in the
DPS_SM_SIMPLE mode, the input data of the slave module must be initialized
after receiving the positive confirmation of a configuration frame (in other words
they must be written).
Syntax
DPR_DWORD DPS_open (
DPR_STRING *cp_name, // in
DPR_DWORD *user_handle, // out
DPR_DWORD slave_mode, // in
DPR_WORD station_addr, // in
DPR_WORD addr_change, // in
DPR_WORD pno_ident_nr, // in
DPR_WORD user_wd, // in
DPS_INIT_DATA_T *init_data, // in
DPS_MAX_DATA_T *max_data, // in
DPR_WORD baud_rate, // in
DP_ERROR_T *error); // out
Comentarios a estos manuales