What if you want a robot to grab a part and put it in place, but if it sees a red error light come on, to pull it out again, replace the part with a new one and put the faulty one in a box five feet away, then note the serial number of the PCB for the record?