Unit IV - Mechatronics
Unit IV - Mechatronics
Unit IV - Mechatronics
• The PLCs find vast applications in the control and operation of Automated
Manufacturing Process Equipment and Machinery, Packaging and Filling
equipment,
Chemical Mixing,
Conveyor systems and
Distillation etc
Features of PLC
The PLCs has following features and specific which distinguish from
computers.
• They are rugged and designed to withstand vibrations, temperature,
humidity and noise.
• The interfacing for inputs and outputs is inside the controller.
• They are easily programmed and have an easily understood
programming language.
• Programming is primarily concerned with logic and switching operations.
• They can be designed with communication capabilities that allow them to
interface with a computer system.
Consider a hardwired circuit used for a simple application consisting of two
independent switches and motor
• Hence the switcher are not connected directly to the Motors, instead of that the
switches are connected to the input modules and logic module are connected to the
output modules.
Basic structure of PLC
The structure of PLC is based on the principles of computer architecture, its
capable of performing other functions such as counting logistics, numerical
applications, comparing and processing of signals
PLC
• Input Module ensures a usable signal is available for the CPU circuit
protection capabilities will also be necessary in the module to protect the
CPU circuitry from faults, surges or spikes in the incoming signal.
• The output module reads digital signals transmitted from the CPU, and
operates motor starters. Solenoids and status monitors.
Cont.
• The module essentially functions as a switching device and provides on-off
signals to the associated devices.
• Input and Output devices are placed outside the PLC, with connecting
wires attached to the terminal strips on the PLC.
Central Processing Unit (CPU)
• The CPU is the brain of the PLC, consisting of a microprocessor which
interprets the input signals and carries out the control actions according to
the program stored in the memory, communicating the decision as an
action signal to the outputs.
• It forms the core portion of the PLC. The microprocessor based unit
contains the logic and control algorithm for the controller.
• The CPU scans the total information package stored in the memory and the
input and output devices continuously.
Cont.
• During the scan the CPU also executes instruction based on input data,
sends appropriate output responses to the output devices, updates data
acquisition systems, and indicates condition changes
• Smaller PLC has longer scan times than larger units and has less memory
and reduced capacity for special instructions and peripheral equipment.
• The power supply unit is needed to convert the AC voltage to the low
DC voltage necessary for the processor and to supply power to other
circuits in the input and output interface module.
Memory Unit
• The memory unit is where the program is stored that is to be used for the
control actions to be exercised by the microprocessor and data stored from
input for processing and for the output.
• The memory in PLC stores the digital control logic, the process program and
the necessary instruction to operate the system. It stored in units called “byte”.
• The program is developed in the device and then transferred to the memory
unit of the PLC.
• Programming device also enters the required program using ladder logic
into the memory of the processor.
Cont.
• The PLCs are programmed to sense, activate and control machines and
equipment and incorporate a large number of internal hardware and
software, normally referred as internal architecture.
PLC
• A PLC consists of the following elements.
• CPU (Central Processing Unit)
• Memory
• I/O Processing devices
CPU (Central Processing Unit)
• b) Memory termed registers, located within the processor and used to store
information involves in program execution.
• The CPU also holds the communication circuits and power supply.
• The CPU executes the operating system, manages memory, monitors inputs,
evaluates the user logic and turns gives appropriate outputs.
• In order to do this, the PLC is provided with a signal to sequence its internal
operations.
Buses
The internal paths used for communication within PLC are called Buses.
These buses essentially carry the information in the digital forms.
There are four types of buses required in a PLC.
• I) Data Buses - It is used for communicating data between elements.
• ii) Address Buses - It is used to read the address of locations for accessing
stored data.
• Iii) Control buses – It is used for internal control actions carried by the
CPU. (Ex. To inform memory devices whether they are to receive data
from an input or output data.
• Iv) System Buses – It is used for communication between the input/output
ports and the input/output unit
Memory
• Memory devices are where the program are started in the controller or
some groups of binary digits of 1s and Os stored in the form of bytes at
individual locations identified by their addressed.
• The memory of a PLC is divided into many’ Sections based Specific
functions.
• Memory elements in PLC system
• 1. RAM (Random Access Memory)
• 2. ROM (Read Only Memory)
Input and Output Devices
• The input/output unit provides the interface between the system and the
outside world.
• Every input/output point has a unique address which can by the CPU.
• In drawing the circuit line for a rung, input must always proceed output
and there must be at least one output on each line.
• Each rung must start with an input or a series of inputs and end with an
output.
• The inputs and outputs arc numbered, the notation used depending on the
PLL manufacturing.
Example To illustrate the concepts of ladder diagram. Consider the
following logic.
Hence the ladder diagram describes the output A occurs when the input 1 occurs.
Cont.
The ladder diagram describes the output A occurs when both the inputs 1 and
2 occurs.
Cont.
The ladder diagram describes the output A when input 1 or input 2 occurs.
Logic function
• AND Function
• OR Function
• NOT Function
• NOR Function
• NAND Function
Mnemonics
• Each horizontal rung on the ladder in a ladder program represented a line
in the program and the entire ladder gives the complete program in
“Ladder Language”.
• The programmer can enter the program into the PLC using a keyboard
with the graphic symbols for the ladder elements, and mouse is used to
select symbols and the computer translates these symbols into machine
language than can be stored in the PLC memory.
Cont.
• There is an alternative way of entering a program and that is to translate
the ladder program into mnemonics,
• each code corresponding to ladder element, and then enter these into the
programming panel or computer.
• Example: LD A
• LD is the mnemonics
• i.e., operator for loading, the operand A.
Individual rungs on a ladder are entered using the
mnemonics
Cont.
Cont.
Cont.
Timers
• A Timer circuit is specified by starting the interval to be timed and the
conditions or events that are to start and/or stop the timer.
• They are commonly regarded as relays with coils which, when energized,
result in the closing or opening of input contacts after some preset timer.
Counters
• Counters are used when there is a need to
count a specified number of contact operations.
An up-counter would count up to the present value, i.e., events are added until the
number reaches the set value. When the set value is reached the counter’s contact
changes state.
Sequencing
SELECTION OF PLC
• In general, PLC are considering the size and type required for particular
tasks that need to be considered are,
• Input/output capacity required
• Types of Inputs/output required
• Size of memory required
• Speed and power of CPU
Cont.
The following aspect considered, depending on the requirements of the specific
application.
1. System definition
2. Choosing the I/O hardware
3. I/O timing consideration
4. Analog I/O module
5. Conversion speed
6. Analog closed control
7. counters, encoders and positioning
8. Communications
9. Choosing the correct processor
10. Selecting suppliers