Session 03
By Emamof
    Presented in 12-02-2009
Plc by Mohamed Al-Emam, Session3
Review Session 1
   CONTROL SYS.
   Automatic Controller
   WHAT
   Origin of PLC
   History
   Sizes of PLC’s
    Cycle of Operation
    Which
   APPLICATIONS N REAL
   PLC H.W Components:
   INPUT TO PLC ,SENSING CONCEPTS
Review  Session 2
 PLC’s 4 u
 Actuators
 Example show
  SensorcontrollerActuator
 Logic Gate Review
 Modeling
 Waterfall …kiss philosophy 
 Programming
 ISaGRAF
Target to 
   ISaGRAF Users
   Plz Do Not Think To 4 Get This
   Fatal And Non-Fatal Errors
   Retain Values
   LD prog. Notes
   project development cycle and V methodology
   EX: Car Safety Alarm
   EX: Three-way Light Control
    Actually Case Study Machine partial control by
    video
   Actually Case Study Dam Hole analysis 4 model
Plc by Mohamed Al-Emam, Session3
ISaGRAF Users
More ISaGRAF Users
Plc by Mohamed Al-Emam, Session3
Cycle of operate PLC’s
                              input
                  scan
              
                          execute
                  programme
              
                  degonistic and
                  commenucation
                  scan
              
                         output scan
Diagnostics
 Mr. PLC will performs many pre-defined
  diagnostic routines with every CPU
  scan. The diagnostics can detect various
  errors or failures in the PLC. The two
  primary error classes are fatal and non-
  fatal.


It is common for micro
Fatal Error
Fatal errors are errors which may cause the system to
   function improperly, perhaps introducing a safety
problem. The CPU will automatically switch to Program
   Mode if it is in Run Mode. (Remember, in
Program Mode all outputs are turned off.) If the fatal
   error is detected while the CPU is in Program
Mode, the CPU will not allow you to transition to Run
   Mode until the error has been corrected.
Some examples of fatal errors are:
   • Power supply failure
   • Parity error or CPU malfunction
   • Particular programming errors
Non-Fatal Error
Non-fatal errors are errors that need your
  attention, but should not cause improper
  operation. They do not cause or prevent
  any mode transitions of the CPU. The
  application program can use special
  relay contacts to detect non-fatal
  errors, and even take the system to an
  orderly shutdown or switch the CPU to
  Program Mode if desired.
special relay contacts to detect
non-fatal errors


                       Accumulator
         CPU Status      Status
           Relays        Relays




             System Monitoring
                  Relays
Non-Fatal Error
Program Error Codes
   As program syntax and runtime error codes. Error
   detection occurs during a Program-to-Run mode
   transition.
PLC Error Codes
    These errors can be generated by the CPU or by the
   Handheld Programmer, depending on
   the actual error
   The errors can be detected at various times.
   However, most of them are detected at power-up,
   on entry to Run Mode, or when a Handheld
   Programmer key sequence results in an error or
   an illegal request.
Plc by Mohamed Al-Emam, Session3
Under IEC 61131-3
standard
                         LD




          IL                           SFC

                  PROGRAMMING




                ST               FBD



   Mnemonics is also another name for IL ,we have FC 
Benefits and Challenges of
open standards as IEC 61131-
3
   Interoperability
   Portability
   Configurability
   Usability



              www.plcopen.org
Plc by Mohamed Al-Emam, Session3
Plc by Mohamed Al-Emam, Session3
Plc by Mohamed Al-Emam, Session3
Plc by Mohamed Al-Emam, Session3
Retain Value in PLC


 retain value keep when power is off.
 Disadvantage  The retained value
  will be lost when download a modified
  project to the controller.
Retain Value
Plc by Mohamed Al-Emam, Session3
Properly formatted outputs
 Output should appear only one time in all module
Properly formatted outputs
          We can not put two outputs in series in the same rung




But we can put it in parallel
Plc by Mohamed Al-Emam, Session3
EX: Car safety alarm
• Design a car safety alarm considering four
   inputs
– Door closed (D)
–Key in(K)
– Seat pressure (S)
– Seat belt closed (B)
• The alarm (A) should sound if
– The key is in and the door is not closed, or
– The door is closed and the key is in and
the driver is in the seat and
 the seat belt is not closed
How to solve By Kiss ph 
   No we will use truth table
    and get a Boolean exp.
    implement Ms. Truth Table


