IEEE 488.2 Standard Commands


Clear the status byte and associated queues

Syntax

(Command)


*CLS

Details

This command clears the event register
associated with each bit of the status byte register.
It also clears the status byte register.

Example

*CLS

Note

Because it does not clear the output queue,
it has no effect on bit 4 (MAV) of the status byte.

Usage
Conditions

-




Set or query SESER

Syntax

(Command)

(Query)


*ESE A

*ESE?

(Response)

A<NR1>

A = 0 to 255

Details

Sets the mask pattern of the SESER (Standard event status enable register)
to a value from 0 to 255.

Values outside of this range cause an execution error.

Example

*ESE 36 (Bit 5 and bit 2 of the SESER are set.)
*ESE?
(Response)  *ESE 36  (when headers are enabled)

Note

The initial (power-on) value is 0.
This command doesn't affect on *ESR? command, but affects on *STB? command.
Please reffer to status byte and event regsters.

Usage
Conditions

-




Query and clear SESR

Syntax

(Query)


*ESR?

(Response)

A<NR1>

A = 0 to 255

Details

Reads and clears the contents of the standard event status register (SESR).
The contents of the SESR are returned.

Example

*ESR?
(Response)  *ESR 0  (when headers are enabled)

Note

-

Usage
Conditions

-




Query device ID

Syntax

(Query)


*IDN?

(Response)

A$,B$,C$,D$

A$ = Manufacturer's name
B$ = Model name
C$ = Serial number
D$ = Software version

Details

Query device ID.

Example

*IDN?
(Response)  *IDN HIOKI,MR8740,123456789,V1.00  (when headers are enabled)

Note

-

Usage
Conditions

-




Set the LSB of SESR when finished processing or return an ASCII 1 when finished processing

Syntax

(Command)

(Query)


*OPC

*OPC?

(Response)

A<NR1>

Details

*OPC Sets the LSB (bit 0) of SESR (the standard event status register) after all commands finish executing.
*OPC? returns ASCII code 1 when execution of the command preceding the *OPC command finishes.

Example

:START;:STOP;*OPC?
(Response)  *OPC 1  (when headers are enabled)

Note

-

Usage
Conditions

-




Query device option provision

Syntax

(Query)


*OPT?

(Response)

[When using MR8740 compatibility mode]
A1,A2,A3,...,A27<NR1>

0: not present
1: 8966 ANALOG UNIT
2: 8971 CURRENT UNIT
4: 8967 TEMP UNIT
5: 8968 HIGH RESOLUTION UNIT
6: 8969 STRAIN UNIT
7: 8970 FREQ UNIT
8: 8972 DC/RMS UNIT
9: 8973 LOGIC UNIT
11: U8974 HIGH VOLTAGE UNIT
12: MR8990 DIGITAL VOLTMETER UNIT
13: U8975 4CH ANALOG UNIT
14: U8991 DIGITAL VOLTMETER UNIT
16: U8977 3CH CURRENT UNIT
17: U8978 4CH ANALOG UNIT
18: U8979 CHARGE UNIT
32: MR8790 WAVEFORM GENERATOR UNIT
33: MR8791 PULSE GENERATOR UNIT
36: U8794 VIR GENERATOR UNIT

[When using MR6000 compatibility mode]
A1$,A2$,A3$,...,A27$

Ax$ = Model name ("NONE": Unit is not present)

Details

Returned values indicate which input modules are present.

Example

*OPT?
(Response)  *OPT 1,4,5,...,12  (when headers are enabled)

Note

-

Usage
Conditions

-




Initialize instrument settings

Syntax

(Command)


*RST

Details

Initializes the instrument (same as System Reset).
This command does not initialize communication settings.

Example

*RST

Note

-

Usage
Conditions

-




Read the STB

Syntax

(Query)


*STB?

(Response)

A<NR1>

A = 0 to 255

Details

Reads the status byte.

Example

*STB?
(Response)  *STB? 128  (when headers are enabled)

Note

-

Usage
Conditions

-




Query the result of a memory check

Syntax

(Query)


*TST?

(Response)

A<NR1>

A = 0, 1

Details

Query the result of a memory check

0  Normal
1  Abnormal

Example

*TST?
(Response)  *TST 0  (when headers are enabled)

Note

It takes about several minutes for the response result to be returned.

Usage
Conditions

-




Execute the following command when finished processing

Syntax

(Command)


*WAI

Details

Inhibits execution of subsequent commands until previous commands finish executing.

Example

:START;:STOP;*WAI;*IDN?

Note

-

Usage
Conditions

-