As a component of combustion engines the piston converts the energy released during combustion into a mechanical action and transfers it to the crankshaft in the form of a torsional force via the piston pin and the connecting rod. When the engine is running the piston moves up and down in the cylinder.