A(D,K,S,B)=D’KS’
    B’+D’KS’B+D’KSB
    ’+D’KSB+DKSB’
Implementation by logic
gates




     Now let me go 2 write it in Ms. ISaGRAF 
Plc by Mohamed Al-Emam, Session3
Three-way light control

• Assume a room has three doors and a switch
by each door controls a single light in the
room.
– Let x, y, and z denote the state of the switches
– Assume the light is off if all switches are open
– Closing any switch turns the light on. Closing
another switch will have to turn the light off.
– Light is on if any one switch is closed and off if
two (or no) switches are closed.
– Light is on if all three switches are closed
Three-way light control

• Assume a room has three doors and a switch
by each door controls a single light in the
room.
– Let x, y, and z denote the state of the switches
– Assume the light is off if all switches are open
– Closing any switch turns the light on. Closing
another switch will have to turn the light off.
– Light is on if any one switch is closed and off if
two (or no) switches are closed.
– Light is on if all three switches are closed
Design 
  By using the
( Kiss philosophy)’
we can write the truth
 table as :
The Boolean exp will
 f(x,y,z)=x’y’z+x’yz’+xy’z’+xyz
Then we can draw the logic gates as




       Now let me go 2 write it in Ms. ISaGRAF 
Plc by Mohamed Al-Emam, Session3
New Check goal is to maintain
upstream water level
Radial Gate
Plc by Mohamed Al-Emam, Session3
Plc by Mohamed Al-Emam, Session3
Goal is to maintain water level. In order to change the water level, we
                                        need to adjust the flow through the gate.



How much should you adjust the flow?
How often?
How long will it take the canal to respond?
What happens if something else causes the flow to change?
Algorithm
 For a given water level or flow error in
  the canal, how much should you adjust
  the gate opening?
 Flow Control
 Downstream Control
 Upstream Control
Algorithm1 Flow Control
 Calculate the required gate move based
  upon the desired change in flow.
  Commonly called flow control.
The challenge with this method is anticipating
  the desired/required flow change.




Anticipating=do the other desired before that say
Algorithm2 Downstream
Control.
 Observe a water level at some location
  downstream from the gate, if the water
  level gets too low, open the gate, if it
  gets too high, close the gate.
 This method requires a way to adjust the
  flow going into the system. This method
  is commonly called downstream
  control.
 The challenge is determining how much
  should the gate be opened or closed
  and adjusting the flow into the canal.
Algorithm3 Upstream
Control.
   Observe the upstream water level and if
    it is too high, open the gate. If it is too
    low close the gate. Commonly called
    upstream control. This approach
    passes errors downstream.
Plc by Mohamed Al-Emam, Session3
New Check goal is to maintain
upstream water level
Plc by Mohamed Al-Emam, Session3
RTU= remote terminal unit
Plc by Mohamed Al-Emam, Session3
Plc by Mohamed Al-Emam, Session3
Plc by Mohamed Al-Emam, Session3
PCs vs. PLCs
         PCs              PLC
   Linux         Perhaps 100s of
   Windows        different platforms.
   Mac
PCs vs. PLCs
          PCs                   PLC
   C, C++,C#4snap      Each manufacturer
   Java                 has their own
   Ruby                 programming
                         language.
                        Sometimes the
                         same manufacturer
                         may have different
                         languages for
                         different PLCs.
PCs vs. PLCs
Portability!
            PCs                       PLC
   If you have a fairly      You’ve got to be
    current operating          kidding!
    system, you can run       Maybe within a
    most windows               manufacturer.
    applications on any       Almost non-existent
    PC made by any             otherwise
    manufacturer.
   Kind of the same for
    Macs and Linux
    based PCs
PLCs



       Siemens S7 series
Part of Upstream Control Flow Chart
Plc by Mohamed Al-Emam, Session3
Plc by Mohamed Al-Emam, Session3
Plc by Mohamed Al-Emam, Session3
Plc by Mohamed Al-Emam, Session3
Plc by Mohamed Al-Emam, Session3
Break




   How R U now ?
KEY TERMS 
   Plz write your terms 4 yourself
Plc by Mohamed Al-Emam, Session3

More Related Content

PPTX
Plc ppt filke
PDF
PLC Programming
PPT
Intro to RobotC
PDF
89c5131datasheet
PDF
Pt 51 kit - Peripheral self-test
PDF
Bascom avr-course
PPT
Plc Programming Fundamentals
Plc ppt filke
PLC Programming
Intro to RobotC
89c5131datasheet
Pt 51 kit - Peripheral self-test
Bascom avr-course
Plc Programming Fundamentals

