2 initialisation of the can driver, Initialisation of the can driver, Function library "lenzeio1000drv – Lenze Function library LenzeIO1000Drv User Manual

Page 9

Advertising
background image

DMS 1.0 EN - 07/2011 - TD05

L

9

Function library "LenzeIo1000Drv"

Project planning concept

Initialisation of the CAN driver

3.2

Initialisation of the CAN driver

The "LenzeIo1000Drv.lib" function library for the L-force I/O system 1000 is based on a

library for transmitting and receiving CAN objects. Depending on the PLC version, the "CAN

on board" or an optional fieldbus card can be used as communication channel.

9400 ServoPLC
For using the "LenzeCanMsg.lib" library, an initialisation of the CAN driver with L_CanInit

function block call is required. This function block must only be called once. Thus, best use

the "PLC_START" system event for calling this function.
The L_CanInit function block outputs information on the communication channel used via

its dwHandle output. This information must be provided to the blocks of the

"LenzeIo1000Drv.Lib" via the dwHandle input.

Drive PLC, 9300 Servo PLC, ECS
For using the "LenzeCanDrv.lib" library, an initialisation of the CAN driver with the

L_CanInit function call is required. This function must only be called once. Thus, best use

the system POU "PLC_ColdStart" for calling this function.
The L_CanInit function returns information on the communication channel used via the

dwHandle variable. This information must be provided to the blocks of the

"LenzeIo1000Drv.Lib" via the dwHandle input.

Advertising