A numerical control system uses in common a main shaft motor to drive a main shaft and a feed shaft, and comprises a main shaft motor (106) for rotating a main shaft (107a), a gear mechanism (110) for mechanically coupling the power of the main shaft motor to the feed shaft (109) to drive a movable unit (107) to drive the feed shaft by the rotation of the main shaft motor, a brake (113) for the feed shaft, means (101c) for monitoring the distance remaining to be moved by the feed shaft, and feed speed switching means (101h) for switching the feed speed of the feed shaft on the basis of the remaining distance to be moved, thereby providing a function of operating a brake by separating the main shaft from the feed shaft on the basis of the remaining distance to be moved.
展开▼