Sending 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.13 Sending Data with the CP 5614 as DP Slave

Integration in the Process Image of the CP 5613/CP 5614
The send data of the slave module are in the output image with slave index 127.
Writing the output data area with slave index 127 supplies the slave module with
new data that the controlling master reads as inputs.
Example of Consistent Writing
"p" is a pointer to the process image that your user program obtained with the
"DP_get_pointer" call. Then 200 bytes from a local buffer "buf" are written to the
slave module as send data as follows:
/* Copy data */
memcpy(&p->pi.slave_out[127].data[0], buf, 200);
/* Trigger transfer */
p->ctr. D_out_slave_adr = 127;
The data is now transferred to the slave module. Here, the controlling master can
read the data as inputs.
Note
The send data are only accepted by the master when the slave module of the
CP 5614 is in the READY state and the master is in the CLEAR, AUTOCLEAR or
OPERATE mode.
174
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