Hydraulic jack valve drawing, animation and analysis

I am a student who studying in University college. I required to analyse the bending machine by using the hydraulic jack, but i don;t know how to create the mesh as shown in this video at 2.05

https://www.youtube.com/watch?v=-KXaIXTavdA

May i know, how can i mate it, so that when i press a stroke, the piston will move upward a bit? and may i know where is the location of valve. Please kindly reply if you know. Thank You for your helping.

SolidworksDrawings And Detailing