9function library l_iodrvethercat.lib – Lenze EtherCAT Controller-based Automation User Manual

Page 111

Advertising
background image

Lenze · Controller-based Automation · EtherCAT® Communication Manual · DMS 6.4 EN · 04/2014 · TD17

111

9

Function library L_IODrvEtherCAT.lib

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

The function blocks of the function library L_IODrvEtherCAT.lib have inputs and outputs for ...

• activation of the POU;
• display of the current POU state;
• output of error messages.

Input/output

Data type

Action

xExecute

BOOL

In the case of a positive edge (TRUE), the function block is executed.

xAbort

BOOL

The xAbort input for aborting requested services is currently not supported

in the Lenze R3.x control technology.

xDone

BOOL

If a function block has been executed, xDone is set to TRUE and xBusy is set

to FALSE.

• If xExecute has been reset, xDone is only active during the function block

call.

• If xExecute = TRUE, then xDone = TRUE as long as xExecute is reset.

xBusy

BOOL

As long as a function block is executed, xBusy is TRUE and xDone is FALSE.

xError

BOOL

If an error has occurred, bError is set to TRUE.

• In the eErrorCode output, the error code is shown. The error code is an

enumeration of the L_ETC_ERRORCODE type.

• By implementing the error code as enumeration, an error is shown as a

string in the online mode.

General error codes (L_ETC_ERRORCODE) ( 183)

SDO abort codes ( 195)

xAborted

BOOL

The xAborted output for aborting requested services is currently not

supported in the Lenze R3.x control technology.

Advertising