PLC Features: Department of Mechanical Engineering Bangladesh University of Engineering & Technology
PLC Features: Department of Mechanical Engineering Bangladesh University of Engineering & Technology
Programmable Logic Controller (PLC) Rugged design; suitable for harsh industrial environments against
high temperature variations, dust, and vibrations.
Industry standard I/O interfaces; capable of communicating with
Prof. Dr. M. Zahurul Haq other PLCs, computers and intelligent devices.
[email protected] Industry standard programming languages; easily learned and
http://teacher.buet.ac.bd/zahurul/ understood. Programming is primarily concerned with logic,
timing, counting and switching operations.
Department of Mechanical Engineering
Bangladesh University of Engineering & Technology Field programmable.
Reduces hard wiring and wiring cost.
ME 475: Mechatronics Monitoring, error checking and diagnostics capability.
Competitive in both cost and space requirements.
Prof. Dr. M. Zahurul Haq (BUET) PLC ME 475 1 / 44 Prof. Dr. M. Zahurul Haq (BUET) PLC ME 475 2 / 44
e182.eps
Prof. Dr. M. Zahurul Haq (BUET) PLC ME 475 3 / 44 Prof. Dr. M. Zahurul Haq (BUET) PLC ME 475 4 / 44
Firmware Multitasking Capability
Prof. Dr. M. Zahurul Haq (BUET) PLC ME 475 5 / 44 Prof. Dr. M. Zahurul Haq (BUET) PLC ME 475 6 / 44
The manner in which a PLC & its I/O are packaged is critical in
determining its suitability for an application. Number and Types of input & output points required
Heat Removal - appropriate means must be provided for Size and type of memory required
generated heat removal to ensure low internal temperature.
Speed and power required of CPU and instruction set
Commonly used methods include air venting, forced air circulation
& heat sinking. Manufacturer’s support and backup
Mounting - to be mounted inside NEMA rated enclosure.
Prof. Dr. M. Zahurul Haq (BUET) PLC ME 475 7 / 44 Prof. Dr. M. Zahurul Haq (BUET) PLC ME 475 8 / 44
PLC Hardware PLC Hardware
Basic Hardware
Prof. Dr. M. Zahurul Haq (BUET) PLC ME 475 9 / 44 Prof. Dr. M. Zahurul Haq (BUET) PLC ME 475 10 / 44
Executive Internal User I/O image Provides voltage levels required for internal operations (typically
memory RAM memory memory
+5 V dc or ± 12 V dc).
Provides power for I/O modules.
I/O bus
address bus I/O Provides constant voltages.
CPU interface
data bus
Packaged properly to prevent overheat.
Separate or built into the processing unit.
Power
Communication
It is one of the most critical components of a PLC -
interface
supply 1 It is typically non-redundant. Hence a failure of the power supply
Watchdog can cause the control system to fail.
timer 2 It usually contains high-voltage components. Hence, an isolation
failure can create the potential for serious injury and fire.
field power to/from program loader
x019.eps
Prof. Dr. M. Zahurul Haq (BUET) PLC ME 475 11 / 44 Prof. Dr. M. Zahurul Haq (BUET) PLC ME 475 12 / 44
PLC Hardware PLC Hardware
Prof. Dr. M. Zahurul Haq (BUET) PLC ME 475 13 / 44 Prof. Dr. M. Zahurul Haq (BUET) PLC ME 475 14 / 44
PLC Operation & Programming PLC Operation PLC Operation & Programming PLC Operation
...
e195.eps
The ladder diagram (LD) has two rungs. The top rung will light Lamp-0
& if both SW-0 and SW-1 are closed. The bottom rung will light
Lamp-1 if either SW-0 or OUT-0 are closed.
e196.eps
Prof. Dr. M. Zahurul Haq (BUET) PLC ME 475 19 / 44 Prof. Dr. M. Zahurul Haq (BUET) PLC ME 475 20 / 44
PLC Operation & Programming PLC Operation PLC Operation & Programming PLC Programming
Prof. Dr. M. Zahurul Haq (BUET) PLC ME 475 21 / 44 Prof. Dr. M. Zahurul Haq (BUET) PLC ME 475 22 / 44
PLC Operation & Programming PLC Programming PLC Operation & Programming PLC Programming
e375.eps
e106.eps
Prof. Dr. M. Zahurul Haq (BUET) PLC ME 475 23 / 44 Prof. Dr. M. Zahurul Haq (BUET) PLC ME 475 24 / 44
PLC Operation & Programming PLC Programming PLC Operation & Programming PLC Programming
4 Structured Text (ST): high level language based on Pascal. Instruction List (IL):
LD Part-TypeA
5 Sequential Function Chart (SFC): a language resource for the OR Part-TypeB
AND Part-present
structuring of sequence-oriented control programs. AND Drill-ok
ST Sleeve-in
Prof. Dr. M. Zahurul Haq (BUET) PLC ME 475 25 / 44 Prof. Dr. M. Zahurul Haq (BUET) PLC ME 475 26 / 44
PLC Operation & Programming PLC Programming PLC Operation & Programming LD Programming
1 Allen-Bradley
2 Cutler-Hammer
Prof. Dr. M. Zahurul Haq (BUET) PLC ME 475 27 / 44 Prof. Dr. M. Zahurul Haq (BUET) PLC ME 475 28 / 44
PLC Operation & Programming LD Programming PLC Operation & Programming LD Programming
e110.eps
Prof. Dr. M. Zahurul Haq (BUET) PLC ME 475 29 / 44 Prof. Dr. M. Zahurul Haq (BUET) PLC ME 475 30 / 44
PLC Operation & Programming LD Programming PLC Operation & Programming LD Programming
IN 1 IN 2 OUT
IN 1 IN 2 OUT LD IN 1
0 0 0
0 0 0 LD IN 1 IN 1
IN 1 0 1 1 OR IN 2
AND IN 2 OUT
OUT 0 1 0 IN 2 = OUT
1 0 1
IN 2 1 0 0 = OUT END
END 1 1 1
1 1 1
OUT IN 1
IN 1 IN 2
OUT
Solenoid
x020.eps
IN 2
x021.eps
Prof. Dr. M. Zahurul Haq (BUET) PLC ME 475 31 / 44 Prof. Dr. M. Zahurul Haq (BUET) PLC ME 475 32 / 44
PLC Operation & Programming LD Programming PLC Operation & Programming LD Programming
IN 1 IN 2 OUT
LD NOT IN 1 IN 1 IN 2 OUT
0 0 1
IN 1 0 0 1 LD NOT IN 1
0 1 1 OR NOT IN 2 IN 1
OUT AND NOT IN 2
IN 2 = OUT OUT 0 1 0
1 0 1 IN 2
END 1 0 0 = OUT
1 1 0 END
1 1 0
IN 1 OUT
IN 1 IN 2
OUT
IN 2 x023.eps
x022.eps
Prof. Dr. M. Zahurul Haq (BUET) PLC ME 475 33 / 44 Prof. Dr. M. Zahurul Haq (BUET) PLC ME 475 34 / 44
PLC Operation & Programming LD Programming PLC Operation & Programming LD Programming
Y430
X400 X401
x024.eps
Timers/Counters Timers
Timers are output instructions that are internal to the PLC. These
Timers/counters instructions results in internal outputs that are capable of providing timed control of devices that they activate
provides the same functions as hardware timers/counters. or deactivate.
These are used to activate or deactivate a device after an expired EN 61131-3 defines 3 types of timer function blocks:
intervals/counts. 1 TP: Pulse Timing
2 TON: On-delay timing
Both of these require an accumulator resistor to store the elapsed 3 TOF: Off-delay timing
count/time and a register to store the preset value.
The length of the time delay is determined by specifying a Preset
Timers can be linked together, the term is cascade, to give larger
value. Timer is enabled when the rung conditions become TRUE.
delay times than is possible with just one timer.
Once enabled, it automatically counts up until it reaches the
preset value and then goes TRUE.
Prof. Dr. M. Zahurul Haq (BUET) PLC ME 475 37 / 44 Prof. Dr. M. Zahurul Haq (BUET) PLC ME 475 38 / 44
PLC Operation & Programming LD Programming PLC Operation & Programming LD Programming
Counters
e197.eps
Prof. Dr. M. Zahurul Haq (BUET) PLC ME 475 41 / 44 Prof. Dr. M. Zahurul Haq (BUET) PLC ME 475 42 / 44
e187.eps