Protection relay for plant automation