Automation of an industrial machine