What is the main function of a controller in automation?

Explanation:

Controller executes programmed logic.

Explore more in Mechanical Engineering: