![API 8512 Series Скачать руководство пользователя страница 22](http://html.mh-extra.com/html/api/8512-series/8512-series_operation-and-installation-manual_2953475022.webp)
MANUAL IM635
Command Operation
Page 22
*SRE
Function:
Sets the Service Request Enable Register
Syntax:
*SRE
mask
Argument(s):
mask
byte, 0-255
Remarks:
This command sets the Service Request Enable Register. The mask parameter represents the bit
values of the register, where a bit value of one indicates an enabled condition and a bit value of
zero indicates a disabled condition.
Return Value: none
Example(s):
*SRE 255
// enable all bits
*SRE?
Function:
Read the Service Request Enable Register
Syntax:
*SRE?
Argument(s): none
Remarks:
This query returns the contents of the Service Request Enable Register.
Return Value: byte, 0-255
Example(s):
*SRE?
255
// SRE register
*ESE
Function:
Sets the Event Status Enable Register
Syntax:
*ESE
mask
Argument(s):
mask
byte, 0-255
Remarks:
This command sets the Event Status Enable Register. The mask parameter represents the bit
values of the register, where a bit value of one indicates an enabled condition and a bit value of
zero indicates a disabled condition.
Return Value: none
Example(s):
*ESE 255
// enable all bits
*ESE?
Function:
Read the Event Status Enable Register
Syntax:
*ESE?
Argument(s): none
Remarks:
This query returns the contents of the Event Status Enable Register.
Return Value: byte, 0-255
Example(s):
*ESE?
255
// ESE register
ERR?
Function:
Read the Error Queue
Syntax:
ERR?
SYST:ERR?
Argument(s): none
Remarks:
This function returns the last entry in the error status queue, and a string description of the error
code. Repeating the command will return the next entry, until the error queue is empty and
returns a zero. The error queue may be cleared via the *CLS command. Note that when using
the command-line interface the Error Queue contents are automatically displayed after each
command prior to issuing the CLI prompt.
Return Value: error number, "error description"
Example(s):
ERR?
101, "invalid command"