B.121 status:questionable:enable command, Figure b-10. using status commands and queries, B.121 – KEPCO BOP 1KW-MG Operator Manual, Firmware Ver.4.08 to 4.11 User Manual

Page 186: Stat, B.121, b, Stat:ques:enab

Advertising
background image

B-32

BOP-1K 070212

B.121 STATus:QUEStionable:ENABle COMMAND

STAT:QUES:ENAB

Syntax:

Short Form: STAT:QUES:ENAB <int_value> Long Form: STATus:QUESionable:ENABle <int_value>

Description: Programs Questionable Condition Enable Register (see Table B-4).The Questionable Condition

Enable Register determines which conditions are allowed to set the Questionable Condition Register;
it is a mask for enabling

specific bits in the Questionable Event register that can cause the question-

able summary bit (bit 3) of the Status Byte register to be set. The questionable summary bit is the log-
ical OR of all the enabled bits in the Questionable Event register

.

Bit set to 1 = function enabled

(active, true); bit reset to 0 = function disabled (inactive, false)

.

(See example, Figure B-10.)

FIGURE B-10. USING STATUS COMMANDS AND QUERIES

NOTES: 1. The power supply is assumed to be operating in constant voltage (CV) mode.

2 Examples below are intended only to illustrate command functions. Refer to PAR. 3.5.2 for

programming techniques to optimize performance.

OUTP:ON

Sets output on.

STAT:PRES

Operation Condition and Questionable Condition registers are
reset.

*CLS

Resets Enable Amplifier

STAT:QUES:ENAB 12228

Allows latching of CE and VE bits

STAT:OPER:ENAB 1280

Mask enabled for CC and CV bits.

STAT:OPER:ENAB?

Returns 1280 (256 + 1024) (CC and CV bits set).

INIT:CONT ON

Continuous triggers enabled.

STAT:OPER:COND?

Power supply returns 256 to indicate that power
supply is in constant voltage mode.

FUNC:MODE:CURR

Commands power supply to current mode.

STAT:OPER?

Returns 1024, indicating that since the last reading
of the Operation Event Register the power supply has entered
Constant Current mode.

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

SYST:ERR?

Power supply returns 0,“No error” message.

*RST;:VOLT 5;CURR 1;OUTP ON

The BOP is in Voltage mode and delivering 5 Volts

*ESR?

Bop returns a 0 - all functions are normal

FUNC:MODE CURR

BOP is in Current mode

*ESR?;STAT:QUES:COND?

BOP returns 8;4097 - Current error.

*ESR?;STAT:QUES?

BOP returns 0;4096 - no new errors, Current Error

*ESR?;STAT:QUES?

BOP returns 0;0 - no new errors

MEAS:CURR?;VOLT?

BOP returns 1.0E-4;5.00003E0 - Voltage is 5 volts

STAT:QUES:COND?

BOP returns 4097 - error still in effect
Short is applied to the BOP

*ESR?:STAT:QUES:COND?

BOP returns 0;1 - Current mode is selected

MEAS:VOLT?;CURR?

BOP returns.1E-4;1.00003E0 - Current is 1 amperes

FUNC:MODE VOLT;*ESR?

BOP switches mode, returns 3 - settling

*ESR?:;STAT:QUES?

BOP returns 8;8194

Short is removed from the BOP output

STAT:QUES:COND?

BOP returns 2, voltage mode operation OK.

Advertising