beautypg.com

B.72 status:operation[:event] query, B.73 status:preset command, Figure b-7. using status commands and queries – KEPCO ABC-DM SERIES User Manual

Page 87: B.72, B.73, Stat:oper, Stat:pres

background image

ABC 040104

B-17

B.72

STATus:OPERation[:EVENt]

QUERY

STAT:OPER?

Syntax:

Short Form: STAT:OPER[:EVEN]?

Long Form: STATus:OPERation[:EVENt]?

Return Value: 0 to 1313 (1 + 32 + 256 + 1024).

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-7.)

B.73

STATus:PRESet

COMMAND

STAT:PRES

Syntax:

Short Form: STAT:PRES

Long Form: STATus:PRESet

Description: Disables reporting of all status events. This command sets all bits of the Operation Condition

(Table B-2) and Questionable Condition Registers to 0, preventing all status events from being
reported. (See example, Figure B-7.)

FIGURE B-7. USING STATUS COMMANDS AND QUERIES

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

STAT:OPER:ENAB 1056Mask 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).
CURR:PROT:CLE

Overcurrent condition cleared.

STAT:QUES:COND? Returns 0, (register cleared by CURR:PROT:CLE).
SYST:ERR?

Power supply returns 0,“No error” message.