By the end of this chapter, you will be able to:
Mastering these skills will help you confidently set up and program automated electrical systems, making you a valuable asset in the modern electrical trade.
Automation in electrical systems is a cornerstone of modern industrial and commercial operations in Kenya, enabling efficient, reliable, and precise control of electrical equipment and processes. This chapter explores programming in automation, focusing on the critical role of Programmable Logic Controllers (PLCs) in electrical engineering. Understanding how to develop PLC programs and the varieties of programming languages available is essential for engineers managing automation systems in sectors such as manufacturing, energy distribution, and water treatment.
Programming in automation refers to the process of creating instructions that control and manage automated equipment and systems using programmable devices like PLCs. In the Kenyan electrical engineering context, programming enables engineers to customize control sequences, optimize performance, and ensure safety in applications ranging from automated lighting in commercial buildings to process control in manufacturing plants. It translates operational requirements into executable commands that machines follow, reducing human intervention and improving system reliability.
Programming in automation involves writing code or logic that directs automated devices to perform specific tasks. This process converts desired operational sequences into a language that programmable devices can interpret and execute. For example, an engineer at a county water treatment plant programs pumps and valves to operate based on water levels and quality sensors, ensuring continuous water supply without manual oversight.
Programming serves as the backbone of automation by enabling precise control over electrical components such as motors, relays, sensors, and actuators. It allows electrical engineers to develop flexible and adaptive systems that respond dynamically to varying conditions. In Kenya’s manufacturing sector, for instance, programming ensures that conveyor belts, robotic arms, and other machinery operate synchronously to maintain production efficiency.
Programming automation systems offers multiple benefits including:
Programming automation systems can be complex due to diverse hardware interfaces, real-time operation requirements, and the need for fault tolerance. Engineers in Kenya often face challenges such as limited access to advanced programming tools, the need for robust communication protocols in harsh environments, and integrating legacy equipment with modern controllers.
Create a free account to open more of this chapter.
Free: practical guides, quick cards, workplace scenarios and more.
Create a free accountThis chapter explored the concept of programming in automation, emphasizing its role in controlling automated electrical systems. It detailed the process of developing PLC programs, highlighting key programming languages such as ladder diagram, instruction list, and functional block diagram, each with distinct applications in automation tasks. The discussion then shifted to microcontroller programming, focusing on popular languages like C/C++ and Python, which enable versatile control in embedded systems. Configuration of components and their parameters was examined as a crucial step to ensure system compatibility and optimal performance. The chapter also covered testing and debugging techniques essential for identifying and resolving errors before deployment. Procedures for uploading and downloading programs to automation systems were explained to facilitate effective program management. Finally, the chapter addressed the configuration of control parameters, which fine-tunes system behavior to meet specific operational requirements.
Type: Individual
| Tools & Equipment | Materials |
|---|---|
| Writing materials | Reference materials on automation programming |
| S/N | Item | Quantity |
|---|---|---|
| 1 | PPE (dustcoat/overall, safety boots) | 1 set per Candidate |
| 2 | Writing materials (pen, notebook) | 1 set per Candidate |
| 3 | Reference materials on automation programming | 1 set per 5 Candidates |
| Items to be Evaluated | Marks Available | Marks Obtained | Comments |
|---|---|---|---|
| TASK 1: Preparation and safety | |||
| Wore appropriate Personal Protective Equipment (dustcoat/overall, safety boots) (Award 1 mark for correct PPE or 0 if not worn) | 1 | ||
| Ensured clean and organized working area before starting the task (Award 1 mark for clean working area or 0 if untidy) | 1 | ||
| Sub-Total | 2 | ||
| TASK 2: Explanation of programming in automation | |||
| Defined the meaning of programming in automation systems (Award up to 4 marks for clear and accurate definition) | 4 | ||
| Explained the purpose of programming in automation systems (Award up to 4 marks for clear and relevant explanation) | 4 | ||
| Used relevant examples or applications of programming in automation (Award up to 3 marks for examples illustrating understanding) | 3 | ||
| Sub-Total | 11 | ||
| TASK 3: Presentation and communication | |||
| Organized the explanation logically and coherently (Award up to 3 marks for logical flow and clarity) | 3 | ||
| Used correct technical terminology related to automation programming (Award up to 2 marks for appropriate technical terms) | 2 | ||
| Demonstrated neat and legible handwriting or typing (Award up to 2 marks for neatness and legibility) | 2 | ||
| Sub-Total | 7 | ||
| PRODUCT CHECKLIST | |||
| Written report clearly states the meaning and purpose of programming in automation systems within 500 words (Award up to 10 marks for completeness, accuracy, and relevance) | 10 | ||
| Sub-Total | 10 | ||
| GRAND TOTAL | 30 | ||
Type: Individual
| Tools & Equipment | Materials |
|---|---|
| PLC module | Personal Protective Equipment (PPE) - dustcoat/overall |
| Push button switches | |
| Indicator bulbs 9V | |
| Bulb holders | |
| Jumper wires (male and female) |
| S/N | Item | Quantity |
|---|---|---|
| 1 | PLC module | 1 Pc per Candidate |
| 2 | Push button switches | 3 Pcs per Candidate |
| 3 | Indicator bulbs 9V | 3 Pcs per Candidate |
| 4 | Bulb holders | 3 Pcs per Candidate |
| 5 | Jumper wires (male and female) | Enough per Candidate |
| 6 | Personal Protective Equipment (PPE) - dustcoat/overall | 1 Set per Candidate |
| Items to be Evaluated | Marks Available | Marks Obtained | Comments |
|---|---|---|---|
| TASK 1: PLC Program Development and Installation | |||
| Wore Personal Protective Equipment dustcoat/overall (Award 1 or 0) | 1 | ||
| Ensured clean working area before starting work (Award 1 or 0) | 1 | ||
| Used appropriate tools and equipment (e.g., jumper wires, pliers) (Award 1 or 0) | 1 | ||
| Correctly labeled control inputs A, B, C and outputs X, Y, Z on the PLC and hardware (Award 1 mark per correct label, total 6) | 6 | ||
| Observed correct wiring colour codes during connections (Award 1 or 0) | 1 | ||
| Drew the ladder logic diagram representing the control logic (Award up to 10 marks based on completeness and correctness) | 10 | ||
| Sub-Total | 20 | ||
| TASK 2: Wiring and Testing | |||
| Terminated cables correctly at bulbs and switches (Award 1 mark per correctly terminated cable, total 3) | 3 | ||
| Made correct wiring connections at bulbs (Award 1 mark per correct connection, total 3) | 3 | ||
| Simulated the PLC program on the computer successfully (Award 3 or 0) | 3 | ||
| Loaded the program into the PLC module correctly (Award 3 or 0) | 3 | ||
| Output X correctly indicates absence of all three inputs (Award 3 or 0) | 3 | ||
| Output Y correctly indicates presence of both inputs A and B (Award 3 or 0) | 3 | ||
| Output Z correctly indicates presence of all inputs A, B, and C (Award 3 or 0) | 3 | ||
| Sub-Total | 21 | ||
| PRODUCT CHECKLIST | |||
| Program ladder diagram correctness and completeness as per specification (Award up to 10 marks based on accuracy and logic) | 10 | ||
| Functionality of the installed system meets all input-output conditions (Award up to 4 marks based on observed correct output indications) | 4 | ||
| Sub-Total | 14 | ||
| GRAND TOTAL | 55 | ||
At the start of this chapter we promised you would be able to:
Tick each one you can genuinely do.
So, are you there yet?
You're competent when you can confidently do 50% or more of what this chapter promised.
Sign in to record how you're doing.