SlideShare a Scribd company logo
1 of 27
Download to read offline
Industrial Computer Application, Chapter III: Relay Logic Diagrams
© 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd
Industrial Computer Application
Chapter III
Relay Logic Diagrams
Professor Dr. Ibrahim Hamarash
ibrahim.hamad@ukh.edu.krd
Industrial Computer Application, Chapter III: Relay Logic Diagrams
© 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd
The Binary Concept
✓ 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.
✓ The key to the speed and accuracy with which binary
information can be processed is that there are only two states,
each of which is distinctly different. There is no in-between
state so when information is processed the outcome is either
yes or no.
Industrial Computer Application, Chapter III: Relay Logic Diagrams
© 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd
The Logic Gate
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.
Logic is the ability to make decisions when one or more
different factors must be taken into account before an
action is taken. This is the basis for the operation of the
PLC, where it is required for a device to operate when
certain conditions have been met.
Industrial Computer Application, Chapter III: Relay Logic Diagrams
© 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd
Example:
The high beam automobile lighting circuit of example of a
logical AND decision. For this application, the high beam
light can be turned on only when the light witch AND the
high beam switch are closed.
Example:
The dome light automobile circuit of Figure 4-2 is an
example of a logical OR decision. For this application, the
dome light will be turned on whenever the passenger door
switch OR the driver door switch is activated.
Industrial Computer Application, Chapter III: Relay Logic Diagrams
© 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd
Logical Functions
✓ The operations performed by digital equipment are
based on three fundamental logic functions: AND, OR,
and NOT. Each function has a rule that will determine .
✓ the outcome and a symbol that represents the operation.
For the purpose of this discussion, the outcome or output is called
Y and the signal inputs are called A, B, C,
and so on. Also, binary 1 represents the presence of a
signal or the occurrence of some event, and binary 0
represents the absence of the signal or nonoccurrence
of the event
Industrial Computer Application, Chapter III: Relay Logic Diagrams
© 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd
The AND Function
Industrial Computer Application, Chapter III: Relay Logic Diagrams
© 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd
The OR Function
Industrial Computer Application, Chapter III: Relay Logic Diagrams
© 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd
The NOT Function
Industrial Computer Application, Chapter III: Relay Logic Diagrams
© 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd
Example (NAND, NOR)
Industrial Computer Application, Chapter III: Relay Logic Diagrams
© 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd
The XOR Function
Industrial Computer Application, Chapter III: Relay Logic Diagrams
© 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd
The 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.
Industrial Computer Application, Chapter III: Relay Logic Diagrams
© 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd
The Boolean Equation
✓ PLC digital systems may be designed
using Boolean algebra. Circuit
functions are represented by Boolean
equations.
✓ The figure illustrates how logic
operators AND, NAND, OR, NOR, and
NOT are used singly to form logical
statements.
✓ The figure illustrates how basic logic
operators are used in combination to
form Boolean equations
Industrial Computer Application, Chapter III: Relay Logic Diagrams
© 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd
The Boolean Algebra Laws
Industrial Computer Application, Chapter III: Relay Logic Diagrams
© 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd
Example: Developing logic gate circuit from Boolean
Expression
Y=A (BC+D)
Industrial Computer Application, Chapter III: Relay Logic Diagrams
© 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd
The Hardwired 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.
Hardwired logic is fixed; it is changeable
only by altering the way devices are
electrically interconnected.
Industrial Computer Application, Chapter III: Relay Logic Diagrams
© 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd
The Hardwired Logic, cont.
A typical relay ladder schematic of a
motor stop/start control station with pilot lights is
shown in this diagram. 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
Industrial Computer Application, Chapter III: Relay Logic Diagrams
© 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd
The Programmable Control
The programmable control is based on the basic logic
functions, which are programmable and easily changed.
These functions (AND, OR, NOT) are used either singly or in
combinations to form instructions that will determine if a
device is to be switched on or off. The form in which these
instructions are implemented to convey commands
to the PLC is called the language.
The most common PLC language is ladder logic.
shows a typical ladder logic program for the motor start/stop
circuit. The instructions used are the relay equivalent of
normally open (NO) and normally closed (NC) contacts and coils
Industrial Computer Application, Chapter III: Relay Logic Diagrams
© 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd
Example: The Programmable Control
This diagram shows a typical ladder logic
program for the motor start/stop circuit. The
instructions used are the relay equivalent of
normally open (NO) and normally closed (NC)
contacts and coils
Industrial Computer Application, Chapter III: Relay Logic Diagrams
© 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd
Notes
✓ PLC contact symbolism is a simple way of expressing
the control logic in terms of symbols. These symbols are
basically the same as those used for representing hardwired relay
control circuits. 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.
Industrial Computer Application, Chapter III: Relay Logic Diagrams
© 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd
Examples:
The relationship between
the relay ladder schematic,
the ladder logic program,
and the equivalent logic gate
circuit.
LS: Limit Switch
SOL: Solenoid
PL: Pilot Lamp
PS: Push Button
Industrial Computer Application, Chapter III: Relay Logic Diagrams
© 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd
Examples:
The relationship
between the relay
ladder schematic, the
ladder logic program,
and the equivalent logic
gate circuit.
LS: Limit Switch
FS: Flow Switch
PL:Pilot Lamp
Industrial Computer Application, Chapter III: Relay Logic Diagrams
© 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd
Examples:
The relationship between
the relay ladder schematic,
the ladder logic program,
and the equivalent logic gate
circuit.
Industrial Computer Application, Chapter III: Relay Logic Diagrams
© 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd
Programming Word Level Logic
Instructions
Most PLCs provide word-level logic instructions as
part of their instruction set.
The figure illustrates the operation of the AND
instruction to perform a word-level AND operation
using the bits in the two source addresses. This
instruction tells the processor to perform an AND
operation on B3:5 and B3:7 and to store the result in
destination B3:10 when input device A is true. The
destination bits are a result of the logical AND
operation.
Industrial Computer Application, Chapter III: Relay Logic Diagrams
© 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd
Programming Word Level Logic Instructions
The figure illustrates the operation of a word-level
OR instruction, which ORs the data in Source A, bit by
bit, with the data in Source B and stores the result at the
destination address. The address of Source A is B3:1,
the address of Source B is B3:2, and the destination
address is B3:20. The instruction may be programmed
conditionally, with input instruction(s) preceding it, or
unconditionally, as shown, without any input instructions
preceding it.
Industrial Computer Application, Chapter III: Relay Logic Diagrams
© 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd
Selecting the correct word logic instruction for different situations
If you want to . . .
. . . use this
instruction.
Know when matching bits in two different
words are both ON
AND
Know when one or both matching bits in two
different words are ON
OR
Know when one or the other bit of matching
bits in two different words is ON
XOR
Reverse the state of bits in a word NOT
Industrial Computer Application, Chapter III: Relay Logic Diagrams
© 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd
Reading List
Frank Petruzella, Programmable Logic Controllers, McGeaw Hill, 5th Ed.,
2017.
Austin Scott, Instant PLC Programming with RSLogix 5000, Packt
Publishers, 2013.
Websites
https://www.plcacademy.com
http://www.plcs.net
Industrial Computer Application, Chapter III: Relay Logic Diagrams
© 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd
Questions?

