Skip to main content

What is a Watchdog Timer in PLC?

 In this article, we will learn about a watchdog timer in the Siemens PLC.

As we know that in the PLC when CPU process the logic it takes a certain amount of the time.

The amount of time the CPU takes to process the logic depends on the size of the program.

So, scanning from the first network to the end of the program is called one scan cycle.

For one scan cycle, time must not exceed defined cycle time and amount of time it takes to process the logic.

Watchdog Timer in PLC

To check a cycle time open TIA portal.

In the programming environment go to the main CPU. Do a right-click and click on online and diagnostics.

The following new window will open up. Choose the cycle time option from it.

One thing to note is that to see cycle time you must have to stay in the online mode. In the offline mode, you won’t see anything.
In the above window, you can see a cycle time. In the cycle time measured tab, you can see a cycle time of the current program.

In the cycle time set option, the maximum time limit Is set to 6000ms means 6 seconds. This is a scan time for one cycle.

So, while execution if cycle time exceeds 6000ms then it generates an error.

Here, it comes to the watchdog timer concept. Based on a scan time when the CPU executes the logic this electronic timer starts to calculate time in the background.

If cycle time exceeds more than defined time, this electronic timer produced an error.

So for this to work, the timer starts timing from the first network and reset its timing at the end of the network.

Due to programming error or any hardware error if the CPU fails to reset the timer then it produces a time-out error.

Watchdog timer helps to reset the CPU when these types of errors occur so that the PLC starts working again without any manual reset. If the errors occur repeatedly then the watchdog timer may not helpful, human intervention is required to troubleshoot the problem.

The scan time varies from cycle to cycle because sometime FCs and FBs are not executed, or due to the manual mode of the PID loops.

This is how watchdog timer works in the background while the execution of the program.

Comments

Popular posts from this blog

PLC Program for Mixing Tank

 Create a ladder diagram for controlling a batch mixing process. Implement a PLC program for mixing tank or Mixing Process using PLC Ladder Logic. PLC Program for Mixing Tank Fig : Mixing tank A tank is used to mix two liquids. The required control circuit operates as follows: A. When the START button is pressed, solenoids A and B energize. This permits the two liquids to begin filling the tank. B. When the tank is filled, the float switch trips. This de-energizes solenoids A and B and starts the motor used to mix the liquids together. C. The motor is permitted to run for 1 minute. After 1 minute has elapsed, the motor turns off and solenoid C energizes to drain the tank. D. When the tank is empty, the float switch de- energizes solenoid C. E. A STOP button can be used to stop the process at any point. F. If the motor becomes overloaded, the action of the entire circuit will stop. G. Once the circuit has been energized, it will continue to operate until it is manually stopped. Solution : A

What is Relay? How it Works? Types, Applications, Testing

 We use relays for a wide range of applications such as home automation, cars and bikes (automobiles), industrial applications, DIY Projects, test and measurement equipment, and many more. But what is Relay? How a Relay Works? What are the Applications of Relays? Let us explore more about relays in this guide. What is a Relay? A Relay is a simple electromechanical switch. While we use normal switches to close or open a circuit manually, a Relay is also a switch that connects or disconnects two circuits. But instead of a manual operation, a relay uses an electrical signal to control an electromagnet, which in turn connects or disconnects another circuit. Relays can be of different types like electromechanical, solid state. Electromechanical relays are frequently used. Let us see the internal parts of this relay before knowing about it working. Although many different types of relay were present, their working is same. Every electromechanical relay consists of an consists of an Electroma

Chlorine dioxide Analyzer Principle

 Chlorine dioxide measurement Chlorine dioxide (ClO2) is an instable, non-storable, toxic gas with a characteristic scent. The molecule consists of one chlorine atom and two oxygen atoms – represented in the chemical formula ClO2. It is very reactive. To avoid the risk of spontaneous explosions of gaseous chlorine dioxide or concentrated solutions, it is generally handled in dilution with low concentrations. ClO2 is soluble in water, but tends to evaporate quickly. Typically it is prepared on site, for example from hydrochloric acid and sodium chlorite. The procedure provides solutions with approx. 2 g/l ClO2 that can be safely handled and stored for several days. Image Credits : krohne Sensor Parts : Reference electrode Applied chlorine dioxide specific potential Current needed to maintain the constant potential Counter electrode Measuring electrode The disinfection effect of ClO2 is due to the transfer of oxygen instead of chlorine, so that no chlorinated byproducts are formed. ClO2