The invention discloses a
piston type energy accumulator position detection mechanism and a control method thereof. The detection mechanism comprises a cylinder body, an end cover, a
piston, a sleeve rod, a displacement sensor, a magnetic rod, an extension rod and a magnetic ring. The extension rod moves along with the
piston, and a magnetic rod fixed on the displacement sensor is accommodated in a hollow cavity in the extension rod; the magnetic ring is fixed to the end of the extension rod. The displacement sensor measures the position of the piston in a non-
contact mode by detecting the
magnetic field change of the magnetic ring based on the
magnetostriction or
Hall effect principle. The device is further provided with a swing detection unit,
radial deviation of the magnetic ring is detected through a Hall sensor arranged in the circumferential direction, and safety valves on the two sides of the sleeve rod are controlled to conduct directional exhaust according to the
radial deviation, so that measurement errors caused by swing are compensated. The mechanism solves the problems that a traditional stay wire type sensor is prone to
fatigue damage and a
laser sensor is prone to
pollution and failure, has the advantages of being compact in structure, convenient to install, high in anti-interference performance, long in service life and high in precision, and is suitable for piston position real-time monitoring and anti-collision protection under the high-frequency reciprocating working condition.