Siemens SIMATIC NET PROFIBUS Wartungshandbuch Seite 97

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 238
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 96
Description of the DP Functions, Data, and Error Codes
DP Base Programming Interface for CP 5613/CP 5614
C79000-G8976-C108-01
97
Parameters
Name Description
user_handle User handle assigned with the DP_open call.
request
Pointer to DP-V1 structure DPC1_REQ_S with entries for
the acknowledge alarm job.
typedef struct DPC1_REQ_S
{
DPR_WORD order_id; // in
DPR_DWORD c_ref; // in
union
{
DP_DS_READ_T dp_ds_read;
DP_DS_WRITE_T dp_ds_write;
DP_ALARM_ACK_T dp_alarm_ack;
DP_ENABLE_EVT_T dp_enable_evt;
DP_GET_CFG_T dp_get_cfg;
}req;
} DPC1_REQ_T;
where
typedef struct DP_ALARM_ACK_S
{
DPR_BYTE slot_number; // in
DPR_BYTE alarm_type; // in
DPR_BYTE specifier; // in
} DP_ALARM_ACK_T;
The order_id is a job identifier assigned by the user
program. The identifier is returned unchanged in the
asynchronous confirmation and can be used to identify the
job to which the confirmation belongs.
The c_ref element specifies the slave. The value of c_ref
can be obtained using the function DP_get_cref(user_id,
slv_add).
The slot_number, alarm_type, and specifier elements are
taken from the received slave alarm.
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).
Seitenansicht 96
1 2 ... 92 93 94 95 96 97 98 99 100 101 102 ... 237 238

Kommentare zu diesen Handbüchern

Keine Kommentare