Basics of OR gate and its application in industrial control