Programmable Logic Controllers
5th Edition
ISBN: 9780073373843
Author: Frank D. Petruzella
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Textbook Question
Chapter 7, Problem 14P
When the lights are turned off in a building, an exit door light is to remain on for an additional 2 min, and the parking lot lights are to remain on for an additional 3 min after the door light goes out. Write a
Expert Solution & Answer
Trending nowThis is a popular solution!
Students have asked these similar questions
Write a computer program for calculating carburization heat treatments. The program should ask the user to provide an input for the carbon concentration at the surface (cs), and the concentration of carbon in the bulk (c0).
Write a program that computes the theoretical flame temperature when a mixture of
methane, propane, n-butane, and n-pentane (0% to 100% mole methane in 5 %
increments; 0 to 100 mol% propane in 5% increments; 0% to 100% mole n-butane in 5
% increments) at 25°C is burned with excess air (0% to 100% excess in 5% increments)
preheated to preheated to (50°C to 200°C in 10°C increments)
C# program thankyou
A minivan has two sliding doors. Each door can be opened by either adashboard switch, its inside handle, or its outside handle. However, the inside handles donot work if a child lock switch is activated. In order for the sliding doors to open, the gear shiftmust be in park, and the master unlock switch must be activated. Your task is to simulate a portion of the control software for the vehicle. The input is a sequenceof values for the switches and the gear shift, in the following order:• Dashboard switches for left and right sliding door, child lock, and master unlock (0 for off or 1for activated)• Inside and outside handles on the left and right sliding doors (0 or 1)• The gear shift setting (one of P N D 1 2 3 R).A typical input would be 0 0 0 1 0 1 0 0 P.Print “left door opens” and/or “right door opens” as appropriate. If neither door opens, print “bothdoors stay closed”.
Chapter 7 Solutions
Programmable Logic Controllers
Ch. 7 - Prob. 1RQCh. 7 - Prob. 2RQCh. 7 - Prob. 3RQCh. 7 - Prob. 4RQCh. 7 - a. What are the two methods commonly used to...Ch. 7 - Prob. 6RQCh. 7 - Prob. 7RQCh. 7 - Prob. 8RQCh. 7 - For a TOF timer: a. When is the enable bit of a...Ch. 7 - Explain what each of the following quantities...
Ch. 7 - State the method used to reset the accumulated...Ch. 7 - Study the ladder logic program in Figure 7-40 and...Ch. 7 - Study the ladder logic program in Figure 7-42, and...Ch. 7 - Prob. 6PCh. 7 - Prob. 7PCh. 7 - Prob. 8PCh. 7 - Prob. 9PCh. 7 - Prob. 10PCh. 7 - Prob. 11PCh. 7 - Prob. 13PCh. 7 - When the lights are turned off in a building, an...
Additional Engineering Textbook Solutions
Find more solutions based on key concepts
Would you select a decoder/driver with active-HIGH or active-LOW outputs to drive a common-cathode 7-segment LE...
Digital Fundamentals (11th Edition)
Explain what is meant by a compensation action and, using an example, show why these actions may have to be inc...
Software Engineering (10th Edition)
Convert each of the following binary representations to its equivalent base ten form: a. 101010 b. 100001 c. 10...
Computer Science: An Overview (12th Edition)
How are relationships between tables expressed in a relational database?
Modern Database Management (12th Edition)
A magic number is _______. a. a number that is mathematically undefined b. an unexplained value that appears in...
Starting Out with Python (4th Edition)
A byte is made up of eight a. CPUs b. addresses c. variables d. bits
Starting Out with Java: From Control Structures through Objects (7th Edition) (What's New in Computer Science)
Knowledge Booster
Similar questions
- Write a complete processing program so that you can control a red ball on the screen using keyboard arrow keys: UP/DOWN: ball moves up/down; LEFT/RIGHT: ball moves left/right; when the ball hits border, it won't be able to move across the border is (stuck there instead). R/r key resets the ball back to center.arrow_forwardWrite a program in python to set a same dice on the face every time when the dice is rolled and assume the dice is rolled 3 times.arrow_forwardWrite a program that asks for two numbers. After the input of two numbers, ask the user whatoperation to do between the numbers. Perform the operation according to the user’s choice and displaythe result. After the display, ask the user if he wants to continue. If the user continues, ask for a numberand an operation. Perform the selected operation with the recent result and the new input value. Displaythe result according to the user’s choice and ask the user again if he wants to continue. Repeat thisprocess as long as the user wants to continue.When selecting an operation, it must be case sensitive. If the user provides an invalid input in selectingan operation, display an error message and ask again for an operation. The program must not exit. Theprogram will only terminate after the user select not to continue.arrow_forward
- Write a program that converts temperatures from Fahrenheit to Celsius.arrow_forwardWrite a program that computes the theoretical flame temperature when a mixture of methane, propane, n-butane, and n-pentane (0% to 100& methane in 5% increments; 0 to 100 mol% propane in 5% increments; 0% to 100% mole n-butane in 5% increments) at 25°C is burned with excess air (0% to 100% excess in 5% increments) preheated to preheated to (50°C to 200°C in 10°C increments)arrow_forwardWrite a program that converts an input inch(es) into its equivalent centimeters.arrow_forward
- Design a program that will calculate and display a letter grade for a student given their test score and the number possible. Convert the score to a percentage and then use the following curve to assign a grade. Implement in Scratch and Raptor. Percent ScoreGradePercent >= 90 'A'90 > Percent >= 80'B'80 > Percent >= 70'C'70 > Percent >= 60'D'60 > Percent 'F'arrow_forwardWrite a program that prompts the user to enter 5 exam marks (design your program such that it would be easy to change if we wanted it to work for more than 5 exams). The program then displays the average mark, the highest mark, and number of marks entered less than the average mark. For example, when executing the program and inputting 20, 30, 10, 40, and 50 the running session will look as follows: Enter a mark: 20 Enter a mark: 30 Enter a mark: 10 Enter a mark: 40 Enter a mark: 50 Average mark is: 30.0 Highest mark is: 50 Number of marks less than the average: 2arrow_forwardTask Write a MASM program that will resemble a digital clock. The clock will display hh:mm:ss (hour, minute and second format; 2 digits for each), i.e., 03:10:05. The clock will take an input from the user (0 to 9) which will be the starting time of the clock. Say the input is 6, so the clock start time is 00:00:06. 00:00:59. You increment the second by one, i.e., 00:00:06, 00:00:07, Then you need to change the minute to 01 and second to 00, i.e., 00:01:00. Similarly, change the time for hour e.g., 00:59:59 will change to 01:00:00. It is a 12 hour clock. After 11:59:59, the clock will change to 00:00:00. You may like to run the attached Calcul.exe to understand the expectation. ● Commenting Most of the lines of the program code should be commented (short comment is fine) so that your code could be well understood.arrow_forward
- Using Python and this online interpreter, write a program that will calculate the total cost of purchasing thumb drives. An 8-gigabyte (GB) thumb drive costs $6.99, and a 32-GB thumb drive costs $12.99 if purchased in quantities of 1–5. Note: You must use different cost values than the examples provided. If you purchase 6–20, there is a 10% discount. If you purchase 21–50, there is a 15% discount. If you purchase 51–100, there is a 20% discount. There is a 25% discount for any quantity over 100. Each of the discounts will be determined by Boolean logic. An example of the necessary interaction is as follows: Enter total number of 8-GB thumb drives to purchase: 10 Enter total number of 32-GB thumb drives to purchase: 76 Total cost: $852.70 When completed, take a screenshot of your Python source code along with the example output using appropriate inputs to the running application.arrow_forwardWrite a program that plots the sine function, as shown in Figure 5.5a.arrow_forwardWrite a program that displays four clocks, as shown in Figure 12.24.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- C++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage Learning
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning