Question

Write a program that will turn a light on when a count reaches 20. The light...

Write a program that will turn a light on when a count reaches 20. The light is then to go off when a count of 30 is reached. (You must use two counters for this problem, and provide a reset function for the counters).

0 0
Add a comment Improve this question Transcribed image text
Know the answer?
Add Answer to:
Write a program that will turn a light on when a count reaches 20. The light...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Write a program using a counter that performs the following operation: 1. Turn on PL1 when...

    Write a program using a counter that performs the following operation: 1. Turn on PL1 when the count is 6. 2. Turn ON PL2 when the count is 12- at which time PL1 should turn off. 3. Turn ON PL3 when the count is between 16 to 20- at which time PL2 should 4. 5. turn off. Turn off all the lights for count values greater than 20 and less than 25. Reset the counter to O when count is...

  • Assume you are hired to write a program for a company that manufactures electronic components. The...

    Assume you are hired to write a program for a company that manufactures electronic components. The system is shown in the figure below. A controller stops the take-up spool at a predetermined amount of resistors (75). A worker on the floor then cuts the resistor strip and places it in a kit. Write a program to count and control the number of resistors placed into each kit. THIS HAS TO BE WRITTEN IN LADDER LOGIC. The controller operates as follows:...

  • Write a program in CircuitPython to run on the FM4E that will turn on the heater...

    Write a program in CircuitPython to run on the FM4E that will turn on the heater for one minute if the button is pressed. The LED should be turned on when the heater is on, and it should go off when the heater turns off after one minute. Make sure your code has comments.

  • Problem 4 For this question, you will write a program called drive.py that determines if a...

    Problem 4 For this question, you will write a program called drive.py that determines if a car should go through an intersection or stop. Your program will prompt the user for the colour of the traffic light at the intersection (a string), the distance to the intersection in meters (a float), and the speed of the car in meters per second (a float). Your program must then determine if the car should go through the intersection or stop. The following...

  • (40pts) Write a PLC program that counts how many times TWO buttons are simultaneously pressed (within 0.5 seconds o...

    (40pts) Write a PLC program that counts how many times TWO buttons are simultaneously pressed (within 0.5 seconds of each other). The system will ONLY count when the buttons are pushed at the same time (+/- 0.5 seconds). Store the count in N7:12. If the count is between 3 and 7, a red light comes on. Use the E-stop to reset the count and to set N7:12 to 0 2. (40pts) Write a PLC program that counts how many times...

  • PLC :: Latch/Unlatch

    please help me write PLC programming, im having trouble doing it. ·         The Bottle Size selector switch will determine how much to fill up the bottles and how many bottles go into a box.  When the selector switch is on then Large bottles are being made - filled for 4.50 seconds and 6 go into a box.  If the selector switch is off then Small bottes are being made – filled for 3.00 seconds and 12 go into a box. ·        ...

  • 17) Design a PLC program and prepare an I/O connection diagram and ladder logic program that will...

    17) Design a PLC program and prepare an I/O connection diagram and ladder logic program that will correctly execute the packaging process illustrated in Figure 8-21 Enter the program into the PLC, and prove its operation. The operational sequence can be summarized as follows: » The purpose of this process is to deposit 50 pieces of the product in each container. . The process is set in operation by pressing a start pushbutton. . As the product passes through the...

  • Write a latter logic program that will: a) Turn OUT.1.0 on while IN.2.0 or IN.2.1 is...

    Write a latter logic program that will: a) Turn OUT.1.0 on while IN.2.0 or IN.2.1 is on, but only if IN.2.2 is off at the same time. b) Turn OUT.1.1 on each time the conditions for turning OUT.1.0 on becoming true, but OUT.1.1 must remain on even if those conditions cease to be true. c) Turn OUT.1.0 back of again each time IN.2.3 goes on. The conditions for turning OUT.1.1 on must override the conditions for turning OUT.1.1 off if...

  • Write a program in python that asks the user to input a sentence. The program will...

    Write a program in python that asks the user to input a sentence. The program will ask the user what two letters are to be counted. You must use a “for” loop to go through the sentence & count how many times the chosen letter appears in the sentence. You are not allowed to use python built-in function "count()" or you'll get a Zero! Output will show the sentence, the letter, and the number of times the letter appears in...

  • Homework 1 - Simple Array Handling Write a working C++ program to ask the user for...

    Homework 1 - Simple Array Handling Write a working C++ program to ask the user for a set of grades which are to be stored in an array in increasing sequence. The user must first provide the number which represents the count of all grades to be provided. For example, if there will be 10 grades, the user is first prompted to provide the number 10. Subsequently, each grade is provided, one at a time. Allow for a maximum of...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT