Is it possible to create a TP program that is looking for a specific Error code to apear, and then do a FAULT RESET command, if this error code is active?
I have a line tracking setup with a CRX-10iA/L.
Sometimes i get the error code MOTN-370 "Unreachable Track destination".
This error occures if the target has gone too far downstream, when robot should start the tracking motion.
Ofcourse the Discard line can be used to avoid the error to appear.
But i would like to create a small program that are looking for MOTN-370 to appear.
If this error is active, and DI is ON, i would like to set a FAULT-RESET-command, to clear the robot error.
I was thinking to create a TP-program with no Group Mask, and "Ignore pause" set to ON.
In this TP-program i would simply create a loop, and then RUN the program from my Main-prgram.
I was thinking to use $ALM_IF.$LAST_ERCODE, to read the last error that has occured (MOTN-370 has error code 638517618).
But i can't figure out how to do a FAULT RESET instruction - if this is even possible from a TP-program?
UI "Fault reset", is currently mapped to DI, where a physical reset button is connected.