A controller in industrial automation acts as the brain of machinery, overseeing and directing operations. Common types include Programmable Logic Controllers (PLCs) for discrete control and Distributed Control Systems (DCS) for process control. These controllers interpret data, make decisions, and execute commands to ensure the efficiency of automated processes.