4 l_canclose - deactivating the can driver, 4 l_canclose − deactivating the can driver, System bus (can) for lenze plc devices – Lenze DDS System bus CAN for PLC User Manual

Page 147: Lenzecandrv.lib function library

Advertising
background image

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)

Advertising