Siemens SIMATIC NET CP 5613 Manual page 146

Dp base programming interface
Table of Contents

Advertisement

Description of the DP Functions, Data, and Error Codes
Table continued from previous page
Name
data_len
data_blk
error
Data Structure (for data_blk parameter)
The content of the data_blk data structure depends of the type of indication.
Indication
DPS_CHK_PRM
DPS_CHK_CFG
DPS_NEW_SSA
DPS_BAUD_
CHANGED
DPS_GO_
LEAVE_DATA_
EX
DPS_NEW_GC
146
Maximum length of the data_blk array when the function is
called, number of bytes entered when the function returns - The
constant DPS_MAX_PDU_LEN should be used for the call.
The indication data for the particular indication are entered in
this array (see next section: Data Structure).
Address of a structure provided by the user program of the type
DP_ERROR_T. If an error occurred, the structure contains
details for troubleshooting (see Section 4.4).
Content of the data_blk Data Structure
DPR_BYTE user_prm_data[ ];
User parameter assignment data of the master, without the
standard section.
DPR_BYTE cfg_data[ ];
Configuration data of the master
DPR_WORD
new_address;
DPR_WORD
ident_number;
DPR_WORD
no_addr_chg;
DPR_BYTE
user_data[ ];
Data structure containing the new station address, the
identification number, the enabling of address changes, and
the user data.
All information is represented in the Intel format.
DPR_WORD
state;
DPR_WORD
baudrate;
Data structure , see DPS_get_baud_rate (see
Section 4.2.6).
DPR_WORD
dps_state;
see DPS_get_state parameter (see Section 4.2.8).
DPR_WORD
gc_command;
see DPS_get_gc_command parameter (see Section 4.2.7).
DP Base Programming Interface for CP 5613/CP 5614
Description
C79000-G8976-C108-02

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic net cp 5614

Table of Contents