Opc; Esr; Rst; Tst - API 8512 Series Operation & Installation Manual

Programmable switch units
Table of Contents

Advertisement

*OPC

Function:
generate operation complete message
Syntax:
*OPC
Argument(s): none
Remarks:
The Operation Complete command generates an operation complete message in the Standard
Event Status Register when all pending operations have been finished.
Return Value: none
Example(s):
*CLS;*OPC
*OPC?
Function:
Operation complete query
Syntax:
*OPC?
Argument(s): none
Remarks:
This function loads a '1' into the output queue when the Program Message Unit is executed. Its
primary use is to provide an indication of command completion by including the command as the
last one in a series of commands. It can be useful to synchronize operation and to prevent input
buffer overflow.
Return Value: 1
Example(s):
CMD1 1; CMD2 2; *OPC?
1
and executed

*ESR?

Function:
Event Status Register query
Syntax:
*ESR?
Argument(s): none
Remarks:
This function reads the 488.2 Event Status Register. Reading the register also clears it.
int8
Return Value:
Example(s):
*ESR?
32

*RST

Function:
Performs a device application level reset.
Syntax:
*RST
Argument(s): none
Remarks:
This function is used to reset the device application settings. For a full device reset, see the
REBOOT command.
Return Value: none
Example(s):
*RST

*TST?

Function:
Self-test query
Syntax:
*TST?
Argument(s): none
Remarks:
This function performs an internal self-test. Upon completion, the results of the test are loaded
into the output queue.
testresults
Return Value:
Example(s):
*TST?
0
Command Operation
integer constant
// sends a '1' response when the three commands have been parsed
integer
// indicates a Command Error
integer
'0' indicates test passed. Non-zero indicates test failed.
// returns a '0' when the test completes successfully.
command completed
status register
MANUAL IM635
Page 21

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 8512 Series and is the answer not in the manual?

Related Products for API 8512 Series

Table of Contents