SMS: Principles of numerical control