In a $\text{CNC}$ machine tool, the function of an interpolator is to generate

1. signal for the lubrication pump during machining
2. error signal for tool radius compensation during machining
3. $\text{NC}$ code from the part drawing during post processing
4. reference signal prescribing the shape of the part to be machined