Piston valves are one form of valve used to control the flow of steam within a steam engine or locomotive. They control the admission of steam into the cylinders and its subsequent exhausting, enabling a locomotive to move under its own power. The valve consists of two piston heads on a common spindle moving inside a steam chest, which is essentially a mini-cylinder located either above or below the main cylinders of the locomotive.