Sending Diagnostic Data With The Cp 5614 As Dp Slave - Siemens SIMATIC NET CP 5613 Manual

Dp base programming interface
Table of Contents

Advertisement

Description of the DP Functions, Data, and Error Codes

4.3.15 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, 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.
176
DP Base Programming Interface for CP 5613/CP 5614
C79000-G8976-C108-02

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic net cp 5614

Table of Contents