Controlling process valves whilst considering functional safety