Mechanical C rig.

Hi!
I got something which I thought would be easy to rig. But it seems that I can’t wrap my head around it.
It looks like this and only needs to go up and down:

Got a solution at area:
https://forums.autodesk.com/t5/3ds-max-animation-and-rigging/mechanical-c-rig/m-p/8941166/highlight/false#M24458

Thanks for sharing the solution