Factory Automation of 3 axis and 5 axis machine processes