Automatic Generation of Control Programs for Manufacturing Cells