43
Ex No:2
Date:12/2/25
Experiment on PLC programming to control lamp, fan and buzzer
AIM:
To identify the input and output components and establish connection between input and output
devices with PLC and develop PLC program based on Boolean Logics in Nano PLC trainer
kit.
APPARATUS REQUIRED:
1. Nano PLC Trainer kit
2. Connecting wires
DESCRIPTION:
Nano PLC trainer kit consists of various input and output components with I/O interface to
communicate with PLC. The input components are Push Buttons (Green & Red), Selector
Switch, Toggle Switch, Photo Electric Sensor, Proximity Sensor and Potentiometer. The
Output components are Lamps (Green & Red), Fan, Buzzer, Relay, LEDs. The input
components are connected to PLC through PNP type Digital/Discrete Ports. Similarly, the
output components are connected to PLC through Digital Output ports - relay type. All the
components used in the trainer kit is operating on 24V power supply.
Figure.4.1. Nano PLC Trainer Kit
Course Code : 20RA272
Course Title : Industrial Control System Lab
Ex : 2
Name : N.N.Rajagopal
Roll No : 71812310043
44
INPUT COMPONENTS
1. Push Button: A Push Button switch is a type of switch which consists of a simple electric
mechanism or air switch mechanism to turn on or off.
2. Selector Switch: An electric switch that selects a particular circuit or group of circuits.
3. Toggle Switch: A toggle switch is a type of electrical switch that is actuated by moving a
lever back and forth to open or close an electrical circuit.
4. Potentiometer: A potentiometer is a three-terminal resistor with a sliding or rotating contact
that forms an adjustable voltage divider.
5. Proximity Sensor: A proximity sensor is a sensor able to detect the presence of nearby
objects without any physical contact.
6. Photo Electric Sensor: A photoelectric sensor is used to discover the distance, absence,
or presence of an object by using a light transmitter, often infrared, and a photoelectric
receiver.
OUTPUT COMPONENTS
1. Lamp: A lamp is a conventional light emitting component used in different circuits,
mainly for lighting and indicating purposes.
2. Fan: Fan is used to indicate the output. It rotates when the current flows through it.
3. Buzzer: A buzzer is an audio signaling device.
4. Relay: When the relay contact is open (NO), the relay isn’t energized with the open
contact. If it is closed (NC), the relay isn’t energize given the closed contact. It controls
the opening and closing of the circuit contacts of an electronic circuit.
5. LED’s: A light-emitting diode (LED) is a semiconductor light source that emits light
when current flows through it.
ON OFF Switch with 24V Power Supply: ON-OF Switch, 24VDC-Port for giving power
supply to the system
Interface: Digital Input and Digital Output Interfacing Ports
Digital Input: Digital inputs are used to check the status of any devices whether it is ON or
OFF. Binary inputs have 24VDC.It consists of 4 digital inputs namely I1, I2, I3, I4 and 4
discrete inputs namely IB, IC, ID, IE.
Discrete Output: Discrete outputs are used to connect discrete output components. It
consists of 4 discrete outputs namely Q1, Q2, Q3, Q4. All the outputs connected are of relay
type – 24 V.
Specification of PLC:
•
•
•
•
Schneider Electric Model number: SR2B121BD
Zelio Logic SR2 Series
12-Pin, 8 Inputs and 4 Outputs
Smart Relay Type
Course Code : 20RA272
Course Title : Industrial Control System Lab
Ex : 2
Name : N.N.Rajagopal
Roll No : 71812310043
45
PROCEDURE:
1. Turn ON the switch. In the display board, click Menu→ click Run/Stop whereas the
program has to stopped.
2. In the display board, click programming→ start to type the program.
3. Again, click Run/Stop. The starts to execute.
4. Connect the wires as per programmed inputs and outputs.
LADDER DIAGRAM:
AND:
Figure. 4.2. AND Logic
OR:
Figure. 4.3. OR Logic
NOT:
Figure. 4.4. NOT Logic
NOR:
Figure. 4.5. NOR Logic
NAND:
Figure. 4.6. NAND Logic
Course Code : 20RA272
Course Title : Industrial Control System Lab
Ex : 2
Name : N.N.Rajagopal
Roll No : 71812310043
46
XOR:
Figure. 4.7. XOR Logic
EX-NOR:
Figure. 4.8. EX-NOR Logic
RESULT:
The identification if input and output components and establishing connection between input
and output devices with PLC and developing of PLC program based on Boolean Logics in
Nano PLC trainer kit is done.
OUTCOMES OF THE EXPERIMENT
After completing the experiment, the student is able
1. To identify the various input and output components incorporated in Nano PLC trainer
kit and give the connections between the components so as to send and receive the
operating instructions.
2. To establish the communication between input and output components with Nano PLC
(Schneider Electric) through digital input and output interface ports.
3. To create simple PLC programming in the nano PLC trainer kit based on boolean logics.
Course Code : 20RA272
Course Title : Industrial Control System Lab
Ex : 2
Name : N.N.Rajagopal
Roll No : 71812310043
47
OBSERVATION
➢ When the system powers on, it initializes inputs and outputs. Ensure all
devices (lamp, fan, buzzer) start without errors.
➢ Devices should react correctly to activated input signals. Verify that each
device responds as programmed.
➢ Devices should activate in the correct order and timing. Monitor if they
follow the programmed logic.
➢ The PLC should identify and manage any faults or errors. Check for error
messages or indicators on the PLC.
➢ Ensure consistent, reliable operation under various conditions. Document any
anomalies or deviations from expected behavior.
VIVA QUESTIONS
1. Distinguish between AND & NAND logic. Explain with simple sketches
An AND gate is a digital
logic gate that outputs a
signal only when all of its
inputs are high.
A NAND gate is a digital
logic circuit that performs
the opposite of an AND
gate
Course Code : 20RA272
Course Title : Industrial Control System Lab
Ex : 2
Name : N.N.Rajagopal
Roll No : 71812310043
48
2. Distinguish between OR & NOR logic. Explain with simple sketches
An OR gate is a digital
logic gate that produces a
true output if any of its
inputs are true
A NOR gate is a digital
logic gate that outputs a 1
when both of its inputs are
0, and outputs a 0 when
3. Distinguish between NOT & XOR logic. Explain with simple sketches
A NOT gate, also known
as an inverter, is a logic
gate that inverts the input it
receives.
An XOR (Exclusive OR)
gate is a digital circuit that
produces a logical "1"
output if exactly one of its
Course Code : 20RA272
Course Title : Industrial Control System Lab
Ex : 2
Name : N.N.Rajagopal
Roll No : 71812310043