How to Monitor and Handle error code

So I have noticed that sometimes, when the Xarm cannot calculate a path to a point, it might skip that point and move on to next. It might also hit a stop but kept moving to next point unless it’s stuck in a situation where it cannot move at all. Is there a function that’s monitoring errors that I can use to stop the robot whenever an error came out?

Hi Norman,

Please use the below methods to monitor errors. Do you use python or our Blockly module? How do you set ‘wait’ parameter? You can send your project to minna.zhong@ufactory.cc, and provide more details, we will help to troubleshoot the problem.

if arm.warn_code != 0:
arm.emergency_stop()
#arm.clean_warn()
if arm.error_code != 0:
arm.clean_error()

Best regards,
Minna