Electrical Engineering  ·  Level 6
Electrical Systems Automation
Chapter 3: Program automation system
📚 7 Topics
⚑ What you will be able to do

By the end of this chapter, you will be able to:

  • Install application software and drivers accurately by following the original equipment manufacturer’s specifications.
  • Develop automation programs correctly using the appropriate programming language for the task.

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.

3.1 Meaning of Programming in Automation

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.

3.1.1 Defining Programming in Automation

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.

3.1.2 Role of Programming in Electrical System Automation

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.

3.1.3 Benefits of Programming in Automation

Programming automation systems offers multiple benefits including:

Benefits of Programming in Automation

  • Increased Efficiency: Automated programs reduce downtime and optimize machine operation, lowering operational costs in factories.
  • Enhanced Accuracy: Programmable instructions minimize human error, improving product quality in assembly lines.
  • Improved Safety: Automation programs can incorporate safety interlocks and emergency shutdown procedures, protecting workers in hazardous environments such as chemical plants.
  • Scalability: Programs can be modified or expanded to accommodate new processes or equipment without extensive hardware changes.
  • Data Collection and Analysis: Automated systems can log operational data for performance monitoring and predictive maintenance, useful in Kenyan power distribution companies to reduce outages.

3.1.4 Challenges in Programming Automation Systems

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.

The rest of this chapter
🔒

Create a free account to open more of this chapter.

Free: practical guides, quick cards, workplace scenarios and more.

Create a free account
🔒3.2 Developing PLC Programs

Developing PLC programs is a systematic process that involves designing, coding, testing, and implementing control logic tailored to specific electrical automation tasks. PLCs are used to control industrial machinery, building management systems, and infrastru…

🔒3.2.1 Types of PLC Programming Languages

PLCs support several programming languages standardized under IEC 61131-3, each suited to different application needs and programmer preferences. Kenyan electrical engineers must be proficient in multiple languages to handle diverse automation projects. Ladder…

🔒3.3 Developing Microcontroller programs

In electrical engineering automation, especially in Kenya's growing industrial and infrastructural sectors, microcontrollers form the backbone of embedded system design. Developing effective microcontroller programs requires a deep understanding of programming…

🔒3.4 Configuration of Components and Their Parameters

Configuring microcontroller components and defining their operational parameters is crucial to ensure that automation systems perform as intended. Proper configuration involves setting up input/output interfaces, communication modules, timers, and other periph…

🔒3.5 Testing and debugging of the program

In electrical systems automation, testing and debugging are critical stages that ensure the program controlling the automation system performs as intended. In Kenya's industrial and infrastructure sectors, such as at county water treatment plants or manufactur…

🔒3.6 Uploading program to automation systems

Uploading a program to an automation system is a critical step that transitions the control logic from development to operational use. In Kenya's electrical engineering projects, such as at large-scale farms or county government facilities, this process requir…

🔒3.7 Configuring control parameters of automation system

Configuring the control parameters of an automation system is a critical stage in setting up electrical systems automation. In Kenya's electrical engineering sector, professionals must tailor these parameters to ensure optimal system performance, safety, and e…

Chapter Summary

This 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.

Self-Assessment

🔒 PDFDownload this self-assessment, with answers

A. Written Assessment

  1. Define programming in automation and explain its significance in electrical systems. (4 marks)
  2. List and describe three types of PLC programming languages. (6 marks)
🔒20 more in this section.

Chapter Examination Questions

🔒 PDFDownload these examination questions, with worked answers

SECTION A (40 Marks) - Answer ALL Questions

  1. Explain the meaning of programming in automation and its significance in industrial electrical systems such as those used at Kenya Power and Lighting Company (KPLC). (4 marks)
  2. Identify and describe three common types of PLC programming languages used in electrical automation. (4 marks)
🔒18 more in this section.

Chapter Practical Activities

Practical 1: Explain the concept and purpose of programming in automation systems

