Control of manufacturing systems with delay