Watchdog

This output channel is equipped with a safety device (watchdog). This moves the output to a predefined setpoint if process data traffic to the output device is interrupted.

Setting the watchdog time

The watchdog time, i.e. the time at which the watchdog case is triggered, is set via the general TwinCAT dialog "Advanced Settings" -> General -> Behavior -> Watchdog -> "Set Multiplier" and "SM Watchdog" (SM = SyncManager).

Watchdog 1:

Notes on settings

  • The setting will only take effect after activating and restarting TwinCAT!
  • This setting applies to the entire device (all channels).
Watchdog 2:Fig.175: Watchdog settings, here: 100 ms

Watchdog time [ms] = Multiplier * SM Watchdog [ms]

A maximum watchdog time of 65 s is possible. Larger values are calculated modulo 65, for example 70 s would be shortened to 5 s.

Notice

Watchdog 3:

General notes on watchdog settings

Observe the general notes on the watchdog settings.

Sequence of the watchdog case

The sequence is as follows:

Setting the watchdog behavior

The following settings can be made for the watchdog, starting from index 0x80n0:05 "Watchdog Type":

Watchdog 4:Fig.176: Selection "Watchdog Type"
Watchdog 5:Fig.177: Indices for watchdog settings

Values Index 0x80nD,
“Watchdog Value”

Meaning

Default watchdog value (default)

The analog output value is set without transition to the user-specific substitute value/setpoint according to index 0x80n0:13 or index 0x80nD:1A (default: 0)

Watchdog Ramp

Likewise, substitute value/setpoint according to index 0x80n0:13 or index 0x80nD:1B, but linear ramp to that point. The gradient of the ramp must be specified in relation to AEWnom

  • per index 0x80n0:14 [digit/ms]
  • or time duration index 0x80nD:1B [sec].

If, for example, a gradient of 2 V/sec is required with AEWnom = 10 V, the "Watchdog Ramp (Real32)" = 5 [sec] or (with "Extended Range" -> 327 µV/digit) "Watchdog Ramp" = 6 [digit/ms].

Default value: 0 (no ramp)

Last Output value

Last output value remains

Examples

An EL4078 outputs a staircase signal, watchdog time set to 1 second, substitute value 7 V. Demonstration of various events:

Watchdog 6:

Watchdog Counter

Each watchdog event is counted in index 0x90n0:05 “Watchdog Counter” (secured against power failure).

Notice

Note on resetting the watchdog counters

As the watchdog is a device property, it is displayed for each output channel but has the same value for all channels. When a watchdog counter is reset, all other channel-specific watchdog counters are also reset.

The counter is reset

Watchdog 7:Fig.173: CoE Index 0xFB00, „DEV Command“

During command execution, "Status" 255 "busy" is displayed in index 0xFB00:02, "0" means "successfully completed"
The firmware responds to an unknown command with

Watchdog 8:Fig.174: General parameter incompatibility reason, 0x06040043