I am trying to design the ladder logic for an energy saving system with the following characteristics...

Whenever a person enters the room, they pass by sensor (IN_1), and light (OUT_1) in the lobby are turned on for 2 minutes, and then turn off automatically.

If a person exits, they pass sensor (IN_2), which turns on light (OUT_2) - which remains on for 1 minute and then turns off automatically.

When there is between 10 and 20 people in the room, one air conditioning unit is turned on (OUT_3), if more than 20 people are in the room 2 air conditioners turn on (OUT_3 and OUT_4).

(OUT_4) will turn back off when the room has less than 20 people, but (OUT_3) will remain on until there are no more people in the room.

I fell like I know how to design the majority of this system, but I am confused on how to keep OUT_3 on when there are less than 10 people in the room, as I figured I would use a Limit instruction to turn it on when 10-20 people were in the room. Could anyone suggest any solutions to this?

Thanks


JLCPCB – Prototype 10 PCBs for $2 (For Any Color)

China’s Largest PCB Prototype Enterprise, 600,000+ Customers & 10,000+ Online Orders Daily
How to Get PCB Cash Coupon from JLCPCB: https://bit.ly/2GMCH9w

Syed Zain Nasir

I am Syed Zain Nasir, the founder of <a href=https://www.TheEngineeringProjects.com/>The Engineering Projects</a> (TEP). I am a programmer since 2009 before that I just search things, make small projects and now I am sharing my knowledge through this platform.I also work as a freelancer and did many projects related to programming and electrical circuitry. <a href=https://plus.google.com/+SyedZainNasir/>My Google Profile+</a>

Share
Published by
Syed Zain Nasir