4 error scenario (example), Error scenario (example), Control technology | ethercat communication manual – Lenze EtherCAT control technology User Manual

Page 139

Advertising
background image

DMS 3.1 EN 01/2011 TD17

L

139

Control technology | EtherCAT communication manual

Diagnostics

Diagnostics with the »PLC Designer«

11.2.4

Error scenario (example)

A slave is switched off or removed from the bus system while the system is in operation.
During operation, the master cyclically sends EtherCAT commands to read the process data

from the slave and to write process data to the slave. The working counter (WKC) is

incremented by the corresponding value through the slaves.
When a slave is switched off or removed, the master generates the

EC_NOTIFY_CYCCMD_WKC_ERROR notification to indicate such an event.
The slave can be re-commissioned by calling the function block SMC_ResetAxisGroup

(SM_DriveBasic.lib function library) or by a bus restart within the PLC program . (The

distributed clocks are synchronised and the EtherCAT bus is in the Operational state.)

Bus restart
Since the SMC_ResetAxisGroup function block cannot be used in logic systems, you must

program a bus restart in your PLC program. A bus restart is executed through call sequence

of the following function blocks:

1.

ecatStopAsync (FB)

( 101)

2.

ecatStartAsync (FB)

( 100)

3.

ResetMasterStatus (FB)

( 114)

For a more detailed analysis of a problem, function blocks (see

EtherCAT function libraries

( 96)

), EtherCAT parameters (see

Parameter reference

( 165)

) and the IPC logbook

( 140)

are available.

Advertising