Adapt nc control to type of machine, read machine and measuring parameters