Lecture 12. Design of Automation Applications