Status Byte - YOKOGAWA WT200 User Manual

Digital power meter
Table of Contents

Advertisement

14.4 Status Report
Overview of Registers and Queues
Name
Function

Status byte

Service request Masks status byte.
enable register
Standard event Event in the
register
instrument (1)
Standard event Masks standard
enable register
event register.
Extended event Event in the
register
instrument (2)
Extended event Masks extended
enable register
event register.
Condition
Current instrument
register
status
Transition
Extended event
filter
occurrence conditions <x>
Output queue
Stores response
message to a query.
Error queue
Stores error Nos.
and messages.
Registers and Queues which Affect the Status Byte
Registers which affect each bit of the status byte are
shown below.
Standard event register: Sets bit 5 (ESB) of status byte to "1" or "0".
Output queue:
Sets bit 4 (MAV) of status byte to "1" or "0".
Extended event register: Sets bit 3 (EES) of status byte to "1" or "0".
Error queue:
Sets bit 2 (EAV) of status byte to "1" or "0".
Enable Registers
Registers which mask a bit so that the bit does not
affect the status byte, even if the bit is set to "
shown below.
Status byte:
Masks bits using the service request enable register.
Standard event register: Masks bits using the standard event enable register.
Extended event register: Masks bits using the extended event enable register.
Writing/Reading from Registers
The
*ESE
command is used to set bits in the standard
event enable register to "
is used to check whether bits in that register are set to
"
1
" or "
0
". For details of these commands, see section
14.3.
14-42
Writing
Reading
Serial poll (RQS),
*STB?
(MSS)
*SRE
*SRE?
*ESR?
*ESE
*ESE?
STATus:EESR?
STATus:EESE
STATus:EESE?
STATus:CONDition?
STATus:FILTer
STATus:FILTer
<x>
All executable queues
STATus:ERRor?
1
", are
" or "
", and the
1
0
*ESR?
14.4.2 Status Byte
Overview of Status Byte
7
Bits 0, 1 and 7
Not used (always "
Bit 2 EAV (Error Available)
Set to "
1
" when the error queue is not empty, i.e. when
an error occurs. For details, see page 14-45.
Bit 3 EES (Extended Event Summary Bit)
Set to "
1
" when a logical AND of the extended event
register and the corresponding enable register is "
i.e. when an event takes place in the instrument. See
page 14-44.
Bit 4 MAV (Message Available)
Set to "
1
" when the output queue is not empty, i.e.
when there is data which is to be output when an
inquiry is made. See page 14-45.
Bit 5 ESB (Event Summary Bit)
Set to "
1
" when a logical AND of the standard event
register and the corresponding enable register is "
i.e. when an event takes place in the instrument. See
page 14-43.
Bit 6 RQS (Request Status)/MSS (Master Summary
Status )
MSS is set to "
(except for bit 6) and the service request enable
register is not "
requesting service from the controller.
RQS is set to "
query
and is cleared when a serial poll is performed or when
MSS changes to "
Bit Masking
To mask a bit in the status byte so that it does not
cause an SRQ, set the corresponding bit of the service
request enable register to "
For example, to mask bit 2 (EAV) so that no service
will be requested, even if an error occurs, set bit 2 of
the service request enable register to "
done using the
each bit of the service request enable register is "
"
0
", use
*SRE?
section 14.3.
RQS
6 ESB MAV EES EAV 1
MSS
0
")
1
" when a logical AND of the status byte
", i.e. when the instrument is
0
1
" when MSS changes from "
0
".
0
".
*SRE
command. To query whether
. For details of the
*SRE
0
1
",
",
1
0
" to "
1
",
0
". This can be
" or
1
command, see
IM 253421-01E

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents