NC(numerical control, 数値制御)のメカニズム