More Related Content

Similar to Industrial Computer Applications, ch-3

IRJET- A Study of Programmable Logic Controllers (PLC) and Graphical User Int...
IRJET- A Study of Programmable Logic Controllers (PLC) and Graphical User Int...IRJET- A Study of Programmable Logic Controllers (PLC) and Graphical User Int...
IRJET- A Study of Programmable Logic Controllers (PLC) and Graphical User Int...IRJET Journal
 
IRJET-A Study of Programmable Logic Controllers (PLC) and Graphical User Inte...
IRJET-A Study of Programmable Logic Controllers (PLC) and Graphical User Inte...IRJET-A Study of Programmable Logic Controllers (PLC) and Graphical User Inte...
IRJET-A Study of Programmable Logic Controllers (PLC) and Graphical User Inte...IRJET Journal
 
MATLAB Based Major Projects for ECE Research Help
MATLAB Based Major Projects for ECE Research HelpMATLAB Based Major Projects for ECE Research Help
MATLAB Based Major Projects for ECE Research HelpMatlab Simulation
 
Automatic Car Parking System Using PLC
Automatic Car Parking System Using PLCAutomatic Car Parking System Using PLC
Automatic Car Parking System Using PLCIRJET Journal
 
To Perform SIL And PIL Testing on Fast Dynamic System using Economical AVR Co...
To Perform SIL And PIL Testing on Fast Dynamic System using Economical AVR Co...To Perform SIL And PIL Testing on Fast Dynamic System using Economical AVR Co...
To Perform SIL And PIL Testing on Fast Dynamic System using Economical AVR Co...ijsrd.com
 
Resume - Swapnil Shewalkar (1)
Resume - Swapnil Shewalkar (1)Resume - Swapnil Shewalkar (1)
Resume - Swapnil Shewalkar (1)Swapnil Shewalkar
 
