Example program 4: Parameterization of the CycleCounter and watchdog behavior

Example program 4: Parameterization of the CycleCounter and watchdog behavior 1: Download (sample file)

This example uses a TwinCAT 3 PLC program to demonstrate the behavior of an EL2262 with regard to the CycleCounter and Watchdog cases.

The example is also applicable to the EL1262-0010.

Data:

In the Settings dialog of the terminal the SyncManager watchdog time is set to 25 ms.

Example program 4: Parameterization of the CycleCounter and watchdog behavior 2:Fig.217: System Manager Watchdog Time

After starting the PLC, the CycleCounter and the Watchdog behavior for each channel can be set online:

Example program 4: Parameterization of the CycleCounter and watchdog behavior 3:

It is loaded every second via ADS/acyclic data traffic into the registers 0x0F00/0x0F01 and is then effective.

Any PDI errors counted in register 0x030D are read.

To readjust the communication interruption the EtherCAT cable can be pulled to the EL2262 or via DisableEcFrameSending the cyclic data sending can be stopped by software.

Example program 4: Parameterization of the CycleCounter and watchdog behavior 4:

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.