What's hot (20)

PDF
PDF
PLC: Easy PLC User manual
PPTX
Micro c lab2(led patterns)
PDF
Fault tolerance
PPTX
C program execution and algorithm
PPT
Knowing more about plc
DOCX
Keypad interfacing 8051 -NANOCDAC
PDF
PPSX
AVR I/O programming Atmega 64 uNiboard ThinkLABS maaniq
PDF
CNIT 126 8: Debugging
DOC
Himanth_Resume
PDF
Delta ia plc-dvp_tp_c_en_20160922
PPT
Operating System - Monitors (Presentation)
PDF
Asia 14-garcia-illera-dude-wtf-in-my-can
PDF
Newly master counter remote control copier
PDF
Timers and Endge-aligned PWM
PDF
Siemens s7 300 programming
PPT
PLC basic concepts
PPTX
Presentation
PDF
PLC: Easy PLC User manual
Micro c lab2(led patterns)
Fault tolerance
C program execution and algorithm
Knowing more about plc
Keypad interfacing 8051 -NANOCDAC
AVR I/O programming Atmega 64 uNiboard ThinkLABS maaniq
CNIT 126 8: Debugging
Himanth_Resume
Delta ia plc-dvp_tp_c_en_20160922
Operating System - Monitors (Presentation)
Asia 14-garcia-illera-dude-wtf-in-my-can
Newly master counter remote control copier
Timers and Endge-aligned PWM
Siemens s7 300 programming
PLC basic concepts
Presentation
Ad

Similar to Plc by Mohamed Al-Emam, Session3 (20)

PPTX
CHAPTER 7- PLC Operation-PROGRAMMABLE LOGIC CONTROLLER
PPT
PLC Explained pp.ppt for educational purpose
PPT
ES-CH5.ppt
PDF
Plc documentation final
PDF
Advanced plc programming & scada system design
PPTX
Troubleshooting in plc
PPTX
PLC TRAINING
PPT
PPTX
PLC_Introduction to programming updated.pptx
PDF
Industrial Automation
PPTX
PLC, by Mohamed Al-Emam, Session 1
PPTX
PPTX
-basic concept and history-of-plc-ppt.pptx
PPTX
Unit 4 - PLC.pptx
PPT
Introduction to PLC
PPTX
R22EM807_PAVAN.D_PLC.pptx
PDF
Advanced insrumentation lab manual
PPTX
Plc (PROGRAMMABLE LOGIC CONTROLLER)
PPTX
Assembly p1
CHAPTER 7- PLC Operation-PROGRAMMABLE LOGIC CONTROLLER
PLC Explained pp.ppt for educational purpose
ES-CH5.ppt
Plc documentation final
Advanced plc programming & scada system design
Troubleshooting in plc
PLC TRAINING
PLC_Introduction to programming updated.pptx
Industrial Automation
PLC, by Mohamed Al-Emam, Session 1
-basic concept and history-of-plc-ppt.pptx
Unit 4 - PLC.pptx
Introduction to PLC
R22EM807_PAVAN.D_PLC.pptx
Advanced insrumentation lab manual
Plc (PROGRAMMABLE LOGIC CONTROLLER)
Assembly p1
Ad

Recently uploaded (20)

PDF
533158074-Saudi-Arabia-Companies-List-Contact.pdf
PPTX
Project Management_ SMART Projects Class.pptx
PDF
ANALYZING THE OPPORTUNITIES OF DIGITAL MARKETING IN BANGLADESH TO PROVIDE AN ...
PDF
Keppel_Proposed Divestment of M1 Limited
DOCX
Hand book of Entrepreneurship 4 Chapters.docx
PPTX
BUSINESS CYCLE_INFLATION AND UNEMPLOYMENT.pptx
PDF
#1 Safe and Secure Verified Cash App Accounts for Purchase.pdf
PDF
Chapter 2 - AI chatbots and prompt engineering.pdf
PDF
Robin Fischer: A Visionary Leader Making a Difference in Healthcare, One Day ...
DOCX
Handbook of Entrepreneurship- Chapter 5: Identifying business opportunity.docx
DOCX
Center Enamel Powering Innovation and Resilience in the Italian Chemical Indu...
PDF
1911 Gold Corporate Presentation Aug 2025.pdf
PPTX
interschool scomp.pptxzdkjhdjvdjvdjdhjhieij
PDF
THE COMPLETE GUIDE TO BUILDING PASSIVE INCOME ONLINE
PDF
Tortilla Mexican Grill 发射点犯得上发射点发生发射点犯得上发生
PPTX
chapter 2 entrepreneurship full lecture ppt
PDF
NEW - FEES STRUCTURES (01-july-2024).pdf
PDF
Solaris Resources Presentation - Corporate August 2025.pdf
PDF
NISM Series V-A MFD Workbook v December 2024.khhhjtgvwevoypdnew one must use ...
PPTX
TRAINNING, DEVELOPMENT AND APPRAISAL.pptx
533158074-Saudi-Arabia-Companies-List-Contact.pdf
Project Management_ SMART Projects Class.pptx
ANALYZING THE OPPORTUNITIES OF DIGITAL MARKETING IN BANGLADESH TO PROVIDE AN ...
Keppel_Proposed Divestment of M1 Limited
Hand book of Entrepreneurship 4 Chapters.docx
BUSINESS CYCLE_INFLATION AND UNEMPLOYMENT.pptx
#1 Safe and Secure Verified Cash App Accounts for Purchase.pdf
Chapter 2 - AI chatbots and prompt engineering.pdf
Robin Fischer: A Visionary Leader Making a Difference in Healthcare, One Day ...
Handbook of Entrepreneurship- Chapter 5: Identifying business opportunity.docx
Center Enamel Powering Innovation and Resilience in the Italian Chemical Indu...
1911 Gold Corporate Presentation Aug 2025.pdf
interschool scomp.pptxzdkjhdjvdjvdjdhjhieij
THE COMPLETE GUIDE TO BUILDING PASSIVE INCOME ONLINE
Tortilla Mexican Grill 发射点犯得上发射点发生发射点犯得上发生
chapter 2 entrepreneurship full lecture ppt
NEW - FEES STRUCTURES (01-july-2024).pdf
Solaris Resources Presentation - Corporate August 2025.pdf
NISM Series V-A MFD Workbook v December 2024.khhhjtgvwevoypdnew one must use ...
TRAINNING, DEVELOPMENT AND APPRAISAL.pptx