Summer Internship Report on PLC
Summer Internship Report on PLCSummer Internship Report on PLC
Summer Internship Report on PLCSudeep Giri
 
Summer Internship Report For PLC Programming of Traffic light through Ladder ...
Summer Internship Report For PLC Programming of Traffic light through Ladder ...Summer Internship Report For PLC Programming of Traffic light through Ladder ...
Summer Internship Report For PLC Programming of Traffic light through Ladder ...Aman Gupta
 
Implementation of T-Junction Traffic Light Control System Using Simatic S7-20...
Implementation of T-Junction Traffic Light Control System Using Simatic S7-20...Implementation of T-Junction Traffic Light Control System Using Simatic S7-20...
Implementation of T-Junction Traffic Light Control System Using Simatic S7-20...IJERA Editor
 
Training report on Embedded Systems and MATLAB
Training report on Embedded Systems and MATLABTraining report on Embedded Systems and MATLAB
Training report on Embedded Systems and MATLABAswin Sreeraj
 
EE323 Mini-Project - Line tracing robot
EE323 Mini-Project - Line tracing robotEE323 Mini-Project - Line tracing robot
EE323 Mini-Project - Line tracing robotPraneel Chand
 
PLC and SCADA training.
PLC and SCADA training.PLC and SCADA training.
PLC and SCADA training.Ishank Ranjan
 
Discription of PLC and SCADA
Discription of PLC and SCADADiscription of PLC and SCADA
Discription of PLC and SCADAIshank Ranjan
 
Eee3420 lecture03 rev2011
Eee3420 lecture03 rev2011Eee3420 lecture03 rev2011
Eee3420 lecture03 rev2011benson215
 
Inception Institute of Industrial Training Brochure 2014 by APRM
Inception Institute of Industrial Training Brochure 2014 by APRMInception Institute of Industrial Training Brochure 2014 by APRM
Inception Institute of Industrial Training Brochure 2014 by APRMATHAL Public Relations & Marketing
 

Similar to Industrial Computer Applications, ch-3 (20)

IRJET- A Study of Programmable Logic Controllers (PLC) and Graphical User Int...
IRJET- A Study of Programmable Logic Controllers (PLC) and Graphical User Int...IRJET- A Study of Programmable Logic Controllers (PLC) and Graphical User Int...
IRJET- A Study of Programmable Logic Controllers (PLC) and Graphical User Int...
 
IRJET-A Study of Programmable Logic Controllers (PLC) and Graphical User Inte...
IRJET-A Study of Programmable Logic Controllers (PLC) and Graphical User Inte...IRJET-A Study of Programmable Logic Controllers (PLC) and Graphical User Inte...
IRJET-A Study of Programmable Logic Controllers (PLC) and Graphical User Inte...
 
MATLAB Based Major Projects for ECE Research Help
MATLAB Based Major Projects for ECE Research HelpMATLAB Based Major Projects for ECE Research Help
MATLAB Based Major Projects for ECE Research Help
 
Automatic Car Parking System Using PLC
Automatic Car Parking System Using PLCAutomatic Car Parking System Using PLC
Automatic Car Parking System Using PLC
 
To Perform SIL And PIL Testing on Fast Dynamic System using Economical AVR Co...
To Perform SIL And PIL Testing on Fast Dynamic System using Economical AVR Co...To Perform SIL And PIL Testing on Fast Dynamic System using Economical AVR Co...
To Perform SIL And PIL Testing on Fast Dynamic System using Economical AVR Co...
 
Resume - Swapnil Shewalkar (1)
Resume - Swapnil Shewalkar (1)Resume - Swapnil Shewalkar (1)
Resume - Swapnil Shewalkar (1)
 
Summer Internship Report on PLC
Summer Internship Report on PLCSummer Internship Report on PLC
Summer Internship Report on PLC
 
Summer Internship Report For PLC Programming of Traffic light through Ladder ...
Summer Internship Report For PLC Programming of Traffic light through Ladder ...Summer Internship Report For PLC Programming of Traffic light through Ladder ...
Summer Internship Report For PLC Programming of Traffic light through Ladder ...
 
Implementation of T-Junction Traffic Light Control System Using Simatic S7-20...
Implementation of T-Junction Traffic Light Control System Using Simatic S7-20...Implementation of T-Junction Traffic Light Control System Using Simatic S7-20...
Implementation of T-Junction Traffic Light Control System Using Simatic S7-20...
 
IEEE ACADEMIC MATLAB PROJECTS
IEEE ACADEMIC MATLAB PROJECTSIEEE ACADEMIC MATLAB PROJECTS
IEEE ACADEMIC MATLAB PROJECTS
 
