Professional Documents
Culture Documents
• Lamp will light ONLY when the switches A and B are CLOSED, i.e. A
and B both “1”
Industrial Automation
• Boolean Languages/Algebra & Binary Logic….
– AND operation……
• Boolean Equation
Notation: A.B = C
AB=C
• Symbol : AND gate
Industrial Automation
• Boolean Languages/Algebra & Binary Logic….
– OR operation
• Describes events which can occur IF at LEAST ONE of the other
events are TRUE.
• Consider:
NOTE:
An alternative arrangement, which gives exactly the same results, is to
put a NOT gate on each input and then follow that with OR
Industrial Automation
• Boolean Languages/Algebra & Binary Logic….
– NOR operation
• Situation where there is an output when neither input A nor input
B is 1.
• Truth Table……..????
• NOTATION: ……????
• SYMBOL: NOR gate……????
//The consequence of having the NOT gate is to invert the outputs of the
OR gate.
NOTE:
An alternative, which gives exactly the same results, is to put a NOT gate
on each input and then an AND gate for the resulting inverted inputs
Industrial Automation
• Boolean Languages/Algebra & Binary Logic….
– XOR operation
• Situation where if there is a need for a gate that gives an output
when either of the inputs is 1 but not when both are 1,Such a gate
is called an Exclusive OR or XOR gate
• Truth Table……..????
• NOTATION: ……????
• SYMBOL: XOR gate……????
NOTE:
One way of obtaining such a gate is by using NOT, AND and OR gates
Industrial Automation
• Boolean Languages/Algebra & Binary Logic….
– BASIC LAWS OF BOOLEAN ALGEBRA
COMUTATIVE LAW:
A+B=B+A
A.B =B.A
ASSOCIATIVE LAW:
A + (B + C) = (A + B) + C
A(BC) = (AB)C
DISTRIBUTIVE LAW:
A(B + C) = AB + AC
Industrial Automation
• Boolean Languages/Algebra & Binary Logic….
– BASIC RULES OF BOOLEAN ALGEBRA
1. A + 0 = A
2. A + 1 = 1
3. A . 0 = 0
4. A . 1 = A
5. A + A = A
6. A + A = 1
7. A . A = A
8. A . A = 0
9. A = A
10. A + AB = A
11. A + AB = A + B
12. (A+B)(A+C) = A+BC
Industrial Automation
• Steps in designing a logic system
i. Define the problem
ii. Write the truth table
iii. Write the Boolean (or logic) equations
iv. Simplify equations to minimize the number of gates
v. Draw a logic diagram
vi. Implement the logic diagram using electronic circuitry
Industrial Automation
• Logic system design gates minimization techniques using
Boolean algebra laws.
– Example 1:
We have a car with 3 main control systems. we want a warning
lamp to light if any of the following conditions occur:
1. ALL SYSTEMS ARE DOWN
2. SYSTEMS A,B DOWN BUT C IS OK
3. SYSTEMS A,C DOWN BUT B IS OK
4. SYSTEM A DOWN BUT B,C ARE OK
Minimization Tech:
i. Define the problem
– There are two possible states for each system:
Assign:
system: down = “0”, ok = ”1”
light: off = “0”, on = “1”
Industrial Automation
• Logic system design gates minimization techniques using
Boolean algebra laws…..
– Example 1:….
Minimization Tech:……
ii. Truth Table
Note:
• In PLC Ladder Logic:No Real Power Flow (like in relay ladder)
• There must be continuous path through the contacts to energize the
output.
Industrial Automation
• Ladder Diagram
– Binary Input Devices
Device One/Zero Interpretation
• Limit switch Contact/no contact
• Photo detector Contact/no contact
• Pushbutton switch On/off
• Timer On/off
• Control relay Contact/no contact
• Circuit breaker Contact/no contact
Industrial Automation
• Ladder Diagram
– Binary Output Devices
Device One/Zero Interpretation
• Motor On/off
• Alarm buzzer On/off
• Lights On/off
• Control relay Contact/no contact
• Valves Closed/open
• Clutch Engaged/not engaged
• Solenoid Energised/not energised
Industrial Automation
• Anatomy of Ladder Diagram
Input instructions are entered on the
left
Output instructions are entered on
the right
The power rails simulate the power
supply lines L1 and L2 for AC circuits
and +24V and ground for DC circuits
Most PLCs allow more than one
output per rung
The processor (or “controller”) scans
ladder rungs from top-to-bottom and
from left-to-right.
The basic sequence is altered
whenever jump or subroutine
instructions are executed.
Industrial Automation
• The basic ladder logic contact symbols are:
– Normally open (NO):Passes power (on) if *** is on (closed).
Combination Logic
• Combination logic of the Ladder Diagram is a circuit that combines
one or more input elements in series or parallel and then send the
results to the output elements, such as Coils, Timers/Counters and ,
Contact
This an element with open or short status.
One kind of contact is called "Input contact"(reference number prefix with X) and
its status reference from the external signals (the input signal comes from the
input terminal block/module).
Another one is called "Relay contact" and its status reflects the status of relay
coil
Example of contact are: A contact, B contact, up/down differential (TU/TD)
contacts and Open/Short contacts
Industrial Automation
Ladder Diagram Structure and Terminology……
Relay
It consists of a Coil and a Contact
We must energize the coil of relay first (using OUT instruction) in order to turn
on the relay. After the coil is energized, its contact status will be ON too
As shown in the diagram below, if Y0 turns ON, then the relay contact A is ON
and contact B is OFF, TU contact only turns ON for one scan duration and TD
contact is OFF.
There are four types of PLC relays, namely :
Y(output relay)
M(internal relay)
S(step relay)
TR(temporary relay).
The statuses of output relays will be sent to the output terminal block/module.
Origin-line: The starting line at the left side of the Ladder Diagram.
Element: Element is the basic unit of a Ladder Diagram. An element consists of two
parts. One is the element symbol which is called “OP Code” and another is the
reference number part which is called "Operand”.
Industrial Automation
Industrial Automation
Ladder Diagram Structure and Terminology……
Node: The connection point between two or more elements
Block:
It is a circuit consists of two or more elements.
1. Serial block: Two or more elements are connected in series to form a single row
circuit
2. Parallel block: Parallel block is a type of a parallel closed circuit formed by
connecting elements or serial blocks in parallel.
Branch: In any network, branch is obtained if the right side of a vertical line is
connected with two or more rows of circuits.
Merge Branch/Line is defined as another vertical line at the right side of a branch
line that merges the branch circuits into a closed circuit (forming a parallel block).
This vertical line is called “Merge line”.