Message Format
Output Queue and Input Buffer
Status Byte Register
Event Registers
Measurement Value Formats
Initialization Items
Command Execution Time
Errors During Communications
2 Message List .......................................................................................................................................... 17
) BIN ............................................................................................................................................... 46
(15) Hold ............................................................................................................................................. 49
In this publication, items relevant only to the DM7275-01, DM7275-02, DM7275-03, DM7276-01, DM7276-02, and
DM7276-03 are indicated as “the instrument.”
If the communication monitoring function is used at the time of program creation, commands and responses will be
conveniently displayed on the measurement screen. For information on the communication monitoring function, see
the instruction manual of the instruments.
Various messages are supported for controlling the instrument through the interfaces.
Messages can be either program messages, sent from the controller such as PC to the instrument, or response
messages, sent from the instrument to the controller.
Response Messages
Message types are further categorized as follows.
When issuing commands that contain data, make sure that the data is provided in the specified format.
Message Format
Program Messages
Program messages can be either Command Messages or Query Messages.
(1) Command Messages
Instructions to control the instrument, such as to change settings or reset
Example: (instruction to set the measurement range)
:VOLTAGE:DC:RANGE 100
Header portion
Space Data portion
(2) Query Messages
Requests for responses relating to results of operation or
measurement, or the state of instrument settings
Example: (request for the current measurement range)
When a query message is received, its syntax is checked and a response message is generated.
If an error occurs when a query message is received, no response message is generated for that query.
Command Syntax
Command names are chosen to mnemonically represent their function, and can be abbreviated. The full
command name is called the “long form”, and the abbreviated name is called the “short form”.
The command references in this manual indicate the short form in upper-case letters, extended to the long form in
lower case letters, although the commands are not case-sensitive in actual usage.
FETCH?
FETC?
FET?
Response messages generated by the instrument are in long form and in upper case letters.
OK (long form)
OK (short form)
Error
Headers
Headers must always be prefixed to program messages.
(1)Command Program Headers
There are three types of commands: Simple, Compound and Standard.
• Headers for Simple Commands
This header type is a sequence of letters and digits
:ABORt
• Headers for Compound Commands
These headers consist of multiple simple command type headers separated by colons “:”
:VOLTage:DC:RANGe
• Headers for Standard Commands
This header type begins with an asterisk “*”, indicating that it is a standard command defined by IEEE 488.2.
RST
(2) Query Program Header
These commands are used to interrogate the instrument about the results of operations, measured values and
the current states of instrument settings.
As shown by the following examples, a query is formed by appending a question mark “?” after a program
header.
:FETCh?
VOLTage:DC:RANGe?
Characters within square brackets [ ] may be omitted.
[:SENSe:]VOLTage:DC:RANGe
Either form is valid.
:SENSe:VOLTage:DC:RANGe
VOLTage:DC:RANGe
3
Message Terminators
This instrument recognizes the following message terminators (delimiters).
[RS-232C/USB/LAN]
• CR
• CR+LF
[GP-IB]
• LF
• CR+LF
• EOI
• LF with EOI
Depending on the instrument’s interface settings, the following can be selected as the terminator for response
messages.
For information on settings, see “Delimiter Setting” (p.58).
[RS-232C/USB/LAN]
• CR+LF
[GP-IB]
• LF with EOI (default setting)
• CR+LF with EOI
Separators
(1) Message Unit Separator
Multiple messages can be written in one line by separating them with semicolons “;”.
:VOLTAGE:DC:RANGE 10;∗IDN?
• When messages are combined in this way and if one command contains an error, all subsequent messages up
to the next terminator will be ignored.
(2) Header Separator
In a message consisting of both a header and data, the header is separated from the data by a space “ ” (ASCII
code 20H).
:VOLTAGE:DC:RANGE 10
(3) Data Separator
In a message containing multiple data items, commas are required to separate the data items from one another.
:SYSTEM:DATE 15,1,1
4
Ω
@
°C
$
Data Formats
The instrument uses character data, decimal numeric data and character string data depending on the command.
(1) Character Data
Character data always begins with an alphabetic character, and subsequent characters may be either
alphabetic or numeric. Character data is not case-sensitive, although response messages from the instrument
are only upper case. When the command data portion contains <1/0/ON/OFF>, the operation will be similar to
when 0 is OFF and 1 is ON.
:VOLTAGE:DC:RANGE:AUTO OFF
(2) Decimal Numeric Data
Three formats are used for numeric data, identified as NR1, NR2, and NR3. Numeric values may be signed or
unsigned. Unsigned numeric values are handled as positive values. Values exceeding the precision handled by
the instrument are rounded to the nearest valid digit.
• NR1 Integer data (e.g.: +12, -23, 34)
• NR2 Fixed-point data (e.g.: +1.23, -23.45, 3.456)
• NR3 Floating-point exponential representation data (e.g.: +1.0E-2, -2.3E+4)
The term “NRf format” includes all three of the above numeric decimal formats.
The instrument accepts NRf format data. The format of response data is specified for each command, and the
data is sent in that format.
:STATus:OPERation:ENABle 49
:FETCH?
+102.20192E-03
(3) Character string data
• Character string data is enclosed by quotation marks.
• This type of data consists of 8-bit ASCII characters
• Characters that cannot be handled by the instrument cause an error.
• The following two characters are different for the instrument setting and communications setting. (Scaling Unit
and Label Display Function)
Instrument setting Communication setting
*Only Scaling Unit and
with remote command.
• As for quotation marks, the sender form the instrument uses double quotes (”) only, while the receiver receives
both double quotes and single quotes (’).
Label Display Function are supported. About other functions, Ω and °C cannot be set
:SYSTem:LABel “LABEL_01”
[GP-IB]
The instrument does not fully support IEEE 488.2. As much as possible, please use the data formats shown in
the Reference section.
5
Compound Command Header Omission
When several commands having a common header are combined to form a compound command
(e.g., :CALCulate:SCALe:PARameterA and :CALCulate:SCALe:PARameterB) if they are written together in
sequence, the common portion (here, :CALCulate:SCALe) can be omitted after its initial occurrence.
This common portion is called the “current path” (analogous to the path concept in computer file storage), and until it
is cleared, the interpretation of subsequent commands presumes that they share the same common portion.
This usage of the current path is shown in the following example:
This portion becomes the current path, and can be omitted from the messages immediately following.
The current path is cleared when the power is turned on, when reset by key input, by a colon “:” at the start of a
command, and when a message terminator is detected.
Standard command messages can be executed regardless of the current path. They have no effect upon the
current path.
A colon “:” is not required at the start of the header of a Simple or Compound command. However, to avoid
confusion with abbreviated forms and operating mistakes, we recommend always placing a colon at the start of a
header.
Output Queue and Input Buffer
Output Queue
Response messages are stored in the output queue until read by the controller. The output queue is also cleared
in the following circumstances:
• Power on
• Device clear [GP-IB]
• Query Error
Input Buffer
The input buffer capacity of the instrument is 256 bytes.
If 256 bytes are allowed to accumulate in this buffer so that it becomes full, the USB and GP-IB interface bus enters
the waiting state until space is cleared in the buffer.
The RS-232C interface may not process data beyond 256 bytes.
Note: Ensure that the no command ever exceeds 256 bytes.
6
bit7
bit6
bit5
bit4
bit3
bit2
bit1
bit0
SRQ
MSS
Logical
sum
bit7
bit6
bit5
bit4
bit3
bit2
bit1
bit0
Service Request
(SRER)
Standard Event Register Description
Error occurrence information
Service Request
SRQ occurrence
Output Queue data information
Standard Operation Register information
Status Query Register information
Status Byte Register
[GP-IB]
This instrument implements the status model defined by IEEE 488.2 with regard to the serial poll function using
the service request line. The term “event” refers to any occurrence that generates a service request.
ESB1
↓ ↑ ↓ ↓ ↓ ↓ ↓ ↓
&→
↑ ↑ ↑ ↑ ↑ ↑ ↑
ESB1 0
The Status Byte Register contains information about the event registers and the output queue.
selected from this information by masking with the Service Request Enable Register. When any bit selected by the
mask is set, bit 6 (MSS; the Master Summary Status) of the Status Byte Register is also set, which generates an
SRQ (Service Request) message and dispatches a service request.
ESB MAV ESB0 ERR Unused Unused
← & & & & & &
ESB MAV ESB0 ERR Unused Unused
Overview of Service Request Occurrence
Status Byte
Register (STB)
Enable Register
Required items are
Note: SRQ (Service Request) is a GP-IB function only.
However, STB (Status Byte Register) information can be acquired with RS-232C, USB or
LAN using the *STB? command.
STB (Status Byte Register) information can be acquired using the *STB? command.
[RS-232C/USB/LAN]
RS-232C/USB/LAN does not provide a function for issuing service requests. Still, SRER setup and STB reading
are available.
7
Event Status (logical sum) bit 1
This is the logical sum of the Standard Operation Register.
Set to 1 when a service re
This is the logical sum of the other bits of the Status Byte Register.
Standard Event Status (logical sum) bit
This is logical sum of the Standard Event Status Register.
Message available
Indicates that a me
Event Status (logical sum) bit 0
This is the logical sum of the Status Query Register.
Error bit
Set to 1 when error information is present.
Reset using :SYSTem.ERRor?to output error information.
Unused
Unused
Status Byte Register (STB)
During serial polling, the contents of the 8-bit Status Byte Register are sent from the instrument to the controller.
When any Status Byte Register bit enabled by the Service Request Enable Register has switched from 0 to 1, the
MSS bit becomes 1. Consequently, the SRQ bit is set to 1, and a service request is dispatched.
The SRQ bit is always synchronous with service requests, and is read and simultaneously cleared during serial
polling. Although the MSS bit is only read by an *STB?query, it is not cleared until a clear event is initiated by the
*CLS command.
Bit 7 ESB1
SRQ
Bit 6
MSS
Bit 5 ESB
Bit 4 MAV
Bit 3 ESB0
Bit 2 ERR
Bit 1
Bit 0
quest is dispatched.
ssage is present in the output queue.
Service Request Enable Register (SRER)
This register masks the Status Byte Register. Setting a bit of this register to 1 enables the corresponding bit of the
Status Byte Register to be used.
Returns bit status at the time of query receipt
rather than the held value.
Each bit is not cleared even if the query
result is returned.
When 1 is set for each bit, the status is held
until the query result is returned.
When 1 is set for each bit, the status is held
until the query result is returned.
Returns bit status at the time of query receipt
rather than the held value.
Each bit is not cleared even if the query result is
returned.
When 1 is set for each bit, the status is held
until the query result is returned.
Returns the status when *STB? is received.
Each bit is not cleared even if the *STB query result is
returned. (It is necessary to perform a query for each
event register and clear the occurrence or execute *CLS.)
AND output of EV and EN
AND output of
EV and EN
AND output of
EV and EN
AND output of
EV and EN
:SYSTem:ERRor?
Hold
Event Registers
9
Power-On Flag
Set to 1 when the power is turned on, or upon recovery from an
outage.
Unused
Command error (The command to the message terminator
This bit is set to 1 when a received command contains a
• Received a command not supported by the instrument
This bit is set to 1 when a received command cannot be
Execution is prevented by some other operation being
performed
This bit is set to 1 when a command cannot be executed due to
or an
execution error.
This bit is set to 1 when a query error is detected by the output
• When data in the output queue has been lost
Request Control
It indicates the completion of operations of all messages up to
the “*OPC” command
Standard Event Status Register (SESR)
The Standard Event Status Register is an 8-bit register. If any bit in the Standard Event Status Register is set to 1
(after masking by the Standard Event Status Enable Register), bit 5 (ESB) of the Status Byte Register is set to 1.
See: “Standard Event Status Register (SESR) and Standard Event Status Enable Register
(SESER)
The Standard Event Status Register is cleared in the following situations:
• When a *CLS command is executed
• When an event register query (
• When the instrument is powered on
” (p.10)
*ESR?) is executed
Bit 7 PON
URQ
Bit 6
Bit 5 CME
Bit 4 EXE
Bit 3
(Unused)
DDE
(Unused)
Not used by this instrument
User Request
is ignored.)
syntactic or semantic error:
• Program header error
• Incorrect number of data parameters
• Invalid parameter format
Execution Error
executed for some reason.
• The specified data value is outside of the set range
• The specified setting data cannot be set
•
Not used by this instrument
Device-Dependent Error
some reason other than a command error, a query error
Query Error (the output queue is cleared)
Bit 2 QYE
queue control.
• When the data overflows the output queue
Bit 1
Bit 0 OPC
RQC
(Unused)
Not used by this instrument
Operation Complete
・It indicates the execution of an “
・
*OPC” command.
10
Status Byte Register (STB)
SRQ
PON
URQ
CME
EXE
DDE
QYE
RQC
OPC
PON
URQ
CME
EXE
DDE
QYE
RQC
OPC
Standard Event Status Enable Register (SESER)
Standard Event Status Enable Register (SESER)
Setting any bit of the Standard Event Status Enable Register to 1 enables access to the corresponding bit of the
Standard Event Status Register.
Standard Event Status Register (SESR) and Standard Event Status Enable Register (SESER)
bit6 bit5 bit4
MSS Standard Event Status Register (SESR)
ESB MAV
bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0
↑
↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓
Logical sum ← & & & & & & & &
↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0
11
Bit 15
-
Unused
Bit 14
-
Unused
Set to 1 when an error occurs (cleared when details are acquired
from :SYSTem.ERRor?).
Bit 12
HOLD
Set to 1 when autohold is completed.
Bit 11
EOM
Set to 1 when measurement is completed.
Bit 10
LOCK
Set to 1 when the instrument is in the Remote state.
Set to 1 when the number of memory data reaches the number set
in :DATA:POINts:EVENt:THReshold.
or the last
normal measurement.
Bit 7
-
Unused
Bit 6
-
Unused
Bit 5
WAIT_TRG
Set to 1 when the instrument is in the trigger waiting state.
Bit 4
MEAS
Set to 1 when the instrument is in the measurement state.
Bit 3
-
Unused
Bit 2
-
Unused
Bit 1
-
Unused
Bit 0
-
Unused
Status Byte Register (STB)
Logical
sum
↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
↑
Enable register of the Standard Operation Register Group (:STATus:OPERation:ENABle)
Device-Specific Event Status Registers
This instrument provides two Event Status Registers for controlling events. Each Event Status Register is a 16-bit
register.
When any bit in one of these Event Status Registers enabled by its corresponding Enable Register is set to 1, the
following happens:
• For Standard Operation Register, bit 7 (ESB1) of the Status Byte Register is set to 1.
• For Status Query Resister, bit 3 (ESB0) of the Status Byte Register is set to 1.
Event Status Registers 0 and 1 are cleared in the following situations:
• When a
• When an Event Status Register query is executed
(
Set to 1 when the internal measurement memory is full (5000 data).
Bit 13
OB
Set to 1 when the BIN measurement result is OUT OF BIN.
Bit 12
HI
Set to 1 when the comparator result is upper threshold FAIL.
Bit 11
LO
Set to 1 when the comparator result is lower threshold FAIL.
Bit 10
-
Unused
Bit 9
-
Unused
Bit 8
-
Unused
Bit 7
-
Unused
Bit 6
-
Unused
Bit 5
-
Unused
Bit 4
-
Unused
Bit 3
TMP_OVR
Set to 1 when the measurement temperature is outside the measurement range.
Bit 2
Unused
Bit 1
-
Unused
Bit 0
VLT_OVR
Set to 1 when the measurement voltage is outside the measurement range.
Status Byte Register (STB)
Logical
sum
↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑
↑
Enable register of the Status Query Register Group (:STATus:OPERation:ENABle)
Status Query Register
Event register of the Status Query Register Group (:STATus:QUEStionable:EVENt?) and
enable register of the Status Query Register Group (:STATus:QUEStionable:ENABle)
bit4 bit3 bit2
MAV ESB0 ERR
↑
← & & & & & & & & & & & & & & & &
Event register of the Status Query Register Group (:STATus:QUEStionable:EVENt?)
Cancels the Remote state and enters the Local state.
LLO
Local Lock Out
Disables all keys, including the Local key.
DCL
Device CLear
Clears the input buffer and the output queue.
Device Clear
Trigger
selected, processes one sampling.
Register Reading and Writing
Status Byte Register
Service Request Enable Register
Standard Event Status Register
Standard Event Status Enable Register
Event register of the Standard Operation Register Group
Event Register of Standard Operation Register Group
Enable Register of Standard Operation Register Group
Event Register Query of Status Query Register Group
Event Register Query of Status Query Register Group
(Event data)
Enable Register of Status Query Register Group
GP-IB Commands
The following commands can be used for performing interface functions.
SDC Selected
GET Group Execute
Clears the input buffer and the output queue.
When an external trigger (trigger source <EXTERNAL>) is
14
Measurement Range
Measured Value
±OvrRng
Measurement Fault
100 mV
± □□□.□□□□□E-03
±990.00000E+35
+991.00000E+35
1 V ± □□□□.□□□□E-03
±9900.0000E+34
+9910.0000E+34
10 V ± □□.□□□□□□E+00
±99.000000E+36
+99.100000E+36
100 V ± □□□.□□□□□E+00
±990.00000E+35
+991.00000E+35
1000 V
± □□□□.□□□□E+00
±9900.0000E+34
+9910.0000E+34
Measured Value
±OvrRng
Measurement Fault
± □.□□□□□□□□E±0□
±9.90000000E+37
+9.91000000E+37
Measurement Value Formats
In the measured value format settings, the measurement format that can be acquired from :FETCh?, :READ?,
MEASure[:VOLTage]:DC?
• Voltage: Unit V (When :SYSTem:COMMunicate:FORMat FIX is set)
Note:•Position of the decimal point and exponent is changed by setting of the scalling.
Please refer to instruction manual of the instruments about the scalling.
•
When the number of digits for the integer is short, 0 is entered.
Example) When the measurement value is 1 V in 1000 V range, the measurement value is
•The mantissa changes depending on the setting number of digits.
• Voltage: Unit V (When :SYSTem:COMMunicate:FORMat FLOAT is set)
can be changed.
presented as +0001.0000E+00.
Note: The measurement value is presented as a floating-point value with eight decimal places.
The format of measurment values can be changed in any of the following settings.
• By communications commands
Change the format in
:SYSTem:COMMunicate:FORMat FLOAT/FIX. (See: Data Output Settingsp.36)
• In the instrument screen
15
GP-IB Address
- 1 - - -
1
RS-232C setting (baud rate)
-
9600 - - - 9600
LAN IP Address
-
0.0.0.0 - -
-
0.0.0.0
LAN sub-net mask
-
255.255.255.0
- - -
255.255.255.0
LAN default gateway
-
0.0.0.0 - -
-
0.0.0.0
LAN port
-
23 - - - 23
Device-specific functions (range, etc.)
-
-
-
Output Queue
-
-
Input Buffer
●
-
-
Status Byte Register
●
-
●*1
●*2 ●
Event Registers
●*3
-
-
●
Enable Register
●
- - -
Current path
●
-
-
Response message terminator (GP-IB)
-
LF+EOI - -
-
LF+EOI
*3. Except the PON bit (bit 7).
Initialization Items
Initialization Method
Item
*1. Only the MAV bit (bit 4) is cleared.
*2. All bits except the MAV bit are cleared.
At
Power-on
● ●
●
●
●
●
Key
Reset
●
●
*RST
Command
●
Device Clear
(GP-IB only)
●
●
●
*CLS
Command
●
Factory
Default
●
●
●
●
●
16
Command
Execution time (except communication time)
*RST
:STATus:PRESet
[:SENSe:]VOLTage:DC:RANGe
700 ms or less
[:SENSe:]VOLTage[:DC]:NPLCycles
2 ms or less
:FETCh?
10 ms or less
:READ?
Measurement time + 15 ms or less
*RCL
700 ms or less
*TST?
20 ms or less
Commands other than those above
10 ms or less
Command Execution Time
Command execution time indicates the time for analyzing and processing long form commands.
However, the command execution time for commands with data is the time described according to the data format
specified in the <data portion>.
• Display delays may occur depending on the frequency of communication processes and process contents.
• All commands except *TRG and :INIT are processed sequentially.
• In communications with the controller, time must be added for data transmission. USB and GP-IB transfer time depends
on the controller.
The RS-232C transfer time, with start bit 1, data length 8, no parity, and stop bit 1, has a total of 10-bit. When the transfer
speed (baud rate) setting is N bps, the general result will be as follows:
Transfer time T [1 character/sec] = Baud rate N [bps]/10 [bits]
Since a measurement value is 17 characters, a 1 data transfer time will be 17/T.
(Example) For 9600 bps, 17/(9600/10) = Approx. 17 ms
• Wait until measurements stabilize after a change before using a setting command.
:SYSTem:PRESet
Errors During Communications
An error occurs when messages are executed in the following cases:
• Command Error
When message syntax (spelling) is invalid
When the data format in a command or query is invalid
• Query Error
When a
• Execution Error
When any character or numerical data that is not specified is set
response
message cannot be sent from the instrument as the controller cannot receive it
123456789, software version 1.00. The <Model name> will be
Note
The value returned by : SYSTem:IDNStr can be changed to any character string.
Identify Installed Options
Syntax
Query
*OPT?
Response
<0/GPIB>,<LAN>,<0/RS232C>
Example
• When the GP-IB board is installed
Initialize Device
Syntax
Command
*RST
Description
Resets the instrument to its initial state.
Note
The communications conditions and panel data are not initialized.
Execute Self-test and Query Result
Syntax
Query
*TST?
Response
<PASS/FAIL>
Description
Example
(1) System Data Commands
HIOKI,DM7275-01,123456789,V1.00
The Device ID is HIOKI DM7275-01,
the following.
For DM7275-01: DM7275-01
For DM7275-02: DM7275-02
For DM7275-03: DM7275-03
For DM7276-01: DM7276-01
For DM7276-02: DM7276-02
For DM7276-03: DM7276-03
*OPT?
GPIB,LAN,0
• When the RS-232C board is installed
*OPT?
0,LAN,RS232C
• When the option board is not installed
*OPT?
0,LAN,0
(2) Internal Operation Commands
The Event Status Register is not cleared.
Performs the instrument self-check and returns the result.
Returns PASS when no error occurs and FAIL when an error occurs.
*TST?
FAIL
An error occurred. Correct measurement may not be possible. Request repairs before further use.
26
Save Measurement Conditions (Panel Save)
Syntax
Command
*SAV <Panel No.>
<Panel No.> = 1 to 30 (NR1)
Description
Example
Note
panel number to which measurement conditions are already saved is specified, the data
Read Measurement Conditions (Panel Load)
Syntax
Command
*RCL <Panel No.>
<Panel No.> = 1 to 30 (NR1)
Description
Example
Note
not saved is specified, an execution
Request a Sample
Syntax
Command
*TRG
Description
Example
Set OPC Bit of SESR when Finished with All Pending Operations
Syntax
Command
*OPC
Description
when all commands prior to the
Respond with ASCII “1” when Finished with All Pending Operations.
Syntax
Query
*OPC?
Response
1 (NR1)
Description
Responds with ASCII “1” when all commands prior to the *OPC commands have finished processing.
Wait for Pending Commands to Finish
Syntax
Command
*WAI
Description
Saves the current measurement conditions to the specified panel number.
*SAV 1
The current measurement conditions are saved to panel No. 1.
When the a
of the panel number is overwritten with the current measurement conditions.
Reads the measurement conditions saved for the specified panel number.
*RCL 1
The measurement conditions saved for panel No. 1 are read.
When a panel number to which measurement conditions are
error occurs.
Performs one measurement when external triggering (trigger source <EXTERNAL>) is enabled.
It may be necessary to insert wait processing after panel load or range selection. Wait time depends
on Measurement target.
:TRIG:SOUR EXT;*TRG
External triggering is enabled and performs one measurement.
(3) Synchronized Commands
Sets OPC (bit 0) of SESR (Standard Event Status Register) to 1
*OPC command have finished processing.
The instrument waits until all prior commands finish before executing any subsequent commands.
27
Clear Event Register and Status Byte Register (Except Output Queue)
Syntax
Command
*CLS
Description
Clears the event status registers. The Status Byte Register bits corresponding to the event status
(Standard Event Status Register, Standard Operation Register, Status
Example
Read/Write the Standard Event Status Enable Register (SESER)
Syntax
Command
*
ESE <0 to 255 (NR1)>
Query
*ESE?
Response
<0 to 255 (NR1)>
Description
The SESER mask pattern is set to a numerical value from 0 to 255. The default value (at
1
128
64
32
16 8 4 2 1
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
PON
URQ CME EXE DDE QYE
RQC OPC
Example
Read and Clear Standard Event Status Register (SESR)
Syntax
Query
*ESR?
Response
<0 to 255 (NR1)>
Description
128
64
32
16 8 4 2 1
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
128
64
32
16 8 4 2 1
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
Example
(4) Status and Event Control Commands
registers are also cleared.
Query Register)
[RS-232C/USB] The output queue is unaffected.
[GP-IB] The output queue, various enable registers, and MAV (bit 4) of the Status Byte
Register are unaffected.
Command
Query
*ESE 36
(Sets bit 5 and 2 of SESER.)
Returns the contents of the SESR as an NR1 value from 0 to 255, and then clears register contents.
power-on) is 0.
The contents of the SESER, as set using the *ESE command, are returned as an NR
value (0 to 255).
[RS-232C/USB]
PON Unused CME EXE DDE QYE Unused OPC
[GP-IB]
PON URQ CME EXE DDE Unused RQC OPC
*ESR?
32
Bit 5 of the SESR has been set to 1.
28
Write and Read Service Request Enable Register (SRER)
Syntax
Command
*SRE <0 to 255 (NR1)>
Query
*SRE?
Response
<0 to 255 (NR1)>
Description
Although NRf numerical values are accepted, values to the right of the decimal are
o at
command, are returned as an NR1
128
64
32
16 8 4 2 1
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
Standard
Operation
Example
Read Status Byte and MSS Bit
Syntax
Query
*STB?
Response
<0 to 255 (NR1)>
Description
128
64
32
16 8 4 2 1
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
Example
Command The SRER mask pattern is set to a numerical value from 0 to 255.
rounded to the nearest integer.
Bit 6 and unused bits (indicated with -) are ignored. The data is initialized to zer
power-on.
Query
The contents of the SRER, as set using the *SRE
value (0 to 255). Bit 6 and unused bits (bit 0 and 1) are always 0.
Status
0 ESB M AV
Register
*SRE
12
Set SRER bits 3 and 2 to 1.
*SRE?
12
SRER bits 3 and 2 have been set to 1.
The contents of the STB are returned as an NR1 value from 0 to 255.
ESB1 MSS ESB MAV ESB0 ERR- -
*STB?
16
STB bit 4 has been set to 1.
Query
Register
System
Error
- -
29
Query Condition Register of Standard Operation Register Group
Syntax
Query
:STATus:OPERation:CONDition?
Response
<0 to 16176 (NR1)>
Description
bit15
bit14
bit13
bit12
bit11
bit10
bit9
bit8
RDY
bit7
bit6
bit5
bit4
bit3
bit2
bit1
bit0
_TRG
Example
Note
Query Total Bit Number of Event Register of Standard Operation Register Group
Syntax
Query
:STATus:OPERation[:EVENt]?
Response
<0 to 16176 (NR1)>
Description
bit15
bit14
bit13
bit12
bit11
bit10
bit9
bit8
_RDY
bit7
bit6
bit5
bit4
bit3
bit2
bit1
bit0
_TRG
Example
Note
•
Device-Specific Commands
(1) Event Status Register
See the following for a relationship with the Status Byte Register.
• Status Byte Register (p.6)
• Event Register (p.8)
- - ERR HOLD EOM LOCK
- -
:STAT:OPER:COND?
1024
The instrument is in the remote state.
•
The latest status is returned when this command is received.
•
Unlike :STATus:OPERation:EVENt?, :STATus:OPERation?, bit information is not held.
WAIT
MEAS - - - -
MEM_
SET
- - ERR HOLD EOM LOCK
- -
WAIT
MEAS - - - -
MEM
SET
:STAT:OPER?
1024
This instrument has been in the remote state.
When an event occurs, 1 is set for the bit corresponding to each event.
•
Until * CLS or this query is executed or the power is turned on again, the bit is not cleared.
30
Query Enable Register of Standard Operation Register Group
Syntax
Command
:STATus:OPERation:ENABle <0 to 65,535 (NR1)>
Query
:STATus:OPERation:ENABle?
Response
<0 to 16177 (NR1)>
Description
bit15
bit14
bit13
bit12
bit11
bit10
bit9
bit8
_RDY
bit7
bit6
bit5
bit4
bit3
bit2
bit1
bit0
_TRG
Note
) are set to 1, the command is accepted but is not reflected in the
Query Total Bit Number of Condition Register of Status Query Register Group
Syntax
Query
:STATus:QUEStionable:CONDition?
Response
<0 to 63497 (NR1)>
Description
bit15
bit14
bit13
bit12
bit11
bit10
bit9
bit8
ERR
OVR
bit7
bit6
bit5
bit4
bit3
bit2
bit1
bit0 - - - - - - - -
Example
Note
Query Event Register of Status Query Register Group
Syntax
Query
:STATus:QUEStionable[:EVENt]?
Response
<0 to 63497 (NR1)>
Description
bit15
bit14
bit13
bit12
bit11
bit10
bit9
bit8
ERR
OVR
bit7
bit6
bit5
bit4
bit3
bit2
bit1
bit0
OVR
OVR
Example
Note
is query is executed
- - ERR HOLD EOM LOCK
MEM
SET
- -
•
The data is initialized to 0 at power-on.
•
When unused bits (indicated with -
WAIT
MEAS - - - RSV
query result.
CNT_
:STAT:QUES:COND?
32768
A contact error occurs.
MEM_
OB HI LO - - -
•
The latest status is returned when this command is received.
•
Unlike :STATus:QUEStonable:EVENt?, :STATus:QUEStonable?, bit information is not held.
CNT_
MEM_
OB HI LO - - -
- - - -
TMP_
- -
VLT_
:STAT:QUES?
1
An out-of-range error has occurred at voltage measurement of the instrument.
When an event occurs, 1 is set for the bit corresponding to each event. *CLS or th
or the power is turned on again, the bit is not cleared.
31
Set and Query Enable Register of Status Query Register Group
Syntax
Command
:STATus:QUEStionable:ENABle <0 to 65535 (NR1)>
Query
:STATus:QUEStionable:ENABle?
Response
<0 to 63775 (NR1)>
Description
bit15
bit14
bit13
bit12
bit11
bit10
bit9
bit8
ERR
OVR
bit7
bit6
bit5
bit4
bit3
bit2
bit1
bit0
OVR
OVR
Note
) are set to 1, the command is accepted but is not reflected in the
• Voltage: Unit V (When :SYSTem:COMMunicate:FORMat FIX is set)
Note:•Position of the decimal point and exponent is changed by setting of the scalling.
Please refer to instruction manual of the instruments about the scalling.
•
When the number of digits for the integer is short, 0 is entered.
Example) When the measurement value is 1 V in 1000 V range, the measurement value is
presented as +0001.0000E+00.
•The mantissa changes depending on the setting number of digits.
• Voltage: Unit V (When :SYSTem:COMMunicate:FORMat FLOAT is set)
Note: The measured value is presented as a floating-point value with eight decimal places.
• Temperature: Unit °C (
:FETCh? TEMPerature, READ? TEMPerature
)
Time to receive measured value is different for the :FETCh? and :READ?/MEAS:DC?commands
See: Data Exporting Methods (p.71), Triggering (p.40)
(b) :DATA:LAST?response
• Voltage: Unit V
Note: The measurement value is presented as a floating-point value with eight decimal
places.
(d) :MEASure:TEMPerature? response
• Temperature: Unit °C
33
Read Most Recent Measurement
Syntax
Query
:FETCh? [TEMPerature]
(1) When TEMPeratureparameter is not specified
See: “Measurement Value Formats” (p.32)
Description
•
Example
:TRIG:SOUR EXT
E-02,+23.87
Note
• If a measurement has not been performed (the memory is empty), an execution error occurs.
is the number
of data stored in the memory. (MAX:5000 data)
Response
•
When :SYST:COMM:FORM FIX is set
<Voltage measurement value>
•
When :SYST:COMM:FORM FLOAT is set
<Volatage measurement value 1>, <Voltage measurement value 2>, ..., <Voltage
measurement value n>
Note: The measured values are output in the order that they are received.
<Voltage Measurement value 1>, <Temperature Measurement value1>, <Voltage
Measurement value 2>, <Temperature Measurement value2>,...,<Voltage
Measurement value N>, < Temperature Measurement value N>
Note: The measured values are output in the order that they are received.
Switches from the Idle State to the Trigger Wait State, and then reads the measurement value after
the measurement is completed.
• When :SYST:COMM:FORM FLOAT is set
Switches from the Idle State to the Trigger Wait State, and then reads the measurement value for N
times of sampling after the measurement is completed.
With the auto range enabled, the most suitable range is selected before measurement.
See: Data Exporting Methods (p.71), Triggering (p.40)
See: Data Exporting Methods (p.71), Triggering (p.40)
+5.48260994E-03
:DATA:LAST? TEMP
+5.48260994E-03,+23.87
:ABOR
Executes an abort.
FIX: Reads only the most recent measurement with the number of digits same as that displayed in
the screen.
FLOAT:
with eight decimal places.
See: “Measurement Value Formats” (p.32)
on the settings.
FIX: The measurement state remains in the local state.
FLOAT: The measurement state is in the STOP state.
Reads the measurement values for the number of sampling data as a floating-point value
37
Execute Self-test and Query Result
Syntax
Query
:TEST:ALL?
Response
< PASS/FAIL >
Example
:TEST:ALL?
Note
Same operation as *TST?
Set and Query System Date
Syntax
Command
:S YS Tem: D ATE <Year>,<Month>,<Day>
Query
:SYSTem:DATE?
Response
<Year>,<Month>,<Day>
<Day>= 01 to 31 [Day]
Description
Example
Note
Set and Query System Time
Syntax
Command
:SYSTem:TIME <Hour>,<Minute>,<Second>
Query
:SYSTem:TIME?
Response
<Hour>,<Minute>,<Second>
<Hour> = 00 to 23 [Hour]
<Second> = 00 to 59 [Second]
Description
Sets the time of the real-time system clock.
Example
:SYST:TIME 8,25,0
Note
Attempting to set an out-of-range numerical value returns an execution error. Attempting to set an
(3) Self-Test
(4) Clock
PASS
<Year>= 00 to 99 [Year]
<Month> = 01 to 12 [Month]
Sets the date of the real-time system clock.
:SYST:DATE 15,9,2
Set the date to September 2, 2015.
:SYST:DATE?
15,9,2
The date is September 2, 2015.
Attempting to set an out-of-range numerical value returns an execution error. Attempting to set an
non-existent date (such as 13,06,31) returns an execution error.
<Minute> = 00 to 59 [Minute]
Set the time to 8:25 and 00 seconds.
:SYST:TIME?
23,9,53
The time is 23:9 and 53 seconds.
non-existent time (such as 9,6,71) returns an execution error.
• When the measurement range is set using the command, the instrument is set to the most suitable
range for measuring the given voltage if the voltage to be measured is used as an argument.
Example
VOLT:DC:RANG 6V
VOLT:DC:RANG?
+1.00000000E+01
• The query result with the auto range enabled becomes the range selected by the measurement
system.
VOLT:DC:RANG:AUTO OFF
VOLT:DC:RANG:AUTO?
0
(6) Measurement Function
TEMPerature = Displays the voltage measurement value and temperature measurement value.
VOLTage[:DC] = Displays only the voltage measurement value.
Trigger by TRIG signal, [TRIG] key, or *TRG
command.
After measurement, enters the trigger wait
state.
[EXT state]
Trigger Source
Issue :INITIATE (or :READ?) command to
wait for trigger.
Trigger by TRIG signal, [TRIG] key or *TRG.
[EXT STOP state]
:TRIGGER:SOURCE EXT
The :INITIATE:CONTINUOUS OFF state can only be set by Remote command.
The :INITIATE:CONTINUOUS OFF
on, the :INITIATE:CONTINUOUS ON state occurs.
See: “Return to Local Control” (p.58)
state can only be set by Remote command.
41
Set and Query Continuous Measurement
Syntax
Command
:INITiate:CONTinuous < 1/0/ON/OFF >
Query
:INITiate:CONTinuous?
Response
< 1/0 >
<ON> = Continuous Measurement Enabled
Description
• Continuous Measurement Enabled ([RUN state] and [EXT state]):
Example
:INIT:CONT OFF
Set Trigger Wait
Syntax
Command
:INITiate[:IMMediate]
Description
Example
Note
Set and Query Trigger Source
Syntax
Command
:TRIGger:SOURce < IMMediate/ EXTernal/BUS >
Query
:TRIGger:SOURce?
Response
< IMM/ EXT >
<IMMediate> = Internal triggering
Example
:TRIG:SOUR IMM
Note
EXT is set when BUS is set using the remote command.
<OFF> = Continuous Measurement Disabled
After measurement, enters the Trigger Wait State. When there is an internal trigger (trigger source
<IMMEDIATE>), the next trigger is promptly generated and enters a free-run state.
• Continuous Measurement Disabled ([STOP state] and [EXT STOP state]):
After measurement, enters the Idle State instead of the Trigger Wait State.
• Triggering is ignored in the Idle State. Executing :INITiate[:IMMediate]
State.
• Continuous measurement is enabled upon exiting from the Remote State.
:INIT:CONT?
0
enables the Trigger Wait
Switches triggering from the Idle State to the Trigger Wait State.
The measurement value storage memory is cleared.
Disable continuous measurement, and read one value for each trigger event.
Sending
:TRIG:SOUR IMM ...... Triggers immediately when entering the Trigger Wait State.
:INIT:CONT OFF ......... Disables continuous measurement.
• Automatically switches to :INITiate:CONTinuous OFF after receiving this message.
• When there is an internal trigger (trigger source <IMMEDIATE>), triggering promptly occurs and
enters the idle state.
• When there is an external trigger (trigger source <EXTERNAL>), the external trigger wait state is
entered.
When a trigger is received, a single measurement is performed and enters the idle state.
When the panel that is not saved is specified, an execution error occurs.
<Panel No.>,<Panel name (Character string data:
Response
15,10,31,23,1,2
48
Save Setting File to USB Flash Drive
Syntax
Command
:MMEMory:STORe:STATe <File name> [,ALL]
Example
:MMEM:STOR:STAT "ALL_000", ALL
Note
M:STOR:STAT <File name>, ALL, all setting
Read Setting File from USB Flash Drive
Syntax
Command
:MMEMory:LOAD:STATe <File name>
Example
:MMEM:LOAD:STAT “SET_000” * Loads SET_000.SET.
Note
• The command is accepted if a file name is specified with a file extension included or excluded.
extension
Set and Query Function for Reading Panel at Startup
Syntax
Command
:MMEMory:STATe:RECall:AUTO < 1/0/ON/OFF >
Query
:MMEMory:STATe:RECall:AUTO?
Response
< 1/0 >
Example
Set and Query Panel No. to be Read at Startup
Syntax
Command
:MMEMory:STATe:RECall:SELect <Panel No.>
Query
:MMEMory:STATe:RECall:SELect?
Response
<Panel No.>
<Panel No.> = 0 to 30 (NR1)
1 to 30: Loads the panel settings.
Example
:MMEM:STAT:REC:SEL 5
:MMEM:STOR:STAT "SET_000.SET"
:MMEM:STOR:STAT "SET_000"
:MMEM:STOR:STAT "ALL_000.ALL", ALL
• When ALL is attached to the end of data, such as :MME
data including panel data is saved to a file.
• The command is accepted if a file name is specified with a file extension included or excluded.
• If a file name extension is omitted, the following operations are performed.
:MMEM:STOR:STAT “SET_000” ··········· : Saves with file name “SET_000.SET”.
:MMEM:STOR:STAT “ALL_000”, ALL ····· : Saves with file name “ALL_000.ALL”.
• Up to 12 characters can be used including a file name extension (.xxx) for a file name. (8 or less
characters if a file name extension is not included.) Otherwise an execution error occurs.
• If any character that cannot be set for a file name in the instruments is used, an execution error
occurs.
• If a USB flash drive is not inserted, an execution error occurs.
• If a communications interface is set to USB, an execution error occurs.
• When the file name extension is omitted, the .SET file is read. When loading a file with an
of .ALL, make sure to specify the file name extension.
• Up to 12 characters can be used including a file name extension (.xxx) for a file name. (8 or less
characters if a file name extension is not included.) Otherwise an execution error occurs.
• If any character that cannot be set for a file name is used, an execution error occurs.
• If a USB flash drive is not inserted, an execution error occurs.
• If the specified file does not exist, an execution error occurs.
• If a communications interface is set to USB, an execution error occurs.
<ON> = With an external trigger (trigger source <EXTERNAL>), measurement values are
automatically sent when trigger measurements are completed.
When there is an internal trigger (trigger source <IMMEDIATE>, measurement values are
automatically sent when the [TRIG] key is pressed or TRIG signal is input from the external I/O.
<OFF> = Measurement values are not automatically sent.
The interface applicable for the data output function is USB, LAN, and RS-232C.
Command
<Measurement value output> = 0: Voltage measurement value,
1: Voltage measurement value + temperature measurement value
Sets the format for measurement-synchronized data output.
delimiter format automatically becomes a semicolon.
63
Measured Value
OvrRng
Measurement Fault
± □.□□□□□□□□E±0□
±9.90000000E+37
+9.91000000E+37
Query Memory Data
Syntax
Query
:R?<Number of read data>
<Header><Measurement value 1>, <Measurement value 2>,…, <Measurement value N>
See: Measurement Value (Memory Data) Format (p.63)
<Read data count> = 1 to 5000
Description
Reads the data stored in the memory with the read data count specified.
Example
:R? 2
Query Memory Data (with Wait Function)
Syntax
:DATA:REMove?
See: Measurement Value (Memory Data) Format (p.63)
<Read data count> = 1 or above
Description
Example
Note
sets of
In this case, an
execution error occurs when the setting of Continuous Measurement(p.41) is disabled.
Number of digits byte
1 byte
1 byte
Number of dataportion
#
<Number of digits>
(29) Memory Function
Measurement Value (Memory Data) Format
(a)
:R?, :DATA:REMove? response
Voltage: Unit V
±
Note: The measured value is presented as a floating-point value with eight decimal places.
Response
Read data count
Note: The measurement values are output in the order that they are received.
The header is output as follows.
Note: The delimiter is not included in the data portion byte count.
#231+1.87609454E+00,+1.87609717E+00
In the header above, the number of digits for the data portion byte count is 2, and the data portion
data count is 31.
Query
Response
Reads the data stored in the memory with the read data count specified. When the enabled
measurement value is less than the number specified in <Read data count>,
an error occurs unless the WAIT parameter is specified. When the WAIT parameter is specified, the
instrument waits until the measured value of <Read data count> is ready.
• When two or more sets of measurement data are stored in the measurement memory
:DATA:REMove? 2
+1.87609454E+00,+1.87609717E+00
• When less than two sets of measurement data are stored in the measurement memory
A command is accepted if a file name is specified with a file extension (.csv) included or excluded.
Memory data is saved in MEMO_000.csv.
characters if a file name extension is not included.) Otherwise an error occurs.
• If any character that cannot be set for a file name int the instrument is used, an execution error
occurs.
• If a USB flash drive is not inserted, an execution error occurs.
• An execution error occurs when the communication interface is set USB.
65
Query NPN/PNP Switch Status
Syntax
Query
:IO:MODE?
<NPN/ PNP >
Example
:IO:MODE?
NPN
Execute and Query TRIG/PRINT Signal Filter Function
Syntax
Command
:IO:FILTer:STATe<1/0/ON/OFF>
Query
:IO:FILTer:STATe?
Response
< 1/ 0 >
Example
Set and Query TRIG/PRINT Signal Filter Time
Syntax
Command
:IO:FILTer:TIME <Filter time/MAX/MIN/DEFault>
Query
:IO:FILTer:TIME?
Response
<Filter time>
<Filter time> = 0.05 to 0.50 (NRf) [sec]
(MAX: 0.50 MIN: 0.05, DEFault: 0. 05)
Example
:IO:FILT:TIME 0.1
Set and Query EOM Output Method
Syntax
Command
:IO:EOM:MODE< 1/0/ON/OFF >
Query
:IO:EOM:MODE?
Response
< 0/1 >
1 = PULSE mode (Sets EOM=OFF according to the specified pulse width.)
Example
Set and Query EOM Pulse Width
Syntax
Command
:IO:EOM:PULSe <Pulse width/MAX/MIN/DEFault>
Query
:IO:EOM:PULSe?
Response
<Pulse width>
<Pulse width> = 0.001 to 0.100 (NRf) [sec]
(MAX: 0.100, MIN: 0.001, DEFault: 0. 005)
Example
:IO:EOM:PULS 0.005
(30) EXT I/O
Response
:IO:FILT:STAT ON
:IO:FILT:STAT?
1
:IO:FILT:TIME?
+1.00000000E-01
0 = HOLD mode (Holds the EOM signal until measurement starts by the next trigger signal.)
:IO:EOM:MODE PULS
:IO:EOM:MODE?
PULSE
:IO:EOM:PULS?
+5.00000000E-03
66
Query External I/O Input
Syntax
Query
:IO:INPut?
Response
0 to 3 (NR1)
Description
Reads the ON edge of the TRIG of the EXT I/O and the PRINT terminal, and then clears them.
When the edge is detected, the bits are set. When reading is performed using this query, it is cleared
bit7
bit6
bit5
bit4
bit3
bit2
bit1
bit0 - - - - - - PRINT
TRIG
Pin
No.
Example
Execute External I/O output
Syntax
Command
:IO:OUTPut <Output data 0 to 2047>
Description
bit data can be
- - - - - Bit10
Bit9
Bit8 - - - - -
OUT10
OUT9
OUT8
No.
bit7
bit6
bit5
bit4
bit3
bit2
bit1
bit0
OUT7
OUT6
OUT5
OUT4
OUT3
OUT2
OUT1
OUT0
No.
Acquire Display Image
Syntax
Query
:HCOPy:SDUMp:DATA?
Response
Front panel display image
Description
For binary data, as shown below, the transfer byte count, BMP data, and then terminator are output in
1 2 3 4 5 6 7 8 9 10
...
(Hexadecimal)
Example
to 0.
Also, input by key is detected in the same manner as signals.
- - - - - - 26 1
See the instrument instruction manual regarding external control (EXT I/O) as well.
When the filter setting of the input signal is ON, the edge after the set filter time will be read.
When the judgment output mode is selected with the EXT I/O output mode, any 11output from the EXT I/O terminal.
Pin
Pin
See the instrument instruction manual regarding external control (EXT I/O) as well.
(31) Saving Screen Data
Returns the front panel display image (“Screen shot”) as BMP data (binary format).
that order.
Binary
Description # 6 BMP data byte count BMP data CR LF
List of response
0,""
1,"Lower limit is higher than Upper limit."
4,"Unable to change the setting during auto-hold."
5,"Unable to set NULL due to an abnormal measurement value."
30,"Command error."
31,"Execution error. Invalid parameter."
32,"Execution error."
50,"The panel does not exist."
51,"The panel does not exist.Unable to rename."
60,"Cannot use USB memory. Set I/F function to USB-MEMORY."
61,"The drive is not ready. (No USB memory inserted)"
62,"This format is not supported."
64,"Error while reading the configuration file."
65,"File not found."
70,"No space available."
71,"Error occurred saving the file."
76,"Error occurred deleting the file."
77,"Unable to rename the file because another file with the same name already exists."
78,"Error occurred renaming the file."
80,"Unable to enter the adjustment mode."
92,"Memory access error. Turn off the power and restart after a while."
93,"Memory test error."
95,"Backup data error."
96,"Failed to detect line frequency. Select line frequency."
98,"The clock is not set. Reset? (15-01-01 00:00:00)"
99,"Failed to detect line frequency; will be set to 50 Hz."
Query
Response
<Type 2>= Numerical value (NRf)
+25.10
switches to :INITiate:CONTinuous OFF, and turns the temperature display ON.
Type 1, Type 2, and the resolution for an argument have no meaning.
•
Type 1, Type 2, and the resolution for an argument may be omitted
•
.
70
Clear and Read Power Status
Syntax
Command
*PSC < 1 >
Query
*PSC?
Response
1
Description
Command
No function.
Query
Returns fixed value 1.
Example
Execute Automatic Calibration
Syntax
Command
*CAL?
Response
+0
Description
Returns the fixed value +0 although the automatic calibration function is not available.
Set and Query Voltmeter Complete Output Signal Slope
Syntax
Command
:OUTPut:TRIGger:SLOPe<POSitive/NEGative>
Query
:OUTPut:TRIGger:SLOPe?
Response
NEG
Note
The slope setting is NEG (fixed).
Set and Query Triggering Count
Syntax
Command
:TRIGger:COUNt <Number of measurements/MAX/MIN/DEFault>
Query
:TRIGger:COUNt?
Response
1
Example
:TRIG:COUN 1
Note
The number of measurements that can be set is 1 only.
Set Remote State
Syntax
:SYSTem:REMote
:SYSTem:RWLock
The following functions are not installed on this instrument, however, commands are accepted.
*PSC 1
*PSC?
1
Only the BMP format is supported.
:TRIG:COUN?
1
Command
71
4 Data Exporting Methods
Basic Data Exporting Methods
Flexible data exporting is available depending on the application.
Export Free-Run Data
Default Setting
Exporting
Export by Controller (PC, PLC) Triggering
Default Setting
Exporting
Note When :READ? is sent, :INITiate:CONTinuous OFF automatically occurs.
Export by Pressing [TRIG] Key or Applying TRIG Signal
Default Setting
Exporting
Note When :READ? is sent,
:INITiate:CONTinuous ON (continuous measurement enable)
:TRIGger:SOURce IMMediate
(internal triggering)
:FETCh?
Imports the most recent measurement.
:INITiate:CONTinuous OFF (continuous measurement disable)
:TRIGger:SOURce IMMediate
(internal triggering)
:READ?
A trigger occurs, and a measurement is performed and the result is transferred.
:INITiate:CONTinuous OFF (continuous measurement disable)
:TRIGger:SOURce EXT
(external triggering)
:READ?
When triggered by the [TRIG] Key or TRIG signal, a measurement is performed and
the result is transferred.
:INITiate:CONTinuous OFF automatically occurs.
r
r
72
Using the :FETCh? Command during Continuous Measurement with Internal Triggering
Measurement
Processing
Measured Value
Update
Command
Processing
Response
Measuring
Measuring
Measurement
value
Measuring
Measurement
value
Returns the last measured value to
the PC
Measuring
Measurement
value
Measuring
Measurement
value
This is the simplest method for exporting measured values. It is ideal when measurement (tact) time is not limited,
and when external synchronization is not needed. After connecting to the measurement target, wait for twice the
measurement time before exporting the measured value.
Using the :READ? Command while Continuous Measurement is Disabled
Internal Trigger
Measurement
Processing
Measured Value
Update
Command
Processing
Response
Measuring Measuring
Measurement
value
Idle State
Measurement
value
Start Single Measurement
Returns the measured value afte
single measurement to the PC
Measurement
value
Measurement
Processing
Measured Value
Update
Command
Processing
Response
External Trigger
Measuring
Idle State
Measurement
value
Trigger Wait
State
Start Single Measurement
TRIG Signal Applied
Measuring
Measurement
value
Returns the measured value afte
single measurement to the PC
Use this method to measure (and export) synchronously with the controller (PC, PLC) or external trigger signal.
Measurement time can be minimized.
73
Sample Programs
5
These programs can be created using Visual Basic 5.0, 6.0 or Visual Basic 2010.
Visual Basic is a registered trademark of Microsoft Corporation.
Using Visual Basic 5.0 or 6.0
These sample programs are created with Microsoft Visual Basic 5.0 and 6.0.
The following are used for communication:
For RS-232C/USB communication: MSComm from Visual Basic Professional
For GP-IB communication: National Instruments GP-IB Board, Driver and Module for Visual Basic
During communications, the terminator setting is supposed to be as follows:
RS-232C/USB: CR+LF
GP-IB: LF
RS-232C/USB Communications (Using Microsoft Visual Basic Professional MSComm)
Simple Volatage Measurement
Measures and imports by key input on the PC, and saves measurements in a text file.
Private Sub MeasureSubRS()
Dim recvstr As String 'Receiving character string
Dim i As Integer
MSComm1.CommPort = 1 'COM1 (Check a communication port)
MSComm1.Settings = "9600,n,8,1" 'Set a communication port (not required with USB)
MSComm1.PortOpen = True 'Open a port
Open App.Path & "\data.csv" For Output As #1 'Open a text file for saving
MSComm1.Output = ":TRIG:SOUR IMM" & vbCrLf 'Select an internal triggering
MSComm1.Output = ":INIT:CONT ON" & vbCrLf 'Continuous measurement ON
For i = 1 To 10
MSComm1.Output = ":FETCH?" & vbCrLf
recvstr = "" 'From here on, continue receiving until an LF code occurs
While Right(recvstr, 1) <> Chr(10)
recvstr = recvstr + MSComm1.Input
DoEvents
Wend
recvstr = Left(recvstr, Len(recvstr) - 2) 'Delete the terminator (CR+LF)
Print #1, Str(i) & "," & recvstr 'Write to the file
Next
Close #1
MSComm1.PortOpen = False
End Sub
'Send “:FETCH?” to import the most recent measurement
74
Measurement Voltage by PC Key
Measures and imports by key input on the PC, and saves measurements in a text file.
Private Sub MeasureReadSubRS()
Dim recvstr As String 'Receiving character string
Dim i As Integer
MSComm1.CommPort = 1 'COM1 (Check a communication port)
MSComm1.Settings = "9600,n,8,1" 'Set a communication port (not required with USB)
MSComm1.PortOpen = True 'Open a port
Open App.Path & "\data.csv" For Output As #1 'Open a text file for saving
MSComm1.Output = ":TRIG:SOUR IMM" & vbCrLf 'Select internal triggering
MSComm1.Output = ":INIT:CONT OFF" & vbCrLf 'Continuous measurement OFF
For i = 1 To 10
'Wait for PC key input
'Create a key input check routine to set InputKey() = True when a key is pressed
Do While 1
If InputKey() = True Then Exit Do
DoEvents
Loop
'After confirming key input, measure once, and read the measured value
MSComm1.Output = ":READ?" & vbCrLf
recvstr = "" 'From here on, continue receiving until an LF code occurs
While Right(recvstr, 1) <> Chr(10)
recvstr = recvstr + MSComm1.Input
DoEvents
Wend
recvstr = Left(recvstr, Len(recvstr) - 2) 'Delete the terminator (CR+LF)
Print #1, Str(i) & "," & recvstr 'Write to the file
Next
Close #1
MSComm1.PortOpen = False
End Sub
'Send “:READ?” to measure and import the measurement
75
External Trigger Measurement 1
Measures and imports according to external triggering ([TRIG] key or TRIG signal input), or by PC key input,
and saves measurements in a text file.
Private Sub MeasureTrigSubRS()
Dim recvstr As String 'Receiving character string
Dim i As Integer
MSComm1.CommPort = 1 'COM1 (Check a communication port)
MSComm1.Settings = "9600,n,8,1" 'Set a communication port (not required with USB)
MSComm1.PortOpen = True 'Open a port
Open App.Path & "\data.csv" For Output As #1 'Open a text file for saving
MSComm1.Output = ":TRIG:SOUR EXT" & vbCrLf 'Select external triggering
MSComm1.Output = ":INIT:CONT OFF" & vbCrLf 'Continuous measurement OFF
For i = 1 To 10
MSComm1.Output = ":READ?" & vbCrLf
recvstr = "" 'From here on, continue receiving until an LF code occurs
While Right(recvstr, 1) <> Chr(10)
recvstr = recvstr + MSComm1.Input
DoEvents
'To execute trigger measurement when a PC key is pressed,
'Create a key input check routine to set InputKey() = True when a key is pressed
If InputKey() = True Then
MSComm1.Output = "*TRG" & vbCrLf
End If
Wend
recvstr = Left(recvstr, Len(recvstr) - 2) 'Delete the terminator (CR+LF)
Print #1, Str(i) & "," & recvstr 'Write to the file
Next
Close #1
MSComm1.PortOpen = False
End Sub
'Send “:READ?” to measure and import the measurement
'When key input occurs, send “TRG” to trigger measurement
76
External Trigger Measurement 2
Measures and imports according to external triggering ([TRIG] key or TRIG signal input), and saves
measurements in a text file.
(The instrument imports the most recent measurement by trigger input timing with the continuous
measurement state.)
Private Sub MeasureTrig2SubRS()
Dim recvstr As String 'Receiving character string
Dim i As Integer
MSComm1.CommPort = 1 'COM1 (Check a communication port)
MSComm1.Settings = "9600,n,8,1" 'Set a communication port (not required with USB)
MSComm1.PortOpen = True 'Open a port
Open App.Path & "\data.csv" For Output As #1 'Open a text file for saving
DoEvents
Wend
If Left(recvstr, 1) = "1" Then Exit Do
DoEvents
Loop
MSComm1.Output = ":FETCH?" & vbCrLf
recvstr = "" 'From here on, continue receiving until an LF code occurs
While Right(recvstr, 1) <> Chr(10)
recvstr = recvstr + MSComm1.Input
DoEvents
Wend
recvstr = Left(recvstr, Len(recvstr) - 2) 'Delete the terminator (CR+LF)
Print #1, Str(i) & "," & recvstr 'Write to the file
Next
Close #1
MSComm1.PortOpen = False
End Sub
'Send “:FETCH?” to import the most recent measurement
77
Set Measurement Conditions
Sets up the measurement setting state.
' Measurement Setting Configuration
' Configures instrument settings for measurement
'Range: 1Ω
'Sampling: FAST
'Trigger: External trigger
' Comparator enabled, upper threshold 1V, lower threshold 0.5V, beep upon Hi or Lo
Private Sub SettingsSubRS()
MSComm1.CommPort = 1 'COM1 (Check a communication port)
MSComm1.Settings = "9600,n,8,1" '
MSComm1.PortOpen = True 'Open a port
GP-IB Communications(Using National Instruments GP-IB Board)
Simple Voltage Measurement
Imports measured values 10 times, and saves measurements in a text file.
Private Sub MeasureSub()
Dim buffer As String * 20 'Receiving buffer
Dim recvstr As String 'Receiving character string
Dim pad As Integer 'Controller Address
Dim gpibad As Integer 'Device Address
Dim timeout As Integer 'Timeout period
Dim ud As Integer 'State (unused)
Dim i As Integer
pad = 0 'Board Address 0
gpibad = 1 'Instrument Address 1
timeout = T10s 'Timeout about 10s
Call ibfind("gpib0", 0) 'Initialize GP-IB
Call ibdev(pad, gpibad, 0, timeout, 1, 0, ud)
Call SendIFC(pad)
Open App.Path & "\data.csv" For Output As #1 'Open a text file for saving
Call Send(pad, gpibad, ":TRIG:SOUR IMM", NLend) 'Select internal triggering
Call Send(pad, gpibad, ":INIT:CONT ON", NLend) 'Continuous measurement ON
For i = 1 To 10
'Send “:FETCH?” to import the most recent measurement
79
Measurement Voltage by PC Key
Measures and imports by key input on the PC, and saves measurements in a text file.
Private Sub MeasureReadSub()
Dim buffer As String * 20 'Receiving buffer
Dim recvstr As String 'Receiving character string
Dim pad As Integer 'Controller Address
Dim gpibad As Integer 'Device Address
Dim timeout As Integer 'Timeout period
Dim ud As Integer 'State (unused)
Dim i As Integer
pad = 0 'Board Address 0
gpibad = 1 'Instrument Address 1
timeout = T10s 'Timeout about 10s
Call ibfind("gpib0", 0) 'Initialize GP-IB
Call ibdev(pad, gpibad, 0, timeout, 1, 0, ud)
Call SendIFC(pad)
Open App.Path & "\data.csv" For Output As #1 'Open a text file for saving
Call Send(pad, gpibad, ":TRIG:SOUR IMM", NLend) 'Select internal triggering
Call Send(pad, gpibad, ":INIT:CONT OFF", NLend) 'Continuous measurement OFF
For i = 1 To 10
'Wait for PC key input
'Create a key input check routine to set InputKey() = True when a key is pressed
Do While 1
Print #1, Str(i) & "," & recvstr 'Write to the file
Next
Close #1
Call ibonl(pad, 0)
End Sub
'Send “:READ?” to measure and import the measurement
80
External Trigger Measurement 1
Measures and imports according to external triggering ([TRIG] key or TRIG signal input), and saves
measurements in a text file.
Private Sub MeasureTrigSub()
Dim buffer As String * 20 'Receiving buffer
Dim recvstr As String 'Receiving character string
Dim pad As Integer 'Controller Address
Dim gpibad As Integer 'Device Address
Dim timeout As Integer 'Timeout period
Dim ud As Integer 'State (unused)
Dim i As Integer
Call ibfind("gpib0", 0) 'Initialize GP-IB
Call ibdev(pad, gpibad, 0, timeout, 1, 0, ud)
Call SendIFC(pad)
Open App.Path & "\data.csv" For Output As #1 'Open a text file for saving
Call Send(pad, gpibad, ":TRIG:SOUR EXT", NLend) 'Select external triggering
Call Send(pad, gpibad, ":INIT:CONT OFF", NLend) 'Continuous measurement OFF
For i = 1 To 10
'Timeout 100s (because of external trigger wait state)
'Send “:READ?” to measure and import the measurement
81
External Trigger Measurement 2
Imports according to external triggering ([TRIG] key or TRIG signal input), and saves measurements in a text
file.
(The instrument imports the most recent measurement by trigger input timing with the continuous
measurement state.)
Private Sub MeasureTrig2Sub()
Dim buffer As String * 20 'Receiving buffer
Dim recvstr As String 'Receiving character string
Dim pad As Integer 'Controller Address
Dim gpibad As Integer 'Device Address
Dim timeout As Integer 'Timeout period
Dim ud As Integer 'State (unused)
Dim i As Integer
Call ibfind("gpib0", 0) 'Initialize GP-IB
Call ibdev(pad, gpibad, 0, timeout, 1, 0, ud)
Call SendIFC(pad)
Open App.Path & "\data.csv" For Output As #1 'Open a text file for saving
'Timeout 100s (because of external trigger wait state)
'Send “:FETCH?” to import the most recent measurement
82
Set Measurement Conditions
Sets up the measurement setting state.
' Measurement Setting Configuration
' Configures instrument settings for measurement
'Range: 1Ω
'Sampling: FAST
'Trigger: External trigger
' Comparator enabled, upper threshold 1V, lower threshold 0.5V, beep upon Hi or Lo
Private Sub SettingsSub()
Dim pad As Integer 'Controller Address
Dim gpibad As Integer 'Device Address
Dim timeout As Integer 'Timeout period
Dim ud As Integer 'State (unused)
pad = 0 'Board Address 0
gpibad = 1 'Instrument Address 1
timeout = T10s 'Timeout about 10s
This section describes an example of how to use the Windows development language Visual Basic2010 Express
Edition to operate the instrument unit from a PC via RS-232C/USB, incorporate measurement values, and save
measurement values to a file.
Visual Basic2010 is referred to as VB2010 hereafter.
Note: Depending on the environment of the PC and VB2010, the procedure may differ slightly from the one
described here. For a detailed explanation on how to use VB2010, refer to the instruction manual or Help
of VB2010.
1. Create a new project.
1. Startup VB2010.
2. Select [File] - [New Project].
3. Select [Windows Forms Application] from the templates.
4. Click [OK].
84
2. Place a button.
1. Click [Button] from [Common Controls] of [Toolbox].
2. Drag and drop the button onto the form layout screen.
3. Change [Text] to “Start Measurement” from the Properties window.
85
4. The [Start Measurement] is placed on the form.
3. Place a serial communication component.
1. Click [SerialPort] from [Components] of [Toolbox].
2. Drag and drop the [SerialPort] component onto the form layout screen.
86
3. Change [PortName] to the port name to use for communication from the properties
window.
Check the port to use for communication beforehand.
4. Describe the code.
1. Double-click the placed button to display the code editor.
87
2. Enter the sample program into the code editor.
3. Select [Save All] from the [File] menu.
4. Confirm the save location and then click [Save].
88
Description of creation procedure
Description in sample program
Shown below is a sample program which uses VB2010 to enact RS-232C/USB communication, set the
instrument measurement conditions, read measurement results and then save them to file.
The sample program will be written in the following manner.
Button created to begin measurement Button1
Button created to close application Button2
When the [Begin Measurement] button is pressed, the instrument performs 10 measurements and writes the
measurement values to a “data.csv” file.
When the [Close] button is pressed, the program closes.
The following program is written entirely in [Form1] code.
Imports System Imports System.IO Imports System.IO.Ports
Public Class Form1
'Perform process when Button1 is pressed
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim recvstr As String
Dim i As Integer
Try
Button1.Enabled = False 'Disable buttons during communication ........ (a)
Button2.Enabled = False
Dim sp As New SerialPort("COM1", 9600, Parity.None, 8, StopBits.One) 'Communication port
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Me.Dispose()
End Sub
End Class
89
(a) During communication the [Begin Measurement] and [Close] buttons cannot be pressed.
(b) Matches the instrument communication conditions and the computer usage conditions.
The port to be used on the computer: 1
Transmission speed: 9600 bps Parity: none Data length: 8-bit Stop bit: 1-bit (not required with USB)
(c) Sets CR + LF as the terminator indicating the end of the sending and receiving character string.
(d) Sets the reading operation time to 2 seconds.
(e) Opens the “data.csv” file. However, if a file with this name already exists, the previous “data.csv” will be
deleted and a new file created.
(f) Sends the command to the instrument to perform one measurement and return that measurement result to
the computer.
90
Item
Description
1.IEEE 488.1 interface functions
See: “GP-IB Specifications (Interface Functions)
2. Operation with a device address other than 0 through 30
A setting outside the 0 to 30 range cannot be made.
3.
A change of address is recognized immediately after
changing.
4.
The status information is cleared, and all other items are
preserved. However, the header on/off setting, and
response message separator and terminator are all
initialized.
5.
•
See:
Queries to which multiple response message units are
returned
• Queries producing responses when syntax checking is
•
•
There are no relevant commands.
6 Device Compliance Statement [GP-IB]
“Information on compliance to standards” based on the IEEE 488.2 standard
performed:
All queries produce responses when syntax checking
is performed.
Whether any queries produce responses when read:
There are no queries which produce response
messages when they are read in by the controller.
Whether any commands are coupled:
91
Item
Description
6. Summary of functional elements for use when
constructing device specific commands, and whether
The followings can be used:
•
•
•
•
•
•
•
•
•
•
•
•
• Compound commands and program headers
7. Buffer capacity limitations for block data
Block data is not used.
8. Summary of program data elements used in expressions,
including syntax restrictions imposed by the device
Sub-expressions are not used. Character data, decimal
data and character string program data are the only
program data elements used.
9. Response syntax for queries
See: Message Reference (p.24)
10. Transmission congestion relating to device-to-device
principles for basic response messages
There are no device to device messages.
11. Response capacity for block data
Block data does not appear in responses.
12. Summary of standard commands and queries used
See: Message List (p.17)
13.Device state after a calibration query has been completed
without any problem
*CAL?” command returns the fixed value +0 although
the automatic calibration function is not available.
14. Existence/nonexistence of “*DDT” command
The “*DDT” command is not used.
15. Existence/nonexistence of macro command
Macros are not used.
16.
response to the “*IDN?” query
See:
17. Capacity of the user data storage area reserved for when
executed
The “*PUD” command and the “*PUD?” query are not
used. Further, there is no user data storage area.
18. Resources when the “*RDT” command and the “*RDT?”
query are being used
The “*RDT” command and the “*RDT?” query are not
used. Further, there is no user data storage area.
Conditions which are influenced when “*RST”, “*LRN?”,
(p.15)
20. Scope of the self-testing executed as a result of the
“*TST?” query
See:
21.
device status report
See:
22. Whether commands are overlap or sequential type
All the commands are sequential commands.
23.Criterion relating to the functions required at the instant
that the termination message is produced, as a response
Termination occurs when the command has been
parsed.
The :READ?
data
is received.
compound commands or program headers can be used
and deepest nesting level allowable in sub-expressions,
messages which do not conform to the general
Program message
Program message terminator
Program message unit
Program message unit separator
Command message unit
Query message unit
Command program header
Query program header
Program data
Character program data
Decimal program data
Character string program data
“
For queries related to identification, explanation of the
the “*PUD” command and the “*PUD?” query are being
19.
“*RCL?”, and “*SAV” are used
Additional organization of the status data used in a
to each command
Standard Commands (p.25)
“*LRN?” is not used.
“*RST” command returns the instrument to its initial
state.
“*SAV” command saves measurement condition to a
panel.
“*RCL” command loads measurement condition from a
panel.
See: Standard Commands (p.25), Initialization Items
Standard Commands (p.25)
Event Registers (p.8)
query finishes when the measurement
92
Test Equipment Depot - 800.517.8431 - 99 Washington Street Melrose, MA 02176
TestEquipmentDepot.com
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.