Numerical control and DNC system