Assignment 2 Control
Assignment 2 Control
Assignment 2 Control
(AEE 3520)
Assignment 1
441105204
ID Number:
Supervisor:
Dr Eldaw Eldukhri
The early history of the PLC goes back to the 1960’s when control systems were still handled
using relay control. During this time the control rooms consisted of several walls containing
many relays, terminal blocks and mass of wires. The problems related to such kind of systems
were many, among those one could mention:
• The lack of flexibility to expand the process, as well as the inordinate amount of time
needed to adjust the process when changes were needed.
• Troubleshooting which covered from dirty contacts, loose wires, outdated prints on the
terminal blocks with informal nomenclature, to cryptic connection documentation.
These problems were faced continuously by technician and control engineers.
The first programmable logic controller of Allen Bradley, the Bulletin 1774 PLC. It was invented by Ernst Dummermuth in 1974.
Programmable Logic Controllers (PLCs) have a rich history of development, dating back to the
mid-20th century. Here is an overview of the history and development of PLCs:
1. Origins in Relay Logic:
Before PLCs, industrial automation relied on relay logic systems. These systems used
electromechanical relays to control various processes, such as manufacturing and machinery.
1. Ladder Diagram(LD)
2. Function Block Diagram(FBD)
3. Structured Text(ST)
4. Instruction List(IL)
5. Sequential Function Chart(SFC)
1. Ladder Logic (LAD):
Ladder Logic is the most widely used programming language in PLCs. It uses graphical
symbols to represent control logic, resembling electrical relay diagrams. Symbols represent
devices (e.g., switches, sensors, and coils), and rungs consist of horizontal lines that connect
these symbols
This looks like relay racks, each device in the relay rack would be represented by a symbol on
the ladder diagram.
The name ladder diagram is based on the programming language pattern similar to a ladder, with
two vertical rails that shows electrical connection among a series of horizontal rungs between
them.
FBD is another graphical language that uses blocks to represent functions or operations, which
are connected to create control logic. Function blocks represent various functions, and
inputs/outputs are connected to them.
Function Block Diagram(FBD) is another PLC programming language that is a popular one and
looks like a graphical type like a Ladder Diagram(LD).
In Function Block Diagram inputs and outputs are connected in blocks by connection lines.
Function blocks are mainly used to do repetitive tasks like starters, closed-loop control, PID
loops, etc.
Structured Text (ST) is one of the programming languages used in Programmable Logic
Controllers (PLCs) for creating control logic and automation applications. Unlike ladder logic,
which is graphical in nature and resembles electrical relay logic, Structured Text is a high-level
text-based language that is similar to programming languages used in software development.
Here are some key points about Structured Text in PLCs:
High-Level Language: Structured Text is a high-level language, which means it provides a more
natural and powerful way to express complex control logic. It is closer to traditional
programming languages and is often used in applications where complex mathematical
calculations, data manipulation, and advanced control strategies are required.
Instruction List (IL) is one of the five standard programming languages used in Programmable
Logic Controllers (PLCs), as defined by the IEC 61131-3 standard. IL is a low-level, text-based
language that resembles assembly language and is primarily used for writing simple and direct
control logic in PLCs. Here are some key points about Instruction List in PLC programming:
Text-Based: IL uses a text-based format where each line of code represents a specific operation
or instruction. Unlike high-level languages like Structured Text or Function Block Diagrams, IL
does not have a high-level, natural language structure.
5. SEQUENTIAL FUNCTION CHART (SFC):
Sequential Function Chart (SFC) is one of the five standard programming languages used in
Programmable Logic Controllers (PLCs), as defined by the IEC 61131-3 standard. SFC is a
graphical language that is particularly well-suited for designing complex control sequences and
state-based logic. Here are some key points about Sequential Function Charts in PLC
programming:
Modular and Hierarchical: SFC allows programmers to break down control logic into modular
units called steps and states. This modularity and hierarchical structuring make it easy to design,
understand, and maintain complex control sequences.
PLC APPLICATIONS
Programmable Logic Controllers (PLCs) are widely used in engineering and various industries
for a wide range of applications. Here are some example applications of PLCs:
• Manufacturing and Production Lines:
PLCs are commonly used to control and automate manufacturing processes. They can
manage the sequencing, timing, and coordination of various machines and devices in production
lines, ensuring efficient and consistent production.
• Conveyor Systems:
PLCs are used to control conveyor systems in industries like logistics, automotive, and
food production. They can manage the speed, direction, and operation of conveyors, including
sorting and routing products.
• Packaging Machinery:
PLCs control packaging machines, ensuring that products are filled, sealed, labeled, and
sorted accurately and efficiently.
• Robotic Systems:
PLCs are used to control industrial robots, managing their movements and tasks in
applications such as welding, painting, and material handling.
• HVAC (Heating, Ventilation, and Air Conditioning) Systems:
PLCs regulate HVAC systems in commercial buildings, controlling temperature,
humidity, and airflow for energy-efficient climate control.
• Water Treatment Plants:
PLCs are essential for controlling the purification and distribution of water, managing
processes like chemical dosing, filtration, and pump control.
• Power Plants:
PLCs are used in power generation and distribution systems, managing turbines,
generators, switchgear, and monitoring critical parameters.
• Food and Beverage Processing:
In the food and beverage industry, PLCs are used to control cooking, mixing, filling, and
packaging processes to ensure product consistency and safety.
• Automotive Manufacturing:
PLCs control various aspects of automobile manufacturing, from welding and assembly
to painting and quality control.
• Petrochemical and Oil Refining:
PLCs are used in the control of complex processes in petrochemical plants and oil
refineries, including distillation, blending, and safety systems.
• Agricultural Automation:
PLCs are used in agriculture for tasks such as controlling irrigation systems, monitoring
environmental conditions, and automating feeding and milking processes on farms.
• Building Automation:
PLCs play a significant role in building automation systems, controlling lighting, security,
access control, and energy management in commercial and residential buildings.
• Pharmaceutical Manufacturing:
In pharmaceutical facilities, PLCs help regulate production processes, including mixing,
granulating, tablet pressing, and filling.
• Mining and Material Handling:
PLCs are used to control material handling equipment, such as conveyor belts, crushers,
and loaders in the mining industry.
• Wastewater Treatment Plants:
PLCs manage the processes of wastewater treatment, including aeration, sedimentation,
and disinfection, ensuring environmental compliance.
These applications represent just a portion of the many ways PLCs are used across
engineering and industries. PLCs are valued for their ability to automate and control processes
reliably, efficiently, and with the flexibility to adapt to changing requirements.
Solution:
• To detect the parts, detector such as proximity switch, optical sensors or any other sensor is
used.
• Connect output of this detector to Input Module of PLC which sets and resets image memory
according to parts’ detection.
• Give this detection, as an input to Up Counter which is incremented with each part’s
detection.
• Set counter preset value to 1000.
• Operate Solenoid for a few seconds until the part is diverted for quality check.
Inputs/Outputs
List of Inputs and Outputs
I:1/14 = Start (Input)
I:1/15 = Stop (Input)
I:1/0 = Detector input (Input)
B3:0/0 = Latching Coil (Bit)
O:2/0 = Conveyor Motors (Output)
O:2/1 = Solenoid to operate gate (Output)
C5:0 = Up Counter to count 1000 parts (Counter)
T4:0 = Timer to operate solenoid (Timer )
-(RES)- = Reset counter value (Timer/Counter)
Ladder Logic
Problem Solution
• Due to the gravitational force and different liquid density of Water and Oil, when water and
oil both are present in the liquid, oil always reside on top of the liquid. By following this
theory and making an arrangement shown in the diagram above, Oil and Water can be
separated.
• However, this process does not completely remove water particles but only less than 10% of
water contents are present after passing through this process.
• Level of the tank is monitored using level sensor. To control level of the system Inlet is
controlled.
• To control the temperature of this system, ignition is to be controlled. Temperature sensor is
used and gas supply flow is controlled to control temperature. Temperature set point here is
50 degree centigrade.
• Oil outlet is controlled by control valve which is operated by two level switches.
References:
• https://www.sanfoundry.com/plc-program-oil-water-separation-process/
• https://www.sanfoundry.com/plc-program-sort-parts-quality-control-conveyor/
• https://www.gbctechtraining.com/blog/world-plcs-closer-you-think-
plcapplications-our-everyday-lives
• https://dipslab.com/plc-applications/
• https://control.com/technical-articles/the-origin-story-of-the-plc/
• https://dipslab.com/different-types-plc-programming-languages/
• https://automationforum.co/plc-learning-series-8-instruction-list-programming/