PLC Programing Questions
PLC Programing Questions
Q1. Figure Q1 shows a PLC Program for Entry/Exit control of the basement or underground car
parking.
Problem Description
Due to crowded area we face lots of problems of vehicle parking at basement or underground at
shopping mall, hotels, complex etc. This is happening due to contradiction between the rapidly
growing number of vehicles and limited parking spaces in malls, shop and complex in cities
results in the phenomenon of “difficult parking and disorderly parking”. Current parking problem
has serious impacts on people’s quality of life and the running of roads.
Control Purpose
The entry/exit of the underground car park is a single lane passage which needs the traffic lights
to control the cars. Red lights prohibit cars entering or leaving while green lights allow cars to
enter or leave.
When a car enters the passage from the entry of the ground floor, the red lights both on the
ground floor and the basement will be ON, and the green lights will be OFF. Any car entering or
leaving is prohibited during the process till the car passes through the passage completely. When
the passage is clear, the green lights will be ON again and allow other cars entering from the
ground floor or the basement.
Similarly, when a car leaves the basement and enters the passage, any other car entering or
leaving is prohibited till the car passes from the passage to the ground completely. When PLC
runs, the initial setting of traffic lights will be green lights ON and red lights OFF.
(a) List the required number of PLC Inputs, Outputs and Internal Relays with their
functions. [5 Marks]
(b) Write a suitable program (PLC Ladder Programming) to be loaded into a PLC using
Allan Bradley RS MicroLogix software [20 Marks]
Figure Q1
Q2. Figure 2 shows a typical arrangement for a product packaging process. Product
packaging is one of the most frequent cases for automation in industry. It can be
encountered with small machines (ex. packaging grain like food products) and large
systems such as machines for packaging medications. By pushing START key you
activate Flag1 which represents an assisting flag (Segment 1) that comes up as a
condition in further program (resetting depends only on a STOP key). When started,
motor of a conveyor for boxes is activated. The conveyor takes a box up to the limit
switch, and a motor stops then (Segment 4). Condition for starting a conveyor with apples
is actually a limit switch for a box. When a box is detected, a conveyor with apples starts
moving (Segment 2). Presence of the box allows counter to count 10 apples through a
sensor used for apples and to generate counter CNT010 flag, which is a condition for new
activation of a conveyor with boxes (Segment 3). When the conveyor with boxes has
been activated, limit switch resets counter, which is again ready to count 10 apples.
Operations repeat until STOP key is pressed when condition for setting Flag1 is lost.
(a) List the required number of PLC Inputs, Outputs and Internal Relays with their functions.
(b) Write a suitable program to be loaded into a PLC Allan Bradley RS MicroLogix software
Figure 2