PC-based control for process automation