Applied Industrial Technologies has agreed to buy IRIS Factory Automation, an Illinois-based automation company.