beautypg.com

Error codes – AMETEK ReFlex Programming Manual User Manual

Page 117

background image

Load Module Remote Programming

ReFlex Power™ Programming Manual

M380056-03 Rev L

113

5.4

ERROR CODES

The error codes exist in the range of [-32768, 32767]. SCPI reserves the
negative error codes and zero, while the error codes greater than zero and in the
range of -399 to -300 are defined as device-specific. The negative error codes in
the range of -499 to -100 are standardized errors that are reported in the
Standard Event Status Register and the Error/Event Queue. The error codes that
are stored in the Error/Event Queue are read with the

SYSTem:ERRor?

query.

5.4.1

SCPI

E

RROR

C

ODES

The following error codes are defined by the SCPI Standard 1999.0, and are
supported by the ReFlex Power™ Active Load (AL).

0, No error

The error queue is empty.

-102, Syntax error

Message returned: SYNTAX_ERROR: -102. An unrecognized command or
data type was encountered.

-200, Execution error

Message returned: EXEC_ERROR: -200. Command could not be executed.

-222, Data out of range

Message returned: DATA_OUT_OF_RANGE: -222. An out-of-range command
parameter had been entered.

-350, Queue overflow

The Error/Event Queue could contain up to 10 entries. If more than 10
error/event conditions are logged before the

SYSTem:ERRor?

query, an

overflow will occur; the last queue entry will be overwritten with error -350.
When the queue overflows, the least recent error/event remains in the queue
and the most recent error/event is discarded.

5.4.2

E

RROR

/E

VENT

Q

UEUE

The Error/Event Queue is a FIFO (First-In-First-Out) buffer for storing detected
errors. When the queue is read with the

SYSTem:ERRor?

query, the error that

was detected first will be read first, and the error that was detected last will be
read

last.

When

all

errors

are

read,

the

message

0, No error will be returned. Up to 10 errors could be stored before overflow
would occur. Overflow will result in error code -350, “Queue overflow” overwriting
the last entry. All subsequent errors will be ignored until the queue is read, and
space is again available.