摘要 |
A method to determine a position of a piston (4) reciprocating inside a hydraulic cylinder or a pneumatic cylinder 81) between a first end position (5) and a second end position (6), the piston parts the hydraulic cylinder or the pneumatic cylinder in a first chamber (8) and a second chamber (9), and at least one of the chambers is at least partly filled with a fluid, where the method comprises the steps of driving a wheel structure (16) of a hydraulic motor (12) or a pneumatic motor by the force of the fluid led to or from the first and/or second chamber, driving a shaft encoder (31) by the hydraulic motor or the pneumatic motor, measuring at least one parameter corresponding to a rotation and/or an angular displacement of the wheel structure using the shaft encoder, and calculating the position of the piston. |