IEEE ACADEMIC PROJECTS
IEEE ACADEMIC PROJECTSIEEE ACADEMIC PROJECTS
IEEE ACADEMIC PROJECTS
 
Training report on Embedded Systems and MATLAB
Training report on Embedded Systems and MATLABTraining report on Embedded Systems and MATLAB
Training report on Embedded Systems and MATLAB
 
EE323 Mini-Project - Line tracing robot
EE323 Mini-Project - Line tracing robotEE323 Mini-Project - Line tracing robot
EE323 Mini-Project - Line tracing robot
 
PLC and SCADA training.
PLC and SCADA training.PLC and SCADA training.
PLC and SCADA training.
 
Discription of PLC and SCADA
Discription of PLC and SCADADiscription of PLC and SCADA
Discription of PLC and SCADA
 
Gore
GoreGore
Gore
 
Eee3420 lecture03 rev2011
Eee3420 lecture03 rev2011Eee3420 lecture03 rev2011
Eee3420 lecture03 rev2011
 
Inception Institute of Industrial Training Brochure 2014 by APRM
Inception Institute of Industrial Training Brochure 2014 by APRMInception Institute of Industrial Training Brochure 2014 by APRM
Inception Institute of Industrial Training Brochure 2014 by APRM
 
Robotics ICMMT2015
Robotics ICMMT2015Robotics ICMMT2015
Robotics ICMMT2015
 
Robotics ICMMT2015
Robotics ICMMT2015Robotics ICMMT2015
Robotics ICMMT2015
 

Recently uploaded

CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️anilsa9823
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsAndolasoft Inc
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...OnePlan Solutions
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionSolGuruz
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...panagenda
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceanilsa9823
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...kellynguyen01
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsJhone kinadey
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AIABDERRAOUF MEHENNI
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 

Recently uploaded (20)

CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 

