Ieee 488.2 common command introduction, 1 chdr, 2 opc – B&K Precision 4052-4055 - Programming Manual User Manual

Page 8

Advertising
background image

4

1.3. IEEE 488.2 Common Command Introduction

IEEE standard defines the common commands used for querying the basic information of the
instrument or executing basic operations. These commands usually start with "*" and the length of
the keywords of the command is usually 3 characters.

1.3.1 CHDR

DESCRIPTION This Command is used to change query command return format.

SHORT parameter is return short format. LONG parameter is return long

format. Off is that command header and parameter unit will not return.


COMMAND SYNTAX Comm_HeaDeR <parameter>

<parameter>:= {SHORT,LONG,OFF}


QUERY SYNTAX

Comm_HeaDeR?


RESPONSE FORMAT

SYNC <parameter>


EXAMPLE 1

Set query command format to long.

CHDR LONG

EXAMPLE 2 Read query command format.

CHDR?

return:

COMM_HEADER LONG

1.3.2 OPC

DESCRIPTION The *OPC (OPeration Complete) command sets to true the OPC bit (bit 0)

in the standard Event Status Register (ESR).
The *OPC? query always responds with the ASCII character 1 because
the device only responds to the query when the
previous command has been entirely executed.


QUERY SYNTAX

*OPC?


RESPONSE FORMAT

*OPC 1

Advertising