How to create a do from error messege

I'm trying to create an output signal from an error from i / o.
I sometimes get error 71058 (No contact whit I / O unit.) How can I create a trap or similar so I can get an output signal so the PLC can take care of it? it's an Irc5 Robot.
Regards Per