0% found this document useful (1 vote)
6K views4 pages

PLC Ladder Logic for Tank Filling Systems

The document describes a ladder logic program that controls the water level in a tank. It uses two level switches to detect when the water reaches the high and low levels. When the low level is reached, the outlet valve closes and the inlet valve opens to fill the tank. When the high level is reached, the inlet valve closes and the outlet valve opens to empty the tank until the low level is again reached. Figures 3.13-3.17 show the ladder logic and valve states as the tank cycles from empty to full to empty.

Uploaded by

Khai Nguyen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (1 vote)
6K views4 pages

PLC Ladder Logic for Tank Filling Systems

The document describes a ladder logic program that controls the water level in a tank. It uses two level switches to detect when the water reaches the high and low levels. When the low level is reached, the outlet valve closes and the inlet valve opens to fill the tank. When the high level is reached, the inlet valve closes and the outlet valve opens to empty the tank until the low level is again reached. Figures 3.13-3.17 show the ladder logic and valve states as the tank cycles from empty to full to empty.

Uploaded by

Khai Nguyen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

3.4.

TANK FILLING LADDER PROGRAM 25

Address Title Comment


I 0/14 Start N.O. Switch
I 0/15 Stop N.O. Switch
I 1/0 High Level N.O. Switch
I 1/1 Low Level N.O. Switch
O 1/0 Inlet valve
O 1/1 Outlet valve

Table 3.2: Table of the hardware connected to the input and the output of the PLC for the Tank Filling
Program shown in figure 3.13.

Figure 3.13: Ladder program to control the water level in a tank with the hardware shown in table 3.2
%I 0/14 %I 0/15 %M 0/0

Start Stop Master


%M 0/0

Master

%M 0/0 %I 1/0 %I 1/1 %O 1/1

Master High Level Low Level Outlet Valve


%O 1/1

Outlet Valve

%M 0/0 %I 1/1 %O 1/0 %O 1/0

Master Low Level High Valve Inlet Valve


%O 1/0

Inlet Valve
%I 0/14

Start

3.4 Tank filling Ladder program


The Problem
The water level in an open tank is to be maintained. When the water level reaches the Level Low, the
Outlet flow valve is closed and the Inlet flow valve is opened until the High Level is reached at which time
the Outlet valve is opened and the Inlet valve is closed. To detect the High and Low levels of liquid in the
tank, two level switches are used.
A Ladder program solution is shown in figure 3.13.
26 CHAPTER 3. PLC

Address Title Comment


I 0/14 Start N.O. Switch
I 0/15 Stop N.C. Switch
I 1/0 High Level N.C. Switch
I 1/1 Low Level N.O. Switch
O 1/0 Inlet valve
O 1/1 Outlet valve

Table 3.3: Table of the hardware connected to the input and the output of the PLC for the Tank Filling
Program shown in figure 3.14.

Figure 3.14: Alternative ladder program to control the water level in a tank with the hardware shown in
table 3.3. Note the differences between the ladder programs. A ladder program is meaningless without
the table of connections.
%I 0/14 %I 0/15 %M 0/0

Start Stop Master


%M 0/0

Master

%M 0/0 %I 1/0 %I 1/1 %O 1/1

Master High Level Low Level Outlet Valve


%O 1/1

Outlet Valve

%M 0/0 %I 1/1 %O 1/0 %O 1/0

Master Low Level High Valve Inlet Valve


%O 1/0

Inlet Valve
%I 0/14

Start
3.4. TANK FILLING LADDER PROGRAM 27

Figure 3.15: START STATE: Tank filling ladder program shown figure 3.13 after the start button is
pressed and the state of the tank is empty. The tank will start filling because the inlet valve is open and
the outlet valve is closed.
%I 0/14 %I 0/15 %M 0/0

Start Stop Master


%M 0/0

Master

%M 0/0 %I 1/0 %I 1/1 %O 1/1

Master High Level Low Level Outlet Valve


%O 1/1

Outlet Valve

%M 0/0 %I 1/1 %O 1/0 %O 1/0

Master Low Level High Valve Inlet Valve


%O 1/0

Inlet Valve
%I 0/14

Start

Figure 3.16: BETWEEN EMPTY AND FULL: Tank filling ladder program shown figure 3.13 after the
start button is pressed and the state of the tank is empty. The tank is filling because the inlet valve is
open. and the outlet valve is closed.
%I 0/14 %I 0/15 %M 0/0

Start Stop Master


%M 0/0

Master

%M 0/0 %I 1/0 %I 1/1 %O 1/1

Master High Level Low Level Outlet Valve


%O 1/1

Outlet Valve

%M 0/0 %I 1/1 %O 1/0 %O 1/0

Master Low Level High Valve Inlet Valve


%O 1/0

Inlet Valve
%I 0/14

Start
28 CHAPTER 3. PLC

Figure 3.17: FULL: Tank filling ladder program shown figure 3.13 after the start button is pressed and
the state of the tank is empty. The tank will stop filling because the inlet valve is closed and the tank
will begin to empty because the outlet valve is open. The tank will continue to empty until the low level
switch is activated and the cycle will start again.
%I 0/14 %I 0/15 %M 0/0

Start Stop Master


%M 0/0

Master

%M 0/0 %I 1/0 %I 1/1 %O 1/1

Master High Level Low Level Outlet Valve


%O 1/1

Outlet Valve

%M 0/0 %I 1/1 %O 1/0 %O 1/0

Master Low Level High Valve Inlet Valve


%O 1/0

Inlet Valve
%I 0/14

Start

Common questions

Powered by AI

Relay logic and ladder programs share similarities in their use of schematic diagrams to control electrical circuits and operations through logical operations. Both use conditions to determine the state of outputs based on inputs. However, a key difference is that relay logic involves physical hardware components, such as relays and switches, to execute control tasks, while ladder programs are software-based, representing logic operations in digital form executed by PLCs. Ladder programs provide greater flexibility and complexity in program design, allowing for integration with other digital systems, while relay logic is limited to the hardware's capabilities .

The alternative PLC motor control solution is considered dangerous because it lacks a fail-safe mechanism. In this design, if the connection to the stop button breaks, the motor cannot be turned off, which poses significant safety risks. Additionally, if the connection to the start button breaks, the motor starts unexpectedly when the connection is restored, leading to unanticipated operations that can cause harm to equipment and personnel. These vulnerabilities expose serious flaws in the circuit's design, emphasizing the importance of fail-safe implementations to prevent such hazardous conditions .

The TOF (Timer Off-Delay) instruction functions differently from the TON (Timer On-Delay) instruction by starting its timing sequence when the rung conditions become false, rather than true. In the TOF's execution, the timer increments its accumulator when conditions are false and stops when the preset value is reached or conditions become true again. The accumulator is reset if conditions become true before timing completes, contrasting with the TON that stops timing when conditions go false. This difference allows TOF to delay the timing out or deactivation of outputs, whereas TON delays the activation .

A relay can maintain the water level in a tank similar to a toilet cistern by using a normally-open (NO) limit switch for low water levels and a normally-closed (NC) limit switch for high water levels. When the water level is low, the NO limit switch is activated, triggering the relay to start the pump, which fills the tank. As the water level rises and hits the high-level NC limit switch, the relay activates to stop the pump, preventing overfilling. This system allows for automatic control of the water level, ensuring it stays within defined limits .

In a PLC, the CTU (Count Up) instruction affects counter behavior by incrementing the accumulated value with each false-to-true transition of the rung condition. The counter retains the accumulated count even when the rung condition becomes false, and when power cycles occur, meaning that it continues counting indefinitely until it is explicitly reset by a RES instruction. This persistent behavior allows the counter to accumulate counts over multiple operations, ensuring that it reliably tracks repetitive events unless manually reset .

A latched relay circuit uses a relay to maintain the state of an activated output continuously even after the initial actuation trigger is removed. Pressing a push button (PB1) activates the relay, which changes the state of the change-over switches, turning a red light on and a green light off. The circuit maintains this state because the activation circuit remains closed through another push button (PB2), which keeps the relay coil energized. The relay remains latched in this state until PB2 is pressed, breaking the circuit and resetting it to its original condition .

The IEC 61131-3 standard enhances the safety of motor controllers by defining clear programming practices and safety features that PLCs must adhere to. This includes the utilization of configurable control logic that addresses fail-safe operation, such as ensuring that the motor can be stopped safely even if a start input fails or loses connection. By adhering to these standards, PLC programs can be designed to detect and respond appropriately to faults, ensuring that systems default to a safe state in case of failure, thus preventing unsafe operating conditions and enhancing operator safety .

TON timers in PLCs are affected by power cycles or mode changes by resetting the accumulator to zero, regardless of whether the timer has reached its preset value. This reset ensures that the timer starts counting anew whenever the PLC transitions between different power states or operating modes, which can impact the timing and sequencing of operations in control systems .

IEC 61131-3 standards are crucial in the design of PLCs because they promote compatibility and interoperability between different manufacturers' equipment. These standards streamline maintenance processes and reduce costs by ensuring that the programming languages and interfaces used by PLCs are standardized across the industry, allowing for easier integration and management of control systems .

RTO (Retentive On-Delay Timer) timers differ significantly from standard TON timers by retaining their accumulated values across power cycles, mode changes, and false rung conditions. Unlike TON timers, which reset upon losing power or changes in mode, RTO timers maintain their count, allowing for a seamless resumption of timing operations from the last recorded value once conditions return to a true state. This feature is particularly valuable in industrial applications requiring continuity and precision in timing sequences despite interruptions .

You might also like