0% found this document useful (0 votes)
109 views10 pages

4-PLC Programming-2020-Hand Out

This document provides an introduction to PLC programming using ladder logic. Students will learn how to construct ladder diagrams to represent logic functions like AND, OR, NAND and XOR that control outputs based on sensor inputs. Ladder diagrams are drawn with horizontal rungs connecting power rails, allowing circuits to be built similarly to electrical diagrams. Examples show how ladder logic can be used to program systems like temperature controls that turn outputs on and off based on input conditions. References are also provided for further reading on PLC and ladder logic fundamentals.

Uploaded by

Ibrahim
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
109 views10 pages

4-PLC Programming-2020-Hand Out

This document provides an introduction to PLC programming using ladder logic. Students will learn how to construct ladder diagrams to represent logic functions like AND, OR, NAND and XOR that control outputs based on sensor inputs. Ladder diagrams are drawn with horizontal rungs connecting power rails, allowing circuits to be built similarly to electrical diagrams. Examples show how ladder logic can be used to program systems like temperature controls that turn outputs on and off based on input conditions. References are also provided for further reading on PLC and ladder logic fundamentals.

Uploaded by

Ibrahim
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

EMC 311/3 Mechatronics

PLC Programming
Lecture 4

Assoc. Prof. Dr Elmi Abu Bakar


Tel.: 04-5995954
Fax: 04-5996911
Email: [email protected]
http://elearning.usm.my/
Introduction
• Explain programmable logic controller (PLC) programming using
ladder diagram
• Students will learn
• Programmable logic controller (PLC)
• Ladder Programming (Chapter 21.4 pg 445-447)
• Logic function (Chapter 21.4.1 pg 447-449)
• Knowledge and experience on computer help understanding.
Programming
Power supply

• Use ladder diagram like


drawing switching circuit Rung
000.00 010.00
• Ladder diagram is a high level
Series Outpu
language because instruction (AND) 000.01 000.02 010.01 devic
almost similar to function
• Ladder diagram has 2 vertical 000.03 010.02

lines represent power lines (+


& -) Normally
000.04 010.03

opened contact
• Circuit is constructed by input 000.05 000.06 010.04
horizontal lines connection
(rung) between 2 vertical lines 000.07
Parallel
(OR)

Normally closed
contact input
Drawing rung
• To draw circuit for a rung
• Input must be in front of output
• At lease there is one output
• Input & output are labeled with address following PLC manufacturer
• Example CPM1A Sysmac Omron PLC address
• 6 inputs 000.00-000.05
• 4 outputs 010.00-010.03
• Example circuit to activate solenoid controlling water pipe valve with a
normally opened switch. When the switch is closed the current flows &
solenoid is activated.

SWITCH COM COM


+24 V 0 V
PLC
000.00 010.00
Structure area memory PLC Omron
Example of temperature control system
• Control temperature ON-OFF
• Input changing from low to high when sensor reach certain
temperature
• Output will change from ON to OFF
Series (AND) & parallel (OR) logic function
SWITCH A
SWITCH A SWITCH B
SWITCH B

Series
(AND)

Parallel
(OR)

Truth Table AND Truth Table OR


input output input output
000.00 000.01 010.00 000.00 000.01 010.00
0 0 0 0 0 0
0 1 0 0 1 1
1 0 0 1 0 1
1 1 1 1 1 1
NOR, NAND & XOR logic function

Truth Table NOR Truth Table NAND Truth Table XOR


input output input output input output
000.00 000.01 010.00 000.00 000.01 010.00 000.00 000.01 010.00
0 0 1 0 0 1 0 0 0
0 1 0 0 1 1 0 1 1
1 0 0 1 0 1 1 0 1
1 1 0 1 1 0 1 1 0
Summary

• Students have learned


• Programming PLC is done by constructing ladder diagram
• Each rung represents circuit for controlling output using
logic function
• Circuit can be built for logic functions AND, OR, NOR,
NAND & XOR
• Foundation to build PLC program
References
• Webb, John W., “Programmable logic controllers”
• Swainston, Fred, “A systems approach to programmable controllers”
• Parr, E. A. & E. Andrew, “Programmable controllers: an engineer's guide”
• Warnock, Ian G., “Programmable controllers: operation and application”
• Den, Otter J., “Programmable logic controllers”
• Bolton, Martin, “Digital systems design with programmable logic”
• Kissell, Thomas E., “Understanding and using programmable controllers”
• Treseler, Michael, “Designing state machine controllers using
programmable logic”
• Stenerson, Jon, “Fundamentals of programmable logic controllers, sensors,
and communications”
• Knapp, William, “Introduction to programmable logic controllers
(videorecording)”

You might also like