Siemens SIMATIC NET PROFIBUS Instrukcja Obsługi Strona 85

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 238
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 84
Description of the DP Functions, Data, and Error Codes
DP Base Programming Interface for CP 5613/CP 5614
C79000-G8976-C108-01
85
4.1.12 DP_global_ctrl
Purpose
With this function, a global control command can be sent to one or more slaves.
Note
Slaves are assigned to a slave group when the DP database is configured.
Syntax
DPR_DWORD DP_global_ctrl(
DPR_DWORD user_handle, // in
DPR_WORD slv_add, // in
DPR_BYTE command, // in
DPR_BYTE group, // in
DP_ERROR_T *error ); // out
Parameters
Name Description
user_handle User handle assigned with the DP_open call.
slv_add Address of the slave or group address
(DP_BROADCAST_ADR)
command
Here, the following global control commands can be
specified (they can also be ORed):
DP_SYNC: freeze the output bytes
DP_UNSYNC: cancel the DP_SYNC command
DP_FREEZE: the states of the inputs are read in
and frozen
DP_UNFREEZE:cancel the DP_FREEZE command
group Slave group to be addressed, where bit 0 means group 1,
bit 1 group 2 etc. The bits can also be ORed.
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 84
1 2 ... 80 81 82 83 84 85 86 87 88 89 90 ... 237 238

Komentarze do niniejszej Instrukcji

Brak uwag