Dp_Slv_State - Siemens SIMATIC NET CP 5613 Manual

Dp base programming interface
Table of Contents

Advertisement

4.1.10 DP_slv_state

Purpose
With this function, you can change the state of a DP slave while the DP user
program is running. The slave can either be taken out of processing or can be
activated again. You can also change the AUTOCLEAR property of a slave.
Using the slave address 0xFF and slv_mode == DP_AUTOCLEAR_ON/
DP_AUTOCLEAR_OFF, you can activate or deactivate the AUTOCLEAR property.
As an option, selected single slaves (slv_add != 0xFF) can be included or removed
from the AUTOCLEAR processing.
Note 1
If the AUTOCLEAR property is configured in the database, the AUTOCLEAR
property of all slaves is already activated.
Note 2
If the AUTOCLEAR property was not configured in the database and you want to
activate it you must first activate the AUTOCLEAR property generally (slave
address 0xFF) and then activate the AUTOCLEAR property of the indicvidual
slaves.
Syntax
DPR_DWORD
DP Base Programming Interface for CP 5613/CP 5614
C79000-G8976-C108-02
Description of the DP Functions, Data, and Error Codes
DP_slv_state(DPR_DWORD user_handle,
DPR_WORD
DPR_WORD
DP_ERROR_T *error );
slv_add;
slv_mode,
// in
// in
// in
// out
83

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic net cp 5614

Table of Contents