beautypg.com

2 operational status register, 3 questionable status register, 8 scpi program examples – KEPCO BOP 1KW-MG Operator Manual, Firmware Ver.2.01 to 2.37 User Manual

Page 122: Operational status register -62, Questionable status register -62, Scpi program examples -62

background image

3-62

BOP HIPWR 022108

3.6.7.2

OPERATIONAL STATUS REGISTER

The OPERational condition register contains conditions which are a part of the instrument’s nor-
mal operation. The definition of each of these bits (condition register) is as follows:

• 1 through 7 - Not Used — always zero.

• 8 - Constant Voltage — 1 indicates the instrument is in constant voltage mode.

• 9 - Not Used — always zero.

• 10 - Constant Current — 1 indicates the instrument is in constant current mode.

• 11 through15 - Not Used — always zero.

3.6.7.3

QUESTIONABLE STATUS REGISTER

The QUEStionable condition register (see Figure 3-20) contains status bits representing
data/signals which give an indication of the quality of various aspects of the signal.

A bit set in the QUEStionable condition register indicates that the data currently being acquired
or generated is of questionable quality due to some condition affecting the parameter associ-
ated with that bit.

• 0 - Voltage Mode — 1 indicates the instrument is in Voltage mode.

• 1 - Current Mode — 1 indicates the Power Supply is in Current mode. Changes in this bit

do not affect the event register.

• 2 - Not Used — always zero.

• 3 - Thermal Error — 1 indicates a thermal error has been detected.

• 4 - 11 - Not Used — always zero.

• 12 - Voltage Error — 1 indicates an error has been detected in Voltage mode.

• 13 - Current Error — 1 indicates an error has been detected in Current mode.

• 14 - 15 Not Used — always zero.

3.6.8

SCPI PROGRAM EXAMPLES

Refer to Appendix B, Figures B-1 through B-6 for examples illustrating the use of SCPI com-
mands.

Figure 3-21 is an example of a program using SCPI commands to program the BOP Power
Supply. The program illustrated is for a configuration using an IBM PC or compatible with a
National Instruments GPIB interface card. (It will be necessary to consult the manufacturer’s
data to achieve comparable functions with an interface card from a different manufacturer.) This
program sets output voltage (Voltage mode) or voltage limit (Current mode) to 5V, and current
limit (Voltage mode) or output current (Current mode) to 1A, then reads the measured (actual)
voltage and current, then prints the measurements.