Lab Manual
Lab Manual
DEPARTMENT OF
ELECTRICAL AND ELECTRONICS ENGINEERING
2017R
1
Index
S. No Experiments Page No
6 Density Based Traffic Light System With Day And Night Mode
2
EXPERIMENTS
3
4
INTERFACING DIAGRAM
5
EXPERIMENT – 1
6
7
Power Supply
The basic function of power supply is to convert the filed power in to a form. More suitable for the
electronics devices that comprise the PLC (typically 5V or 24V). The power supply is one of the most
critical components of a PLC for two reasons
a) It is difficulty non-redundant. Hence a failure of the PLC power supply can cause the entire control
system to fail.
b) It will typically contain high voltage components. Hence an isolation failure can create the potential
for serious injury or fire.
MEMORY
The memory of PLC two type
1. Volatile
2. Non-Volatile
Volatile memory loses its contents when power is removed, where as non-volatile memory for a
majority of the users memory because the program must be retained during a power down cycle
meaning that the user will not gave to reload the program each time power is lost. It is important that all
non volatile memory in a PLC use some form of error checking to ensure that the memory has not
changed.This error checking also should be done on line in order to ensure safe execution of the users
program EEPROM means Electrically Erasable Programmable Read Only Memory. It is a nonvolatile
memory that offers the same programming flexibility as dose RAM. Several small and medium size
controllers use EEPROM as the only memory for the system. It provides permanent storage of the
program and can easily be changed using standard programming device.
CENTRAL PROCESSING UNIT
How the CPU is constructed will determine the flexibility of the plc as well as the overall speed of the
PLC. The speed is expressed in terms of how fast the plc will scan a amount of memory.This measure
called the scan rate typically expressed in milliseconds per thousand words of memory faster with a
scan time appropriate for the application. The CPU accepts (reads) input data from various sensing
device executes the stored user program from memory and sends appropriate output command to
control devices. It is important to note that many of the commercially available PLC is specify their
8
scan time using contacts and coils only.a real program that uses other functions such as timers, counter,
mathematic functions.
INPUT/OUTPUT INTERFACES
The input/output system forms the interfaces by which field devices or connected to the controllers.
The purpose of this interface is to conditions the various signals received from or send to external field
devices. Input devices such as push button, limit switches, selector switches and thumbwheel switches
or hardwired to terminals on the input modules output devices such as small motors, motors starters and
indicator lights are hard wired to the terminals on the output modules. The I/O interface modules
provide the equivalence of eyes, ears and tongue. To the brain of a PLC, the CPU. The input interface
modules accept signals from the machines or process devices (120V-AC) and convert them into signal
5V DC that can be used by the controller. Output interface modules converts controller signals 5V DC
into external signals 120V AC used to control the machine or process.Each input and output devices
must have a specific address. The processor to identify where the Device is located in order to monitor
or control it uses this address. Connecting the field wiring to the I/O housing allows easier
disconnection and reconnection of the wiring in order to change modules. Lights are also added to
module indicate the ON and OFF status of each I/O circuit. Most output modules also have blown fuse
indicators.
OPERATION OF A PLC
The inputs and outputs being controlled are binary elements having either open (0) or closed (1) status.
The basic principle of operation in a stored programmable logic is that every-logic involving inputs and
outputs is performed at a high speed under the direction of program statements stored in the memory.
Statements stored in the memory are fetched one by one in a serial order and based on the instruction in
the statement; the necessary task is carried out. Sequential fetching of statements controlled through
high-speed clock pulses .The process of sequential execution of each statement is called MEMORY
SCANNING. The scanning in carried out cyclically at high speed. In view of the high speed involved,
as compared to reaction times of electro mechanical switching elements (which are used as input and
outputs) and further with the aid of storage of output command the logic execution is continuous as in
hard-wired logic as and faster than relay logic. The statements of the logic to be performed are written
9
by the user in a simple, easy to understand and comprehend programming languages. This program is
stored the program memory provided in the memory chip of the memory module. Each statement is
entered as one step in the programming language and occupies one word of memory. The Logic
Processing Unit (LPU) fetches and executes the instruction sequentially from the Memory unit. Thus
the entire program is cyclically executed by impulses from an internal clock circuit. The inputs and
outputs are fed through field power supply unit.
CHARACTERISTIC FUNCTIONS OF PLC
Seven of the most important characteristic of a PLC includes the following:
1. It is field programmable by the user. This characteristic allows the user to write and Change program
in the field without rewiring or sending the unit back to the manufacturer for this purpose.
2. It contains preprogrammed functions. PLC’s contain at least logic, timing, counting and memory
function that the user can access through some type of control-oriented programming language.
3. It scans memory, and inputs and outputs (I/O) in a deterministic manner. This critical feature allows
the control engineer to determine precisely how the machine or process will respond to the program.
4. It provides error checking and diagnostics. A PLC will periodically run internal tests of its memory;
processor and I/O system to ensure that what it is doing to the machine or process is what is was
programmed to do.
5. It can be monitored. A PLC will provide some form of monitoring capability, either through
indicating lights that show the status of inputs and outputs or by an external device that can display
program execution status.
6. It is packaged appropriately. PLC’s are designed to with stand the temperature, humidity, vibration
and noise found in most factory environment.
7. It has general purpose suitability. Generally a PLC is not designed for a specific application, but it
can handle a wide variety of control tasks effectively.
PLC PROGRAMMING
The term PLC programming refers to the method by which the user communicates information to the
PLC via a programming device. There are two methods of programming namely, On-line programming.
Off-line programming. On-line programming is the one that can be programmed interactively with the
10
PLC. Off-line Programming requires that the programs be generated separately and then downloaded to
the PLC. Programmable controller manufacturers use several different programming languages, but
they all convey to the system, by means of instructions, a basic control plan. A control plan or program
is defined as a set of instructions that are arranged in a logical sequence to control the actions of a
process or machine. The four most common types of languages encountered in programmable
controller system design are as follows:
Ladder Language
This is still the premier language of the PLC. It has many advantages and it will discuss later.
State Language
State languages can be a valuable aid in designing large and complex control program. Example for this
type is Sequences Function Chart (SFC).
LADDER LOGIC DIAGRAM
It is a diagraming technique that exhibits the logic and to some extent, the timing and sequencing of the
system. It is analogous to the electrical circuits used to another logic and sequence control. In a ladder
logic diagram, the various logic elements and other components are displayed along horizontal lines or
rungs connected on either end to two vertical rails. The diagram has the general configuration of a
ladder, hence its name. The elements and the components are contacts and loads. The two vertical rails
provide the power of components. It is customary in ladder diagram to locate the inputs to the left of
each rung and the outputs to the right. PLC programming based on the use of ladder diagrams involves
writing a program in a similar manner to drawing a switching circuit. In drawing the circuit line for a
rung, inputs must always precede outputs 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. Such ladder programs cab be
entered from special keypads or selected from a monitor screen by using a mouse. They can also be
specified by using a mnemonic language. However they are entered, the programs are then translated
by the PLC into machine language for the benefit of the microprocessor and its associated elements.
PLC Vs COMPUTER
PLCs are similar to computers but have certain features, which are specific to their use as controllers.
These are:
11
* They are rugged and designed to withstand vibrations, temperature, humidity and noise.
* The interfacing for inputs and outputs is inside the controller.
* PLC can be installed and maintained by plant technicians/electricians and more skilled computer
technicians are not required.
* The computers are capable of executing several programs simultaneously but PLC can execute a
single program in an orderly and sequential fashion from first to last instruction.
* Troubleshooting is simplified by the design of most PLC.
12
13
RESULT
14
EXPERIMENT-2
CIRCUIT DIAGRAM
15
EXPERIMENT - 2
PLC CONTROL OF SINGLE ACTING CYLINDER USING AND LOGIC
AIM
To simulate the single acting cylinder using PLC ladder diagram
APPARATUS REQUIRED
Compressor, FRL, air tube, single acting cylinder, PLC, versa pro software,3/2 single solenoid valve.
PROCEDURE
1. Draw the circuit diagram.
2. Provide +24V and -24V from PLC trainer to electro pneumatic with PLC panel.
3. Output of the PLC (Q1) is direct connect to input of 3/2 single solenoid coil.
4. Open the versa pro software in desktop.
5. Interface PLC with the system using RS232 cable.
6. Following the opening procedure of versa pro software.
7. Connect the air supply to FRL unit.
8. Any one output of FRL unit direct connect to choosing valves.
9. Check the all circuit in panel and Ladder diagram.
10. Run the PLC. When two input (1i, 2i) is high, this output is high.
TRUTH TABLE
RESULT
Thus the actuation of single acting cylinder with AND Gate was done.
16
EXPERIMENT-3
CIRCUIT DIAGRAM
17
EXPERIMENT - 3
PLC CONTROL OF SEQUENCING CIRCUIT USING PLC LADDER DIAGRAM
AIM
To design a circuit for the sequence A+B+A-B- USING PLC
APPARATUS REQUIRED
Compressor, FRL, Air tube, 5/2 single solenoid valve, PLC, double acting cylinder, mini actuate
cylinder, versa pro software.
PROCEDURE
1. Draw the circuit diagram.
2. Provide +24v and –24V from PLC trainer to panel.
3. Open the versa pro software in desktop.
4. Interface PLC with PC using rs232 cable.
5. Write a ladder diagram.
6. Both Outputs of PLC (q1, q2, q3 and q4) are direct connecting to inputs of solenoid coils.
7. Following the opening procedure of versa pro software.
8. Check the ladder diagram.
9. Connect the air supply to FRL unit.
10. Run the PLC. Observe the working of double acting cylinder is automatic reciprocating using the
circuit A+B+A-B-.
RESULT
The ladder diagram for the automatic running of double acting cylinders is using this circuit
(A+B+A-B-) is drawn and executed.
18
19
EXPERIMENT - 4
DENSITY BASED TRAFFIC LIGHT CONTROLLER SYSTEM
20
21
22
23
LADDER LOGIC PROGRAM EXPLANATION
When the output of PLC is enabled, the corresponding RUN mode LED will glow. Remaining will be
in stop mode. The ladder logic program shown in figure when I1is ON/OFF, Q1(Green)[South
Direction] is also enabled because M0.0 is closed. The enabled Q1 is given to timer depending upon the
value of PT the M0.1 coil will enabled. Enabling output M0.1 is used to enable the output Q2
(green)[West Direction] and de-energize the output Q1 [Green], at the same time Q1 (Red) is energized
because the red and green LEDs are connected with NOT gate. Energized Q2 is given to timer
depending on the value of PT the M0.2 coil will be enabled. Then the enabling output of M0.2 is used
to energize the output Q3[green][North Direction] & de-energized the output Q2[green], at the same
time Q2 [Red] is energized. Because the Red and green LEDs are connected with NOT gate. [green
LED - input of NOT gate, RED LED – output of NOT gate]. Energized Q3 is given to timer depending
on the value of PT the M0.3 coil will be enabled then the enabling output of M0.3 is used to energize
the output Q4 [green][East Direction] & deenergize the output Q3[green] at the same time Q3[RED]
will glow. Because the RED and GREEN LEDs are connected with NOT gate. Then energized Q4 is
given to timer depending on the value PT the M0.4 coil will be enabled. M0.4 is used to energize the
output Q1 (green) and de-energized output Q4 (green) at the same time Q4 (RED) LED will glow
because the Red and green LED are connected with NOT gate. This Process is repeated.
RESULT:
Thus the PLC based simple Traffic Light System working was studied.
24
25
EXPERIMENT - 5
DENSITY BASED TRAFFIC LIGHT SYSTEM
AIM
To study the Density based Traffic Light controller system by using PLC.
APPARATUS REQUIRED
1. VPAT - 03 Trainer kit
2. PLC
3. PC with step7-microwin software
4. Communication cable PC/PPI
5. Patch chords
6. PC Power Chords.
26
LADDER LOGIC PROGRAM EXPLANATION
By applying start one triggering pulse to Input I1.0(I9), which causes for open coilM0.0 energized in
Network 1, Due to energisation of open coil M0.0 initiates the operation. It causes the open coil Q0.0
[Q1 coil] energized in Network 4. In Network 5 On delay timer - is also energized. After completing
the time - delay [5sec], which is depending upon preset Time coil M0.1 will be energized. Due to
energization of M0.1 it cuts the Q0.0 coil output and enables the Q0.1 west Direction output. Due to
Q0.1 (Q2 coil ) will energized in Network 7, then Q1 coil Q0.0 de-energized and timer is reset in
Network 8. This same process was repeated again in West Direction, North Direction, and East
Direction. In west direction, that means Network 8 ON Delay timer will be energized depends upon
Q2coil[Q0.1] then M0.2 [Open coil] is energized, after completed programmed time - delay, which is
depends upon preset Time, then rest the timer. At that time, Q2 coil [Q0.1] deenergized, timer was
reseted Q3 coil [Q0.2] was energized. In Network 10, latch connection Q3 coil [Q0.2] is used to
energized for continuously. Hence ondelaytimer is starts ON due to Q3 contact [Q0.2] energization in
rung-8, then M0.3 [Q0.2] will energize. Afer completion of time - delay, which is depends upon Preset
Time, then reset the timer. Then Q4 coil [Q0.3] energized and Q3 coil [Q0.2] are de-energized at that
same time. In Network 13 ON - Delay timer is starts ON, due to Q4 contact[Q0.3] energization, then
M0.4 coil will be energized, after completion of time - delay, rest the timer this time-delay depends
upon the [M0.4] preset Time. This process repeats continuously.
STATE -1: BOTH OF THEM HIGH
If Network 16, South direction - start and end modes are in high stat, that means high-density of vehicle
in south direction, move register get the input value from Network 28, MW1 move register input value
[programmed time - delay], then fed into preset Time of time - delay in Network 4. That means green
LED will glow in south direction up to, set time - delay in Network 28.
STATE - 2: BOTH OF THEM LOW
If Network 17 south direction - start & end modes are in low state, that means low - density of vehicle
in south direction, move register get the input value from Network 30, MW5 move register input value
27
[programmed Time - delay], then fed into preset value of time delay nNetwork 4. That means green -
LED will glow in south direction up to, set- time delay in Network 28.
STATE - 3 STARTS ONLY HIGH
If Network 18, south direction - start mode only high - state & END mode is in low - state, that means
middle - level density vehicle in south direction, move register get the input value from Network 29
MW10 move register input value [programmed Time - delay] then fed into preset value of in Network
4 that means green LED will glow in south direction up to, set-time delay in Network 28. Above 3
states are again repeated in west - direction [Network 19, Network 20, Network 21], North - direction
then fed into preset time of time delay in network 4 [Network 22, Network 23, Network 24] & East -
direction then fed into preset time of time delay in Network 5 [ Network 25, Network 26, Network 27]
then fed into preset time of time delay in Network 6. Apply the stop triggering pulse to input I1.1(I10),
it enables the coil M0.5. hence all directions LED’s are in disable state.
Note:
If one direction is in glow green LED Run - mode, other directions are in red - LED [Stop mode]
Inputs - I1 (to) I8
Outputs - Q1 (to) Q4
RESULT:
Thus the density based Traffic Light Controlled System working was studied by using PLC.
28
29
EXPERIMENT - 6
DENSITY BASED TRAFFIC LIGHT SYSTEM WITH DAY/NIGHT MODE
AIM
To study the Density based Traffic Light system with Day / Night mode.
APPARATUS REQUIRED
1. VPAT - 03 Trainer kit
2. PLC
3. PC with step7-microwin software
4. Communication cable PC/PPI
5. Patch chords
6. PC Power Chords.
WIRING DIAGRAM
30
31
32
33
34
35
36
37
38
39
LADDER LOGIC PROGRAM EXPLANATION
By applying start one triggering pulse to Input I1.0(I9), which causes for open coilM0.0 energized in
Network 1, Due to energization of open coil M0.0 initiates the operation. It causes the open coil Q0.0
[Q1 coil] energized in Network 4. In Network 5 On delay timer - is also energized. After completing
the time - delay [5sec], which is depending upon preset Time coil M0.1 will be energized. Due to
energization of M0.1 it cuts the Q0.0 coil output and enables the Q0.1 west Direction output. Due to
Q0.1 (Q2 coil ) will energized in Network 7, then Q1 coil Q0.0 de-energized and timer is reset in
Network 8. This same process was repeated again in West Direction, North Direction, and East
Direction. In west direction, that means Network 8 ON Delay timer will be energized depends upon
Q2coil[Q0.1] then M0.2 [Open coil] is energized, after completed programmed time - delay, which is
depends upon preset Time, then rest the timer. At that time, Q2 coil [Q0.1] deenergized, timer was
reseted Q3 coil [Q0.2] was energized. In Network 10, latch connection Q3 coil [Q0.2] is used to
energized for continuously. Hence ondelay timer is starts ON due to Q3 contact [Q0.2] energization in
rung-8, then M0.3 [Q0.2] will energize. Afer completion of time - delay, which is depends upon Preset
Time, then reset the timer. Then Q4 coil [Q0.3] energized and Q3 coil [Q0.2] are de-energized at that
same time. In Network 13 ON - Delay timer is starts ON, due to Q4 contact[Q0.3] energization, then
M0.4 coil will be energized, after completion of time - delay, rest the timer this time-delay depends
upon the [M0.4] preset Time. This process repeats continuously. In main [OBI] program network 3 the
input contact I1.2 is used to call the subroutine function. In subroutine SBR-0[SBR0] program network
1 the Input contact supply given to timer. Based on time delay in Time-preset time the outputs are
energized initially Q0.0, Q0.1, Q0.2 & Q0.3. After time delay it will get de-energize it shows green ans
Red LED’s continuous ON/OFF in the trainer kit. This process repeats continuously upto the Night
mode switch is in enable condition.
CONCLUSION
Density Based Traffic Light System with Day/Night mode was studied by using PLC.
40
EXPERIMENT - 7
BOTTLE FILLING SYSTEM USING PLC
41
42
43
44
45
EXP.NO:8
AIM
To study the response of DC motor through Digital PID controller using Position control.
APPARATUS REQUIRED
1. PCS 07ACC-01.
2. Digital PID controller.
3. PC with Process Control Software.
4. Patch chords.
5. Power chord.
THEORY
The speed of the DC motor is controlled by varying the armature voltage. In a DC shunt motor speed
of the motor is directly proportional to the voltage. The electromagnetic torque developed by the motor
is proportional to its flux and armature current. Obviously flux is going to be constant hence torque
developed depends on the armature current. The simplified transfer function of the DC motor is given
by
T(S) = Km/1+sτ
Where
46
FRONT PANEL DIAGRAM:
47
48
INTERFACING DIAGRAM
49
Speed Control of DC MOTOR
PWM TECHNIQUE
Pulse width modulation is a technique used for changing the magnitude of voltage given to the motor. This
technique involves changing its width of pulse as our wish so that the average voltage is going to be varied as
our requirement. In this waveform the output voltage is determined by the average Ton and Toff period.
50
If the Ton period is increased then the output voltage is going to be increased 0 and vice versa .Hence the output
voltage is given by,
Where
V0 = (Ton /T) V1
51
PROCEDURE
RESULT
Thus the Response of DC Motor through Digital PID controller using position control was
studie
52
EXP.NO:9
AIM:
APPARATUS REQUIERD:
3. Patch chords
THEORY:
53
54
FRONT PANEL DIAGRAM:
55
The I/P convertor is also called the electro pneumatic convertor , is used where a
Pick up system
Convertor
Pneumatic relay
The pick up system consists of a voice coil situated in the air gap of permanent magnet.
The convertor consists of a nozzle, the restrictor and the baffle plate on the beam, which is
mounted on low friction fulcrum. The pneumatic relay consists of a diaphragm , a valve seat, a
needle, and a capillary tube.
PROCEDURE:
8. Select “flow<<control<<ON-OFF/P/PI/PD/PID.
9. Switch on the pump and select desired speed of pump by varying speed control knob.
10. Enter the parameters and observe the response of various controllers.
12. Save the response and conclude the behavior of various controllers.
56
TABULATION:
RESULT:
Thus the operation and characteristics of a flow process station was studied
57
EXPERIMENT.NO:10
AIM:
To study the performance of ON-OFF controllers
APPARATUS REQUIRED
1. Pressure process station
2. PC with the pressure process software
3. Data acquisition card with cable
4. Patch chords
THEORY:
The electronic pressure transmitter which senses the absolute pressure at the point of
measurement and converts it to a proportional electronic signal. The signal here is a (4-
20) mA signal output. The transmitter is calibrated for a maximum pressure of 100 psi.
The pressure transmitter used in the pressure process station has the following
features:
External span and zero adjustment
Reluctance type sensing element
Essentially the converter needs 2inputs,viz. a fixed 20 psi air inlet and a variable 4 to
20mA at its current input. It consists of 3 basic parts:
Pick up system
Converter relay
58
Pneumatic relay
59
BLOCK DIAGRAM:
PROCEDURE:
60
TABULATION:
RESULT:
Thus the performance of ON-OFF controllers of pressure controller has been studied.
61