simulator_fault()

Simulates a safety system fault in URSim. Use this function to test application error handling without a physical robot setup.

This function is available in URSim only. It is not supported on a physical robot controller.

You can call simulator_fault() from a primary or secondary program while the robot is in ROBOT_MODE_RUNNING. You can also call it from a secondary program while the robot is in ROBOT_MODE_POWER_OFF.

Parameters

None

Return Value

None

Example command: simulator_fault()

To recover from a simulated fault, use simulator_fault_clear(). For secondary program requirements, see Secondary Programs.