In a piston engine, the valve timing is the precise timing of the opening and closing of the valves. In an internal combustion engine those are usually poppet valves and in a steam engine they are usually slide valves or piston valves.
In four-stroke cycle engines and some two-stroke cycle engines, the valve timing is controlled by the camshaft. It can be varied by modifying the camshaft, or it can be varied during engine operation by variable valve timing. It is also affected by the adjustment of the valve mechanism, and particularly by the tappet clearance. However, this variation is normally unwanted.
With traditional fixed valve timing, an engine will have a period of "valve overlap" at the end of the exhaust stroke, when both the intake and exhaust valves are open. The intake valve is opened before the exhaust gases have completely left the cylinder, and their considerable velocity assists in drawing in the fresh charge. Engine designers aim to close the exhaust valve just as the fresh charge from the intake valve reaches it, to prevent either loss of fresh charge or unscavenged exhaust gas. In the diagram, the valve overlap periods are indicated by the overlap of the red and blue arcs. Key:
Valve overlap is a secondary means to cool exhaust valves with intake air during valve overlap. Primary cooling is accomplished by dissipating heat to the valve seats.
Engines that always run at a relatively high speed, such as race car engines, will have considerable overlap in their valve timings for maximum volumetric efficiency. Road car engines are different because they are required to idle at less than 1000rpm, and excessive valve overlap would make smooth idling impossible because of the mixing of fresh and exhaust gases. Variable valve timing can give both maximum power at high rpm and smooth idling at low rpm by making small changes to the relative angular position of the camshafts and thereby varying the valve overlap.
Many two-stroke cycle and all wankel engines do not have a camshaft or valves, and the port timing can only be varied by machining the ports, and/or modifying the piston skirt (two stroke applications). However, some supercharged two-stroke diesel engines (such as the Wilksch aero-engine) do have a cylinder head and poppet valves, similar to a four-stroke cycle engine.