Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Plc Siemens Training Notes

105,881 views

Published on

PLC Siemiens Training

Published in: Technology, Business

Plc Siemens Training Notes

  1. 1. Siemens S7-200 PLC training courses
  2. 2. PLC history <ul><li>Classical control </li></ul><ul><li>- More complicated </li></ul><ul><li>- Longer time for maintenance </li></ul><ul><li>- Time consuming troubleshooting </li></ul><ul><li>- Occupies larger area in switchboards </li></ul><ul><li>- Requires more wiring </li></ul><ul><li>- Standard reliability </li></ul>
  3. 3. History <ul><li>Large projects requirements </li></ul><ul><li>- More inputs and outputs points </li></ul><ul><ul><li>-Large program memory </li></ul></ul><ul><ul><li>-Several programming instructions </li></ul></ul><ul><ul><li>-Communication with other equipments </li></ul></ul><ul><ul><li>-Deal with analogue signals </li></ul></ul><ul><ul><li>-Deal with large number of counters, timers </li></ul></ul><ul><ul><li>and markers </li></ul></ul>
  4. 4. History <ul><li>Historical view </li></ul>
  5. 5. Course contents <ul><li>Introduction to PLC </li></ul><ul><li>Bit logic </li></ul><ul><li>compare </li></ul><ul><li>Timers </li></ul><ul><li>Counters </li></ul><ul><li>Memory instructions </li></ul><ul><li>Analog I/O </li></ul><ul><li>Move , shift </li></ul><ul><li>Practical examples </li></ul>
  6. 6. Introduction <ul><li>What is a PLC </li></ul>
  7. 7. Introduction <ul><li>Basic PLC operation </li></ul>
  8. 8. introduction <ul><li>S7 200 family </li></ul>
  9. 9. introduction <ul><li>S7-200 configuration </li></ul>
  10. 10. introduction <ul><li>S7-200 configuration </li></ul><ul><li>mode switch and analog adjustment </li></ul>
  11. 11. introduction <ul><li>S7-200 configuration </li></ul><ul><li>optional cartidge </li></ul>
  12. 12. Introduction <ul><li>S7-200 configuration </li></ul><ul><li>expansion modules </li></ul>
  13. 13. Introduction <ul><li>S7-200 configuration </li></ul><ul><li>status indicator </li></ul>
  14. 14. Introduction <ul><li>S7-200 configuration </li></ul><ul><li>I/O numbering </li></ul>
  15. 15. Introduction <ul><li>S7-200 configuration </li></ul><ul><li>inputs </li></ul>
  16. 16. Introduction <ul><li>S7-200 configuration </li></ul><ul><li>outputs </li></ul>
  17. 17. Introduction <ul><li>S7-200 configuration </li></ul><ul><li>programming software </li></ul>
  18. 18. <ul><li>Analogue I/O </li></ul>= Typical analogue signals from 0-10 VDC or 4-20 mA = They are used to represent changing values such as speed, temperature, weight and level
  19. 19. Introduction <ul><li>Analogue outputs may be used to produce variable reference signals for devices such as: </li></ul><ul><li># Control valves </li></ul><ul><li># Chart recorders </li></ul><ul><li># Electric motor drives </li></ul><ul><li># Pressure transducers </li></ul><ul><li># Analogue meters </li></ul>
  20. 20. Introduction
  21. 21. Introduction
  22. 22. Introduction
  23. 23. PLC Programming
  24. 24. Programming languages Statement list Function block Ladder diagram The instructions are represented by graphic symbols: Contacts, Coils & Boxes The ladder diagram is the most popular programming language
  25. 25. Instructions Standard instructions: They are used in most programs. Examples: timer, counter, math, logical, incr., decr. and move High speed instructions: They allow for events and interrupts to occur independently of the PLC scan time. Examples: High speed counters and interrupts Special instructions: They are used to manipulate data Shift, table, conversion, real time instruction .
  26. 26. Bit Logic instruction Normally Open contact Normally Open Immediate contact Normally Closed contact Not contact Normally Closed Immediate contact Positive Transition contact Negative Transition contact Input Instructions
  27. 27. Input contacts example
  28. 28. Output instructions Output Instruction No Operation instruction Output Immediate instruction Set (N bits) instruction Reset (N bits) instruction Set Immediate (N bits) instruction Reset Immediate (N bits) instruction
  29. 29. Output, Set & Reset example
  30. 30. Starting a motor
  31. 31. Hard-wired DOL starting Induction Motor Circuit Breaker Contactor Thermal Overload Induction Motor Aux. contact Contact coil Stop O.L. contact Start
  32. 32. Using PLC Before start Starting After start
  33. 33. Stopping
  34. 34. Input & Output connections
  35. 35. Timer instructions On-Delay Timer Retentive On-Delay Timer Off-Delay Timer
  36. 36. On-Delay & Retentive On-Delay timers They count time when the enabling input (IN) is ON. When the current value (Txxx) is > the preset time (PT), the timer bit is ON. The On-Delay timer current value is cleared when (IN) is OFF, while the current value of the Retentive On-Delay Timer is maintained. You can use the Retentive On-Delay Timer to accumulate time for multiple periods of the input ON.
  37. 37. Off-Delay timer The Off-Delay Timer is used to delay turning an output OFF for a fixed period of time after the input turns OFF. When (IN) turns ON, the timer bit turns ON immediately, and the current value is set to 0. When (IN) turns OFF, the timer counts till PT and the timer bit turns OFF and the current value stops counting. If the input is OFF for a time shorter than PT, the timer bit remains ON.
  38. 38. Timers numbers & resolutions Note You cannot share the same timer numbers for TOF and TON. For example, you cannot have both a TON T32 and a TOF T32.
  39. 39. Timer examples On-Delay Off-Delay Retentive On-Delay
  40. 40. Hard-wired on-delay timer
  41. 41. Timer example
  42. 42. TONR example
  43. 43. Timer example
  44. 44. Counter instructions Up counter Up/down counter Down counter A bottling machine, for example, may use a counter to count bottles into groups of six for packaging.
  45. 45. Up-counter <ul><li>It counts up on the rising edges of the Count Up (CU) input. </li></ul><ul><li>When the current value (Cxxx) > (PV), the counter bit (Cxxx) turns on. </li></ul><ul><li>The counter is reset when the Reset (R) input turns on. </li></ul>
  46. 46. Up/Down counter It counts up on rising edges of the Count Up (CU) input. It counts down on the rising edges of the Count Down (CD) input. When the current value (Cxxx) > (PV), the counter bit (Cxxx) turns on. The counter is reset when the Reset (R) input turns on.
  47. 47. Down counter It counts down from the PV on the rising edges of the (CD) input . When the current value is equal to zero, the counter bit (Cxxx) turns on. The counter resets the counter bit (Cxxx) and loads the current value with the (PV) when the load input (LD) turns on.
  48. 48. Down-counter example
  49. 49. Up/down-counter example
  50. 50. Counter example A counter might be used to keep track of the number of vehicles in a parking lot. As vehicles enter the lot through an entrance gate, the counter counts up. As vehicles exit the lot through an exit gate, the counter counts down. When the lot is full a sign at the entrance gate turns on indicating the lot is full.
  51. 51. The ladder logic
  52. 52. Memory types <ul><li>You can access data in many CPU memory areas </li></ul><ul><li>- process image input register (I) </li></ul><ul><li>- process image output register (Q) </li></ul><ul><li>- variable memory area (V) </li></ul><ul><li>- Bit memory area (M) </li></ul><ul><li>- sequence control relay memory area (S) </li></ul><ul><li>- special memory bits (SM) </li></ul><ul><li>- local memory area (L) </li></ul><ul><li>- Timer memory area (T) </li></ul><ul><li>- counter memory area (C) </li></ul><ul><li>- Analog inputs (AI) </li></ul>
  53. 53. Accessing a Bit of Data in the CPU Memory (Byte.bit Addressing) Memory addressing
  54. 54. Memory addressing You can access data in many CPU memory areas (V, I, Q, M, S, L, and SM) as: bytes, words, or double words by using the byte-address format.
  55. 55. Memory types <ul><li>Process-image input register (I) </li></ul>Format: Bit I[byte address].[bit address] I0.1 Byte, Word, Double Word I[size][starting byte address] IB4 <ul><li>Process-image output register (Q) </li></ul>Format: Bit Q[byte address].[bit address] Q1.1 Byte, Word, Double Word Q[size][starting byte address] QB5 <ul><li>Variable memory area (V) </li></ul><ul><li>You can use V memory to: </li></ul><ul><li>store intermediate results of the control logic operations. </li></ul><ul><li>store other data pertaining to your process or task. </li></ul><ul><li>Format: </li></ul><ul><li>Bit V[byte address].[bit address] V10.2 </li></ul><ul><li>Byte, Word, Double Word V[size][starting byte address] VW100 </li></ul>
  56. 56. Memory types <ul><li>Sequence control relay area (S) </li></ul>They are used to organize machine operations or steps into equivalent program segments. SCRs allow logical segmentation of the control Format: Bit S[byte address].[bit address] S3.1 Byte, Word, Double Word S[size][starting byte address] SB4 <ul><li>Special memory bits (SM) </li></ul>The SM bits provide a means for communicating information between the CPU and your program. You can use these bits to select and control some of the special functions of the S7-200 CPU, such as: • A bit that turns on for the first scan cycle • Bits that toggle at fixed rates • Bits that show the status of math or operational instructions Format: Bit SM[byte address].[bit address] SM0.1 Byte, Word, Double Word SM[size][starting byte address] SMB86
  57. 57. Memory types <ul><li>Local memory area (L) </li></ul>The S7-200 PLCs provide 64 bytes of local (L) memory of which 60 can be used as scratchpad memory or for passing formal parameters to subroutines. Format: Bit L [byte address].[bit address] L0.0 Byte, Word, Double Word L [size] [starting byte address] LB33
  58. 58. Memory types <ul><li>Analog inputs (AI) </li></ul>The S7-200 converts a real-world, analog value (such as temperature or voltage) into a word-length (16-bit) digital value. You access these values by the area identifier (AI), size of the data (W), and the starting byte address. Since analog inputs are words and always start on even-number bytes (such as 0, 2, or 4), you access them with even-number byte addresses (such as AIW0, AIW2, or AIW4),as shown in Figure Analog input values are read-only values. Format: AIW [starting byte address] AIW4
  59. 59. Memory types The S7-200 converts a word-length (16-bit) digital value into a current or voltage, proportional to the digital value (such as for a current or voltage). You write these values by the area identifier (AQ), size of the data (W), and the starting by address. Since analog outputs are words and always start on even-number bytes (such as 0, 2, or 4), you write them with even-number byte addresses (AQW0, AQW2, AQW4), Format: AQW [starting byte address] AQW4 <ul><li>Analog outputs (AQ) </li></ul>
  60. 60. Move instructions The Move Byte instruction moves the input byte (IN) to the output byte (OUT). The input byte is not altered by the move. The Move Word instruction moves the input word (IN) to the output word (OUT). The input word is not altered by the move. The Move Double Word instruction moves the input double word (IN) to the output double word (OUT). The input double word is not altered by the move. The Move Real instruction moves a 32-bit, real input double word (IN) to the output double word (OUT). The input double word is not altered by the move.
  61. 61. The block move instructions <ul><li>The Block Move Byte instruction moves the number of </li></ul><ul><li>bytes (N) from the input address IN to the output address </li></ul><ul><li>OUT. N has a range of 1 to 255. </li></ul>Example
  62. 62. Move byte immediate instructions The Move Byte Immediate Write instruction reads from location IN and writes to physical output OUT. The Move Byte Immediate Read instruction reads physical input IN and writes the result in OUT.
  63. 63. Analogue I/O = Typical analogue signals from 0-10 VDC or 4-20 mA = They are used to represent changing values such as speed, temperature, weight and level =The expansion module converts the standard voltage and current values to 12-bit digital representation. These digital values are transferred to the PLC for use in its program
  64. 64. <ul><li>Analogue outputs may be used to produce variable reference signals for devices such as: </li></ul><ul><li># Control valves </li></ul><ul><li># Chart recorders </li></ul><ul><li># Electric motor drives </li></ul><ul><li># Pressure transducers </li></ul><ul><li># Analogue meters </li></ul>
  65. 65. Analog o/p example
  66. 66. Analog i/p example
  67. 67. Analog i/p example

×