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

  • 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 160
System bus (CAN) for Lenze PLC devices
LenzeCanDSxDrv.lib function library
11.4 L_CanDSxOpen − initialising the CanDSx driver
11−5
L
PLC−Systembus EN 2.0
11.4 L_CanDSxOpen − initialising the CanDSx driver
Function
By means of this function the CanDSx driver is initialised in the operating system of the PLC.
· For the initialisation the transfer parameter bOpen has to be set to TRUE.
· After this function has been carried out, index accesses via the system bus interface are
accordingly diverted to other codes than to the ones which are automatically allocated, using
the mapping table configured by means of the function L_CanDSxIndexInitCode.
Declaration
DWORD L_CanDSxOpen (bOpen);
Transfer parameters Data type Information/possible settings
bOpen Bool Initialising the CanDSx driver in the operating system.
TRUE The CanDSx driver in the operating system is initialised.
Return value Data type Value/meaning
Double word Status
Bit Value
0 0 Driver is initialised.
1 Driver is not initialised.
· Remedy: function call via transfer parameter bOpen = TRUE.
1−15 Reserved for future supplements (bits are set to 0).
· Invalid for bit 0 = 1
16−31 Version of the LenzeCanDSxDrv.lib
function library
· Format: main version/subversion (e. g. 0103hex = version 1.03)
· Invalid for bit 0 = 1
Note!
If the function L_CanDSxOpenis called up while write or read requests for codes are still active, they
are possibly disturbed!
Therefore all actions with a code access should be completed before this function is called.
Example
Calling the function in ST:
IF bOpenCanDSxDriver AND NOT bOpen THEN
bOpen := TRUE;
dwReturnOpen := L_CanDSxOpen(bOpen:=TRUE);
END_IF
Vue de la page 160
1 2 ... 156 157 158 159 160 161 162 163 164 165 166 ... 177 178

Commentaires sur ces manuels

Pas de commentaire