Answer:
see below diagrams.
You could extend that by defining two outputs:
- Lock open/closed indicator
- Error indicator
Then all you have to do is design a circuit...
6.5m questions
8.5m answers