Programmable Logic Controllers
Programmable Logic Controllers
5th Edition
ISBN: 9780073373843
Author: Frank D. Petruzella
Publisher: McGraw-Hill Education
Textbook Question
Book Icon
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 program to implement this process.

Blurred answer
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”.

Additional Engineering Textbook Solutions

Find more solutions based on key concepts
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning