Embedded Systems & PLC

AIMS
• To develop knowledge and skill on programming and interfacing to embedded systems using
Micro controller.
• To develop knowledge and skill on PLC programming, interfacing and communication.
SHORT DESCRIPTION
The microcontroller features, architecture, instructions, addressing modes, programming, serial communication, interrupts programming and the real world interfacing. Programmable logic controller and interfacing; PLC programming; PLC and Industrial control systems.

DETAIL DESCRIPTION

THEORY:
1 Understand the basic of microcontroller

1.1 Define embedded system and microcontroller

1.2 Distinguish between Von Neumann and Harvard Architecture of microcontroller

1.3 Distinguish microcontroller and microprocessor

1.4 State the Application field of Microcontroller

1.5 List different manufacturer of microcontroller

1.6 State criteria for choosing a microcontroller

2 Review the memory elements and I/O Devices

2.1 Define Microcontroller peripherals.
2.2 State the structure and function of register, counter, timer ,decoder , multiplexer and
digital comparator
2.3 State the structure and function of multi bit two state and three state register.
2.4 State the function of pin and signals of an 8 bit Digital to analog Converter
2.5.State the function of pin and signals of an 8 bit Analog to Digital Converter

3 Understand the feature of the PIC microcontroller

3.1 List the main feature of the PIC microcontroller

3.2 Describe the architecture of mid-range PIC microcontroller

3.3 Describe the SFR (Special Function Register) of PIC16X84 microcontroller

3.4 Describe the memory organization of the PIC 16F84A

3.5 Describe the pins and signals of PIC16F84A
3.6 Describe the structure and function of STATUS register

3.7 Describe the structure and function of OPTION_REG register (specially TMR0 associate register)

4. Understand programming in PIC16F84A microcontroller

4.1 Mention the types of instruction in mid-range PIC microcontroller

4.2 Describe the syntax, operation and description of each instruction in mid-range PIC microcontroller

4.3 Draw the program structure of PIC microcontroller

4.4 Define software development tools and IDE

4.5 List some software development tools and IDE for PIC microcontroller

4.6 Mention the steps to create an executable program.

4.7 Name the files created in PLC assembly language program.

5 Understand the concept of I/O ports and timer modules.

5.1 Name the I/O ports of PIC16F84A and their corresponding data direction register.
5.2 Describe the function of I/O ports of PIC16F84A and their corresponding data direction register.
5.3 Write simple program codes for initializing I/O ports.
5.4 State the general features of Timer0 module.
5.5 Describe the functions and operation of PIC16F84A Timer0 module.
5.6 State the function of prescaler.
5.7 State the function of each bits of PIC16F84A configuration word.
5.8 State the oscillator type/mode uses with PIC16F84A.
5.9 State the Hardware configuration of crystal oscillator in PIC16F84A.

6. Understand special control features of PIC16F84A
6.1 State the types of Reset used in PIC16F84A

6.2 Define Power On Reset(POR),Power Up Timer(PWRT) and Oscillator Start Up Timer(OST)

6.3 State the function of Time Out Sequence and Power Down Status bits (TO/PD) of PIC16F84A.

6.4 State the function of each interrupts sources used in PIC16F84A.

6.5 Describe the operation of Watchdog Timer in PIC16F84A.

6.6 State the function of Power down Mode (Sleep and Wake up from sleep) in PIC16F84A.

7. Understand the functions of PLC

7.1 Define PLC
7.2 State the purpose of PLC
7.3 Describe the functional block diagram of a PLC system
7.4 State the feature of Input and Outputs of a PLC
7.5 Describe the AC input connection system of a typical PLC
7.6 Describe the operation of a electrically Isolated PLC input and output circuit
7.7 Distinguish between fixed PLC and modular PLC
7.8 Mention the name and JIC symbol of input and output devices of PLC system.
7.9 State the uses of multi bit and single bit memory in PLC system.

8. Understand the addressing and programming technique of PLC

8.1 State the technique of input/output addressing of PLC program.

8.2 Mention the way of internal relay and data resistor addressing in PLC Program.

8.3 State the way of timer and counter addressing in PLC program.

8.4 State the meaning of scan time

8.5 Mention the influencing factors of scan time

8.6 Describe different types of PLC programming with example.

9. Understand PLC instructions and program with ladder diagram.

9.1 Define rail and rung.

9.2 Mention the name and symbol of Relay type instructions.

9.3 Mention the point to be considered for developing PLC program.

9.4 Prepare sample program using Relay type instructions.

9.5 Develop simple program using timer and counter instructions.

9.6 Develop simple program using word comparing and arithmetic instructions.

10. Understand PLC system maintenance and trouble shooting.

10.1. State the general, input and output specification of a PLC system.
10.2. State the software requirements of a PLC system.
10.3. Describe the features of SCADA.
10.4 State the rules of PLC installation.
10.5 State the meaning of commissioning and their stages.
10.6 State the general procedure of trouble shooting and repairing PLC.

Practical:
Microcontroller

1 Perform the tasks to design and develop a microcontroller based system for flashing LEDs.

1.1 Design the schematic and component layout diagram of the system.

1.2 Construct the system according to the designed diagram.

1.3 Draw the flow chart of the program.

1.4 Code the program/Project using an appropriate microcontroller based software (MPLAB IDE).

1.5 Build the program /project

1.6 Connect the interface circuit with the microcontroller system.

1.7 Simulate the program to demonstrate the result /process in PC

1.8 Prepare a report for the job.

2 Perform the tasks to load/burn /write Hex file to the microcontroller for flashing LED lights.

2.1 Run / open the appropriate programming/ burning software(PCKIT2).

2.2 Connect the programmer/ burner with the PC

2.3 Set the microcontroller to the Socket.

2.4 Import the Hex file of the previously build project.

2.5 Perform necessary setting and configuration

2.6 Load/ burn / write the program to the microcontroller.

2.7 Demonstrate the output of the system by connecting the hardware with the programmed
microcontroller/ Demonstrate board.

2.8 Prepare a report for the Job.

3 Perform the tasks to design and develop a microcontroller based system for running LED lights.

3.1 Design the schematic and component layout diagram of the system.

3.2 Construct the system according to the designed diagram.

3.3 Draw the flow chart of the program.

3.4 Code the program/Project using an appropriate microcontroller based software (MPLAB IDE).

3.5 Build the program /project

3.6 Connect the interface circuit with the microcontroller system.

3.7 Simulate the program to demonstrate the result /process in PC

3.8 . Load/burn /write Hex file to the microcontroller

3.9 Demonstrate the output of the system by connecting the hardware with the programmed
microcontroller/ Demonstrate board

3.10 Prepare a report for the Job

4 Perform the tasks to design and develop a microcontroller based system for generating timing pulses (triangular wave or square wave).

4.1 Design the schematic and component layout diagram of the system.

4.2 Construct the system according to the designed diagram.

4.3 Draw the flow chart of the program.

4.4 Code the program/Project using an appropriate microcontroller based software (MPLAB IDE).

4.5 Build the program /project

4.6 Connect the interface circuit with the microcontroller system.

4.7 Simulate the program to demonstrate the result /process in PC

4.8 . Load/burn /write Hex file to the microcontroller.

4.9 Demonstrate the output of the system by connecting the hardware with the programmed
Microcontroller and oscilloscope

4.10 Prepare a report for the Job

5. Perform the tasks to design and develop a microcontroller based system for displaying hexadecimal digit using a common anode/common cathode seven segment display.

5.1 Design the schematic and component layout diagram of the system.

5.2 Construct the system according to the designed diagram.

5.3 Draw the flow chart of the program.

5.4 Code the program/Project using an appropriate microcontroller based software
(MPLAB IDE).

5.5 Build the program /project

5.6 Connect the interface circuit with the microcontroller system.

5.7 Simulate the program to demonstrate the result /process in PC

5.8 . Load/burn /write Hex file to the microcontroller

5.9 Demonstrate the output of the system by connecting the hardware with the programmed
microcontroller/ Demonstrate board

5.10 Prepare a report for the Job

6 Perform the tasks to design and develop a microcontroller based system for displaying characters in a LED Dot Matrix display.

6.1 Design the schematic and component layout diagram of the system.

6.2 Construct the system according to the designed diagram.

6.3 Draw the flow chart of the program.

6.4 Code the program/Project using an appropriate microcontroller based software (MPLAB IDE).

6.5 Build the program /project

6.6 Connect the interface circuit with the microcontroller system.

6.7 Simulate the program to demonstrate the result /process in PC

6.8 . Load/burn /write Hex file to the microcontroller

6.9 Demonstrate the output of the system by connecting the hardware with the programmed
microcontroller/ Demonstrate board

6.10 Prepare a report for the Job

7 Perform the tasks to design and develop a microcontroller based interface system to control the speed and direction of a stepper motor.

7.1 Design the schematic and component layout diagram of the system.

7.2 Construct the system according to the designed diagram.

7.3 Draw the flow chart of the program.

7.4 Code the program/Project using an appropriate microcontroller based software (MPLAB IDE).

7.5 Build the program /project

7.6 Connect the interface circuit with the microcontroller system.