Plc by Mohamed Al-Emam, Session3

  • 1. Session 03 By Emamof Presented in 12-02-2009
  • 3. Review Session 1  CONTROL SYS.  Automatic Controller  WHAT  Origin of PLC  History  Sizes of PLC’s  Cycle of Operation  Which  APPLICATIONS N REAL  PLC H.W Components:  INPUT TO PLC ,SENSING CONCEPTS
  • 4. Review  Session 2  PLC’s 4 u  Actuators  Example show SensorcontrollerActuator  Logic Gate Review  Modeling  Waterfall …kiss philosophy   Programming  ISaGRAF
  • 5. Target to   ISaGRAF Users  Plz Do Not Think To 4 Get This  Fatal And Non-Fatal Errors  Retain Values  LD prog. Notes  project development cycle and V methodology  EX: Car Safety Alarm  EX: Three-way Light Control  Actually Case Study Machine partial control by video  Actually Case Study Dam Hole analysis 4 model
  • 10. Cycle of operate PLC’s  input scan  execute programme  degonistic and commenucation scan  output scan
  • 11. Diagnostics Mr. PLC will performs many pre-defined diagnostic routines with every CPU scan. The diagnostics can detect various errors or failures in the PLC. The two primary error classes are fatal and non- fatal. It is common for micro
  • 12. Fatal Error Fatal errors are errors which may cause the system to function improperly, perhaps introducing a safety problem. The CPU will automatically switch to Program Mode if it is in Run Mode. (Remember, in Program Mode all outputs are turned off.) If the fatal error is detected while the CPU is in Program Mode, the CPU will not allow you to transition to Run Mode until the error has been corrected. Some examples of fatal errors are: • Power supply failure • Parity error or CPU malfunction • Particular programming errors
  • 13. Non-Fatal Error Non-fatal errors are errors that need your attention, but should not cause improper operation. They do not cause or prevent any mode transitions of the CPU. The application program can use special relay contacts to detect non-fatal errors, and even take the system to an orderly shutdown or switch the CPU to Program Mode if desired.
  • 14. special relay contacts to detect non-fatal errors Accumulator CPU Status Status Relays Relays System Monitoring Relays
  • 15. Non-Fatal Error Program Error Codes As program syntax and runtime error codes. Error detection occurs during a Program-to-Run mode transition. PLC Error Codes These errors can be generated by the CPU or by the Handheld Programmer, depending on the actual error The errors can be detected at various times. However, most of them are detected at power-up, on entry to Run Mode, or when a Handheld Programmer key sequence results in an error or an illegal request.
  • 17. Under IEC 61131-3 standard LD IL SFC PROGRAMMING ST FBD Mnemonics is also another name for IL ,we have FC 
  • 18. Benefits and Challenges of open standards as IEC 61131- 3  Interoperability  Portability  Configurability  Usability www.plcopen.org
  • 23. Retain Value in PLC  retain value keep when power is off.  Disadvantage  The retained value will be lost when download a modified project to the controller.
  • 26. Properly formatted outputs Output should appear only one time in all module
  • 27. Properly formatted outputs We can not put two outputs in series in the same rung But we can put it in parallel
  • 29. EX: Car safety alarm • Design a car safety alarm considering four inputs – Door closed (D) –Key in(K) – Seat pressure (S) – Seat belt closed (B) • The alarm (A) should sound if – The key is in and the door is not closed, or – The door is closed and the key is in and the driver is in the seat and the seat belt is not closed
  • 30. How to solve By Kiss ph   No we will use truth table and get a Boolean exp. implement Ms. Truth Table A(D,K,S,B)=D’KS’ B’+D’KS’B+D’KSB ’+D’KSB+DKSB’
  • 31. Implementation by logic gates Now let me go 2 write it in Ms. ISaGRAF 
  • 33. Three-way light control • Assume a room has three doors and a switch by each door controls a single light in the room. – Let x, y, and z denote the state of the switches – Assume the light is off if all switches are open – Closing any switch turns the light on. Closing another switch will have to turn the light off. – Light is on if any one switch is closed and off if two (or no) switches are closed. – Light is on if all three switches are closed
  • 34. Three-way light control • Assume a room has three doors and a switch by each door controls a single light in the room. – Let x, y, and z denote the state of the switches – Assume the light is off if all switches are open – Closing any switch turns the light on. Closing another switch will have to turn the light off. – Light is on if any one switch is closed and off if two (or no) switches are closed. – Light is on if all three switches are closed
  • 35. Design   By using the ( Kiss philosophy)’ we can write the truth table as :
  • 36. The Boolean exp will  f(x,y,z)=x’y’z+x’yz’+xy’z’+xyz Then we can draw the logic gates as Now let me go 2 write it in Ms. ISaGRAF 
  • 38. New Check goal is to maintain upstream water level
  • 42. Goal is to maintain water level. In order to change the water level, we need to adjust the flow through the gate. How much should you adjust the flow? How often? How long will it take the canal to respond? What happens if something else causes the flow to change?
  • 43. Algorithm  For a given water level or flow error in the canal, how much should you adjust the gate opening?  Flow Control  Downstream Control  Upstream Control
  • 44. Algorithm1 Flow Control  Calculate the required gate move based upon the desired change in flow. Commonly called flow control. The challenge with this method is anticipating the desired/required flow change. Anticipating=do the other desired before that say
  • 45. Algorithm2 Downstream Control.  Observe a water level at some location downstream from the gate, if the water level gets too low, open the gate, if it gets too high, close the gate.  This method requires a way to adjust the flow going into the system. This method is commonly called downstream control.  The challenge is determining how much should the gate be opened or closed and adjusting the flow into the canal.
  • 46. Algorithm3 Upstream Control.  Observe the upstream water level and if it is too high, open the gate. If it is too low close the gate. Commonly called upstream control. This approach passes errors downstream.
  • 48. New Check goal is to maintain upstream water level
  • 54. PCs vs. PLCs PCs PLC  Linux  Perhaps 100s of  Windows different platforms.  Mac
  • 55. PCs vs. PLCs PCs PLC  C, C++,C#4snap  Each manufacturer  Java has their own  Ruby programming language.  Sometimes the same manufacturer may have different languages for different PLCs.
  • 56. PCs vs. PLCs Portability! PCs PLC  If you have a fairly  You’ve got to be current operating kidding! system, you can run  Maybe within a most windows manufacturer. applications on any  Almost non-existent PC made by any otherwise manufacturer.  Kind of the same for Macs and Linux based PCs
  • 57. PLCs Siemens S7 series
  • 58. Part of Upstream Control Flow Chart
  • 64. Break  How R U now ?
  • 65. KEY TERMS   Plz write your terms 4 yourself