Siemens SIMATIC NET PROFIBUS Instrukcja Obsługi Strona 129

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 238
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 128
Description of the DP Functions, Data, and Error Codes
DP Base Programming Interface for CP 5613/CP 5614
C79000-G8976-C108-01
129
4.2.7 DPS_get_gc_command
Purpose
This function queries the last received global control command sent by the master
controlling this slave. This function simply provides information for the user
program and no reaction is required by the user program to process the global
control frame.
Syntax
DPR_DWORD DPS_get_gc_command(
DPR_DWORD user_handle, // in
DPR_WORD *gc_cmd, // out
DP_ERROR_T *error); // out
Parameters
Name Description
user_handle User handle assigned with the DPS_open call.
gc_cmd Last received global control command
The global control information is represented in bits. It is
possible that more than one bit is set at the same time. The
structure corresponds to the "global control byte" of EN
50170:
DPS_CLEAR master is in the CLEAR mode.
DPS_FREEZE inputs are adopted and frozen.
DPS_UNFREEZE inputs are updated cyclically
again.
DPS_SYNC outputs are updated once.
DPS_UNSYNC outputs are updated cyclically
again.
error
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).
Przeglądanie stron 128
1 2 ... 124 125 126 127 128 129 130 131 132 133 134 ... 237 238

Komentarze do niniejszej Instrukcji

Brak uwag