7.7 Simulate the program to demonstrate the result /process in PC

7.8 . Load/burn /write Hex file to the microcontroller

7.9 Demonstrate the output of the system by connecting the hardware with the programmed
microcontroller/ Demonstrate board

7.10 Prepare a report for the Job

8 Perform the tasks to design and develop a microcontroller based system to control the rotation speed of a DC motor.

8.1 Design the schematic and component layout diagram of the system.

8.2 Construct the system according to the designed diagram.

8.3 Draw the flow chart of the program.

8.4 Code the program/Project using an appropriate microcontroller based software (MPLAB IDE).

8.5 Build the program /project

8.6 Connect the interface circuit with the microcontroller system.

8.7 Simulate the program to demonstrate the result /process in PC

8.8 . Load/burn /write Hex file to the microcontroller

8.9 Demonstrate the output of the system by connecting the hardware with the programmed
microcontroller/ Demonstrate board

8.10 Prepare a report for the Job

9 Perform the tasks to design and develop a microcontroller based digital to analog conversion (DAC) interface system.

8.1 Design the schematic and component layout diagram of the system.

8.2 Construct the system according to the designed diagram.

8.3 Draw the flow chart of the program.

8.4 Code the program/Project using an appropriate microcontroller based software (MPLAB IDE).

8.5 Build the program /project

8.6 Connect the interface circuit with the microcontroller system.

8.7 Simulate the program to demonstrate the result /process in PC

8.8 . Load/burn /write Hex file to the microcontroller

8.9 Demonstrate the output of the system by connecting the hardware with the programmed
microcontroller/ Demonstrate board

8.10 Prepare a report for the Job

9 Perform the tasks to design and develop a microcontroller based analog to digital conversion (ADC) interface system.

9.1 Design the schematic and component layout diagram of the system.

9.2 Construct the system according to the designed diagram.

9.3 Draw the flow chart of the program.

9.4 Code the program/Project using an appropriate microcontroller based software (MPLAB IDE).

9.5 Build the program /project

9.6 Connect the interface circuit with the microcontroller system.

9.7 Simulate the program to demonstrate the result /process in PC

9.8 . Load/burn /write Hex file to the microcontroller

9.9 Demonstrate the output of the system by connecting the hardware with the programmed
microcontroller/ Demonstrate board

9.10 Prepare a report for the Job
.

10 Perform the tasks to design and develop a microcontroller based traffic light interface system for controlling the direction and movement of vehicles at a junction of 4 roads.

10.1 Design the schematic and component layout diagram of the system.

10.2 Construct the system according to the designed diagram.

10.3 Draw the flow chart of the program.

10.4 Code the program/Project using an appropriate microcontroller based software (MPLAB IDE).

10.5 Build the program /project

10.6 Connect the interface circuit with the microcontroller system.

10.7 Simulate the program to demonstrate the result /process in PC

10.8 . Load/burn /write Hex file to the microcontroller

10.9 Demonstrate the output of the system by connecting the hardware with the programmed
microcontroller/ Demonstrate board

10.10 Prepare a report for the Job
.

Programmable Logic Controller

11 Identify the parts and components of a PLC system

12 Perform the tasks to develop and Simulate/execute a PLC ladder program(diagram) to start and stop a AC light.

13 Perform the tasks to develop and Simulate/execute PLC ladder program (diagram) using timer instructions to operate a buzzer.

14 Perform the tasks to develop and Simulate/execute a PLC ladder program (diagram) to operate indicator/ light using counter instructions.

15 Perform the tasks to develop and Simulate a PLC ladder logic(diagram) to operate a DC motor using PLC ladder logic.

16 Perform the tasks to to operate a relay using PLC ladder logic diagram.

17 Perform the tasks to demonstrate the operation for controlling a Magnetic Contact

18 Perform the tasks to develop and Simulate a PLC ladder logic(diagram) to control a filling control circuit.

19 Perform the tasks to develop and Simulate a PLC ladder logic (diagram) to control a Conveyor belt motor control circuit.

**One practical class must be conducted on Microcontroller and another on PLC per week.
Reference Web address and books
1. PIC16F84A Data sheet – http://www.microchip.com
2. User Manual for PIC16F84A Training Kit – http://www.microprocessorinstitute.edu
3. The 8051 microcontroller and embedded systems using assembly and C
− Muhammad Ali Mazidi
4. Microcontroller (theory and applications)
− Ajay V Deshmukh
5. Training manual –Programmable logic Controller and its application
in industrial automation. –Institution of Engineers, Bangladesh,
H/Q ,Ramna,Dhaka-1000
6. Programmable Logic Controllers.
− W. Bolton

Powered BY: BTEB