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

  Formula translation

Write a c code that will evaluate the roots of a quadratic equation

  Develop logic for program to read customer records

Develop the logic for a program that reads in 100 customer records and stores the first and last name and total purchases in three parallel arrays.

  Data members to store values of the two loans

A class that represents a person who belongs to a SACCO has two data members to store values of the two loans the person owes the SACCO. Add a parameterized constructor that initializes these loans using the two values passed as arguments.

  Program to calculate monthly gross pay for super supermarket

Owners of Super Supermarket would like to have program which calculates monthly gross pay of their employees. Input for this program is employee ID number, hourly rate of pay.

  Write script to get gross sales for each employee by xhtml

Use a one-dimensional array to solve the folloing problem: Write a script (using an array of counters) that obtains the gross sales for each employee through an XHTML form and determines how many of the salespeople earned salaries

  Determine recursive procedure and iterative procedure

Determine the example or recursive procedure and represent it as iterative procedure. Also, select the iterative procedure which you would re-write as recursive.

  Write gui program as subclass of jframe

Write a GUI program as subclass of JFrame. It should contain the following: Labels At the top (column headings): Meal, Quantity, Cost, At the left: label for each mea.

  Write program to accept long integer number

Write down the program which contains function calories() which is to accept long integer number total and address of integer variables pizza, chips apples and mustard.

  Design program to ecode message using caesar cypher

Design a program which decodes messages. Messages will be encoded using Caesar cypher, with each letter being decoded by replacing it with previous letter in alphabet.

  Write application to input numbers in one dimensional array

Use a one dimensional array to solve the following problem: Write an application that inputs five numbers, each between 10 and 100, inclusive.

  Write script to declare-set variable equal to total balance

Write down the script which declares and sets variable that's equal to total outstanding balance due. If that balance due is greater than $10,000.00

  Write loop header to hold odd number between a range

Suppose the int variables i and result have been declared but not initialized. Write down for loop header, that is something of form.

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