Mechatronics (302050) Lecture Notes / PPT Unit Iv
Mechatronics (302050) Lecture Notes / PPT Unit Iv
Unit IV
UNIT IV
Syllabus
PLC Programming
Introduction, Architecture,
Latching,
Timers, Counter,
Newnes, 2006.
Introduction
Memory Requirement
CPU Requirement
Communication Requirement
Environmental Requirements
I/O Devices
Input Devices provide inputs to the control system. In
case of discrete-state process control, the inputs are two
state specifications such as:
Limit switches – open or closed,
•Lights: On / OFF,
automobiles was mainly composed of relays, cam timers and dedicated closed-loop
controllers.
One way to provide a discrete state controller is to use physical relays to put
When a program has been wired into the relays that make up the relay logic panel, it
panel. It may even be necessary to add more relays to the system, or to use more
relays than the previous program.
The move from relay logic controllers to computer-based
controllers was an obvious one because :
1.The input and output variables of discrete state control systems
are binary in nature, just as with a computer.
2.Many of the control relays of the ladder diagram can be
replaced by software, which means less hardware control.
3.It is easy to make changes in a programmed sequence of events
when it is only a change in software.
4.Special functions, such as time-delay actions and counters, are
easy to produce in software.
Architecture of a PLC
A Programmable controller can be studied by considering the
basic elements shown in Figure : the processor, I/O modules and
the software.
Components in PLC
Components
• Input Module
• Output Module
• CPU
• Memory
• Power Supply
• Programming Device
• Communication Channel
Input Module
Figure shows the typical wiring to a PLC
input module.
The input module examines the state of
the physical switches and other input
devices and puts their state into a form
suitable for the processor.
It is able to accommodate a number of
inputs called channels.
If the switch is closed, the input will be
24 V DC, and if open, 0 V DC. The input
module converts this into the 1 or 0 state
needed by the processor.
Input Module
• Input Module: Convert real world voltage and currents to signals the PLC
can understand. Since there are different types of input devices, there is a
wide variety of input modules available, including both digital and analog
modules.
device.
• The programming device is usually detachable from the PLC cabinet so that
• the data bus for sending data between the constituent elements,
• the address bus to send the addresses of locations for accessing stored
data
• The term word is used for the group of bits constituting some
wire.
Communication Channel
Types of PLCs
• Single Box Type: The single box type (or, as sometimes termed, brick) is
commonly used for small programmable controllers and is supplied as an
integral compact package complete with power supply, processor, memory,
and input/output units. Typically such a PLC might have 6, 8, 12 or 24 inputs
and 4, 8 or 16 outputs and a memory which can store some 300 to 1000
instructions.
• Modular: The modular or the Rack type consists of separate modules for
power supply, processor, input module, output module, memory.
Types of PLCs
During the i/o scan mode, the processor updates all the outputs
and inputs the state of all inputs one channel at a time. The
When the accumulated time ticks equals the preload value, the timer itself
becomes TRUE.
The timer only counts while it has a TRUE input. If the input becomes
FALSE and then TRUE again, the timer will reset to ZERO and start to
count again.
PLC Timer Function
PLC Counter Function
A counter is a programmed function that counts (increments)
systems:
A human-machine interface or HMI which presents process