PLC
-
Upload
debayon-saha -
Category
Technology
-
view
173 -
download
0
Transcript of PLC
![Page 1: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/1.jpg)
IEEE HIT STUDENT BRANCH
Workshop on PLC and SCADA
Presentation By: DEBAYON SAHA
![Page 2: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/2.jpg)
What is PLC?
• PLC – Programmable Logic Controller • PLC is a digital computer designed for controlling
multiple inputs and output arrangements, extended temperature ranges, immunity to electrical noise, and resistance to vibration and impact.
• A PLC is an example of a real time system. • PLC works on the principle of Relay Logic.
![Page 3: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/3.jpg)
History of PLC
PLC was introduced in late 1960’sFirst commercial & successful Programmable Logic
Controllers was designed and developed by Modicon as a relay replacer for General Motors.
Earlier, it was a machine with thousands of electronic parts.
Later ,in late 1970’s,the microprocessor became reality & greatly enhanced the role of PLC permitting it to evolve form simply relay to the sophisticated system as it is today.
![Page 4: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/4.jpg)
Leading Brand of PLC• Siemens - Germany• AB (Allen Bradley) – US• Schneider Electric (Modicon) – France• Mitsubishi – Japan.• ABB – Germany.• SAIA – Switzerland• GE Fanuc – US.• B&R (Bernecker & Reiner) – Austria.• Teco – Czech Republic.
![Page 5: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/5.jpg)
Types of PLC• NANO PLC: Latest and smallest plc Consist of less than 10 input & Output ports
• MICRO PLC: Smaller PLC Consists of15-20 input & 10-12 output ports
• MINI PLC: Medium size Consists of 100-200 input & output ports
• RACK PLC: Large size Consists of 1000 of input & output ports
![Page 6: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/6.jpg)
PARTS OF PLC
PLC
HARDWARE SOFTWARE
![Page 7: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/7.jpg)
HARDWARES & SOFTWARES OF PLC
MAKER’S NAME HARDWARE SOFTWARE
SIEMENS S7-300, S7-200, S7-400 etc.
Siematic Manager, Logo
Allen Bradley MicroLogicx LogicxPro
ABB AC500, S500 AC500, S500
![Page 8: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/8.jpg)
MAJOR COMPONENTS OF PLC
• POWER SUPPLY MODULE: Provides the voltage needed to run the primary PLC components.
• I/O MODULES: Provides signal conversion and isolation between the internal logic- level signals inside the PLC and the field’s high level signal.
It consists of AI/AO cards & DI/DO cards.
• CPU or PROCESSOR: Provides intelligence to command and govern the activities of the entire PLC systems.
• IFM MODULE: IFM module helps a PLC to communicate with other PLCs. It also manages the communication between other modules and processor.
![Page 9: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/9.jpg)
BASIC BLOCK DIAGRAM OF A PLC
I MN O P D U UT L E
POWERSUPPLY
O M U OT DP UU LT E
PROCESSOR
IFM MODULE
ToOUTPUT
Solenoids, contactors,
alarmsetc.
From SENSORSPushbuttons,
contacts,limit switches,
etc.
To Other PLC
![Page 10: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/10.jpg)
![Page 11: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/11.jpg)
PS
CPU
IFM
INPUT OUTPUT
![Page 12: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/12.jpg)
Input & Output of PLCOutputsLED
s
Inputs
![Page 13: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/13.jpg)
![Page 14: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/14.jpg)
Programming Languages of PLC
• Ladder Logic• Functional Block Diagram• STL or Statement List
• Sequential Function Chart• Boolean mnemonics
![Page 15: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/15.jpg)
Advantages of PLCsReliability.Flexibility in programming and reprogramming.Cost effective for controlling complex systems.Small physical size, shorter project time.High speed of operation.Ability to communicate with computer systems in the
plant.Ease of maintenance /troubleshooting. Reduced space. Energy saving.
![Page 16: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/16.jpg)
Disadvantages of PLCs
PLC devices are proprietary it means that part or software of one manufacturer can’t be used in combination with parts of another manufacturer.
Limited design and cost optionFixed Circuit Operations.PLCs manufacturers offer only closed architectures.
![Page 17: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/17.jpg)
Ladder Logic
• Ladder logic is the oldest programming language for PLC.• It is mostly used logic for controlling PLC. language for
PLC.• It is well suited to express Combinational logic.
![Page 18: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/18.jpg)
Concept of NO, NC, EO & EC• Any Electrical Switch have 2 conditions: 1) Normal or OFF
state 2) Excited or ON state• Again on the basis of contact position any electrical switch
have 2 positions: 1) Open Position 2) Closed Position
![Page 19: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/19.jpg)
• NO: Normally Open Position. When switch is pressed then its become closed. After releasing of switch its again go back to open position.
• NC: Normally Closed Position. When switch is pressed then its become open. After releasing of switch its again go back to close position.
• EC: Excited Closed Position.• EO: Excited Open Position.
![Page 20: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/20.jpg)
EC(Excited Closed)
NO(Normally
Open)
EO(Excited Open)
NC(Normally Closed)
![Page 21: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/21.jpg)
Addressing of Input & Output• Input: I:1/0, I:1/1, ……………., I:1/15• Output: O:2/0, O:2/1, …………, O:2/15• In Siemens Input is denoted by ‘I’ & Output is denoted by
‘Q’.
![Page 22: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/22.jpg)
Problem Statement- 1• Develop a LAD programe such that the lamp L1 should
glow when the switch S1 is made ON and the lamp gets OFF when switch S1 is made OFF
![Page 23: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/23.jpg)
Problem Statement- 2• Develop a LAD programe such that the Lamp L2 should not
glow when switch S2 is made ON Lamp should glow when switch S2 is made OFF.
![Page 24: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/24.jpg)
Problem Statement-3• The lamp L3 should glow when both the switch S1 & S2 are
ON. If any one is OFF then L3 will not glow. Draw LAD logic.
![Page 25: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/25.jpg)
Problem Statement-4 • The lamp L4 should glow when any one of the switch S1 or
S2 is ON. Draw the LAD logic.
![Page 26: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/26.jpg)
Problem Statement-5• The lamp should glow when either the switch (S1 & S2) or
S3 is ON. Draw LAD logic.
![Page 27: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/27.jpg)
Problem Statement-6• Develop Ladder Logic for a car door/seat belt safety
system. When the car door is open, or the seat belt is not done up, the ignition power must not be applied. If all is safe then the key will start the engine.
![Page 28: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/28.jpg)
REALIZATION OF LOGIC GATES
![Page 29: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/29.jpg)
AND GATE
![Page 30: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/30.jpg)
OR GATE
![Page 31: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/31.jpg)
NOT GATE
![Page 32: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/32.jpg)
NAND GATE
![Page 33: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/33.jpg)
NOR GATE
![Page 34: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/34.jpg)
XOR GATE
![Page 35: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/35.jpg)
XNOR GATE
![Page 36: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/36.jpg)
Relay
• It was invented by Joseph Henry in 1835. • A relay is an electrical switch that opens and closes contacts
under control of another electrical circuit. • The switch is operated by an electromagnet (Solenoid) to open
or close one or many sets of contact points. • A relay is able to control an output circuit of higher power than
the input circuit which is at lower power.
![Page 37: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/37.jpg)
Lever(Magnetic Material)
Solenoid Coil
Spring
NC Contact
NO Contact
Common Contact
![Page 38: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/38.jpg)
Operation of Relay• When a current flows through the coil, the resulting
magnetic field attracts an armature that is mechanically linked to a moving contact.
• The moving contact is supported by a spring, which keeps the common contact normally connected to the NC and when the coil get activated and a magnetic field is produced, the moving contact get attracted.
• Resulting a closed path between NO contact and Common contact.
• The movement either makes or breaks a connection with a fixed contact.
![Page 39: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/39.jpg)
Inside a Relay Magnetic force deflectsthe lever downwardwhen the coil is energizedSpring force restores
the lever when the coil is not energized
Connections to coilNormally opencontact
Normally closedcontact
NO
NCCommon contact
![Page 40: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/40.jpg)
Inside a Relay Magnetic force deflectsthe lever downwardwhen the coil is energizedSpring force restores
the lever when the coil is not energized
Connections to coilNormally opencontact
Normally closedcontact
NO
NCCommon contact
![Page 41: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/41.jpg)
Magnetic force deflectsthe lever downwardwhen the coil is energizedSpring force restores
the lever when the coil is not energized
Connections to coilNormally opencontact
Normally closedcontact
NO
NCCommon contact
Inside a Relay
![Page 42: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/42.jpg)
Magnetic force deflectsthe lever downwardwhen the coil is energizedSpring force restores
the lever when the coil is not energized
Connections to coilNormally opencontact
Normally closedcontact
NO
NCCommon contact
Inside a Relay
![Page 43: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/43.jpg)
Wiring diagram of a Relay
![Page 44: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/44.jpg)
Problem Statement• When a switch S1 is pressed, then it activated a relay.
After activating the relay a bulb B1 gets on, which was previously off. Another bulb B2 gets off which was previously on.
![Page 45: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/45.jpg)
LATCH
![Page 46: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/46.jpg)
INTERLOCKING
![Page 47: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/47.jpg)
MEMORY• It is a internal device of PLC and can be used as output.• Memories are generally used for providing internal
switching in program.• Memory is denoted by ‘B3’.• Range of memory is 0/0 to 31/7.
![Page 48: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/48.jpg)
PROBLEM STATEMENT• In a one way tunnel there are three proximity sensors S1,
S2 & S3. When the car passes sensor S1 the bulb B1 glows. When the car passes sensor S2 the bulb B1 gets OFF & the bulb B2 glows. When the car finally passes the sensor S3 the bulb B2 gets OFF.
![Page 49: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/49.jpg)
TIMER• Basically Timer is a device which counts time and provides a
delay in a circuit.• Timer is addressed with ‘T4’.• Timer range is 0 to 255.• There are 3 types of timer in PLC- 1) On Delay Timer 2) Off Delay Timer 3) Retentive On Delay Timer
![Page 50: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/50.jpg)
ON DELAY TIMER• Initially Contact Part of this timer remains in NO position.• After getting power supply its started achieving its preset
value.• After achieving its preset value the Contact of the Timer
becomes EC.
![Page 51: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/51.jpg)
PROBLEM STATEMENT• A lamp will be on 10 sec after pressing a switch. If switch
will be off then timer will reset automatically.
![Page 52: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/52.jpg)
OFF DELAY TIMER• When We provide power supply Off Delay Timer
remains in on position.• When we off the power supply its start achieving
preset value.• After achieving the preset value timer becomes off.
![Page 53: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/53.jpg)
PROBLEM STATEMENT• A lamp should be get off 5 sec after pressing a switch.
![Page 54: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/54.jpg)
Retentive ON DELAY TIMER• Same as ON DELAY TIMER.• The only difference is when power is interrupted its retain its
accumulated value, when power is again on then its starts counting from its accumulated value.
• To reset this timer we use ‘Reset’.
![Page 55: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/55.jpg)
COUNTER• Basically Counter is a device which counts no of events.• Counter is denoted by ‘C5’.• Counter range is 0 to 255.• To reset the counter we use ‘RESET’.• There are Two types of counter in PLC- 1) UP COUNTER 2) DOWN COUNTER
![Page 56: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/56.jpg)
UP COUNTER• UP COUNTER counts up.• Initially up counter remains in off position.• When count reaches counter becomes on.
![Page 57: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/57.jpg)
PROBLEM STATEMENT• There is a conveyor belt. After passing 5 elements a
indicating lamp will glow. A switch is used to reset the counter.
![Page 58: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/58.jpg)
DOWN COUNTER• DOWN COUNTER counts down.• Initially down counter remains in on position.• After count reaches counter becomes off.
![Page 59: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/59.jpg)
PROBLEM STATEMENT• A lamp L1 is on. After 5 men enter a room the lamp should
go off. A switch is used to reset the counter. Use Down Counter.
![Page 60: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/60.jpg)
PROBLEM STATEMENT• A lamp L1 will glow after pressing a switch S1 10 times.
Another lamp L2 is already lit. It will be off when switch S2 is pressed 5 times after L1 glows. A reset switch S3 is used to reset both the counters.
![Page 61: PLC](https://reader036.fdocuments.net/reader036/viewer/2022081605/58707c131a28ab57368b556f/html5/thumbnails/61.jpg)