Problem Description A classroom has a capacity of maximum 120 students. There are two doors, one for Entry and the other

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Problem Description A classroom has a capacity of maximum 120 students. There are two doors, one for Entry and the other

Post by answerhappygod »

Problem Description A Classroom Has A Capacity Of Maximum 120 Students There Are Two Doors One For Entry And The Other 1
Problem Description A Classroom Has A Capacity Of Maximum 120 Students There Are Two Doors One For Entry And The Other 1 (50.57 KiB) Viewed 60 times
Problem Description A classroom has a capacity of maximum 120 students. There are two doors, one for Entry and the other for Exit. When number of students in the classroom is less than 120, Entry door has a Green light on it which remains ON. When number of students in the classroom is 120 or more than that, Red light goes ON turning OFF the Green light which indicates that the classroom has reached its maximum capacity and is full. Problem Description Considering the availability of two separate doors for Entry and Exit , two separate Proximity Switches can be used to detect entry and exit of students. One proximity switch is mounted at the entry door and the other at the Exit door. Both the switches will generate two different outputs which can be then fed to PLC to operate the lights according to the Ladder Logic Program written in its memory Counter must be used to count the number of students entering and exiting Comparator must also be used to compare the count value with the given maximum capacity of 120. PLC Program Here is PLC program to Maintain the Capacity of a Particular Classroom along with program explanation and run time test cases List of Inputs and Outputs 1:1/0 = Proximity Switch to detect Entry of a student. (Input) I:1/1 = Proximity Switch to detect Exit of a student. (Input) 0:1/1 = Red Light to indicate availability in the classroom (Output) 0:1/0 = Light to indicate classroom's maximum capacity. (Output) C5:0 = Counter to count the number of students entering. (Counter) C5:0 = Counter to count the number of students exiting. (Counter) LES = Comparator to compare the counter value NOTE: Note here that the address of Counter Up and Counter Down is kept same. This must be kept same in order to decrement and increment the same value in the accumulator of CTU and CTD
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply