Ask Programming Language Expert

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?

Programming Language, Programming

  • Category:- Programming Language
  • Reference No.:- M91313558
  • Price:- $100

Guranteed 48 Hours Delivery, In Price:- $100

Have any Question?


Related Questions in Programming Language

Assignment - haskell program for regular expression

Assignment - Haskell Program for Regular Expression Matching Your assignment is to modify the slowgrep.hs Haskell program presented in class and the online notes, according to the instructions below. You may carry out th ...

Assignment task -q1 a the fibonacci numbers are the numbers

Assignment Task - Q1. (a) The Fibonacci numbers are the numbers in the following integer sequence, called the Fibonacci sequence, and are characterised by the fact that every number after the first two is the sum of the ...

Question - create a microsoft word macro using vba visual

Question - Create a Microsoft Word macro using VBA (Visual Basic for Applications). Name the macro "highlight." The macro should highlight every third line of text in a document. (Imagine creating highlighting that will ...

Assignmentquestion onegiving the following code snippet

Assignment Question One Giving the following code snippet. What kind of errors you will get and how can you correct it. A. public class HelloJava { public static void main(String args[]) { int x=10; int y=2; System.out.p ...

Assignment - proposal literature review research method1

Assignment - Proposal, Literature Review, Research Method 1. Abstract - Summary of the knowledge gap: problems of the existing research - Aim of the research, summary of what this project is to achieve - Summary of the a ...

1 write a function named check that has three parameters

1. Write a function named check () that has three parameters. The first parameter should accept an integer number, andthe second and third parameters should accept a double-precision number. The function body should just ...

Assignment - horse race meetingthe assignment will assess

Assignment - Horse Race Meeting The Assignment will assess competencies for ICTPRG524 Develop high level object-oriented class specifications. Summary The assignment is to design the classes that are necessary for the ad ...

Task silly name testeroverviewcontrol flow allows us to

Task: Silly Name Tester Overview Control flow allows us to alter the order in which our programs execute. Building on our knowledge of variables, we can now use control flow to create programs that perform more than just ...

Structs and enumsoverviewin this task you will create a

Structs and Enums Overview In this task you will create a knight database to help Camelot keep track of all of their knights. Instructions Lets get started. 1. What the topic 5 videos, these will guide you through buildi ...

Task working with arraysoverviewin this task you will

Task: Working with Arrays Overview In this task you will create a simple program which will create and work with an array of strings. This array will then be populated with values, printed out to the console, and then, w ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As