Lenze DDS System bus CAN for PLC Manual do Utilizador Página 148

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 178
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 147
10.5 L_CanGetStatus − querying the driver status
System bus (CAN) for Lenze PLC devices
LenzeCanDrv.lib function library
10−6
L
PLC−Systembus EN 2.0
10.5 L_CanGetStatus − querying the driver status
Function
DWORD L_CanGetStatus (wDrvNr)
By means of this function the status of the CAN driver can be determined.
L_CanGetStatus
wDrvNr
Transfer parameters
Identifier Data type Possible settings Information
wDrvNr Word 10 System bus
Return value
Data type Bit Value Meaning Priority
Double Word 0, 1
0 CAN driver is Operational.
1 CAN driver is not available or not initialised.
· In this case the bits 16 ... 31 are all set to "1" and therefore are invalid.
2 CAN driver is Pre−operational.
3 CAN driver is stopped.
Double Word
2...15 Reserved for future supplements (bits are set to "0").
16...31 Version of the CAN driver
Format: main version/subversion (e. g. 0103hex = version 1.03)
Example
Calling the function in ST:
g_dwCanDrvState:=L_Can_GetStatus(10);
Vista de página 147
1 2 ... 143 144 145 146 147 148 149 150 151 152 153 ... 177 178

Comentários a estes Manuais

Sem comentários