Siemens SIMATIC NET PROFIBUS Instrukcja Obsługi Strona 155

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 238
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 154
Description of the DP Functions, Data, and Error Codes
DP Base Programming Interface for CP 5613/CP 5614
C79000-G8976-C108-01
155
4.3.7 Querying 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.
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",
p->info_watch. aspc2_buspara.baud_rate);
The parameters are bytes, words or double words. Refer to the header file for the
formats, structure DPR_ASPC2_BUSPARA_T.
Przeglądanie stron 154
1 2 ... 150 151 152 153 154 155 156 157 158 159 160 ... 237 238

Komentarze do niniejszej Instrukcji

Brak uwag