I have attached a copy of a ladder diagram which is supposed to control the opening, closing, and stopping of a garage door. It's suppose to stop when the button opposite the direction the door is moving is pressed, without burning out the motor windings. Everything works, but the motor windings burn out. I think the problem I'm having is in understanding the use of the OSR instruction. An explanation would be greatly appreciated.
[attachment]
[attachment]