Vt plc

3,840
-1

Published on

Published in: Education, Business, Technology
0 Comments
8 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
3,840
On Slideshare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
0
Comments
0
Likes
8
Embeds 0
No embeds

No notes for slide

Vt plc

  1. 1. PLC Programmable Logic Controller
  2. 2. PLC <ul><li>A PLC is a device that was invented to replace the necessary sequential relay circuits for machine control </li></ul><ul><li>The PLC works by looking at its inputs and depending upon their state, turning on/off its outputs </li></ul>
  3. 3. PLC History <ul><li>In 1960's PLC’s were first introduced. </li></ul><ul><li>Reason for designing such a device was to eliminate the large cost involved in replacing the complicated relay based machine control systems. </li></ul><ul><li>Since relays are mechanical devices they also have a limited lifetime which required frequent maintenance schedules. </li></ul><ul><li>Troubleshooting was also quite tedious when so many relays are involved. </li></ul><ul><li>Now imagine a machine control panel that included many, possibly hundreds or thousands, of individual relays. Think about wiring & size. </li></ul>
  4. 4. PLC History <ul><li>The MODICON (Modular Digital Controller ) brought the world's first PLC into commercial production. </li></ul><ul><li>Dick Morley , who worked in MODICON is considered to be the &quot;father&quot; of the PLC. </li></ul><ul><li>These &quot;new controllers&quot; had to be easily programmed. The lifetime had to be long and programming changes easily performed. </li></ul><ul><li>Early PLC’s were designed to replace relay logic systems. </li></ul><ul><li>These PLC’s were programmed in &quot; ladder logic &quot;, which strongly resembles a schematic diagram of relay logic. </li></ul>
  5. 5. PLC History <ul><li>Modern PLC’s can be programmed in a variety of ways, from ladder logic to more traditional programming languages. </li></ul><ul><li>Early PLC’s, up to the mid-1980s, were programmed using proprietary programming panels or special-purpose programming terminals, which often had dedicated function keys representing the various logical elements of PLC programs. </li></ul><ul><li>Communications abilities began to appear in approximately 1973. </li></ul><ul><li>The first such system was Modicon's Modbus. The PLC could now talk to other PLC’s. </li></ul>
  6. 6. Internal Structure <ul><li>Plc mainly consist of </li></ul><ul><ul><li>CPU </li></ul></ul><ul><ul><li>MEMORY </li></ul></ul><ul><ul><li>INPUT </li></ul></ul><ul><ul><li>OUTPUT </li></ul></ul>
  7. 7. Internal Structure <ul><li>INPUT RELAYS-these are connected to the outside world. They receive signals from switches, sensors, etc. Typically they are not relays but rather they are transistors. </li></ul><ul><li>INTERNAL UTILITY RELAYS-these do not receive signals from the outside world. They are simulated relays and are what enables a PLC to eliminate external relays. There are also some special relays that are dedicated to performing only one task. </li></ul><ul><li>COUNTERS-These do not physically exist. They are simulated counters and they can be programmed to count pulses. Typically these counters can count up, down or both up and down. </li></ul>
  8. 8. Internal Structure <ul><li>TIMERS-These also do not physically exist. They come in many varieties and increments. The most common type is an on-delay type. Others include off-delay. </li></ul><ul><li>OUTPUT RELAYS-(coils) these are connected to the outside world. They physically exist and send on/off signals to solenoids, lights, etc. </li></ul><ul><li>DATA STORAGE-Typically there are registers assigned to simply store data. They are usually used as temporary storage for math or data manipulation. </li></ul>
  9. 9. Operation <ul><li>A PLC works by continually scanning a program. </li></ul><ul><li>We can think of this scan cycle as consisting of 3 important steps. </li></ul><ul><li>Three states are. </li></ul><ul><ul><li>Check Input Status </li></ul></ul><ul><ul><li>Execute Program </li></ul></ul><ul><ul><li>Update Output Status </li></ul></ul>
  10. 10. Scanning <ul><li>CHECK INPUT STATUS -First the PLC takes a look at each input to determine if it is on or off. In other words, is the sensor connected to the first input on? How about the second input? How about the third... It records this data into its memory to be used during the next step. </li></ul><ul><li>EXECUTE PROGRAM -Next the PLC executes your program one instruction at a time. Maybe your program said that if the first input was on then it should turn on the first output. Since it already knows which inputs are on/off from the previous step it will be able to decide whether the first output should be turned on based on the state of the first input. It will store the execution results for use later during the next step. </li></ul>
  11. 11. Scanning <ul><li>UPDATE OUTPUT STATUS -Finally the PLC updates the status of the outputs. It updates the outputs based on which inputs were on during the first step and the results of executing your program during the second step. Based on the example in step 2 it would now turn on the first output because the first input was on and your program said to turn on the first output when this condition is true </li></ul>
  12. 12. Response Time <ul><li>INPUT - It took a certain amount of time for the brain to notice the input signal from the eyes. </li></ul><ul><li>EXECUTION - It took a certain amount of time to process the information received from the eyes. If the eyes see an beautiful picture then output appropriate words to the mouth. </li></ul><ul><li>OUTPUT - The mouth receives a signal from the brain and eventually spits out the words “wow!, that's a really beautiful picture!&quot; </li></ul>
  13. 13. Relays <ul><li>We can think of a relay as an electromagnetic switch. </li></ul><ul><li>Apply voltage to the coil, Due to the magnetic field generated, makes or breaks the circuit. </li></ul><ul><li>These contacts can be considered to be a switch. </li></ul>
  14. 14. Relays <ul><li>When the switch is open no current can flow through the coil of the relay. </li></ul><ul><li>As soon as the Trigger switch is closed, current runs through the coil causing a magnetic field to build up. </li></ul><ul><li>This magnetic field causes the contacts of the relay to close. </li></ul><ul><li>When Reset button is pressed, breaks the supply to the coil, makes the contact to open. </li></ul>
  15. 15. Ladder Diagram <ul><li>Let’s use a plc in place of the relay, for that you have to know about Ladder diagram. </li></ul><ul><li>Power lines </li></ul><ul><ul><li>Two vertical bars, one on each side of the diagram. </li></ul></ul><ul><ul><li>Left one is +ve and Right one is Ground. </li></ul></ul><ul><li>Input </li></ul><ul><li>Output </li></ul><ul><li>Coil / Contact </li></ul>
  16. 16. Ladder Diagram <ul><li>Input symbol </li></ul><ul><ul><li>Contact symbol can be used for real world switch (or) push button. It can also used for the Relay contacts. </li></ul></ul><ul><li>Output symbol </li></ul><ul><ul><li>Coil symbol can be used for the real world Relay coil. </li></ul></ul>Contact symbol Coil symbol
  17. 17. Ladder Diagram <ul><li>We must tell the plc where everything is located. </li></ul><ul><li>We have to give all the devices an address. </li></ul><ul><li>Where is the switch going to be physically connected to the plc? </li></ul><ul><li>Where is the output going to be physically present? </li></ul><ul><li>The plc manufacturers each do it a different way. </li></ul><ul><li>We have to convert the schematic into a logical sequence of events. </li></ul><ul><li>The program tells the plc what to do when certain events take place. </li></ul>
  18. 18. Ladder Diagram
  19. 19. Gates <ul><li>Plc program's are made up of a combination of AND, OR, NAND, XOR,NOR Gates, with Inputs, Outputs, Timers, Counters, Memory Bits, Analog Inputs, analog Outputs etc.. </li></ul><ul><li>Boolean math lets us do some vary basic functions with the bits in our registers. </li></ul><ul><li>These basic functions typically include Gate (AND, OR, XOR) functions. </li></ul>
  20. 20. Gates - OR <ul><li>Here we can see that the OR function is very much related to Addition. </li></ul><ul><li>A and B are Inputs </li></ul><ul><li>C is Output </li></ul><ul><li>C is True only when A or B is True </li></ul><ul><li>C is also True when A and B also True. </li></ul>
  21. 21. Gates - OR <ul><li>Ladder diagram of OR Function </li></ul><ul><li>Inputs “0” or “1” are connected in parallel. </li></ul><ul><li>Any one or both Inputs On Output should be On. </li></ul><ul><li>If both Inputs are Off Output should be Off. </li></ul>Ladder logic
  22. 22. Gates - AND <ul><li>Here we can see that the AND function is very much related to Multiplication. </li></ul><ul><li>A and B are Inputs </li></ul><ul><li>C is Output </li></ul><ul><li>C is True only when A and B is True </li></ul><ul><li>C is False when A or B is False. </li></ul>
  23. 23. Gates - AND <ul><li>Ladder Diagram of AND Function. </li></ul><ul><li>Inputs “0” and “1” are connected in series. </li></ul><ul><li>Both Inputs are On then Output should be On. </li></ul><ul><li>Any one Input is Off then Output should be Off. </li></ul>
  24. 24. Gates - NOR NOR OR
  25. 25. Gates - NOR
  26. 26. Gates - XOR
  27. 27. Gates - XOR
  28. 28. Inputs <ul><li>These are the physical connections from the real world to the PLC. </li></ul><ul><li>They can be limit switches, push buttons, sensors, anything that can &quot;switch&quot; a signal on or off. </li></ul><ul><li>When voltage is present, Input will be “ON”, Status should be “1”. </li></ul><ul><li>When voltage not present, Input will be “OFF”, Status should be “0”. </li></ul>
  29. 29. Outputs <ul><li>These are the connections from the PLC to the real world. </li></ul><ul><li>They are used to switch solenoids, lamps, contactors etc ON and OFF. </li></ul><ul><li>They are usually 24 Volt DC, either relay or transistor, but can also be 115/220 Volt AC. </li></ul>
  30. 30. Internal Memory <ul><li>These so called relays only exist in the PLC’s memory. </li></ul><ul><li>They are used to remember certain &quot;states&quot; or functions that have been performed. </li></ul><ul><li>They react exactly like ordinary relays and can be on, off or latching. </li></ul><ul><li>Manufacturers of PLC’s also pre-program certain internal relays with special functions such as, </li></ul><ul><ul><li>Always on </li></ul></ul><ul><ul><li>Always off </li></ul></ul><ul><ul><li>On PLC is powering up </li></ul></ul><ul><ul><li>On the first scan of the program </li></ul></ul><ul><ul><li>On if there is an error </li></ul></ul>
  31. 31. Counter <ul><li>A counter is a simple device intended to do one simple thing - count. </li></ul><ul><li>What kinds of counters are there? </li></ul><ul><ul><li>Up Counters </li></ul></ul><ul><ul><li>Down Counters </li></ul></ul><ul><ul><li>Up Down Counters </li></ul></ul><ul><ul><li>High Speed Counters </li></ul></ul><ul><li>High Speed Counters are hardware counters physically present in the PLC. </li></ul><ul><li>Other counters are software counters, simulated through software, they are not physically present. </li></ul>
  32. 32. Counter <ul><li>Main things while selecting a Counter </li></ul><ul><ul><li>Where the pulses that we want to count are coming from. Typically this is from one of the inputs. </li></ul></ul><ul><ul><li>How many pulses we want to count before we react. </li></ul></ul><ul><ul><li>When/how we will reset the counter so it can count again. </li></ul></ul><ul><li>Typically counters can count from </li></ul><ul><ul><li>0 to 9999 </li></ul></ul><ul><ul><li>-32,768 to +32,767 </li></ul></ul><ul><ul><li>0 to 65535. </li></ul></ul>
  33. 33. Timer <ul><li>What is a timer? It’s exactly what the word says... </li></ul><ul><li>It is an instruction that waits a set amount of time before doing something. </li></ul><ul><li>Types of Timers </li></ul><ul><ul><li>On Delay Timer </li></ul></ul><ul><ul><li>Off Delay Timer </li></ul></ul><ul><ul><li>Retentive or Accumulating Timer </li></ul></ul>
  34. 34. Timer <ul><li>On Delay Timer </li></ul><ul><ul><li>This type of timer simply &quot;delays turning on&quot;. </li></ul></ul><ul><ul><li>After our input turns on we wait x-seconds before activating a output. </li></ul></ul><ul><li>Off Delay Timer </li></ul><ul><ul><li>This timer simply &quot;delays turning off&quot;. </li></ul></ul><ul><ul><li>After our input turns off we wait x-seconds before deactivating a output. </li></ul></ul>
  35. 35. Timer <ul><li>Retentive or Accumulating timer </li></ul><ul><ul><li>This type of timer needs 2 inputs. </li></ul></ul><ul><ul><li>One input starts the timing event </li></ul></ul><ul><ul><li>The other resets it. </li></ul></ul><ul><ul><li>The on/off delay timers would be reset if the input sensor wasn't on/off for the complete timer duration. </li></ul></ul><ul><ul><li>This timer however holds or retains the current elapsed time when the sensor turns off in mid-stream. </li></ul></ul>
  36. 36. Timer <ul><li>What will enable the timer ? </li></ul><ul><li>How long we want to delay before we react . </li></ul>

×