omron — $ERROR string function

$ERROR string function $ERROR string function Syntax $ERROR (error_code) Function Return the error message associated with the given error code. Parameter error_code Real-valued expression, with a negative value, that identifies an error condition. Details All the error codes returned by the IOSTAT function and by the ERROR real-valued function can be converted into their corresponding eV+ error message strings with this function. (The ERROR real-valued function must be used to determine the variable portion of the error message for an error code less than or equal to -1000.) See System Messages on page 584 for a list of all the eV+ error messages and their error codes.

Example The following program segment displays an error message if an I/O error occurs: READ (5) $input IF IOSTAT(5) 0 THEN TYPE "I/O error during read: ", $ERROR(IOSTAT(5)) HALT END Related Keywords ERROR real-valued function IOSTAT real-valued function REACTE program instruction eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 208