Siemens SIMATIC NET PROFIBUS Wartungshandbuch Seite 113

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 238
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 112
Description of the DP Functions, Data, and Error Codes
DP Base Programming Interface for CP 5613/CP 5614
C79000-G8976-C108-01
113
Parameters
Name Description
user_handle User handle assigned with the DP_open call.
sema_type Type of semaphore:
x
DP_OBJECT_TYPE_INPUT_CHANGE -
Hardware event when slave input data changes.
x
DP_OBJECT_TYPE_DIAG_CHANGE -
Hardware event when diagnostic data changes.
x
DP_OBJECT_TYPE_CYCLE_INT -
Hardware event at the start of a new DP cycle
(reserved for later expansions)
x
DP_OBJECT_TYPE_ASYNC -
Software event on completion of an asynchronous call,
can be fetched with DP_get_result.
x
DP_OBJECT_TYPE_FAST_LOGIC -
Hardware event for fast logic.
Apart from DP_OBJECT_TYPE_ASYNC, the semaphores
can be initialized only once per CP.
sema_handle Address of a variable for the semaphore object. The
returned semaphore object must be used with the Win32
API functions.
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).
Return Value
Name Description
DP_OK The semaphore could be initialized.
other Unsuccessful completion of the function
Seitenansicht 112
1 2 ... 108 109 110 111 112 113 114 115 116 117 118 ... 237 238

Kommentare zu diesen Handbüchern

Keine Kommentare