Ladder
Diagram
to
solve
this
problem
Program Description
For this problem maximum limit is set to 120.
RUNG000- Whenever a student enters in the class, Proximity Switch 1 generates a pulse which increments
counter by 1.
RUNG001- Whenever
a student exits from the class, Proximity Switch 2
generates a pulse which
decrements counter by 1.
RUNG002- When the number of students in the class is less than 120, Green Light goes ON.
RUNG003- When the number of students in the class is 120 which is the maximum capacity of the class,
Red Light goes ON.
RUNG004- It terminates the program and the scan cycle is repeated again.
Dostları ilə paylaş: