Figure b-6. using status commands and queries, B.61 status:operation:enable? query, B.62 status:operation[:event] query – KEPCO BHK-MG 40W (Half Rack) Series User Manual
Page 141: B.63 status:preset command, B.61, Stat, B.62, B.63, Stat:oper:enab, Stat:oper

BHK-MG 1/2 (OPR) 121313
B-15
FIGURE B-6. USING STATUS COMMANDS AND QUERIES
B.61 STATus:OPERation:ENABle? QUERY
STAT:OPER:ENAB?
Syntax:
Short Form: STAT:OPER:ENAB?
Long Form: STATus:OPERation:ENABle?
Return Value:
Description: Reads Operation Enable Register (see Table B-2). Returns value of Operation Enable Register bits.
Bit set to 1 = function enabled (active, true); bit reset to 0 = function disabled (inactive, false). (See
example, Figure B-6.)
B.62 STATus:OPERation[:EVENt] QUERY
STAT:OPER?
Syntax:
Short Form: STAT:OPER[:EVEN]?
Long Form: STATus:OPERation[:EVENt]?
Return Value:
Description: Indicates changes in conditions monitored by Operational Event Register. Returns the value of
the Operation Event register. The Operation Event register is a read-only register which holds
(latches) all events that occur. Reading the Operation Event register clears it. (See example, Figure B-
6.)
B.63 STATus:PRESet COMMAND
STAT:PRES
Syntax:
Short Form: STAT:PRES
Long Form: STATus:PRESet
Description: Presets the Status Questionable Enable register. This command sets all bits of the Operation
Enable (PAR. B.60) and Questionable Enable (Table B-3) Registers to 0, preventing all status events
from being reported. (See example, Figure B-6.)
NOTE:The power supply is assumed to be operating in CV (constant voltage) mode.
OUTP ON
Output Enabled.
VOLT 3;CURR 1E-2
Program output to 3V, 0.01A
STAT:OPER:ENAB 1056 Mask enabled for CC, WTG and bits.
STAT:OPER:ENAB?
Returns 1056 (32 + 1024) (CC, WTG bits set).
STAT:QUES:ENAB 3
Mask enabled for OV and OC bits (1 + 2).
STAT:QUES:ENAB?
Returns 3 (1 + 2) indicating OV and OC bits are enabled.
STAT:PRES
Operation Condition Enable and Questionable Condition Enable
registers are preset.
INIT:CONT ON
Continuous triggers enabled.
STAT:OPER:COND?
Power supply returns 288 (256 + 32) to indicate that power
supply is constant voltage mode and Wait For Trigger is true.
--- OUTPUT MOMENTARILY SHORTED.
STAT:OPER?
Returns 1312, e.g., indicating that since the last reading of the
Operation Event Register the power supply has entered
Constant Current mode, the Wait Trigger was set.
STAT:OPER?
Returns 0 indicating no changes since previous reading of the
Operation Event register.
STAT:QUES?
Returns 0 (no questionable conditions occurred since previous
reading
--- OVERTEMPERATURE CONDITION OCCURS.
STAT:QUES?
Returns 8 (overtemperature condition tripped since the last
STAT:QUES? query).
STAT:QUES:COND?
Returns 8, (Power supply still in overtemperature condition).
STAT:QUES?
Returns 0, (Power supply no longer in overtemperature
condition).
STAT:QUES:COND?
Returns 8, (Power supply still in overtemperature state).
SYST:ERR?
Power supply returns 0,“No error” message.