Assignments-PLC - 2
Assignments-PLC - 2
1. Switching of Lamps
- When Input 1 (I1) and Input 2 (I2) are OFF, Lamp 1 (Q1)
- should become ON and Lamp 2 (Q2) should become OFF.
I1 I2 Q1 Q2
0 0 1 0
0 1 0 0
1 0 0 0
1 1 0 1
2. Control of Motors
I1 I2 Q1 Q2 Q3 Q4
0 0 1 0 0 0
0 1 0 1 0 0
1 0 0 0 1 0
1 1 0 0 0 1
3. Control of Motors
- When Input 1 (I1) is OFF and Input 2 (I2) is ON, Motor 2 (Q2) & Motor 3 (Q3) should become
ON and Motor 1 (Q1) & Motor 4 (Q4) should become OFF.
- When Input 1 (I1) is ON and Input 2 (I2) is OFF, Motor 3 (Q3) & Motor 4 (Q4) should become
ON and Motor 1 (Q1) & Motor 2 (Q2) should become OFF.
I1 I2 Q1 Q2 Q3 Q4
0 0 1 1 0 0
0 1 0 1 1 0
1 0 0 0 1 1
1 1 1 0 0 1
4. Control of Motors
1 T1 1 0 0 0
1 T2 0 1 0 0
1 T3 0 0 1 0
1 T4 0 0 0 1
5. Digital Lock
When password is OK i.e. 111 111 and ENTER KEY – I1 is pressed, Lock should Open i.e. – Q1
should be ON & Q2 i.e. ALARM should be OFF.
When password is WRONG i.e. either I2 / I3 / I4 / I5 / I6 / I9 is not ‘1’ , and ENTER KEY – I1 is
pressed, Lock should NOT OPEN i.e. – Q1 should be OFF & Q2 i.e. ALARM should be ON.
5A
Once ALARM starts ringing, it should STOP only after I2
is pressed , otherwise it should keep on ringing.
6. Car Parking
1.7 I-1 – Car wants to ENTER - Sensor
2.0 I-2 – Car ENTRY OVER Sensor
2.1 I-3 – Car wants to EXIT -Sensor
2.2 I-4 – Car EXIT OVER Sensor
2.3 I-5 - Parking Space for Car
2.4 I-6 - Parking Space for Car
2.5 I-9 - Parking Space for Car
2.6 I-10- Parking Space for Car
When a car comes at the Entry Gate, ONLY IF there is SPACE available for Parking, the Entry
Gate should Open.ONLY when the Car passes from Entry Over Sensor I2, the Entry Gate should
close.
When a car wants to EXIT from the Parking area, it will come at the EXIT GATE. When a Car is
sensed by Input I3, EXIT Gate will open. ONLY when the Car passes from I4 i.e. Exit Over
Sensor, the EXIT Gate should close.
When Space is available for parking the Car/s at either I5 / I6 / I9 / I10, SPACE indication Q2
should be ON and FULL indication Q1 should be OFF.
When the Parking area is fully occupied FULL indication Q1 should be ON and SPACE indication
should be OFF.
7. Bottling Plant
I11- Start Conveyor
[I124.0] 2.7 I1- Milk Filling position sensor
[I124.1] 3.0 I2- Milk filled till expected level sensor
[I124.2] 3.1 I3- Capping position sensor
[I124.3] 3.2 I4- Capping plunger limit switch sensor.
[I124.4] 3.3 I5- Labeling Position sensor
[I124.5] 3.4 I6- Label detection sensor
7A
Write above program using Timers for Q1, Q2, Q3 &
Q4.
Count the number of Bottles being filled.
8. 7Segment Display
I1 I2 I3 Decimal
0 0 0 0 M10 Q1, Q2,Q3,Q4,Q5,Q6
0 0 1 1 M1 Q2,Q3
0 1 0 2 M2 Q1, Q2, Q4,Q5, Q7
0 1 1 3 M3 Q1, Q2,,Q3,Q4 Q7
1 0 0 4 M4 Q2,Q3 Q6,Q7,
1 0 1 5 M5 Q1, Q3,Q4 ,Q6,Q7
1 1 0 6 M6 Q1, Q3,Q4,Q5,Q6,Q7
1 1 1 7 M7 Q1, Q2,Q3
Similarly for M1, M2 M3….. as per above table make corresponding outputs ON as per switch
positions.
8A
Add one Input I4 and write program for displaying
Hexa-decimal values from 0 to F
9. Door Bell (Timers)
I-1 – Start
I-2 - Stop
10 A
Use two different Timers and do the following -
When I1 is ON, Q1 and Q2 should alternately
become ON & OFF continuously for two seconds.
I-1 – start
I-2 – Stop
When Start button is pressed, RED light should become ON and should remain ON for 5 Seconds.
After 5 Seconds, RED light should become OFF and GREEN light should become ON and should
remain ON for next 7 Seconds.
After 7 Seconds, Green Light should become OFF and YELLOW light should become ON and
should remain ON for 2 Seconds.
After 2 Seconds, YELLOW light should become OFF and again RED light should become ON and
the Cycle should repeat, till I-2 i.e. STOP button is pressed
11 A
Write program for signal of 4 directions with
different Timing for the Green Lights.
12. Star-Delta Control
I-1 – Start
I-2 – Stop
After 5 seconds, Q2 should Stop and Q3 should start and should remain ON (Q1 & Q4 should
remain ON).
If Stop button is pressed at any stage, the entire process should stop.
13. Starter Control
I-1 – Start
I-2 – Stop
After next 5 seconds, Q3 should become OFF and Q4 should become ON.
If I-2 i.e. Stop button is pressed at any stage of the cycle, the entire cycle should Stop.
14. Reaction Vessel
When Start button is pressed, if the level is Low, Start Inlet Valve.
When Temperature or Pressure is Low, Give an Alarm and Start Heater and Stirrer.
If Pressure is High, give an Alarm, Stop Heater and Open Safety Valve.
If Temp. is High, give an Alarm, Stop Heater and start Cooling Water Pump.
When Low Level is reached, Stop Outlet Valve, start inlet valve
and repeat the process.
15. Elevator Control
I-1 I124.0 Door Limit I-5 I124.4 Request Buttons I-2 I125.0 Request buttons
Switch L/S on the Floors inside the Lift
I-2 I124.1 L/S of 2nd I-6 I124.5 Request Button I-3 I125.1 Request to go to
Floor on 2nd Floor 2nd Floor from Lift
cabin
I-3 I124.2 L/S of Ist Floor I-7 I124.6 Request Button I-4 I125.2 Request to go to
on Ist Floor Ist Floor from Lift
Cabin
I-4 I124.3 L/S of Ground I-1 I124.7 Request Button I-5 I125.3 Request to go to
Floor on Gnd. Floor Gnd Floor from
Lift Cabin
If the Lift is on Ground Floor and the request comes from 2 nd Floor i.e. I5 or I12, the Lift should move
UP till it reaches 2nd Floor and then it should stop there.
If the Lift is on Ground Floor and the request comes from Ist Floor i.e. I6 or I9, the Lift should move UP
till it reaches Ist Floor and then it should stop there.
Similarly write program for requests from different Floors, when the Lift is either on Gnd. Or Ist Or 2 nd
Floor.
16. Resistance Welding
I-1 – Start process in Manual Mode (Reset after 1 cycle)
I-2 – Start process in Automatic Mode (Repeat Cycles)
I-3 – Low Pressure
I-4 – Normal Pressure
I-5 – Normal Temperature
I-6 – High Temperature
Q-1 – Valve V1
Q-2 – Squeeze Timer indication (Timer - T2)
Q-3 – Weld Timer indication (Timer – T3)
Q-4 – Hold Timer indication (Timer – T4)
Q-5 – Off Timer indication (Timer – T5)
Q-6 – Cooling Pump.
Q-7 – Air Compressor
When a valid Coin is inserted and it is accepted, any one softdrink should be delivered as requested by
the customer. (It should take only 2 seconds for the selected softdrink to be delivered after that the
corresponding output should become OFF).
For e.g. If a Valid Coin is inserted and I3 is pressed (i.e. Coke is requested by the customer) Q3 i.e.
Coke Output should be ON for 2 Seconds and then it should automatically become OFF.
Once High Level is reached and Inlet Valve has become OFF, make Stirrer ON for 5 Seconds (during
this Outlet valve should be OFF).
After 5 seconds when the stirrer has switched OFF, if High Level is ON, Start Outlet Valve till Low
level is reached.
When Low level is reached, stop Outlet Valve and again start inlet valve and repeat the process.
18 A
Instead of I2 & I3 as Low and High Levels,
use Analog Input A1 (I7<=1.0 as Low Level)
A2 (I7>=9.0 as High Level)
Other conditions will remain the same.
19. Process (pH) Control
When Start switch is pressed, the Pump should become ON for 5 seconds and then it should
automatically become Off. During these 5 seconds it will transfer the water from Main Storage Tank
into the Reaction Tank.
After 5 seconds, sense the pH of the Liquid in the Reaction Tank. If pH>=7.0, start Acid Tank Valve Q-
4 and start the Stirrer, till pH<=4.0. When pH<=4.0 stop Acid Tank Valve, stop the stirrer and Start
Drain Valve.
20. Microwave Oven Control
I1 is Only for Power ON. Oven should become ON only if Door is Closed and either I5 / I6 / I7 is
Pressed.
If I5 is Pressed Oven Should be ON for 1 Minute ( ‘1’ should be displayed on 7-Segment Display) and
then automatically it should
become OFF after 1 Minute (7 segment display should also become OFF). Similarly for I6 & I7, Oven
should be ON for 2 or 3 minutes.
If the Door is Opened, Oven should become OFF and View Lamp Should become ON. If the door is
Closed, the View Lamp should become OFF and Oven should again become ON if the respective Timer
is still ON.
Only One Input I5 or I6 or I7 should be Accepted at a Time. Till request of I5 is being executed I6 / I7
requests should not be accepted. Similarly during I6, I5 & I7 should not be accepted & so on.
21. Washing Machine
When Start button (I1) is pressed if Door (I4) of the Washing Machine is Closed, and Level of Water is
Low (I5), Start Inlet Valve (Q7). When level of Water reaches High Level (I3), Stop Inlet Valve (Q7)
and Start Washing Cycle i.e. make the Motor run Clock-wise (Q5) for 2 Seconds and then Anti-Clock-
wise (Q6) for 2 Seconds. Repeat this CW / ACW process till Q5 operates for 5 times (Use Counter for
Counting). When Q5 has operated for 5 times, Reset Washing Cycle. Drain the water till Low Level is
reached. Fill new Water till High Level is Reached again.
Now since Wash Cycle is Over, Start Rinse Cycle (Q2). i.e. make the Motor run Clock-wise (Q5) for 2
Seconds and then Anti-Clock-wise (Q6) for 2 Seconds. Repeat this CW / ACW process till Q5 operates
for 5 times (Use separate Counter for Counting). When Q5 has operated for
5 times, Reset Rinse Cycle. Start Drain valve and keep it ON till Spin Cycle is Over.
Now since Wash & Rinse Cycles are over, Start Spin Cycle (Q3) & Spin Action (Q4), i.e. make the
Motor run Clock-wise (Q5) for 2 Seconds and then Anti-Clock-wise (Q6) for 2 Seconds. Repeat this
CW / ACW process till Q5 operates for 5 times (Use Counter for Counting). When Q5 has operated for
5 times, Reset Spin Cycle. Stop Drain valve when Low water level is reached and then stop the entire
process.
During the process whenever I2 (STOP button) is pressed the entire process should stop.
22. Boiler Automation
Q1 – Boiler ON indication
Q2 – Feed Water Pump –1
Q3 – Feed Water Pump –2
Q4 – Air Blower
Q5 – Ignition
Q6 – Solenoid Valve for Fuel Oil
Q7 – Alarm
Q8 – Hooter
Q9 – Damper Motor
Q10 – Fuel Oil Pump
Q11 - Pressure switch for Fuel Oil
Normal Process –
When Steam Pressure is <= 5.0 Start Blower Motor.
PRE-PURGE - After 5 Sec, Start Damper Motor (CW) which should remain ON for 30 Sec or till I10 is
reached. Then the Motor should move ACW till I11 is reached. Then Stop Damper Motor.
POST PURGE – Q9 ON till I10 operates, wait for 30 Sec, then when I11 operates, Restart the Normal
Process.