Automation of industrial plants