Lenze DDS System bus CAN for PLC Manuel d'utilisateur Page 147

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 178
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 146
System bus (CAN) for Lenze PLC devices
LenzeCanDrv.lib function library
10.4 L_CanClose − deactivating the CAN driver
10−5
L
PLC−Systembus EN 2.0
10.4 L_CanClose − deactivating the CAN driver
Function
BOOL L_CanClose (wDrvNr)
By means of this function the CAN driver is deactivated.
· Transmission and reception tasks which are still available are cancelled when this function is
called.
L_CanClose
wDrvNr
Transfer parameters
Identifier Data type Possible settings Notes
wDrvNr Word 10 System bus
Return value
Data type Value Meaning Priority
Bool
0 Error while activating the driver
(incorrect driver number, or driver was not initialised.)
1 Driver has been deactivated.
Example
Calling the function in ST:
(* close CAN driver − returns g_bCanCloseState *)
g_bCanCloseState := L_CanClose(10)
Vue de la page 146
1 2 ... 142 143 144 145 146 147 148 149 150 151 152 ... 177 178

Commentaires sur ces manuels

Pas de commentaire