
Description of the DP Functions, Data, and Error Codes
DP Base Programming Interface for CP 5613/CP 5614
166
C79000-G8976-C108-01
4.3.14 Sending Diagnostic Data with the CP 5614 as DP Slave
Integration in the CP 5613/CP 5614
The slave module of the CP 5614 can transfer its diagnostic data to the controlling
master. The diagnostic data area with slave index 127 is not used (since this
functions only in the receive direction), but rather a C function.
For information on the format of the diagnostic data, see Section 4.6.
Example of Sending Diagnostic Data
"h" is the user handle obtained by your user program with the DPS_open call. Then
10 bytes of the user diagnostic data of the slave module are sent as follows from a
local buffer "buf":
/* Transfer diagnostic data to the slave module */
DPS_set_diag(h, diag_buf, 10, 0, &err);
Note
The diagnostic data are only accepted by the master when the slave module of the
CP 5614 is in the READY state and the master controlling the slave is in the
CLEAR, AUTOCLEAR or OPERATE mode.
Komentarze do niniejszej Instrukcji