Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
23 views

Lecture 2

The document discusses the fundamentals of programmable logic control including binary logic, logic gates, Boolean algebra and ladder logic. It provides examples of logic functions like AND, OR and NOT. Ladder logic is used to program PLCs and represent hardwired logic functions through software symbols.

Uploaded by

Motasem Mrwan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

Lecture 2

The document discusses the fundamentals of programmable logic control including binary logic, logic gates, Boolean algebra and ladder logic. It provides examples of logic functions like AND, OR and NOT. Ladder logic is used to program PLCs and represent hardwired logic functions through software symbols.

Uploaded by

Motasem Mrwan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 22

Mechatronics Eng.

PLC Course

ME554: Programmable Logic Control


(PLC)

Prepared By: Dr. Hani Muhsen

7/24/2019 Dr. Hani Muhsen 1


Mechatronics Eng. PLC Course

Fundamentals of Logic
➢The PLC, like all digital equipment, operates on the binary principle. The term
binary principle refers to the idea that many things can be thought of as existing
in only one of two states.

➢These states are 1 and 0. The 1 and 0 can

➢represent ON or OFF, open or closed, true or false, high or low, or any other two
conditions.

7/24/2019 Dr. Hani Muhsen 2


Mechatronics Eng. PLC Course

Fundamentals of Logic
➢A logic gate is a circuit with several inputs but only one output that is activated by
particular combinations of input conditions.

➢The two-state binary concept, applied to gates, can be the basis for making
decisions.

7/24/2019 Dr. Hani Muhsen 3


Mechatronics Eng. PLC Course

AND, OR, and NOT Functions


➢The operations performed by digital equipment are based on three fundamental
logic functions: AND, OR, and NOT.

The AND Function

7/24/2019 Dr. Hani Muhsen 4


Mechatronics Eng. PLC Course

The AND Function

7/24/2019 Dr. Hani Muhsen 5


Mechatronics Eng. PLC Course

The AND Function

7/24/2019 Dr. Hani Muhsen 6


Mechatronics Eng. PLC Course

The OR Function

7/24/2019 Dr. Hani Muhsen 7


Mechatronics Eng. PLC Course

The OR Function

7/24/2019 Dr. Hani Muhsen 8


Mechatronics Eng. PLC Course

The NOT Function

7/24/2019 Dr. Hani Muhsen 9


Mechatronics Eng. PLC Course

NAND, NOR, and XOR Gates

7/24/2019 Dr. Hani Muhsen 10


Mechatronics Eng. PLC Course

Boolean Algebra
➢The mathematical study of the binary number system and logic is called Boolean
algebra.

➢The purpose of this algebra is to provide a simple way of writing complicated


combinations of logic statements.

➢ There are many applications where Boolean algebra could be applied to solving
PLC programming problems.

7/24/2019 Dr. Hani Muhsen 11


Mechatronics Eng. PLC Course

Boolean Algebra

7/24/2019 Dr. Hani Muhsen 12


Mechatronics Eng. PLC Course

Boolean Algebra

7/24/2019 Dr. Hani Muhsen 13


Mechatronics Eng. PLC Course

Boolean Algebra

7/24/2019 Dr. Hani Muhsen 14


Mechatronics Eng. PLC Course

Boolean Algebra Rules

7/24/2019 Dr. Hani Muhsen 15


Mechatronics Eng. PLC Course

Developing Logic Gate Circuits from Boolean Expressions


Example: show a logic gate circuit developed from the Boolean expression Y = AB + C.

7/24/2019 Dr. Hani Muhsen 16


Mechatronics Eng. PLC Course

Hardwired Logic versus Programmed Logic


➢The term hardwired logic refers to logic control functions that are determined by
the way devices are electrically interconnected. Hardwired logic can be
implemented using relays and relay ladder schematics. Relay ladder schematics
are universally used and understood in industry.

7/24/2019 Dr. Hani Muhsen 17


Mechatronics Eng. PLC Course

Ladder logic
➢The control scheme is drawn between two vertical supply lines. All the components are
placed between these two lines, called rails or legs, connecting the two power lines with
what look like rungs of a ladder—thus the name, relay ladder schematic.

➢A rung is the contact symbolism required to control an output. Some PLCs allow a rung to
have multiple outputs while others allow only one output per rung.

➢A complete ladder logic program then consists of several rungs, each of which controls
an output. In programmed logic all mechanical switch contacts are represented by a
software contact symbol and all electromagnetic coils are represented by a software coil
symbol.

7/24/2019 Dr. Hani Muhsen 18


Mechatronics Eng. PLC Course

Ladder logic
➢Each rung is a combination of input conditions (symbols) connected from left to
right, with the symbol that represents the output at the far right.

Examples:

Two limit switches connected in series and used to control


a solenoid valve.

7/24/2019 Dr. Hani Muhsen 19


Mechatronics Eng. PLC Course

Ladder logic
Examples:

Two limit switches connected in parallel and used to control a solenoid valve.

7/24/2019 Dr. Hani Muhsen 20


Mechatronics Eng. PLC Course

Ladder logic
Examples:

Two limit switches connected in parallel with each other and in series with a pressure
switch.
7/24/2019 Dr. Hani Muhsen 21
Mechatronics Eng. PLC Course

Ladder logic

Exclusive-OR circuit. The output lamp of this circuit is ON only when pushbutton A or B is
pressed, but not both. This circuit has been programmed using only the normally open A
and B pushbutton contacts as the inputs to the program.

7/24/2019 Dr. Hani Muhsen 22

You might also like