beautypg.com

A.14 *sre? — service request enable query, A.15 *stb? — status byte register query, A.16 *trg — trigger command – KEPCO KLP Series Developers Guide, Rev 3 User Manual

Page 106: A.17 *tst? — self test query, A.18 *wai — wait command, A.14, A.15, A.16, A.17, A.18

background image

A-6

KLP 041213

A.14 *SRE? — SERVICE REQUEST ENABLE QUERY

*SRE?

Syntax:

*SRE?

Response: = value from 0 - 255 per Table A-3.

Description: Reads the Service Enable Register. Used to determine which events of the Status Byte Register are

programmed to cause the power supply to generate a service request (1 = set = function enabled, 0 =
reset = function disabled). Related Commands: *SRE, *STB? (See example, Figure A-1.)

A.15 *STB? — STATUS BYTE REGISTER QUERY

*STB?

Syntax:

*STB?

Response: value from 0 to 255 per Table A-3.

Description: Reads Status Byte Register without clearing it. This Query reads the Status Byte Register (bit 6 =

MSS) without clearing it (1 = set = function enabled, 0 = reset = function disabled). The register is
cleared only when subsequent action clears all set bits. MSS is set when the power supply has one or
more reasons for requesting service. (A serial poll also reads the Status Byte Register, except that bit
6 = RQS, not MSS; and RQS will be reset.) Related Commands: *SRE, *SRE?. (See example, Figure
A-1.)

A.16 *TRG — TRIGGER COMMAND

*TRG

Syntax:

*TRG

Description: Triggers the power supply to be commanded to preprogrammed values of output current and

voltage. When the trigger is armed (checked by examining WTG bit in Status Operational Condition
register) and TRIG:SOUR BUS is sent, *TRG generates a trigger signal. The trigger will change the
output of the power supply to the output voltage and current levels specified by VOLT:TRIG and
CURR:TRIG commands and clear the WTG bit in the Status Operation

Condition register. If

INIT:CONT ON has been issued, the trigger subsystem is immediately rearmed for subse-

quent triggers, and the WTG bit is again set to 1. *TRG or GET are both addressed com-

mands (only devices selected as listeners will execute the command).

Related Commands:

ABOR, INIT, TRIG, CURR:TRIG, VOLT:TRIG.

(See example, Figure B-1.

)

A.17 *TST? — SELF TEST QUERY

*TST?

Syntax:

*TST?

Returned value: 0 or 1 (0 = pass test, 1 = fail test)

Description:

Power Supply test.This query causes the power supply to do a self test and provide the controller
with pass/fail results. A cyclic redundancy check (CRC) is performed on non-volatile RAM. A “1” is
returned if there is an error.

A.18 *WAI — WAIT COMMAND

*WAI

Syntax:

*WAI

Description: Causes the power supply to wait until all previously issued commands and queries are com-

plete before executing subsequent commands or queries. This command can be used to guaran-
tee sequential execution of commands and queries. When all pending operations are complete (all
previous commands have been executed, changes in output level have been completed), the WAI
command is completed and execution of subsequent commands can continue. NOTE: *WAI is a no-
operation for KLP.

TABLE A-3. SERVICE REQUEST ENABLE AND STATUS BYTE REGISTER BITS

CONDITION

OPER

MSS
RQS

ESB

MAV

QUES

ERR
QUE

LIST
RUN

NU

BIT

7

6

5

4

3

2

1

0

VALUE

128

64

32

16

8

4

2

1

OPER Operation

Status

Summary

MSS

Master Status Summary

RQS

Request for Service

ESB

Event Status Byte summary

MAV

Message available

QUES

QUEStionable Status Summary

ERR QUE

1 or more errors occurred (see
PAR. B.92)

LIST RUN 1 when list is running.
NU

(Not Used)