Download - Plc Siemens Training Notes
![Page 1: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/1.jpg)
SiemensS7-200 PLC training courses
![Page 2: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/2.jpg)
PLC history
• Classical control - More complicated
- Longer time for maintenance
- Time consuming troubleshooting
- Occupies larger area in switchboards
- Requires more wiring
- Standard reliability
![Page 3: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/3.jpg)
History
• Large projects requirements
-More inputs and outputs points
- Large program memory
- Several programming instructions
- Communication with other equipments
- Deal with analogue signals
-Deal with large number of counters, timers
and markers
![Page 4: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/4.jpg)
History
• Historical view
![Page 5: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/5.jpg)
Course contents
• Introduction to PLC
• Bit logic
• compare
• Timers
• Counters
• Memory instructions
• Analog I/O
• Move , shift
• Practical examples
![Page 6: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/6.jpg)
Introduction
• What is a PLC
![Page 7: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/7.jpg)
Introduction
• Basic PLC operation
![Page 8: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/8.jpg)
introduction
• S7 200 family
![Page 9: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/9.jpg)
introduction
• S7-200 configuration
![Page 10: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/10.jpg)
introduction
• S7-200 configuration
mode switch and analog adjustment
![Page 11: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/11.jpg)
introduction
• S7-200 configuration
optional cartidge
![Page 12: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/12.jpg)
Introduction
• S7-200 configuration
expansion modules
![Page 13: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/13.jpg)
Introduction• S7-200 configuration
status indicator
![Page 14: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/14.jpg)
Introduction• S7-200 configuration
I/O numbering
![Page 15: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/15.jpg)
Introduction• S7-200 configuration
inputs
![Page 16: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/16.jpg)
Introduction• S7-200 configuration
outputs
![Page 17: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/17.jpg)
Introduction• S7-200 configuration
programming software
![Page 18: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/18.jpg)
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
![Page 19: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/19.jpg)
Introduction
Analogue outputs may be used to produce variable reference signals for devices such as:
# Control valves
# Chart recorders
# Electric motor drives
# Pressure transducers
# Analogue meters
![Page 20: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/20.jpg)
Introduction
![Page 21: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/21.jpg)
Introduction
![Page 22: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/22.jpg)
Introduction
![Page 23: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/23.jpg)
PLC Programming
![Page 24: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/24.jpg)
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
![Page 25: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/25.jpg)
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.
![Page 26: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/26.jpg)
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
![Page 27: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/27.jpg)
Input contacts example
![Page 28: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/28.jpg)
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
![Page 29: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/29.jpg)
Output, Set & Reset example
![Page 30: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/30.jpg)
Starting a motor
![Page 31: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/31.jpg)
Hard-wired DOL starting
Induction Motor
Circuit Breaker
Contactor
Thermal Overload
Induction Motor
Aux. contact
Contact coil
Stop
O.L. contact
Start
![Page 32: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/32.jpg)
Using PLC
Before start
Starting
After start
![Page 33: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/33.jpg)
Stopping
![Page 34: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/34.jpg)
Input & Output connections
![Page 35: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/35.jpg)
Timer instructions
On-Delay Timer
Retentive On-Delay Timer
Off-Delay Timer
![Page 36: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/36.jpg)
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 .
![Page 37: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/37.jpg)
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.
![Page 38: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/38.jpg)
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.
![Page 39: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/39.jpg)
Timer examples
On-Delay
Off-Delay
RetentiveOn-Delay
![Page 40: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/40.jpg)
Hard-wired on-delay timer
![Page 41: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/41.jpg)
Timer example
![Page 42: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/42.jpg)
TONR example
![Page 43: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/43.jpg)
Timer example
![Page 44: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/44.jpg)
Counter instructions
Up counter
Up/down counter
Down counter
A bottling machine, for example, may use a counter to countbottles into groups of six for packaging.
![Page 45: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/45.jpg)
Up-counter
It counts up on the rising edges of the Count Up (CU) input.
When the current value (Cxxx) > (PV), the counter bit (Cxxx) turns on.
The counter is reset when the Reset (R) input turns on.
![Page 46: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/46.jpg)
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.
![Page 47: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/47.jpg)
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 .
![Page 48: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/48.jpg)
Down-counter example
![Page 49: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/49.jpg)
Up/down-counter example
![Page 50: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/50.jpg)
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.
![Page 51: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/51.jpg)
The ladder logic
![Page 52: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/52.jpg)
Memory types• You can access data in many CPU memory areas - process image input register (I) - process image output register (Q) - variable memory area (V) - Bit memory area (M) - sequence control relay memory area (S) - special memory bits (SM) - local memory area (L) - Timer memory area (T) - counter memory area (C) - Analog inputs (AI)
![Page 53: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/53.jpg)
Accessing a Bit of Data in the CPU Memory (Byte.bit Addressing)
Memory addressing
![Page 54: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/54.jpg)
Memory addressingYou 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.
![Page 55: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/55.jpg)
Memory types• Process-image input register (I)
Format:Bit I[byte address].[bit address] I0.1Byte, Word, Double Word I[size][starting byte address] IB4
• Process-image output register (Q)Format:Bit Q[byte address].[bit address] Q1.1Byte, Word, Double Word Q[size][starting byte address] QB5
• Variable memory area (V)You can use V memory to:
•store intermediate results of the control logic operations .•store other data pertaining to your process or task .
Format:Bit V[byte address].[bit address] V10.2Byte, Word, Double Word V[size][starting byte address] VW100
![Page 56: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/56.jpg)
Memory types• Sequence control relay area (S)
They are used to organize machine operations or steps into equivalent program segments. SCRs allow logical segmentation of the controlFormat:
Bit S[byte address].[bit address] S3.1Byte, Word, Double Word S[size][starting byte address] SB4
• Special memory bits (SM)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 instructionsFormat:
Bit SM[byte address].[bit address] SM0.1Byte, Word, Double Word SM[size][starting byte address] SMB86
![Page 57: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/57.jpg)
Memory types• Local memory area (L)
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.0Byte, Word, Double Word L [size] [starting byte address] LB33
![Page 58: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/58.jpg)
Memory types
• Analog inputs (AI)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
![Page 59: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/59.jpg)
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
•Analog outputs (AQ)
![Page 60: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/60.jpg)
Move instructionsThe 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.
![Page 61: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/61.jpg)
The block move instructions
The Block Move Byte instruction moves the number ofbytes (N) from the input address IN to the output addressOUT. N has a range of 1 to 255. Example
![Page 62: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/62.jpg)
Move byte immediate instructions
The Move Byte Immediate Write instruction reads fromlocation IN and writes to physical output OUT.
The Move Byte Immediate Read instruction readsphysical input IN and writes the result in OUT.
![Page 63: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/63.jpg)
=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
Analogue I/O
=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
![Page 64: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/64.jpg)
Analogue outputs may be used to produce variable reference signals for devices such as:
# Control valves
# Chart recorders
# Electric motor drives
# Pressure transducers
# Analogue meters
![Page 65: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/65.jpg)
Analog o/p example
![Page 66: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/66.jpg)
Analog i/p example
![Page 67: Plc Siemens Training Notes](https://reader033.vdocument.in/reader033/viewer/2022061314/55557d9bb4c9058a5a8b51db/html5/thumbnails/67.jpg)
Analog i/p example