Setting output with event routine AW_WELD_ERR

How can i set an output for an alarm when i get an arc error with the recovery menu displayed (-eg ERRNO = AW_WELD_ERR)