6 l_etc_errorcode, 7 l_etc_ioctloparms, 8 l_etc_language – Lenze EtherCAT Controller-based Automation User Manual

Page 157: 9 l_etc_slave_ports, L_etc_errorcode, L_etc_ioctloparms, L_etc_language, L_etc_slave_ports, L_etc_ioctloparms ( 157), Type

Advertising
background image

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

157

9

Function library L_IODrvEtherCAT.lib

9.7

Data types

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

9.7.6

L_ETC_ERRORCODE

The type L_ETC_ERRORCODE describes all possible EtherCAT error codes that can be output at the

eErrorCode output of the EtherCAT function blocks.
A detailed description of the EtherCAT error codes is provided in the chapter entitled "Diagnostics":

General error codes (L_ETC_ERRORCODE)

( 183)

SDO abort codes

( 195)

9.7.7

L_ETC_IOCTLOPARMS

The L_ETC_IOCTLOPARMS type describes the reference to the I/O buffer e.g. for the

L_ETC_IoControl

(FUN)

( 139)

function.

9.7.8

L_ETC_LANGUAGE

The L_ETC_LANGUAGE type describes the languages in which e.g. an error text can be output via the

L_ETC_GetErrorString (FUN)

( 143)

function.

9.7.9

L_ETC_SLAVE_PORTS

The type L_ETC_SLAVE_PORTS describes ports 0 ... 3 of the EtherCAT slaves.

TYPE L_ETC_IOCTLOPARMS :
STRUCT
pbyInBuf : POINTER TO BYTE; // Input data buffer
dwInBufSize : DWORD; // Size of input data buffer in bytes
pbyOutBuf : POINTER TO BYTE; // Output data buffer
dwOutBufSize : DWORD; // Size of output data buffer in bytes
pdwNumOutData : POINTER TO DWORD; // Number of output data bytes stored in
// output data buffer
END_STRUCT
END_TYPE

TYPE L_ETC_LANGUAGE :
(
eng, // english
de // german
);
END_TYPE

TYPE L_ETC_SLAVE_PORTS :
STRUCT
Port0 : BYTE; // Slave port 0
Port1 : BYTE; // Slave port 1
Port2 : BYTE; // Slave port 2
Port3 : BYTE; // Slave port 3

END_STRUCT
END_TYPE

Advertising