Experiment No. 1 New
Experiment No. 1 New
Experiment No. 1 New
University of Jordan
Faculty of Engineering and Technology
Mechatronics Engineering Department
Experiment no. 1
Control of a four-level elevator system
using a programmable logic controller
Objectives:
This Experiments on the design and implementation of a PLC-based controller for a four
level elevator. The PLC used is an Mitsubishi PLC FX3U-32MR with 16 inputs and
outputs. The design incorporates an intelligent controller that services all the requests in
an energy-saving way, rather than on a first-come, first-served basis.
Introduction:
Elevator provides an advanced application with which students may study the use and
programming of programmable logic controller (PLC). The advanced features of the
elevator also allow complex digital control techniques to be investigated.
C. Elevator car
The elevator car door is motorized and can be operated using the door control
signal input. Taking this input high opens the door. Taking it low or leaving it
floating closes the door. The door motor is controlled by an internal circuit which
responds to the door control input by opening or closing the door as required and
then removes power from the door motor automatically.
Micro switches detect the door status and door open / door closed signals are
made available at the rear panel for use by the external controller.
Visual indication of the position of the elevator car as it arrives at each floor is
provided by LEDs on the front of the unit.
A set of weights is provided that can be placed inside the car to simulate varying
passenger loads.
D. Call pushbuttons
Elevator call pushbuttons are provided for each floor with separate up/down
pushbuttons for Floor 2 and Floor 3. This enables the external controller to
differentiate between requests for upward or downward travel and allows more
sophisticated algorithms to be implemented. A separate set of floor request
pushbuttons is provided on front panel to represent the request pushbuttons inside
the car.
Figure 2
Figure 3
Preliminary to Assignments
A. Initialization
The external controller must be able to identify the position of the car in order to
determine in which direction to move. When using a logic-only controller which
does not receive continuous position information from the elevator, an
initialization routine must be executed when the controller runs for the first time
to identify the starting position.
B. Arrive at a floor
The sequence of operations is to sense arrival, slow down and stop. The brake
is then applied and the door opened.
The steps are as follows:
1. Poll the destination floor sensor to detect the approach signal
2. When the signal is received, reduce car speed to minimum
3. Poll the destination floor sensor to detect the arrival signal
4. When the signal is received, set the speed to zero and apply the brake
5. Sound the arrival chime
6. Turn off floor call LEOs
7. Turn off up/down arrow LEOs
8. Open the car door
Register the first floor request that is received and ignore any further requests.
Go to the floor selected by the passengers (via the car floor request switch),
then poll for further requests.
Experiment Instructions:
A. Assignment 1: Familiarization
Objectives
- To learn about the elevator hardware.
- To learn how to connect the PLC to the elevator.
- To learn how to load a sample program into the PLC and start the program.
- To learn how to run the elevator test routine.
Figure 4
Objectives
- To learn about the PLC inputs and outputs.
- To learn about the idea of a latch
- To learn how to use time delay to show an indicator.
- To learn how use elevator bell.
- To learn about Master Control Relay function.
Practical 2: Latches
Write a ladder diagram given below to your PLC then found the function of a
program.
There may be several different types of timer available on your controller. The TON
and TOFF timers are the most important. The TON timer which means 'Timer On'
waits until a particular input has been set to high for a specified length of time. The
TOFF, meaning 'Timer Off activates a particular output for a set length of time.
The action of pressing Elevator Car pushbutton floor 1 lights the Car Direction Up
arrow For ten seconds.
Each timer has three possible outputs:
EN - Enabled bit
ON - Time done bit
TT - Timer timing bit
Write a program to perform the function described above.
This practical introduces the concept of the Master Control Relay and how
they can be used to control the flow of a program. The Master Control Relay
allows parts of a ladder logic program to be turned on and off allowing the
program to only perform the operations that are required. This can be particularly
useful with a long program.
Each box has been labeled with a flowchart operation number, F1 through F10.
Using the flowchart, a program can be derived where the Master Control Register
is turned on and off using the state bits.
Objectives
- To learn about the elevator initialization procedure.
- To learn about how to detect which floor the elevator is currently sitting at.
Practical 1: Initialization
When you turn on the PLC controller for the first time it does not know what state
the elevator hardware is set to. The elevator could be sitting between levels and
the car door could be open.
Before starting to control the elevator, the PLC must set the elevator to a known
state. This is achieved through an initialization routine.
Using the detailed information given below, write a program to perform an
Initialization routine that can be used in future exercises.
his procedure will form the basis of a subroutine. It should be executed before a
main program begins.
In the real world, separate sensors would be used for above, below, and at each
floor. In this trainer, however, to reduce the number of PLC inputs required, a
single sensor for each floor is combined with the three-finger gate mounted to the
car. This change is compensated for in the PLC programs.
It is important to understand how a floor level sensor operates. Figure 5 shows the
design of the car floor level sensor. The car movement gate is fixed to the car and
a light sensor is fixed at each of the four floor levels. As the car reaches a floor the
car movement gate interrupts the light beam to the light sensor. A signal as shown
on the right hand side of the of the diagram is presented to a PLC input, changing
state as the light beam to the sensor is interrupted by the car passing a floor level.
Figure 5
Set the elevator car at the top floor using the Manual switch and look to the left
through the transparent front cover at the horizontal bars running from front to back
at each floor level and you will see the slotted light sensor for each floor. If you look
underneath the elevator car on the left hand side you will see the car movement
gate in the slot of the light sensor.
If the car is at the bottom of the elevator (level 1), no signal is received since the
light source is blocked. If the car is not at the level or is approaching a level, the
level sensor to the PLC input changes state indicating that the car is approaching a
floor.
The first time the initialization procedure is run it is possible that the car is situated
at a level or between levels (as if the car was approaching a level).
To summaries, the input to the PLC can represent three positions of the car as it
approaches a floor.
- Car approaching floor state (sensor is off)
- Car approaching floor level (sensor is on)
- Car is at level (sensor is off)
If the level 1 sensor is detected the car will travel upwards until the level 2 sensor
is found. At this point the main initialization procedure will be carried out.
Objectives
- To learn about some of the elevator inputs and outputs.
- To learn how it is possible to control the car manually.
- To learn how to write a simple PLC program to move the elevator car.
Develop a program to extend the functionality of the above to include the following:
opening and closing routine. Also consider whether your program is to allow
requests whilst the car is moving.
Add bell control. Remember that since the controller may send signals faster than
the electronics of the elevator can accept, it is important to create a delay to
ensure that the bell is rung.
Implement the door open and close routine within a separate subroutine or state.
Consider how the request function may change to cater for the case when the car
is on the level that has been requested.
At this point, the program does not have any interlock. If additional floor buttons
are pressed, the door will open and close while the car is travelling.
Allows the user to select the level sensor that they are interested in looking at by
pressing the car push buttons.
Displays whether the level sensor is high or low by illuminating the 'car moving up'
indicator.
When the program is running the level sensors can be studied by moving the car
with the Manual control switch. This programming can be used as a basis for the
programs explored in the later practicals and assignments.
When running the above program use the Manual switch to set the car at a
particular floor. Press the appropriate Elevator Car floor button to light the 'up'
arrow. Check that the other positions respond in the same way. Note that pressing
any of the other Elevator Car floor buttons, the 'up' arrow is not illuminated.
Objectives
- To create a program that implements a simple working elevator that accepts
requests one at a time. Include in the program a door open and close routine
and sound the bell on arrival at the floor.
- To create a simple elevator program where the car can selectively service
floors when An elevator is continually moving.
Write a program that does not allow more than one input to be entered into the
system at a time. The car gets to a floor and then waits for the next input. A more
complicated algorithm will be explored in the project 'A Working Elevator' .
When the car is at the required level, turn off the request lights (both in the car and
on the level).
The car and the level push buttons have the same effect. On levels 2 and 3 the
request up and down push buttons operate in the same way. A more complicated
scenario is explored in a later assignment.
Include in your program the car direction arrow to indicate which way the car is
travelling.
Use the ideas explored within the previous practical to determine which direction
the car must travel to service a floor. Think about whether this program would work
in practice, listing how it might be improved.
Mechatronics System Design Lab 21
Experiments No. 1 Control of a four-level elevator system
Objectives
Algorithm fundamental:
If car is moving up, service those calls up before going back down again. The
reason for adopting such an approach is to save energy.
Consider the algorithm used in Practical 1(Visiting All Floors using Request
Pushbuttons) of Assignment 5. Although this is a working program, the passenger
who pushes the pushbutton fastest gets control of the elevator. This is clearly
undesirable.
The elevator will know about the top and bottom levels, and whether the elevator
needs to travel further to service a demand.
One of the biggest differences between this problem and the 'Visiting All Floors
using Request Push buttons' practical lies with the ability to receive car requests at
any time.
A further complexity lies with how to process the Elevator Car pushbuttons. For
this practical, the Elevator Car push buttons are either ignored or they should have
the same action as the floor pushbuttons. The final practical will complete the
algorithm by adding the car push buttons.
Before beginning to design the program it is useful to think of the problem in terms
of requirements:
Move to the first level that has been requested. If there are requests that are higher
than the current level of the car continue moving the car upwards until every
requested floor has been visited. When there are no more requests higher than the
current car level, change the direction of the car and service requests that are
below the current level (ignoring requests that are higher than the current car
level). When there are no further lower requests (or the bottom of the elevator has
been reached), change direction of the car and service requests higher than the
current floor level.
The procedure should be repeated.
Design an algorithm to implement the procedure described This algorithm can be
Divided into a number of steps.
Algorithm:
Perform an initialization routine so the elevator is set to level 1. Set direction to up.
Check for elevator requests
An example:
Following initialization (where the elevator is initialized to sit at level 1), assume the
following requests: Floor 3 Up, Floor 4 Down, Floor 2 Down. The following
sequence will be executed:
1. All up requests are serviced, Le. in this case only 3U will be serviced.
2. Next the elevator reaches the fourth floor to service 4
3. Finally it services the remaining down requests, which in this case is 2D.
Use this example as a way to test your routine. Full Control (All Floor Controls)
In full size elevators remember that the passengers do not usually see which floors
the elevator is about to call at (which level push buttons have been pressed by
passengers).
This practical expands the previous practical by adding logic to ensure that the
passengers in the car do not receive more information than they need.
Objectives