Question: The object of this assignment is to write a program that will drive the Elevator from one floor to the other. The list of inputs
The object of this assignment is to write a program that will drive the Elevator from one floor to the other.
The list of inputs and outputs are as follows.
IP External Elevator call button
OP Elevator motor UP
IP Elevator on level sensor
OP Elevator motor DOWN
IP Elevator on level sensor
OP Elevator door motor OPEN
IP Internal Elevator button
OP Elevator door motor CLOSE
IP Door obstruction sensor
OP Alarm
IP Lift door closed sensor IP Lift stuck alarm button
The operation of the elevator is as follows: Assuming that the elevator is at level IP energised there are two options;
The elevator could be called from level by the external call button IP being pressed. The elevator doors should then close via OP once closed IPdoors closed sensor should energise. At this point the elevator should start to move up via OPelevator motor UP Once the elevator reaches level IP would energise and this should stop the elevator motor. After a short pause the elevator doors should open via OP
The elevator could also be operated from level via the internal button IP The elevator doors would then close OP energising IPdoors closed sensor The elevator should then move up to level via OP Once level sensor IP energises, the elevator doors can then open via OP
Note: When the elevator is on level it will be necessary to drive the elevator down to level using OPelevator motor DOWN
Other facilities:
a Alarm: Should the elevator get stuck between floors or the doors not open, then by pressing IP the alarm OP should operate.
b Door Obstruction: If the doors are obstructed the elevator motors OPand OP should be disabled. You can test this by clicking on the box and obstructing the doors.
When writing the program use the inputs and outputs as listed, use any flags, timers, and counters as required. As usual use the comments facilities to document your program.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
