Professional Documents
Culture Documents
Mechatronics Chapter 4 - PLC
Mechatronics Chapter 4 - PLC
)
May, 2023
Harar, Ethiopia
• Similar to a Microcontroller:
• Microprocessor Based
• Onboard Memory for Storing Programs
• Special Programming Language:
- Ladder Logic
• Input/Output Ports
The CPU, which controls all PLC activity, can further be broken down into: the
processor, and memory system.
14
5/25/2023 ADISU TADESSE (MSC)
Introduction: PLC
15
5/25/2023 ADISU TADESSE (MSC)
Introduction: PLC
16
5/25/2023 ADISU TADESSE (MSC)
Introduction: PLC
PLC Size
1. SMALL- It has up to128 I/O’s and memories up to 2 Kbytes. - These PLC’s
are capable of providing simple to advance levels or machine controls.
2. MEDIUM - Have up to 2048 I/O’s and memories up to 32 Kbytes.
3. LARGE - The most sophisticated units of the PLC family. They have up to
8192 I/O’s and memories up to 750 Kbytes.
Can control individual production processes or entire plant.
17
5/25/2023 ADISU TADESSE (MSC)
Introduction: PLC
The overall plc bus
18
5/25/2023 ADISU TADESSE (MSC)
Introduction: PLC
Power Supply
❑ PLCs are usually powered directly from 120 or 240 V. The power supply converts
the AC into DC voltages for the internal microprocessor components. It may also
provide the user with a source of reduced voltage to drive switches, small relays,
indicator lamps, and the like.
Processor
❑ The processor is a microprocessor-based CPU and is the part of the PLC that is
capable of reading and executing the program instructions, one-by-one (such as
the rungs of a ladder logic program).
19
5/25/2023 ADISU TADESSE (MSC)
Introduction: PLC
Program Memory
• The program memory receives and holds the downloaded program
instructions from the programming device. If this memory is standard
RAM, the program will be lost every time the power is turned off, requiring
it to be reloaded.
• To avoid this bother, the program memory may use an EEPROM
(Electrically Erasable Programmable ROM) or a battery-backup RAM, both
of which are capable of retaining data even when the power is off.
20
5/25/2023 ADISU TADESSE (MSC)
Introduction: PLC
Data Memory
• Data memory is RAM memory, Temporarily store internal and external
generated data.
• For example, it would store the present status of all switches connected to
the input terminals and the value of internal counters and timers.
Programming Port
• The programming port, an input/output (I/O) port, receives the
downloaded program from the programming device (usually a PC).
21
5/25/2023 ADISU TADESSE (MSC)
Introduction: PLC
Input and Output Modules
• The I/O modules are interfaces to the outside world. These control ports may
be built into the PLC unit or, more typically, are packaged as separate plug-in
modules, where each module contains a set of ports.
Switch
• A mechanical device that can allowing a current to flow or not. There are two
fundamental uses for switch.
22
5/25/2023 ADISU TADESSE (MSC)
Introduction: PLC
Different types of switch
➢Pushbutton
There are two types of pushbutton, the momentary and maintained
The momentary pushbutton switch is activated when the button is pressed, and
deactivated when the button is released. The deactivation is done using an internal
spring.
The maintained pushbutton activates when pressed, but remains activated when it is
released. Then to deactivate it, it must be pressed a second time. on/off switches on
most desktop computers.
23
5/25/2023 ADISU TADESSE (MSC)
Introduction: PLC
Limit Switch
• Limit switches are usually not operator accessible.
• Activated by physical contact with some movable object. An example is a car door
switch, which senses whether or not the door is closed. they are activated by
moving parts on the machine.
• Magnetic switches used on home security systems that sense when a window has
been opened .
• Mechanically operated limit switch is the switch on the refrigerator door that turns
on the light inside.
5/25/2023 ADISU TADESSE (MSC) 24
Introduction: PLC
Function block:
Timer On Delay
Preset: 0.5sec = 500ms
Accumulated time
start count from zero.
Closed relay
outputs.
S L
OPEN OFF
CLOSED ON
S L
0 0
1 1
A simple binary
arrangement A truth
table
L = S1 AND S2
L = S1 OR S2
L = S1 AND S2 AND S3
L = S1 OR S2 OR S3
• The building blocks used to create digital circuits are logic gates.
• There are three elementary logic gates and a range of other simple gates.
• Each gate has its own logic symbol which allows complex functions to
be represented by a logic diagram.
• The function of each gate can be represented by a truth table or using
Boolean function/notation.
X = A + BC
Adisu Tadesse|MSc|
Lecturer, Mechatronics Eng. | Agro-Technical and Technology College/ATTC/ - Menschen fuer Menschen
Foundation – MFM