Specifications

RIGOL Chapter 1 Programming Overview
1-8 M300 Programming Guide
SCPI Status System
This chapter introduces the SCPI status system of M300.
M300 status system is shown in Figure 1-2. The five register groups are used to record a variety of
conditions and status of the instrument. Each register group contains multiple underlying registers
(condition register, event register and enable register).
Condition register
The condition register monitors the instrument status continuously and the status of each bit is
updated in real time. The condition register is read-only and the bits will not be cleared when you read
the register. It returns a decimal value corresponding to the sum of the binary weights of all the bits in
the register when you query the condition register.
Event register
The event register latches the various events from the condition register. If the bit corresponding to an
event is set to 1, the subsequent events will be ignored. The event register is read-only. Once a bit is
set to 1, it remains set until cleared by a query command (such as
*ESR?) or the *CLS command. It
returns a decimal value corresponding to the sum of the binary weights of all the bits in the register
when you query the event register.
Enable register
The enable register defines whether to report the event in the event register to the status byte register
group or not. The enable register could be read and written. You can use the
STATus:PRESet command
to clear all the bits in the enable register and use the *PSC
1 command to configure the instrument to
clear all the bits in the enable register at power-on. To enable the bits in the enable register, write a
decimal value corresponding to the sum of the binary weights of all the bits in the enable register.
The Status Byte Register
The status byte register group reports the events from other register groups. For example, the system
error is reported to bit2 (Error generate). Clearing the event register of the relative register group will
clear the corresponding bits in the condition register of the status byte register group. For example,
clearing the error queue will clear bit2 (Error generate) in the condition register of the status byte
register group. The bit definitions of the status byte register are as follws.
Bit
Weight
Name
7
128
Operation
Status Summary
(the bits must be enabled, refer to the
6
64
Master
Summary
5
32
Standard Event
Status Summary
register (the bits must be enabled, refer to the *ESE
4
16
Message
Available
3
8
Questionable
Status Summary
(the bits must be enabled, refer to the
2
4
Error Queue
1
2
Alarm Summary
must be enabled, refer to the STATus:ALARm:ENABle
0
Not Used
Not Used
The status byte condition register is cleared when:
Send the
*CLS command.