Siemens SIMATIC NET PROFIBUS Manuel de service Page 76

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 238
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 75
Description of the DP Functions, Data, and Error Codes
DP Base Programming Interface for CP 5613/CP 5614
76
C79000-G8976-C108-01
4.1.7 DP_close
Purpose
With this function, a DP user program logs off for communication at the CP.
Note 1
If the logoff was successful, the user handle is no longer valid and must not
continue to be used. The pointer to the dual-port RAM obtained with the
DP_get_pointer function is also no longer valid.
Note 2
To shut down the DP master, your user program should first change the master to
the OFFLINE mode with the DP_set_mode function.
Note 3
To disconnect the CP completely from the bus, your application can then use the
DP_reset_cp function.
Syntax
DPR_DWORD DP_close (DPR_DWORD user_handle, // in
DP_ERROR_T *error ); // out
Parameters
Name Description
user_handle User handle assigned with the DP_open call.
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).
Vue de la page 75
1 2 ... 71 72 73 74 75 76 77 78 79 80 81 ... 237 238

Commentaires sur ces manuels

Pas de commentaire