Solenoid valve has closed cavity, open a hole in different position, each hole to connect different tubing, cavity piston is among, both sides are two electromagnets, which face the magnet coil electricity body which side will be attracted to, through to control the movement of the valve to open or close the different discharge of oil hole, and the oil hole is always open, hydraulic fluid will enter the different oil drain, and then through the oil pressure to push the cylinder piston, piston drives the piston rod, piston rod drive mechanism. Thus, mechanical motion is controlled by the loss of electrical current through the control of electromagnets.