5 l_cangetstatus - querying the driver status, 5 l_cangetstatus − querying the driver status, System bus (can) for lenze plc devices – Lenze DDS System bus CAN for PLC User Manual

Page 148: Lenzecandrv.lib function library

Advertising
background image

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);

Advertising