beautypg.com

Figure b-5. using status commands and queries, B.28 status:questionable[:event]? query, B.29 status:questionable:condition? query – KEPCO MBT Series User Manual

Page 140: B.28, Stat, B.29, Stat:ques, Stat:ques:cond

background image

B-8

MBTSVC 111609

FIGURE B-5. USING STATUS COMMANDS AND QUERIES

B.28 STATus:QUEStionable[:EVENt]? QUERY

STAT:QUES?

Syntax:

Short Form: STAT:QUES[EVEN]?

Long Form: STATus:QUEStionable[EVENT]?

Return Value: actual register value

Description: Indicates questionable events that occurred since previous STAT:QUES? query. Returns the

value of the Questionable Event register (see Table B-3). The Questionable Event register is a
read-only register which holds (latches) all events. Reading the Questionable Event register clears it.
(See example, Figure B-5.)

B.29 STATus:QUEStionable:CONDition? QUERY

STAT:QUES:COND?

Syntax:

Short Form: STAT:QUES:COND?

Long Form: STATus:QUEStionable:CONDition?

Return Value: actual register value

Description: Returns the value of the Questionable Condition Register (see Table B-3). The Questionable

Condition Register contains unlatched real-time information about questionable conditions of the
power supply. Bit set to 1 = condition (active, true); bit reset to 0 = condition (inactive, false). (See
example, Figure B-5.)

NOTE: The selected power supply is assumed to be operating in cV (constant voltage) mode.

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 and Questionable Condition registers are
reset.

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.

STAT:OPER?

Returns 1057, 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

--- OVERCURRENT CONDITION OCCURS

STAT:QUES?

Returns 2 (overcurrent protection tripped since the last
STAT:QUES? query).

STAT:QUES:COND?

Returns 2, (Power supply still in overcurrent protection state).

STAT:QUES?

Returns 0, (Register cleared by previous STAT:QUES?).

STAT:QUES:COND?

Returns 2, (Power supply still in overcurrent protection state).

SYST:ERR?

Power supply returns 0,“No error” message.

INST:SEL 1

Select instrument 1

STAT:QUES?

MBT responds 4 indicating instrument 1 in current mode

INST:SEL 2

Select instrument 2

STAT:QUES?

MBT responds 8 indicating instrument 2 in voltage mode

STAT:QUES:INST:ISUM1?

MBT responds 4 indicating instrument 1 in current mode

STAT:QUES:INST:ISUM2?

MBT responds 8 indicating instrument 2 in voltage mode