Draw a state transition diagram for garage door system

Assignment Help Programming Languages
Reference no: EM13755262

Part -1:

Draw a state transition diagram for your garage door system.

- Include all possible states that you can begin or end with.
- Include all possible transitions that you can make from each state.

1. Design a PLC program using ladder logic that has two input and three outputs.

- Output 0 (Amber Light) represents the door traveling up.
- Output 1 (Green Light) represents the door traveling down.
- Output 2 (Red Light) represents the door being at any stopped state (Up, Down, or Stop).
- Input 0 should be a (simulated) normally closed optical trip sensor that will cause the door to go to the full up position.
- Input 1 is a single normally open push button.
- Input 1 should cause the door to go up if it is down.
- Input 1 should also cause the door to go down if it is up.
- While the door is traveling (up or down), pressing Input 1 should stop the door where it is. A second press of the button should cause the door to return to the up position.

- It takes 5 seconds for the door to travel from full down to full up, full up to full down, and also 5 seconds to travel from any stopped position to full up.

2. Utilize the RsLogix Emulator to develop and debug your program.

3. Demonstrate proper operation of the complete system on the hardware to the lab instructor.

Prepare a lab report as prescribed in the lab report template handed out on the first week.

1. Why is it so important to draw a state transition diagram before attempting to complete this lab?

2. What happens if the optical sensor is tripped while the door is traveling up?

3. What would be another type of instruction set, that you didn't use, that could be used to solve this problem?

4. What is different between your program and how a real garage door works?

5. How could you redesign your code in order to keep track of how far the door traveled before stopping so that you will finish the 5 second travel to the full up position?

Part -2:

Here is another project to test your skill as a PLC programmer. A traffic light has been installed at the intersection of two streets in front of ACME manufacturing. Your job is to write the logic to control and synchronize the traffic lights on both streets.

complete the following and turn it in at the beginning of your lab section.

1. Draw the timing diagram for the light sequence required in both the regular and override modes.

2. Draw the state transition diagram for the logic required to complete this lab

For this lab, use ladder logic or function block diagram programming to implement the program. You may wish to use a state machine, or an output sequencer (neither are required).

1. Utilize the following six digital outputs:

- Output 0 should cause the Main street Red light to illuminate.
- Output 1 should cause the Main street Amber light to illuminate.
- Output 2 should cause the Main street Green light to illuminate.
- Output 3 should cause the Cross street Red light to illuminate.
- Output 4 should cause the Cross street Amber light to illuminate.
- Output 5 should cause the Cross street Green light to illuminate.

2. Green lights should stay on for 10 seconds.

3. Amber lights should stay on for 3 seconds.

4. Red lights should stay on for the duration of the Green/Amber cycle of the opposing street plus a 2 second overlap with the opposing Red light.

5. Add logic to your program that causes the Red lights of the Cross street and the Amber lights of the Main street to ash alternately with an interval of 1 second in the event of an override (a bit set to high). The override bit need not be a hardware button (i.e. you may manually toggle a bit in the software to enter this mode).

6. Utilize a subroutine for the override state

7. Utilize the PLC emulator to develop and debug your program.

8. Assume that upon initial startup, the Cross street Red light is illuminated.

9. Demonstrate proper operation of the complete system to the lab instructor utilizing two of the stack lights attached to the PLC.

10. Create an Add-On Instruction that contains all of the logic for 1 light. Use this instruction 2 times to complete the exercise.

Post Lab

Prepare a lab report as prescribed in the lab report template handed out on the first week.

1. Draw the timing diagram for the light system.

2. Draw a state-transition diagram for the system. Show the state of each output for each state.

3. How might inductive sensors embedded in the road be added to sense the presence of a car to change the behavior of the system.

4. What state does your system resume to from the override state? Would this be a "safe" state to return to from override?

5. Could you make the program more efficient by not using a sub-routine or by adding more than one? Explain. of instruction set, that you didn't use, that could be used to solve this problem?

Reference no: EM13755262

Questions Cloud

Draw the uml diagram for the class : Draw the UML diagram for the class and then implement the class. Write a test class program that creates a Circle2D object c1(new Circle2D(2, 2, 2.5))
Who was charlemagne revolting against : Who was Charlemagne revolting against? Why was Charlemagne's rule so pivitol for Western Europe? What were some of King Louis's mistakes?
Pace of economic growth : A developing country wants to become more global, hoping to increase the pace of its economic growth and improve the quality of life for its people. It wants to achieve this by attracting foreign direct investment.
Gavin products uses a perpetual inventory system : Gavin Products uses a perpetual inventory system. For 2012 and 2013, For each year, compute cost of goods sold, the cost of ending inventory, and gross margin using FIFO.
Draw a state transition diagram for garage door system : Draw a state transition diagram for garage door system - Design a PLC program using ladder logic that has two input and three outputs.
Division charge in order to break even : Texas Products Inc. has a division that makes burlap bags for the citrus industry. The division has fixed costs of $10,000 per month, and it expects to sell 42,000 bags per month. If the variable cost per bag is $2.00, what price must the division..
Journalizing issuance of stock-treasury stock transactions : Journalizing issuance of stock and treasury stock transactions
Tools and techniques used to impact web applications : Tools and techniques used to impact web applications. What are some of the motivations behind these attacks
Cost of a fixed asset : Metropolis Country Club purchased a new tractor to be used for golf course maintenance. The tractor cost $64,200. Metropolis borrowed the purchase price from its bank on a 1-year, 7% note payable. Metropolis incurred the following costs:

Reviews

Write a Review

Programming Languages Questions & Answers

  Two-level memory cache hierarchy

Explain how you would pipeline the four following pairs of statements.

  Allen has been investing in the stock market for quite some

allen has been investing in the stock market for quite some time and had some success with equity investments.recently

  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 program which prompts user to enter length in feet

Create and execute the program for this exercise. Write down the program which prompts user to enter length in feet and inches and outputs equivalent length in centimeters.

  Write a shell script to read from the keyboard

Write a shell script called poject. 21 to read from the keyboard and display on the monitor first name, last name and age if the age is less than 50. If the age is greater than 50, it will display your are over 5 instead of the age.

  How prospectors get through mine shaft only fifteen minutes

How can all four prospectors get through mine shaft in only 15 minutes? After you have solved this problem, describe how you got your foot in door.

  Translate the given code into mips64 assembly language

you can use the instructions 'blt' (branch on less than), 'ble' (branch on less or equal), 'bgt' (branch on greater than) and 'bge' (branch on greater or equal) - Translate the given code into MIPS64 assembly language.

  Program to display aggregate information for state

For each state, display aggregate information for that state, including: the total number of counties in the state, the total number of tax returns.

  Javascript function for cookie added to user-s computer

JavaScript function has verified that all the required fields have been filled, cookie is added to user's computer. If same user attempts to fill out form second time.

  Design and algorithm that compute numbers of married men

Design and algorithm that will read through the file and compute the numbers of married men, single men, married women and single women.

  Write non-recursive to perform algorithm

Write a non-recursive (i.e., iterative) function selectionSort() to perform this algorithm. Use it in a program that reads from a file a sequence of integers.

  Write logic for application for company which wants reports

Write logic for the application for company which wants report containing breakdown of payroll by department. Input includes each employee?s last name, first name, department number.

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