September 1, 2018

Alarm Security System

Alarm Security System
Alarm Security System used in homes.Learn how to write PLCprogram for this application.

Click on image for more detail
https://instrumentationtools.com/plc-program-for-burglar-alarm-security-system/

Heating and Mixing of Products

Automatic Heating and Mixing of Products – PLC Program (S7-1200

Problem Description:

Design an automatic system where two materials are collected into a single tank. Once both materials are present, the system should start mixing and heating simultaneously until the mixture reaches a preset temperature (setpoint). Upon reaching the target temperature, the system should automatically stop heating and mixing.

Develop a Ladder Logic Program for this application using a Siemens S7-1200 PLC.

Diagram:-

























Problem Solution


We can solve this problem using a simple and effective PLC logic sequence.

  • Two separate level switches are used to detect the presence of Material A and Material B in the tank.

  • One empty level switch is used to ensure the tank is ready for the next cycle.

  • Single-acting inlet valves (fully open/fully close) are used to control the flow of materials into the tank.

  • An agitator motor is used for mixing, mechanically connected to a shaft inside the tank.

  • A heater and temperature sensor are installed to heat the mixture.

  • Once the mixture reaches the setpoint temperature, the system stops the heater and mixer, and the outlet valve is opened to drain the product.

Process Sequence

  1. On pressing the Cycle START button (I0.0) and ensuring the tank is empty (I0.4 ON), the system starts.

  2. Inlet Valve 1 (Q0.0) and Inlet Valve 2 (Q0.1) open to fill Material A and B until both level switches (I0.3 and I0.2) are triggered.

  3. Once both materials are filled, the inlet valves close, and the agitator motor (Q0.2) and heater (Q0.3) turn ON.

  4. The materials are continuously mixed and heated.

  5. When the temperature sensor (I0.5) detects the setpoint is reached, the heater and agitator turn OFF.

  6. The outlet valve (Q0.4) opens to drain the mixture.

  7. After draining is complete and the empty level switch (I0.4) is triggered again, the system is ready for the next cycle.

List of Inputs/Outputs

Inputs

DescriptionAddress
Cycle STARTI0.0
Cycle STOPI0.1
Level Sensor - Material BI0.2
Level Sensor - Material AI0.3
Empty Level SwitchI0.4
Temperature Sensor (Setpoint reached)I0.5

Outputs
DescriptionAddress
Inlet Valve 1Q0.0
Inlet Valve 2Q0.1
Agitator MotorQ0.2
HeaterQ0.3
Outlet ValveQ0.4

Memory Bit
PurposeAddress
Cycle ONM0.0


Ladder diagram for automatic heating and mixing of product.


 Network 1:- Cycle ON











Network 2& 3:- Inlet Valve 1 & Heater
















Network 4:-Inlet Valve 2











Network 5:-Outlet Valve 












Program Description

In this application, we are using a Siemens S7-1200 PLC with TIA Portal software to program the automatic heating and mixing process.

Network-wise Logic Explanation

Network 1: Cycle ON/OFF Logic

This network implements a simple latching (seal-in) circuit to control the process cycle:

  • Normally Open (NO) contact of Cycle START button (I0.0)

  • Normally Closed (NC) contact of Cycle STOP button (I0.1)

  • Once latched, it activates Memory Bit M0.0 to keep the cycle ON.


Network 2: Inlet Valve 1 Control (Material A – Q0.0)

  • The Inlet Valve 1 (Q0.0) turns ON when the tank is empty (I0.4 = ON).

  • It turns OFF when Material A level is reached (I0.3 = ON).

  • The START button (I0.0) is also connected in parallel to allow manual override if required.


Network 3: Inlet Valve 2 Control (Material B – Q0.1)

  • Inlet Valve 2 (Q0.1) turns ON once Material A level (I0.3) is reached and the Cycle ON (M0.0) is active.

  • It allows the addition of Material B after Material A is filled.


Network 4: Heater and Agitator Control

  • Once both Material A (I0.3) and Material B (I0.2) are at their levels, the Heater (Q0.3) and Agitator Motor (Q0.2) turn ON.

  • This continues until the Temperature Setpoint Sensor (I0.5) indicates completion.


Network 5: Outlet Valve Control (Q0.4)

  • Once temperature setpoint (I0.5) is reached and Cycle ON (M0.0) is active, the Outlet Valve (Q0.4) opens.

  • It remains open until the Empty Level Switch (I0.4) detects the tank is empty (used with NC contact to stop the valve).

Note:

This logic is for explanation and conceptual design only. Actual implementation may vary based on sensor types, valve actuation mechanisms, interlocks, and safety requirements.

Runtime Test Cases

InputsOutputsDescription
I0.0 = 1Q0.0 = 1Cycle started, Inlet Valve 1 ON
I0.4 = 1Q0.1 = 1Tank empty, Inlet Valve 2 ON
I0.3 = 1 & I0.2 = 0Q0.2 = 1Material A filled, Material B not yet full
I0.2 = 1 & I0.5 = 0Q0.2 & Q0.3 = 1Both materials filled, Heating & Mixing ON
I0.5 = 1 & I0.4 = 0Q0.4 = 1Setpoint reached, Outlet valve ON































August 18, 2018

Parallel Tanks Level Control

Parallel Tanks Level Control

Controlling level of two parallel tanks in idustry.Learn how to write PLC logic for this application.

Click on image for more detail
https://instrumentationtools.com/plc-program-to-control-level-of-parallel-tanks/

Series Tanks Level Control

Series Tanks Level Control

Controlling of two tanks in series connection.Learn how to write PLC program for this application.


Click on image for more detail
https://instrumentationtools.com/plc-program-to-control-level-of-series-tanks/

August 9, 2018

Motor Speed Control

Motor Speed Control

Controlling of motor speed using VFD drive.Learn how to write PLC program for thsi application

Click on image for more detail
https://instrumentationtools.com/plc-program-to-control-motor-speed-using-vfd-drive/


Control Valve Scaling

Control Valve Scaling

Implement analog scaling in S7-300 PLC.Learn how to write PLC program for this application.
Click on image for more detail
https://instrumentationtools.com/plc-program-for-control-valve-scaling/


July 29, 2018

Automated Guided vehicle automation in the PLC

Automated Guided vehicle automation in the PLC


Click on image for more detail




D Flip Flop PLC Ladder Logic

D Flip Flop PLC Ladder Logic

D flip flop in PLC.Learn how to implement D flip flop in PLC.

Click on image for more detail
https://instrumentationtools.com/plc-program-to-implement-d-flip-flop-in-plc/


July 27, 2018

PLC program for latching and unlatching circuit


PLC Level Control of Two Tanks

The Art of Balance: PLC Level Control for Two Tanks

In many industrial processes, maintaining a consistent liquid level in a tank is critical. Whether it's for mixing chemicals, ensuring a continuous supply to a production line, or managing wastewater, a simple overflow or dry-run can lead to costly downtime and safety hazards. A Programmable Logic Controller (PLC) is the perfect tool for this job, using a simple and reliable logic to automate the process. This article explains how a PLC system can be configured to control the liquid level in not one, but two interconnected tanks.


The Challenge: Keeping Two Tanks in Sync

Imagine a system with two tanks, Tank A and Tank B, where Tank A fills Tank B. If Tank B is allowed to overflow, it creates a spill, but if it runs empty, the downstream process stops. The goal is to design a control system that uses a pump and a valve to maintain the liquid level within a safe operating range in both tanks. The complexity lies in managing the flow between the tanks to prevent either a dry-run or an overflow condition.

Key Components of the System

A PLC-based level control system relies on a few core components to function:

Level Sensors: These are the "eyes" of the system. For a two-tank setup, you would typically use two sensors per tank.

 For example:

    • High-Level Sensor (HLS): A sensor placed at the top of the tank to detect when the liquid has reached the maximum safe level.

    • Low-Level Sensor (LLS): A sensor placed near the bottom of the tank to detect when the liquid is running low.

  • Actuators: These are the devices that perform the physical work. In our example, this would be a pump and a valve.

    • Pump (P1): Fills Tank A from a source.

    • Valve (V1): Controls the flow from Tank A to Tank B.

  • Programmable Logic Controller (PLC): The "brain" of the system. It receives signals from the level sensors and sends commands to the pump and valve based on its programmed logic.

The Control Logic: A Simple But Effective Solution

The logic for this system is designed to be fail-safe and efficient. It can be broken down into a few simple rules:

Rule 1: Filling Tank A

  • The PLC continuously monitors the low-level sensor in Tank A.

  • IF the Tank A Low-Level Sensor (LS1) is OFF (meaning the tank is not low), THEN the PLC keeps the pump (P1) OFF.

  • IF the Tank A Low-Level Sensor (LS1) is ON (meaning the tank is low), THEN the PLC turns the pump (P1) ON to start filling the tank.

  • The pump will continue to run until the Tank A High-Level Sensor (HS1) turns ON. When this happens, the PLC turns the pump OFF.

Rule 2: Filling Tank B

  • The PLC monitors the level sensors in Tank B and also checks the level in Tank A to ensure there is enough liquid to transfer.

  • IF the Tank A Low-Level Sensor (LS1) is OFF AND the Tank B Low-Level Sensor (LS2) is ON, THEN the PLC opens the valve (V1). This allows liquid to flow from Tank A to Tank B.

  • IF the Tank B High-Level Sensor (HS2) turns ON, THEN the PLC closes the valve (V1) to prevent overflow.

By programming these simple conditional statements, the PLC creates an automated system that keeps both tanks at a stable level. The logic ensures that Tank A always has enough liquid to supply Tank B and that Tank B never overflows.



July 25, 2018

Automatic Mixing Controlling in a Tank

Automatic Mixing Controlling in a Tank


 Automatic mixing controlling in a tank.Learn how to write PLC program for this application.


Click on image for more detail
https://instrumentationtools.com/plc-program-for-automatic-mixing-controlling-in-a-tank/