Querying The Current Bus Parameters Of The Master - Siemens SIMATIC NET CP 5613 Manual

Dp base programming interface
Table of Contents

Advertisement

4.3.7

Querying the Current Bus Parameters of the Master

Uses of the Bus Parameter Query
In the process image of the CP 5613/CP 5614, there is a memory area from which
you can read out the current bus parameters, for example,to display them in your
user program.
Note
Writing these values is not permitted and does not change the bus parameters
actually used.
Example
"p" is a pointer to the process image that your user program obtained with the
"DP_get_pointer" call. To display this information in a simple application, you would
write a program similar to that below:
printf("Baudrate -> %d",
The parameters are bytes, words or double words. Refer to the header file for the
formats, structure DPR_ASPC2_BUSPARA_T.
DP Base Programming Interface for CP 5613/CP 5614
C79000-G8976-C108-02
Description of the DP Functions, Data, and Error Codes
p->info_watch. aspc2_buspara.baud_rate);
163

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic net cp 5614

Table of Contents