Siemens SIMATIC NET PROFIBUS Wartungshandbuch Seite 142

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 238
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 141
Description of the DP Functions, Data, and Error Codes
DP Base Programming Interface for CP 5613/CP 5614
142
C79000-G8976-C108-01
4.2.12 DPS_calc_io_data_len
Purpose
This function calculates the input/output data length from any configuration frame.
This function is intended to provide information for the user program, so that it does
not need to evaluate the ID bytes of the configuration frame itself. Any
configuration frame can be evaluated.
Syntax
DPR_DWORD DPS_calc_io_data_len (
DPR_WORD cfg_len, // in
DPR_BYTE *cfg_data, // in
DPR_WORD *in_data_len, // out
DPR_WORD *out_data_len, // out
DP_ERROR_T *error ); // out
Parameters
Name Description
cfg_len Length of the configuration data
cfg_data Pointer to the configuration data
in_data_len Pointer to the calculated input data length
out_data_len Pointer to the calculated output data length
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 Successful completion of the function
other Unsuccessful completion of the function
Seitenansicht 141
1 2 ... 137 138 139 140 141 142 143 144 145 146 147 ... 237 238

Kommentare zu diesen Handbüchern

Keine Kommentare