Shows the graphic simulation of the elevator

Assignment Help Programming Languages
Reference no: EM13145747

FIGURE shows the graphic simulation of the Elevator.

1627_Write a program to operate the barriers.png

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.
IP0 External Elevator call button OP0 Elevator motor UP
IP1 Elevator on level 2 sensor OP1 Elevator motor DOWN
IP2 Elevator on level 1 sensor OP2 Elevator door motor OPEN
IP3 Internal Elevator button OP3 Elevator door motor CLOSE
IP4 Door obstruction sensor OP4 Alarm
IP5 Lift door closed sensor
IP6 Lift stuck alarm button

The operation of the elevator is as follows: Assuming that the elevator is at level 1, (IP2 energised), there are two options;

1. The elevator could be called from level 2 by the external call button IP0 being pressed. The elevator doors should then close via OP3, once closed IP5 (doors closed sensor) should energise. At this point the elevator should start to move up via OP0 (elevator motor UP). Once the elevator reaches level 2, IP1 would energise and this should stop the elevator motor. After a short pause the elevator doors should open via OP2.

2. The elevator could also be operated from level 1 via the internal button IP3. The elevator doors would then close (OP3) energising IP5 (doors closed sensor). The elevator should then move up to level 2 via OP0. Once level 2 sensor IP1 energises, the elevator doors can then open via OP2.

Note: When the elevator is on level 2 it will be necessary to drive the elevator down to level 1 using OP1 (elevator motor DOWN).

Other facilities: (a) Alarm: Should the elevator get stuck between floors or the doors not open, then by pressing IP6 the alarm OP4
should operate.

(b) Door Obstruction: If the doors are obstructed the elevator motors OP0 and OP1 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.

Reference no: EM13145747

Questions Cloud

Schedule of interest revenue and bond discount amortization : Prepare a 3-year schedule of interest revenue and bond discount amortization, applying the effective- interest method. Prepare the journal entry for the interest receipt of December 31, 2011, and the discount amorti- zation under the straight-line..
Explain the ph in the stomach of a certain animal : The pH in the stomach of a certain animal is 3.8. This means that the hydrogen ion concentration in the stomach
Limited efficiency in collecting receivables : What conclusions can be drawn from these analyses regarding The Limited's efficiency in collecting receivables?
Explain nonparametric procedure and when to use it : Write-up of 1 to 2 page or an essay for the following questions. What is a nonparametric procedure? Describe specifically when you would utilize a nonparametric test.
Shows the graphic simulation of the elevator : The elevator could be called from level 2 by the external call button IP0 being pressed. The elevator doors should then close via OP3, once closed IP5 (doors closed sensor) should energise.
Determine the missing amounts : Determine the missing amounts associated with each letter and complete the following table. If required, round amounts to the nearest dollar. If an amount is zero, enter in "0".
What is competent cell : What is competent cell? Why can a competent cell take up plasmid DNA? What is a method that some scientists use to make competent cells and briefly describe it.
Define water dissolves table salt : Water dissolves table salt (NaCl) because: A. NaCl is hydrophobic. B. NaCl has a polar covalent bond. C. water molecules surround the Na and Cl ions due to electric attraction.
What are satellite colonies : What are satellite colonies? Why can satellite colonies be formed? If you use an antibiotics such as tetracycline, will you even get satellite colonies and why?

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd