Diagnostics

Behavior on error - Watchdog and CycleCounter

The EL2262 output terminal features a parameterizable SM watchdog (SyncManager). In each successful EtherCAT cycle this is 'wound up' again or reset. If it is not used over a certain period, the outputs are set to safe state. This period is 100 ms (default). The EL2262 has no PDI watchdog. For time parameterization of the watchdog in the EL2262 please refer to separate page.

As a further diagnostic tool from the perspective of the terminal the EL2262 features CycleCounter monitoring. The two process data variables CycleCounter0 and CycleCounter1 can be assigned values from the control system on a continuous cyclical basis. Based on the consecutive values the EL2262 can detect whether a frame repetition or a LostFrame has occurred. If the terminal fails to detect an increment +1, the internal register 030Dhex increments by 1. This register can be read acyclically, e.g. by the PLC. See also example program 2.

This enables the EL2262 to respond to two special situations:

The following example illustrates the resulting three phases. General signals (as specified by the PLC) are output on channel 1 + 2 of a EL2262 and observed with an oscilloscope.

Diagnostics 1:
Example: error in EL2262 from FW09

In the event of an interruption of the communication, the time response of the terminal function is characterized by the following three phases, cf. Example of error in EL2262 from FW09:

In this example (Fig. Example of error behavior of EL2262 from FW09) the parameterizable behavior from FW09 is already recognizable:

Firmware

CycleCounter monitoring behavior

Watchdog behavior

< FW09

Register 030Dhex: + 1

Outputs: FALSE

>= FW09

Register 030Dhex: + 1, output behavior as parameterized, see below.

output behavior as parameterized, see below.

The procedure for both monitoring situations is as follows:

CycleCounter monitoring (from firmware 09, cf. the example program)

  1. To use the function, the CycleCounter must be operated from the PLC as follows
    Byte 0: 8 bit counter, incremented (+1) in each cycle through the PLC
    Byte 1: Control byte
    • Bit 0 = 0: CycleCounter monitoring disabled
    • Bit 0 = 1: CycleCounter monitoring activated; the counter is evaluated and CC errors are counted in register 030Dhex + 1.
      A counter overflow is detected and not interpreted as an error. If the Counter increment is greater than 1 once and subsequently 1 again, only one PDI error is output, since all the counter values after the event have an increment of 1.
  2. If CycleCounter monitoring is not activated, the EL2262 is unable to detect the non-arrival of data and repeats the data of the last sample until the watchdog has run out.
    In this example the watchdog is set to 25 ms.
Diagnostics 2:
Default output behavior if CycleCounter monitoring is deactivated

If CycleCounter monitoring is activated, the default is output = FALSE.

Diagnostics 3:
Default output behavior if CycleCounter monitoring is activated
  1. If special CycleCounter behavior is required, this can be set in the ESC via ADS:
    • Channel 1: register 0x0F00
    • Bit 0 = TRUE --> parameterization is activated
      Bit 1 to 3: default value for CycleCounter error behavior, see below.
    • Channel 2: register 0x0F01
    • Bit 0 = TRUE --> parameterization is activated
      Bit 1 to 3: default value for CycleCounter error behavior, see below.

For example, a behavior as in Fig. Example: error behavior of EL2262 from FW09 or Parameterized output behavior (system-specific) can be achieved.

Diagnostics 4:
Parameterized output behavior (system-specific)

Notice: the two byte registers 0x0F00 and 0x0F01 should be written simultaneously as 1 word access.

The default values for the CycleCounter behavior are:

Diagnostics 5:

Using the ESC registers

If settings are loaded into ESC registers (in this case 0x0F00, for example), they are retained until they are overwritten or until the system is de-energized. If the system was de-energized, the required values have to be re-loaded into the registers.

Watchdog monitoring (from firmware 09, cf. the example program)

If special watchdog behavior is required, this can be set in the ESC via ADS:

  1. Channel 1: register 0x0F00
    • Bit 0 = TRUE --> parameterization is activated
    • Bit 4 to 6: default value for watchdog, see below
  2. Channel 2: register 0x0F01
    • Bit 0 = TRUE --> parameterization is activated
    • Bit 4 to 6: default value for watchdog, see below
  3. The default behavior for watchdog monitoring is output=FALSE

Notice: the two byte registers 0x0F00 and 0x0F01 should be written simultaneously as 1 word access.

The default values for the watchdog behavior are:

Diagnostics 6:

Using the ESC registers

If settings are loaded into ESC registers (in this case 0x0F00, for example), they are retained until they are overwritten or until the system is de-energized. If the system was de-energized, the required values have to be re-loaded into the registers.