SYST:ERR
Reads the oldest error information or event information from the error queue. The error queue can store up to 255 errors.-> Tutorial
Use the *CLS command to clear the error queue.
Command
SYSTem:ERRor[:NEXT]?
Response
Returns the oldest error or event information in the error/event queue in response to SYST:ERR? as follows:
(Example) When there are no errors or events
+0,"No error"
(Example) When a command that cannot be executed under the current operating conditions has been received
-221,"Settings conflict"