beautypg.com

2 status byte register set, 3 standard event status register set, Status byte register set -6 – KEPCO KLP Series Developers Guide, Rev 3 User Manual

Page 16: Standard event status register set -6

background image

1-6

KLP-DEV 041213

When the service request is executed, the STB register bits are read: bit 3 set indicates Ques-
tionable Status; bit 2 set indicates the error/event queue is not empty; bit 4 set indicates that a
message is available in the output buffer. bit 5 set indicates event status; bit 7 set indicates
operation status. The host computer program might then issue a query to read one of the indi-
cated register set.

Reading an Event or Condition register clears all of the bits found in that register. Event register
contents are also cleared when the *CLS command is received. Condition register bits are only
cleared when the corresponding condition is not present.

1.2.7.2

STATUS BYTE REGISTER SET

The Status Byte register set is comprised of the Status Byte (STB) and the Service Request
Enable (SRE) registers. The STB register is read by issuing the *STB? query (see Appendix A,
PAR. A.15). The SRE register is read using the *SRE? query (see Appendix A, PAR. A.14) and
modified using the *SRE command (see Appendix A,.PAR. A.13), except that bit 6 (request for
service) of STB is not masked by SRE.

• 0 - Not Used - always 0.

• 1 - LIST Running - 1 indicates that a LIST sequence is presently running. Read (and

clear) Operation Event register using STAT:OPER?

• 2 - Error Queue — 1 indicates error queue is not empty. Read error queue using

SYST:ERR?

• 3 - Questionable Status Summary — 1 indicates a Questionable Status register bit has

been set (see Appendix B, Table B-5 for details). Read (and clear) Questionable Event
register using STAT:QUES?.

• 4 - Message Available — 1 indicates a message is waiting in the output buffer.

• 5 - Event Status Summary — 1 indicates an Event Status register bit has been set. Read

(and clear) Questionable Event register using *ESR?.

• 6 - Service Request — Either RQS (Request for Service) or MSS (Master Status Sum-

mary (see Appendix A, PAR. A.13 for details).

• 7 - Operation Status Summary — 1 indicates an Operation Status register bit has been

set (see Appendix B, Table B-5 for details). Read (and clear) Operation Event register
using STAT:OPER?.

1.2.7.3

STANDARD EVENT STATUS REGISTER SET

The Standard Event Status register set is comprised of the Event Status (ESR) and Event Sta-
tus Enable (ESE) registers. The ESR register is read by issuing the *ESR? Query (see Appen-
dix A, PAR. A.5). The ESE register is read using the *ESE? query (see Appendix A, PAR. A.4)
and modified using the *ESE command (see Appendix A, PAR. A.3).

• 0 - Operation complete — 1 indicates the operation is complete and the unit is ready to

accept another command, or that query results are ready to be transferred.

• 1 - Request Control — Not used (always zero).

• 2 - Query Error — 1 indicates a query error has occurred (see Appendix B, Table B-5 for

details).

• 3 - Device Dependent Error — 1 indicates device dependent error has occurred (see

Appendix B, Table B-5 for details).