Workpiece processing by numerically controlled machines