4 l_etc_diagnostic, 5 l_etc_evtparam_parametertransfer, L_etc_diagnostic – Lenze EtherCAT Controller-based Automation User Manual

Page 156: L_etc_diagnostic ( 156), Block is called, 9function library l_iodrvethercat.lib

Advertising
background image

9

Function library L_IODrvEtherCAT.lib

9.7

Data types

156

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

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

9.7.4

L_ETC_DIAGNOSTIC

The L_ETC_DIAGNOSTIC type describes diagnostic information which is returned e.g. via the

L_ETC_GetMasterDiagnostic (FB)

( 144)

function block.

9.7.5

L_ETC_EVTPARAM_PARAMETERTRANSFER

The type L_ETC_EVTPARAM_PARAMETERTRANSFER describes parameter transfer to a particular

EtherCAT node or to all EtherCAT nodes.
(See also

L_ETC_PARAMETERTRANSFERSERVICE_CODE

( 158)

)

TYPE L_ETC_DIAGNOSTIC :
STRUCT
wState : L_ETC_STATE; // Master state
stState : STRING; // Master state as text

xEthernetLinkup : BOOL; // Link up
xNotAllSlavesOperational : BOOL; // Indicates that not all slaves set in
operational

udiFrameCounter : UDINT; // Ethernet frame counter
udiFrameResponseErrorCounter : UDINT; // Frame loss counter
udiCycWorkingCounterErrorCounter : UDINT; // WKC error counter

xBusMismatch : BOOL; // Configuration and topology mismatch
uiNumberOfSlavesFound : UINT; // Number of found slaves
uiNumberOfSlavesConfigured : UINT; // Number of slaves configured

dwLastErrorCode : DWORD; // Last error
stLastError : STRING; // Last error as string

xDC_Enabled : BOOL; // DC in use
xDC_InSync : BOOL; // DC all slaves are in-sync
xDC_Busy : BOOL; // DC re-sync running
diDC_CurrentDeviation : DINT; // DC current deviation

udiEmergencyNo : UDINT; // COE Emergency Counter

END_STRUCT
END_TYPE

TYPE L_ETC_EVTPARAM_PARAMETERTRANSFER :
(wService, // Parameter transfer service
// (start: 16#0001, state: 16#0002, done: 16#0004, abort: 16#8000)
uiDevice // EtherCAT address (All devices: 16#FFFF)
) WORD;

(dwResult // Local parameter transfer in progress (wired OR)
) DWORD;
END_TYPE

Advertising