Computer control of flexible manufacturing systems