Controlling Automated Manufacturing Systems