Industrial Computer Applications, ch-3

  • 1. Industrial Computer Application, Chapter III: Relay Logic Diagrams © 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd Industrial Computer Application Chapter III Relay Logic Diagrams Professor Dr. Ibrahim Hamarash ibrahim.hamad@ukh.edu.krd
  • 2. Industrial Computer Application, Chapter III: Relay Logic Diagrams © 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd The Binary Concept ✓ 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. ✓ The key to the speed and accuracy with which binary information can be processed is that there are only two states, each of which is distinctly different. There is no in-between state so when information is processed the outcome is either yes or no.
  • 3. Industrial Computer Application, Chapter III: Relay Logic Diagrams © 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd The Logic Gate 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. Logic is the ability to make decisions when one or more different factors must be taken into account before an action is taken. This is the basis for the operation of the PLC, where it is required for a device to operate when certain conditions have been met.
  • 4. Industrial Computer Application, Chapter III: Relay Logic Diagrams © 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd Example: The high beam automobile lighting circuit of example of a logical AND decision. For this application, the high beam light can be turned on only when the light witch AND the high beam switch are closed. Example: The dome light automobile circuit of Figure 4-2 is an example of a logical OR decision. For this application, the dome light will be turned on whenever the passenger door switch OR the driver door switch is activated.
  • 5. Industrial Computer Application, Chapter III: Relay Logic Diagrams © 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd Logical Functions ✓ The operations performed by digital equipment are based on three fundamental logic functions: AND, OR, and NOT. Each function has a rule that will determine . ✓ the outcome and a symbol that represents the operation. For the purpose of this discussion, the outcome or output is called Y and the signal inputs are called A, B, C, and so on. Also, binary 1 represents the presence of a signal or the occurrence of some event, and binary 0 represents the absence of the signal or nonoccurrence of the event
  • 6. Industrial Computer Application, Chapter III: Relay Logic Diagrams © 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd The AND Function
  • 7. Industrial Computer Application, Chapter III: Relay Logic Diagrams © 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd The OR Function
  • 8. Industrial Computer Application, Chapter III: Relay Logic Diagrams © 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd The NOT Function
  • 9. Industrial Computer Application, Chapter III: Relay Logic Diagrams © 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd Example (NAND, NOR)
  • 10. Industrial Computer Application, Chapter III: Relay Logic Diagrams © 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd The XOR Function
  • 11. Industrial Computer Application, Chapter III: Relay Logic Diagrams © 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd The 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.
  • 12. Industrial Computer Application, Chapter III: Relay Logic Diagrams © 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd The Boolean Equation ✓ PLC digital systems may be designed using Boolean algebra. Circuit functions are represented by Boolean equations. ✓ The figure illustrates how logic operators AND, NAND, OR, NOR, and NOT are used singly to form logical statements. ✓ The figure illustrates how basic logic operators are used in combination to form Boolean equations
  • 13. Industrial Computer Application, Chapter III: Relay Logic Diagrams © 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd The Boolean Algebra Laws
  • 14. Industrial Computer Application, Chapter III: Relay Logic Diagrams © 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd Example: Developing logic gate circuit from Boolean Expression Y=A (BC+D)
  • 15. Industrial Computer Application, Chapter III: Relay Logic Diagrams © 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd The Hardwired 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. Hardwired logic is fixed; it is changeable only by altering the way devices are electrically interconnected.
  • 16. Industrial Computer Application, Chapter III: Relay Logic Diagrams © 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd The Hardwired Logic, cont. A typical relay ladder schematic of a motor stop/start control station with pilot lights is shown in this diagram. 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
  • 17. Industrial Computer Application, Chapter III: Relay Logic Diagrams © 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd The Programmable Control The programmable control is based on the basic logic functions, which are programmable and easily changed. These functions (AND, OR, NOT) are used either singly or in combinations to form instructions that will determine if a device is to be switched on or off. The form in which these instructions are implemented to convey commands to the PLC is called the language. The most common PLC language is ladder logic. shows a typical ladder logic program for the motor start/stop circuit. The instructions used are the relay equivalent of normally open (NO) and normally closed (NC) contacts and coils
  • 18. Industrial Computer Application, Chapter III: Relay Logic Diagrams © 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd Example: The Programmable Control This diagram shows a typical ladder logic program for the motor start/stop circuit. The instructions used are the relay equivalent of normally open (NO) and normally closed (NC) contacts and coils
  • 19. Industrial Computer Application, Chapter III: Relay Logic Diagrams © 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd Notes ✓ PLC contact symbolism is a simple way of expressing the control logic in terms of symbols. These symbols are basically the same as those used for representing hardwired relay control circuits. 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.
  • 20. Industrial Computer Application, Chapter III: Relay Logic Diagrams © 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd Examples: The relationship between the relay ladder schematic, the ladder logic program, and the equivalent logic gate circuit. LS: Limit Switch SOL: Solenoid PL: Pilot Lamp PS: Push Button
  • 21. Industrial Computer Application, Chapter III: Relay Logic Diagrams © 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd Examples: The relationship between the relay ladder schematic, the ladder logic program, and the equivalent logic gate circuit. LS: Limit Switch FS: Flow Switch PL:Pilot Lamp
  • 22. Industrial Computer Application, Chapter III: Relay Logic Diagrams © 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd Examples: The relationship between the relay ladder schematic, the ladder logic program, and the equivalent logic gate circuit.
  • 23. Industrial Computer Application, Chapter III: Relay Logic Diagrams © 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd Programming Word Level Logic Instructions Most PLCs provide word-level logic instructions as part of their instruction set. The figure illustrates the operation of the AND instruction to perform a word-level AND operation using the bits in the two source addresses. This instruction tells the processor to perform an AND operation on B3:5 and B3:7 and to store the result in destination B3:10 when input device A is true. The destination bits are a result of the logical AND operation.
  • 24. Industrial Computer Application, Chapter III: Relay Logic Diagrams © 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd Programming Word Level Logic Instructions The figure illustrates the operation of a word-level OR instruction, which ORs the data in Source A, bit by bit, with the data in Source B and stores the result at the destination address. The address of Source A is B3:1, the address of Source B is B3:2, and the destination address is B3:20. The instruction may be programmed conditionally, with input instruction(s) preceding it, or unconditionally, as shown, without any input instructions preceding it.
  • 25. Industrial Computer Application, Chapter III: Relay Logic Diagrams © 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd Selecting the correct word logic instruction for different situations If you want to . . . . . . use this instruction. Know when matching bits in two different words are both ON AND Know when one or both matching bits in two different words are ON OR Know when one or the other bit of matching bits in two different words is ON XOR Reverse the state of bits in a word NOT
  • 26. Industrial Computer Application, Chapter III: Relay Logic Diagrams © 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd Reading List Frank Petruzella, Programmable Logic Controllers, McGeaw Hill, 5th Ed., 2017. Austin Scott, Instant PLC Programming with RSLogix 5000, Packt Publishers, 2013. Websites https://www.plcacademy.com http://www.plcs.net
  • 27. Industrial Computer Application, Chapter III: Relay Logic Diagrams © 2020, UKH, Dr.Ibrahim Ismael Hamarash, ibrahim.hamad@ukh.edu.krd Questions?