ERROR real-valued function ERROR real-valued function Syntax ERROR (source, select ) Function Return the error number of a recent error that caused program execution to stop or caused a REACTE reaction. Usage Considerations Executing a REACTE statement clears any errors for the current task and prevents the ERROR function from returning errors as expected. A FIFO buffer is available that receives all asynchronous errors that occur from the time an enable power request is issued (using ENABLE POWER or the MCP) until power is disabled for any reason. The FIFO is accessed using the ERROR( ) real-valued function.
The asynchronous FIFO is not valid while the robot is in the power-down initialization state. User programs should wait until STATE(1) 0 before calling ERROR( ) with a source parameter > 1000. eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 204