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 program to accept five input values in array

Write a program that accepts five input values and stores them into an array. The program should display those five numbers in reverse order.

  Program to read list up to hundred addresses

efine a class called address_t with members for the four integers. Your program should read a list up to 100 addresses and nicknames terminated by a sentinel address of all zeros and nickname.

  Computing return value after execution of program

Compute return value of Antony after its execution?

  Method to pass string argument and returns first line

Write a method, getFirstLine, that is passed a String argument and that returns the first line.

  Write non-abstract subclass constructor accepting double

Write (non-abstract) subclass, ApartmentHouse, containing: an int instance variable numberOfApartments. a constructor accepting a double, passed to superclass constructor, and an int used to initialize numberOfApartments

  Write modular program to enter integers for sorting

Write a modular program that performs the following functions: Allows the user to enter 10 integers for sorting, Allows the user to select one of the two types of sorting techniques.

  Creating main function that opens the input file

Create a main function that opens the input file, reads each line, and based on first character in input line, calls the [A]dd function or [M]ultiply function.

  Program to read the contents of file into the array

Write down the program which asks user for a file name. Suppsoe the file contains the series of numbers, each written on separate line.

  Identify all the pure-strategy nash equilibria of game

Identify all of the pure-strategy Nash Equilibria of this game. Identify at least one mixed-strategy Nash Equilibrium, and show that it is a Nash Equilibrium.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Pseudocode of program that will prompt user for number

Write pseudocode and flowchart for a program which will prompt user for a number, prompt the user for an operator (+,-,*,/), prompt the user for another number.

  Write simple program to prompt user for gross salary

Write simple program which will prompt user for his or her gross salary. Your program than will display net salary whereby 11.00% of the gross salary is deducted for EPF

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