pause_on_error_code(code, argument)

Makes the robot pause if the specified error code occurs. The robot will only pause during program execution.

This setting is reset when the program is stopped. Call the command again before/during program execution to re-enable it.

>>> pause_on_error_code(173, 3)

In the above example, the robot will pause on errors with code 173 if its argument equals 3 (corresponding to ’C173A3’ in the log).

>>> pause_on_error_code(173)

In the above example, the robot will pause on error code 173 for any argument value.

Parameters

code: The code of the error for which the robot should pause (int)

argument: The argument of the error. If this parameter is omitted the robot will pause on any argument for the specified error code (int)

Notes:

  • Error codes appear in the log as CxAy where 'x' is the code and 'y' is the argument.