Stefano,
Lee Wireless is right, of course, in suggesting to get this fixed. The switch signals the top to move at different speeds, depending on the position of the top. (The controller puts hydraulic pressure on both sides of the main lift cylinders to slow them down.) Let's call it crash avoidance.
The switch is electrically closed when the cylinder is retracted.
If you hear something clicking, then either the sound comes from something else but the actual switch inside the micro switch assembly, or you have a loose wire going to the wiring harness connector, or the contacts are broken inside the switch. I have never encountered the latter.
For those readers who have a crushed or bent switch, I have posted the following on repairing bent bow extension switch assemblies before:
http://www.benzworld.org/forums/r12...forums/r129-sl-class/1547193-1996-bow-extension-micro-switch-p.html#post4363007
On the photos you have sent me, the switch does not look bent. Thus, let's first hunt for some wire that has come loose. Hope you find it, because this cylinder is the most labor intense to remove, and you need to take out the cylinder to remove the switch. If you decide to take out the cylinder, follow these instructions:
http://tophydraulicsinc.com/R129 Bow Extension Cylinder Removal.pdf Make sure to use the 'match trick' described to avoid any damage to the switch assembly when you put it back together.
Hope this helps,
-Klaus