beautypg.com

Error/event queue -3 – AMETEK SFA Series Programming Manual User Manual

Page 15

background image

Sorensen SF Series

IEEE 488.2 and SCPI Command Operation

3.2.3 Protection

Condition and Protection Event Status Register

These two registers have the same bit meanings, but they differ in regards to how they function.

The Protection Condition Register can be read using the STAT:PROT:COND? command. This
command gives the present status condition of the power hardware, so the data is not latched.
It is meant to be used as a polling register.

The Protection Event Status Register can be read by the STATus:PROTection:EVENt?
command. Reading this register, issuing a *CLS command, or issuing a *RST command will
clear the Protection Event Status Register. Bits in the Protection Event Status Register will be
set only when the corresponding bit in the Protection Event Status Enable Register is set and
the corresponding event occurs. The status is then latched and will remain in that state until it is
read or cleared due to some command action. (Use the STATus:PROTection:ENABle
command to set the Enable Register and the STATus:PROTection:ENABle? query to read the
Enable Register.) To configure the DIA to generate GPIB service requests based on the
Protection Event Status Register, both the Protection Event Status Enable Register and the
Service Request Enable Register (*SRE) must be programmed. For further information, refer to
the table below, and to Section 5.

PROTECTION CONDITION AND EVENT STATUS REGISTERS

Bit Hex

Value

Description

0 0x01

Not

used

1

0x02

Constant current operation

2 0x04

Not

used

3

0x08

Overvoltage protection tripped (not applicable for SFA)

4

0x10

Overtemperature protection tripped

5

0x20

Supply external shutdown active

6

0x40

Foldback mode operation

7

0x80

Remote programming error

3.2.4

3.2.5

Operation Status and Questionable Status Registers

The Operation Status and Questionable Status Registers will always return 0 when queried.
The Operation Status Enable and Questionable Status Enable Registers can be programmed
and queried to allow SCPI compatibility but have no effect on the Operation Status and
Questionable Status Registers.

Error/Event

Queue

The DIA maintains an Error/Event Queue as defined by SCPI. The queue holds up to 10 error
events. It is queried using the SYSTem:ERRor? command which reads in a First In/First Out
(FIFO) manner. The read operation removes the entry from the queue. The *CLS command
will clear all entries from the queue.

The following error codes are defined in the SCPI 1995.0 specification and are supported by the
DIA. Error codes are in the range of [-32768, 32767]. SCPI reserves the negative error codes
and 0, while error codes greater than 0 are device specific errors.

M550292-03 (Programming)

3-3