The five terminals are labelled, from left to right: 2 4 1 U2 U1. There's a diagram on the timer that has the 2/4/1 ones connected like an M, and U2/U1 connected with an M in a circle between then.
There are 4 wires out of the control panel: blue, brown, brown, red.
Hope that makes sense.