Adaptive Control For Machine Tools
Adaptive Control For Machine Tools
Adaptive Control For Machine Tools
1
03-05-2023
2
03-05-2023
3
03-05-2023
4
03-05-2023
5
03-05-2023
6
03-05-2023
7
03-05-2023
PLC
1. Operates in the industrial environment
PC
2. Is programmed in relay ladder logic
1. Computers are complex computing
or other easily learned languages.
3. PLCs, execute a single program in an
machines capable of executing
orderly and sequential fashion from several programs simultaneously,
first to last instruction. in any order
4. Has no keyboard, CD drive, monitor, 2. Some manufacturers have
or disk drive. software and interface cards
5. Has communications ports, and available so that a PC can do the
terminals for input and output work of a PLC
devices 3. Has keyboard, CD drive, monitor,
or disk drive
8
03-05-2023
PLC Architecture
• An open architecture design allows the system to
be connected easily to devices and programs
made by other manufacturers.
• A closed architecture or proprietary system, is
one whose design makes it more difficult to
connect devices and programs made by other
manufacturers.
• NOTE: When working with PLC systems that are
proprietary in nature you must be sure that any
generic hardware or software you use is
compatible with your particular PLC
9
03-05-2023
10
03-05-2023
11
03-05-2023
12
03-05-2023
2.The buses
• The buses are the paths used for communication
within the PLC. The information is transmitted in
binary form, i.e. as a group of bits with a bit being a
binary digit of 1 or 0, i.e. on/off states. The term
word is used for the group of bits constituting some
information. The system has four buses:-
• The data bus carries the data used in the
processing carried out by the CPU
• The address bus is used to carry the addresses of
memory locations
• The control bus carries the signals used by the
CPU for control,
• The system bus is used for communications
between the input/output ports and the input/output
unit
13
03-05-2023
3. Input/output unit
• The input/output unit provides the interface between the
system and the outside world, allowing for connections
to be made through input/output channels to input
devices such as sensors and output devices such as
motors and solenoids
• It is also through the input/output unit that programs are
entered from a program panel.
• Every input/output point has a unique address which can
be used by the CPU.
• It is like a row of houses along a road, number 10 might
be the ‘house’ to be used for an input from a particular
sensor while number ‘45’ might be the ‘house’ to be used
for the output to a particular motor
14
03-05-2023
4. Input/output unit
Input Module
•.
15
03-05-2023
5. Programming Device
PC with appropriate
software
16
03-05-2023
Programming Device
Hand-held unit
with display
17
03-05-2023
A program
• A program is a user-developed series of
instructions that directs the PLC to execute
actions.
• A programming language provides rules for
combining the instructions so that they
produce the desired actions.
18
03-05-2023
19
03-05-2023
20
03-05-2023
ladder diagrams
• A ladder diagram is used to represent PLC
programs
• As an introduction to ladder diagrams, consider
the simple wiring diagram for an electrical
circuit in Figure 1a. The diagram shows the
circuit for switching on or off an electric motor.
•
21
03-05-2023
Ladder diagrams
• We can redraw this diagram in a different way,
using two vertical lines to represent the input
power rails and stringing the rest of the circuit
between them. Figure 1b shows the result.
22
03-05-2023
23
03-05-2023
24
03-05-2023
25
03-05-2023
Fig. shows a basic standared symbols that are used and rung,
1. Inputs must always preceede outputs and there must be at least one
output on each line
2. Each rung must start with an input or series of inputs and end with an
output
26
03-05-2023
Example 1.Simple ladder diagram for an electrical circuit in Figure c. The diagram
shows the circuit for switching on or off an electric motor.
a. Wiring Diagram
Example 1.Simple ladder diagram for an electrical circuit in Figure c. The diagram
shows the circuit for switching on or off an electric motor.
c. Ladder Diagram
27
03-05-2023
28
03-05-2023
29
03-05-2023
Logic Functions
• Programs are based on logic.
• Logic can be realized using blocks.
• Blocks contain digital circuits.
• Digital circuits can be realized using logic
gates.
• Therefore logic gates are fundamental
components in which a program is realised
30
03-05-2023
Logic Functions
• AND, OR, NOT, EXCLUSIVE OR, NOR, and
NAND circuits are common in ladder logic and
parallel designs found in digital logic circuits.
• Simple circuits can be combined into larger
circuits to perform very complicated tasks.
• PLCs use the same type of logic as does digital
logic texts. Some common digital and ladder
logic equivalent circuits follow:
31
03-05-2023
The OR Function
• The symbol drawn in Figure is that of an
OR gate. An OR gate can have any number
of inputs but only one output.
• The basic rules that apply to an OR
gate are:
–If one or more inputs are 1, the output is 1.
–If all inputs are 0, the output will be 0.
32
03-05-2023
33
03-05-2023
34
03-05-2023
35
03-05-2023
36
03-05-2023
37
03-05-2023
Internal relays
• In PLCs there are elements that are used to hold
data, i.e. bits, and behave like relays, being able to
be switched on or off and switch other devices on or
off.
• Hence the term internal relay. Such internal relays
do not exist as real-world switching devices but are
merely bits in the storage memory that behave in the
same way as relays.
• For programming, they can be treated in the same
way as an external relay output and input. Thus
inputs to external switches can be used to give an
output from an internal relay.
• This then results in the internal relay contacts being
used, in conjunction with other external input
switches to give an output, e.g. activate a motor.
Thus we might have (Figure 7.1):
38
03-05-2023
Internal relays
Internal relays
• With ladder programs, an internal relay output is
represented using the symbol for an output device,
namely ( ), with an address which indicates that it is an
internal relay rather than an external relay.
• Thus, with a Mitsubishi PLC, we might have the
address M100, the M indicating that it is an internal
relay or marker rather than an external device.
• The internal relay switching contacts are
designated with the symbol for an input device,
namely | |, and given the same address as the
internal relay output, e.g. M100.
• In using an internal relay, it has to be activated on
one rung of a program and then its output used to
operate switching contacts on another rung, or
rungs, of the program.
• Internal relays can be programmed with as many sets
of associated contacts as desired.
39
03-05-2023
40
03-05-2023
41
03-05-2023
Latching
• There are often situations where it is necessary to hold an
output energized, even when the input ceases
• A motor, which is started by pressing a push button switch.
Though the switch contacts do not remain closed, the motor is
required to continue running until a stop push button switch is
pressed. The term latch circuit is used for the circuit used to
carry out such an operation.
• It is a self-maintaining circuit in that, after being energized, it
maintains that state until another input is received
42
03-05-2023
43
03-05-2023
Timers
• In many control tasks there is a need to control
time. For example, a motor or a pump might need
to be controlled to operate for a particular interval of
time, or perhaps be switched on after some time
interval.
• PLCs thus have timers as built-in devices.Timers
count fractions of seconds or seconds using the
internal CPU clock.
• A common approach is to consider timers to
behave like relays with coils which when
energised result in the closure or opening of
contacts after some preset time.
Types of timers
• There are a number of different forms of timers that
can be found with PLCs.
• With small PLCs there is likely to be just one form,
the on-delay timers. These are timers which
come on after a particular time delay(Figure 9.2(a)).
• Off-delay timers are on for a fixed period of time
before turning off (Figure 9.2(b)).
• Another type of timer that occurs is the pulse
timer. This timer switches on or off for a fixed
period of time (Figure 9.2(c)).
44
03-05-2023
Types of timers
Programming timers
Figure 9.4(a) is typical of Mitsubishi. The timer is like a relay
with a coil which is energised when the input In 1 occurs
(rung 1). It then closes, after some preset time delay, its
contacts on rung 2. Thus the output occurs some preset time
after the input In 1 occurs
45
03-05-2023
COUNTERS
• Counters are provided as built-in elements in
PLCs and allow the number of occurrences of
input signals to be counted.
• This might be where items have to be counted as
they pass along a conveyor belt, or the number of
revolutions of a shaft, or perhaps the number of
people passing through a door.
• A counter is set to some preset number value and,
when this value of input pulses has been received,
it will operate its contacts. Thus normally open
contacts would be closed, normally closed
contacts opened
46
03-05-2023
Counter- Types
• There are two types of counter, though PLCs may
not include both types. These are down-counters
and up-counters.
• Down-counters count down from the preset value
to zero, i.e. events are subtracted from the set
value. When the counter reaches the zero value, its
contacts change state.Most PLCs offer down
counting.
• Up-counters count from zero up to the preset
value, i.e. events are added until the number
reaches the preset value. When the counter
reaches the set value, its contacts change state
47
03-05-2023
48
03-05-2023
49