Mada za sehemu hiiPerforming PLC programmingMada 5
Ladder Logic in PLC Programming
Ladder logic is a programming language used to program PLCs, which are special computers that control industrial machines and processes. It is called "ladder" because the diagrams look like a ladder — with two vertical rails (power rails) and horizontal rungs connecting them. Each rung represents a control decision or action. Ladder logic is important because it allows technicians to write and understand control programs easily, even without advanced programming knowledge. In Tanzania, PLCs are used in solar power systems, water pumping stations, and small-scale industries to automate machines.
Ladder diagrams use standard symbols that represent electrical components. Understanding these symbols is the first step to reading and writing ladder logic.
Normally Open (NO) Contact
- Drawn as two parallel lines
- Represents a switch that is open (off) when not activated
- Conducts current only when the condition becomes true (e.g., a push button is pressed)
Normally Closed (NC) Contact
- Drawn as two parallel lines with a diagonal line through them
- Represents a switch that is closed (on) by default
- Conducts current until the condition becomes true (e.g., a limit switch is pressed)
Coil (Output)
- Drawn as a circle or parenthesis symbol
- Represents an output device such as a motor, lamp, or solenoid
- When energized, it turns ON the connected device
Power Rails
- Two vertical lines on the left and right sides of the diagram
- Represent the power source (positive on the left, negative on the right)
- Current flows from left to right
A ladder diagram consists of multiple rungs. Each rung has:
- Inputs (contacts) on the left side — these are conditions that must be met
- Outputs (coils) on the right side — these are actions to perform
When all conditions on a rung are true, the output energizes. The PLC scans each rung from top to bottom, left to right, continuously.
Follow these steps to create a ladder logic programme using PLC programming software:
- Open the programming software on the computer connected to the PLC.
- Create a new project and select the correct PLC model.
- Draw the inputs by placing normally open (NO) or normally closed (NC) contacts on the left side of a rung.
- Add logical conditions — connect multiple contacts in series (AND logic) or parallel (OR logic) to create the desired control condition.
- Place the output (coil) on the right side of the rung.
- Assign addresses to each contact and coil (for example, I:1/0 for input 0, O:1/0 for output 0).
- Download the programme to the PLC using the programming cable.
- Test the programme by monitoring the inputs and outputs on the PLC trainer.
Problem: A water pump should start when a start button is pressed and stop when a stop button is pressed. The pump must also stop automatically if the water level is too low (low-level sensor).
Solution in Ladder Logic:
- Start button (NO contact): Address I:1/0
- Stop button (NC contact): Address I:1/1
- Low-level sensor (NC contact): Address I:1/2
- Pump motor (coil): Address O:1/0
Rung 1:
[I:1/0]----[I:1/1]----[I:1/2]----(O:1/0)
Explanation:
- When the start button is pressed (I:1/0 closes), and the stop button is not pressed (I:1/1 stays closed), and the water level is normal (I:1/2 stays closed), then the pump motor (O:1/0) turns ON.
- If the stop button is pressed, I:1/1 opens and the pump stops.
- If the water level falls too low, I:1/2 opens and the pump also stops for safety.
This is a latching circuit — once the pump starts, it keeps running until the stop button is pressed or the safety sensor opens.
- Series connection: Contacts connected one after another perform AND logic. All conditions must be TRUE for the output to energize.
- Parallel connection: Contacts connected side by side perform OR logic. If ANY condition is TRUE, the output energizes.
In Tanzania, ladder logic is used in small solar-powered irrigation systems where a PLC automatically turns a water pump on when soil moisture sensors detect dry conditions. For example, a farmer in Arusha can program a PLC to control a 2HP pump that fills a storage tank during sunny hours, ensuring water is available for crops without manual switching — saving time and protecting the pump from running dry.
Jinsi utakavyotathminiwaTathmini ya mchakato · Tathmini ya matokeo · Tathmini ya maarifa
Tathmini ya mchakato
The students should be able to explain how to:
- Interpret circuit diagram
- Download programming software
- Carry out PLC Ladder Logic programming
- Upload software to PLC
- Observe safety precautions
Tathmini ya matokeo
PLC Ladder Logic Programme is performed as per technical specifications and Regulations.
Tathmini ya maarifa
Knowledge evidence:
Detailed knowledge of:
Methods used: The students should explain how to:
- Perform PLC Ladder Logic Programming
- Set up a PLC trainer
- Download PLC programming software
Principles: The students should explain the principles of:
- PLC Programming.
- HMI programming
Theories: The students should explain ⚫ Combination logic programming ⚫ Sequential logic programming ⚫ Connection between PLC and HMI. ⚫ Ladder logic
Swali
What does a Normally Open (NO) contact represent in ladder logic?
Ingia ili kuwasilisha jibu lako na lihesabiwe katika umahiri wako.
Ingia ili kufanya mazoeziMwalimu
Umekwama? Niulize chochote kuhusu mada hii.
Ingia ili kumuuliza Mwalimu wa AI wa Sonza kuhusu swali hili.
Ingia ili kuulizaMajadiliano
Hakuna maswali bado