Animated mechanical locking

Diagram
Lever 22 is pulled to clear signal 22 (provided the detection on 16 is made up). This locks 15 reverse (bar 2 in channel 1), 4 and 8 normal (bars 1 and 3 in channel 3 and the condition piece on 17, which is active with 17 reverse).

Click here to pull 23.