Animated mechanical locking

Diagram
The first movement is to set the route from the up main to the up branch by pulling lever 19.