Electrical Engineering · Level 6
Electrical Systems Automation
PRACTICAL ASSESSMENT
TIME: 3 HOURS
⬇ PDFCandidate Instructions (Candidate Tool)

Type: Individual

INSTRUCTIONS TO CANDIDATE:
1.  You are required to perform the following task:
i.  Explain in writing the meaning and purpose of programming in automation systems in a report of not more than 500 words.
2.  You have been provided with the following resources for the practical task:
Tools & EquipmentMaterials
Writing materialsReference materials on automation programming
⬇ PDFResources Required (Cutting List)
S/NItemQuantity
1PPE (dustcoat/overall, safety boots)1 set per Candidate
2Writing materials (pen, notebook)1 set per Candidate
3Reference materials on automation programming1 set per 5 Candidates
⬇ PDFAssessor Guide
Items to be EvaluatedMarks AvailableMarks ObtainedComments
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-Total2
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-Total11
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-Total7
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-Total10
GRAND TOTAL30
ASSESSMENT OUTCOME:   ☐ Competent    ☐ Not Yet Competent (competent if at least 50%)

Practical 2: Develop a basic PLC ladder logic program for a three-input control system

Electrical Engineering · Level 6
Electrical Systems Automation
PRACTICAL ASSESSMENT
TIME: 4 HOURS
⬇ PDFCandidate Instructions (Candidate Tool)

Type: Individual

INSTRUCTIONS TO CANDIDATE:
1.  You are required to perform the following task:
i.  Develop and load a PLC ladder logic program to control three inputs and three outputs, labeling inputs A, B, C and outputs X, Y, Z accordingly.
2.  You have been provided with the following resources for the practical task:
Tools & EquipmentMaterials
PLC modulePersonal Protective Equipment (PPE) - dustcoat/overall
Push button switches
Indicator bulbs 9V
Bulb holders
Jumper wires (male and female)
⬇ PDFResources Required (Cutting List)
S/NItemQuantity
1PLC module1 Pc per Candidate
2Push button switches3 Pcs per Candidate
3Indicator bulbs 9V3 Pcs per Candidate
4Bulb holders3 Pcs per Candidate
5Jumper wires (male and female)Enough per Candidate
6Personal Protective Equipment (PPE) - dustcoat/overall1 Set per Candidate
⬇ PDFAssessor Guide
Items to be EvaluatedMarks AvailableMarks ObtainedComments
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-Total20
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-Total21
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-Total14
GRAND TOTAL55
ASSESSMENT OUTCOME:   ☐ Competent    ☐ Not Yet Competent (competent if at least 50%)
🔒

Free: practical guides, quick cards, workplace scenarios and more.

Create a free account
🔒Develop a PLC ladder diagram program for control of a three-input logic systemPractical 3
🔒Program a PLC using Instruction List for a three-input automation control systemPractical 4
🔒Develop and Test a Microcontroller Program for Temperature-Controlled Fan AutomationPractical 5
🔒Develop and Execute a Microcontroller Automation Program in PythonPractical 6
🔒Test and debug automation program for a conveyor belt control system 1500mm x 800mmPractical 7
🔒Upload a Developed Program into a PLC Automation Control SystemPractical 8
🔒Download a program from an automation system to a programming devicePractical 9
🔒Configure and Optimize Control Parameters of an Automation SystemPractical 10
🔒Programming and Comparing C/C++ and Python for Microcontroller AutomationPractical 11
🔒Document automation program with ladder and functional block diagramsPractical 12
Flashcards 20 cards Study deck ▾
Question
1

↻ Tap card to reveal answer
🔒

18 more in this section.

Create a free account
Test Yourself 13 questions Start quiz ▾
0%
0 / 2
🔒

11 more in this section.

Create a free account
Am I competent?

At the start of this chapter we promised you would be able to:

  • Install application software and drivers accurately by following the original equipment manufacturer’s specifications.
  • Develop automation programs correctly using the appropriate programming language for the task.

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.