Basic function principles

The EL6720 Lightbus master terminal is based on the characteristics of the FC2001/FC2002 master cards. The fieldbus cards are installed in the PC and are controlled directly by TwinCAT. The EL6720, however, is operated via the EtherCAT fieldbus.

For the EL6720 please note:

Basic information on diagnostics

The following information is available for Lightbus diagnostics via the EL6720:

Basic function principles 2:
EL6720 – Status information in the CoE-Online tab

In addition it is advisable to diagnose the actual IO boxes, e.g. BK2000 coupler diagnosis in this example.

Basic function principles 3:
BK2000 – Status information

Operation in the event of a Lightbus error

If a Lightbus device fails or the Lightbus connection is interrupted, continuous communication is no longer possible. The Lightbus master where the line interruption can be found. Once the interruption has been rectified, the Lightbus master has to be restarted.

Recommended procedure in the event of a fault:

  1. Read the diagnostic information from the CoE list of the EL6720, e.g. from the PLC via ADS
    See the diagnostics example program. (Download)
  2. Repair or rectification of the fault
  3. The EL6720 is then in EtherCAT state SafeOp_Err and has to be reset:
    • Clear Error
    • Carry out the LowIntensityTest in the EL6720 (see CoE-overview xFA00:01 for any warnings)
    • Set to OP
      This can be done manually in the System Manager or, for example, from the PLC via FB_EcReqSlaveState from the TcEtherCAT.lib.

Optical fiber reset/attenuation test

The Lightbus route can be subjected to an attenuation test via the EL6720. This attenuation test takes place by sending selected test telegrams at 80% transmission power for all modules

AoE

If ADS-capable devices are integrated in the Lightbus ring, they can be addressed in the chain TwinCAT --> EtherCAT --> EL6720 -> IO box (and back) with ADS and the ADS address. To enter the ADS route via the EL6720, the EL6720 offers the AoE address in the configuration:

Basic function principles 4:
AoE Address

Example program for Lightbus diagnostics

This example program
Basic function principles 5: (Download)
illustrates how the PLC can read information from the EL6720 via the Lightbus mode. The reset process in the event of an error is also demonstrated. It is based on the data from the FC200x. The FB consolidates the data from EL6720/EtherCAT and DeviceLightbus to a diagnostic structure.

The analysis of the maximum number of CDL (3) is demonstrated by linking a PLC project with 3 tasks with cycle times of 1, 10 and 100 ms.

Basic function principles 6:
Display EL6720 Lightbus master hardware and Lightbus device in the TwinCAT tree