Thank you for purchasing this HIOKI "9518-02 GP-IB INTERFACE."
To get the maximum performance from the unit, please read this manual first,
and keep this at hand.
This Instruction Manual provides information and warnings essential for
operating this equipment in a safe manner and for maintaining it in safe
operating condition. Before using this equipment, be sure to carefully read the
following safety notes.
The following symbols are used in this Instruction Manual to indicate the
relative importance of cautions and warnings.
i
WARNIN
CAUTIO
NOTE
* The "3157" in this Instruction Manual includes the "3157-01."
Indicates that incorrect operation presents significant
danger of accident resulting in death or serious injury to
the user.
Indicates that incorrect operation presents possibility of
injury to the user or damage to the equipment.
Denotes items of advice related to performance of the
equipment or to its correct operation.
When the unit is delivered, check and make sure that it has not been
damaged in transit. If the unit is damaged, or fails to operate according to the
specifications, contact your dealer or HIOKI representative.
(1) 9518-02 GP-IB INTERFACE
(2) This instruction manual
To prevent electrical shock, before adding or replacing the GP-IB
interface, check that the power for the unit is off and the power cord
and connectors are disconnected. [The fixing screws must be firmly
tightened or the input unit may not function up to specification, or may
even fail.]
To avoid the danger of electric shock, never operate the unit with a
GP-IB interface removed. If you should wish to use the unit after
removing an interface, fit a blank panel over the opening of the removed
unit.
The space for fitting the 9518-02 GP-IB INTERFACE in the rear panel of the
3157 is covered with a blank panel. Follow these three steps to install the
9518-02 interface:
(1) Remove the fixing screws, and take off the blank panel.
(2) Insert the 9518-02 GP-IB INTERFACE into the exposed slot in the rear of
the unit in the figure below.
(3) Push the 9518-02 firmly into place, and fix with the screws removed in
By connecting the 9518-02 GP-IB INTERFACE to the 3157 AC GROUNDING
HiTESTER, it is possible to control all the functions of the main unit (except
for powering on and off) via the GP-IB bus. This unit is compliance with the
following standard.
Compliance standard : IEEE 488.1-1987
Further, the 9518-02 is designed with reference to the following standard:
Reference standard : IEEE 488.2-1987
NOTE
On the 9518-02, if the output queue becomes full, it is cleared and a query
error is generated. This differs from the IEEE 488.2 specification, which
only stipulates the clearing of the output queue and the outputting of a
query error when a deadlock state occurs, that is, when both the input
buffer and the output queue have become full, and continuation of
processing has become impossible.
.2Features
(1) All of the functions of the 3157 main unit, except for powering on and off, can
be controlled via the GP-IB interface. However, the ":STARt" command works
in a state in which the momentary OUT settings are disabled even though the
momentary OUT settings have been set.
(2) The beeper sound can be turned on and off.
(3) The unit can be reset.
(4) IEEE 488.2-1987 standard (essential) commands can be used.
All source handshake functions
All acceptor handshake functions
Basic talk functions
Serial poll function
No talk-only mode
The talker cancellation function with MLA (My Listen
Address)
Basic listener functions
No listen-only mode
The listener cancellation function with MTA (My Talk
Address) is provided.
All service request functions
All remote/local functions
No parallel polling function
All device clear functions
No device trigger function
No controller function
These are used to set the device address of the 3157 unit on the GP-IB bus.
For how to set these switches, refer to Section 4.1, "Setting the GP-IB Device
Address."
・The address of the 3157 unit (called the device) on the GP-IB bus can be set to
any number from 0 to 30.
・Use the Address switches on the GP-IB panel to set the device address.
・On dispatch from the factory, this address is initially set to 1.
・If this address is (apparently) set to 31, i.e. if all the switches are in the ON
position, then the bus lines of the 3157 are disabled.
・Always the Address switch for TALK ONLY is in the OFF position, since it is
If you change the bus address while the 3157 is being used, then you should
immediately turn the power off and on again.
If this is not done, the address will not be changed to the new one.
The commands for the 3157 are as far as possible mnemonic. Furthermore, all
commands have a long form, and an abbreviated short form.
.3.1Program Message
The program message is made up from header and data portions.
Example Command message to set test time to ON
:TIMER_ON
↑↑
: Header portion: Data portion (ASCII-format text or numeric values. Some
messages have no data portions...query messages, etc.)
A command header can be abbreviated. The whole command form is referred
to as the "long form" and the abbreviated form as the "short form."
In this manual, the short form is written in upper case letters, and then this
is continued in lower case letters so as to constitute the long form. Either of
these forms will be accepted during operation, but intermediate forms will not
be accepted. Further, during operation both lower case letters and upper case
letters will be accepted without distinction.
For "TIMER", either "TIMer" (the long form) or "TIM" (the short form) will be
accepted. However, any one of "TIME", or "TI" is wrong and will generate an
error.
.3.2Response Messages
It represents the response message for query messages from the 3157.
Response messages generated by the 3157 are in long form and in upper case
letters.
Example :TIMER_ON
The 3157 uses character string data and decimal numeric data, and the type
used varies according to the command in question.
(1) Character data
Character string data must always begin with an alphabetic character, and
the characters following can be either alphabetic characters or numerals.
Although in character data either upper case letters or lower case letters are
accepted, response messages output by the 3157 are always in upper case
letters.
Example :STATe_reaDY
(2) Decimal data
The numeric data values are all represented in decimal, in three formats
identified as NR1, NR2 and NR3, and each of these can appear as either a
signed number or an unsigned number. Unsigned numbers are taken as
positive. Further, if the accuracy of a numerical value exceeds the limit which
the 3157 can deal, it is rounded off (5 and above is rounded up; 4 and below is
rounded down).
NR1 format: Integer data
Examples +3000, -50000, 210
NR2 format: Fixed point numbers
Examples
NR3 format: Floating point numbers.
Examples +3E-2, -1.2E3
The term "NRf format" includes all these three formats. When the 3157 is
receiving it accepts NRf format, but when it is sending response messages it
utilizes whichever one of the formats NR1 to NR3 is indicated in the specified
command.
Examples :CONFigure:CURRent_25
When several compound commands have a common head portion (for example,
:CONFigure:CURRent and :CONFigure:RUPPer, etc.), then, when and only
when writing them directly following on from one another, this common
portion (:CONFigure in this example) can be omitted from each command
except for the first one.
This common portion is called "the current path", by analogy with the general
concept of the current directory in the directory structure of UNIX or MSDOS,
and until it is cleared the analysis of following commands is performed by
deeming them to be preceded by the current path which has been curtailed in
the interests of brevity. This manner of using the current path is shown in
the following example:
Normal expression
:CONFigure:CURRent_25.0;:CONFigure:RUPPer_0.100
Abbreviated expression
:CONFigure:
The current path is cleared when the power is turned on, when a colon (:)
appears at the start of a command, and when a message terminator is
detected.
Messages of standard command form can be executed without relation to the
current path. Further, they have no effect upon the current path.
It is not necessary to prefix a colon (:) at the start of headers of simple
commands and compound commands. However, in order to prevent confusion
with abbreviated forms and mistakes in operation, it is recommended practice
always to prefix ":" to headers.
With the 3157, there are 4 possible current paths:
:CONFigure:
:MEASure:
:MEMory:
:SYSTem:
CURRent_25.0;RUPPer_0.100
This becomes the current path, and can be
curtailed from the following commands.
In its implementation of the serial polling function using service requests, the
3157 employs the status model specified by IEEE 488.2.
The term "event" refers to any phenomenon which generates a service request.
Status byte register (STB
Represents standard event registe
Data is present in the output queu
Represents corresponding event registe
RQS
MSS
Logical sum
Service request enable register (SRER
ESBMAVESB0
ESBMAV
ESB0
Generation of service requests
The status byte register holds information relating to the event registers and
the output queue.
It is further possible to use the service request enable register as a mask to
select the items required. If any of the bits selected by the mask becomes 1,
bit 6 (the master summary status or MSS bit) is also set to 1, an RQS
message is generated, and this generates a service request.
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.
Status byte register (STB
RQS
ESB
MSS
Logical sum
Standard event status register (SESR
URQ
CMEEXE
DDEQYERQCOPCPON
PONURQ
CMEEXE
DDEQYERQCOPC
Standard event status enable register (SESER
The standard event status register is cleared in the following three situations:
Setting any bit of the standard event status enable register to 1 enables the
corresponding bit of the standard event status register to be accessed.
Bit 7
PON
Bit 6
URQ
Bit 5
CME
Bit 4
EXE
Bit 3
DDE
Power on flag.
When the power is turned on, or on recovery from a power cut, this bit is set to 1
User request.
Not used by the 3157.
Command error.
When a command which has been received contains a syntactic or semantic error
this bit is set to 1.
・The command is not supported by the 3157.
・There is a mistake in a program header.
・The number of data parameters is wrong.
・The format of the parameters is wrong.
Execution error.
When for some reason a command which has been received cannot be executed,
this bit is set to 1.
・The designated data value is outside the set range.
・The designated data value is not acceptable.
・Execution is impossible because some other function is being performed.
Device dependent error.
When a command cannot be executed due to some cause other than a command
error, a query error, or an execution error, this bit is set to 1.
Execution is impossible due to an abnormality inside the 3157.
Bit 2
QYE
Bit 1
RQC
Bit 0
OPC
Query error.
This bit is set to 1 when a query error is detected by the output queue control.
・When an attempt has been made to read the output queue when it is empty.
・When the data overflows the output queue.
・When data in the output queue has been lost.
Request for controller authority.
Not used by the 3157.
Operation terminated.
This bit is set to 1 when an "*OPC" command is executed, when the operation of
all the messages up to the "*OPC" command has been completed.
(3) Event status register specific to the 3157 (ESR0)
An 8-bit event status register is provided for managing events on the 3157. If
any bit in this event status register is set to 1 (after masking by the
corresponding event status enable register), the following happens:
・For event status register 0, bit 0 of the status byte register (ESB0) is set to 1.
Status byte register (STB
ESB0
Event status register 0 (ESR0
Logical sum
nuse
nuse
nuse
nuse
nuse
nuse
nuse
nuse
EOM LFAILUFAILPASS
EOM LFAILUFAILPASS
Event status enable register 0 (ESER0
Event status register 0 is cleared in the following three situations:
When a "*CLS" command is received.
When an ":ESR0?" query is received.
When the unit is powered on.
Event status register 0 (ESR0) bit assignments
Bit 7Unused
Bit 6Unused
Bit 5Unused
Bit 4Unused
Bit 3
EOM
Bit 2
LFAIL
Bit 1
UFAIL
Bit 0
PASS
Test completed
Below lower limit of comparator
Above upper limit of comparator
Within limits of comparator
(4) Event status enable register specific to the 3157 (ESER0)
This event status enable register masks the corresponding event status
register.
(5) Summary of commands for writing and reading each of the registers
RegisterReadWrite
Status byte register
Service request enable register
Standard event status register
Standard event status enable register
Event status register 0:ESR0?──
Event status enable register 0:ESE0?:ESE0
:ADJustEnables and disables the zero adjustment function.34
:ADJust?Queries the zero adjustment function enablement.34
:CONFigure?Queries the test settings.35
:CONFigure:CURRentSets the output current value.35
:CONFigure:CURRent?Queries the output current value.36
:CONFigure:DATASets the number of test data.36
:CONFigure:DATA?Queries the number of test data.36
:CONFigure:RLOWerSets the minimum test value (resistance).37
:CONFigure:RLOWer?Queries the minimum test value (resistance).37
:CONFigure:RUPPerSets the maximum test value (resistance).38
:CONFigure:RUPPer?Queries the maximum test value (resistance).38
:CONFigure:TIMerSets the test time.39
:CONFigure:TIMer?Queries the test time.39
:CONFigure:VLOWerSets the minimum test value (voltage).40
:CONFigure:VLOWer?Queries the minimum test value (voltage).40
Ref
page
:CONFigure:VUPPerSets the maximum test value (voltage).41
:CONFigure:VUPPer?Queries the maximum test value (voltage).41
:ESE0Sets event status enable register 0.42
:ESE0?Queries event status enable register 0.42
:ESR0?Queries event status register 0.43
:HEADerEnables and disables headers for the response messages.43
:HEADer?Queries whether or not headers on response messages are
enabled.
:KEYSets key entry.44
:LOWerEnables and disables the minimum test value.44
:LOWer?Queries the minimum test value enablement.45
:MEASure:CURRent?Queries the measured current value.45
:MEASure:RESistance?Queries the measured resistance value.46
:MEASure:TIMer?Queries the test time elapsed.46
:MEASure:VOLTage?Queries the measured voltage value.47
:MEASure:RESult:VOLTage?Queries the measured value and result (voltage).47
:MEASure:RESult:RESistance?Queries the measured value and result (resistance).48
43
:MEMory:CLEarClears Setting memory.48
:MEMory:FILE?Queries the contents of Setting memory.49
:MEMory:LOADLoads Setting memory.49
:MEMory:SAVESaves in Setting memory.50
:STARtStarts a test.50
:STATe?Queries the state.50
:STOPPerforms forcible ending of a test and releases the hold state
:SYSTem:OPTion:BUZZerSets the buzzer.51
:SYSTem:OPTion:BUZZer?Queries the buzzer.51
:SYSTem:OPTion:CCHangeSets the current changeability in the TEST state.52
:SYSTem:OPTion:CCHange?Queries the current changeability in the TEST state.52
:SYSTem:OPTion:CDATaSets the maximum number of test data in the test data coun
function.
:SYSTem:OPTion:CDATa?Queries the maximum number of test data in the test data
count function.
:SYSTem:OPTion:COUNtSets the test data count function.54
:SYSTem:OPTion:COUNt?Queries the test data count function.54
:SYSTem:OPTion:ENDLessSets the endless timer function.55
:SYSTem:OPTion:ENDLess?Queries the endless timer function.55
:SYSTem:OPTion:FREQuencySets the output current frequency.56
:SYSTem:OPTion:FREQuency?Queries the output current frequency.56
:SYSTem:OPTion:HOLDSets the hold function.57
Ref
page
51
53
53
:SYSTem:OPTion:HOLD?Queries the hold function.57
:SYSTem:OPTion:LOWerSets the minimum test value.58
:SYSTem:OPTion:LOWer?Queries the minimum test value.58
:SYSTem:OPTion:MOMentarySets the momentary OUT function.59
:SYSTem:OPTion:MOMentary?Queries the momentary OUT function.59
:SYSTem:OPTion:PFHoldSets the PASS/FAIL hold function.60
:SYSTem:OPTion:PFHold?Queries the PASS/FAIL hold function.60
:SYSTem:OPTion:PRINterSets the printer output function.61
:SYSTem:OPTion:PRINter?Queries the printer output function.61
:SYSTem:OPTion:TMODeSets the test mode.62
:SYSTem:OPTion:TMODe?Queries the test mode.62
:TIMerEnables and disables the test time.63
:TIMer?Queries the test time enablement.63
:TRANsmit:TERMinatorSets the data terminator for response messages.63
:TRANsmit:TERMinator?Queries the data terminator for response messages.64
:UNITSets the unit of the maximum and minimum test values.64
:UNIT?Queries the unit of the maximum and minimum test values.64
:UPPerEnables and disables the maximum test value.65
:UPPer?Queries the maximum test value enablement.65
Specifies the syntax for the command (a space is represented by "_" in this
syntax).
For a command that has parameters, specifies their format.
Specifies the function of the command.
Specifies precautions to be taken when using the command.
These are simple examples of the use of the command.
Note that all transmission messages are expressed in a "short form."
Specifies what types of error may occur.
Any spelling error in a message results in a command error.
For details of each function, refer to the instruction manual for the 3157 unit.
Syntax *CLS
Function ・ Clears all the event registers (SESR, ESR0) associated with the bits of the
status byte register. Accordingly, also clears the status byte register.
・ This has no effect upon the output queue, the various enable registers, or bit 4
(the MAV bit) of the status byte register.
Error If the data parameters are set after this command, a command error occurs.
ESE
*
Syntax *ESE_<data>
<data> Numerical data in NR1 format between 0 and 255
Function ・ Sets the standard event status enable register (SESER) to a bit pattern which
is used to mask the standard event status register (SESR).
・ The numerical value can be in NRf format, but any digits after the decimal
point will be rounded.
・ When the power is turned on, the data is reinitialized to zero.
1286432168421
bit 7bit 6bit 5bit 4bit 3bit 2bit 1bit 0
PONURQCMEEXEDDEQYERQCOPC
Standard event status enable register (SESER)
Example Transmission*ESE 20
Bits 2 and 4 of SESER are set to 1.
Error If <data> is other than numerical value described above, an execution error
Syntax *OPC
Function Sets bit 0 (the OPC bit) of the standard event status register (SESR) to 1 at
the instant the previous commands which is on the same line with *OPC
have been completed.
Error If the data parameters are set after this command, a command error occurs.
OPC?
*
■
Syntax *OPC?
Function ・ The same as the *OPC command, except in that, at the instant that the
previous commands have been completed.
・ Returns the response message "1", instead of bit 0 (the OPC bit) of the
standard event status register (SESR) being set to 1.
・ No header is affixed to the response message.
Error If the response message is longer than 300 bytes, a query error is generated.
RST
*
■
Syntax *RST
Function Resets the 3157. The items which are reset are listed below.
Voltage or resistance indicator (unit)Resistance
Test time enablementON
Maximum test value enablementON
Minimum test value enablementOFF
Output current value25.0 A
Maximum test value (resistance)0.100 Ω
Minimum test value (resistance)0.000 Ω
Maximum test value (voltage)2.50 Ω
Minimum test value (voltage)0.00 Ω
Test time60.0 s
Error If the data parameters are set after this command, a command error occurs.
Syntax *SRE_<data>
<data> Numerical data in NR1 format between 0 and 255
Function ・ Sets a pattern which is used to mask the status byte register (STB) to the
service request enable register (SRSR).
・ The numerical value can be in NRf format, but any digits after the decimal
point will be rounded.
・ The settings of unused bits (bits 1, 2, 3, and 7) and bit 6 are disregarded.
・ When the power is turned on, the data is reinitialized to zero.
1286432168421
bit 7bit 6bit 5bit 4bit 3bit 2bit 1bit 0
Unuse
Service request enable register (SRER)
×ESBMAVUnusedUnusedUnusedESE0
Example Transmission *SRE 33
Bits 0 and 5 of SRER are set to 1.
Error If <data> is other than numerical value described above, an execution error
occurs.
SRE?
*
■
Syntax *SRE?
Function
Returns the set contents of the service request enable register (SRER) as a
numerical value in NR1 format between 0 and 255.
Example Response
If headers are on *SRE 33
If headers are off 33
Bits 0 and 5 of SRER have been set to 1.
1286432168421
bit 7bit 6bit 5bit 4bit 3bit 2bit 1bit 0
Unuse
Service request enable register (SRER)
×ESBMAVUnusedUnusedUnusedESE0
Error If the response message is longer than 300 bytes, a query error is generated.
Syntax :CONFigure:CURRent?
Function Returns the output current value setting as a numerical value in NR2 format.
<data> Numerical data in NR2 format between 3.0 and 31.0
Note If the output current value is reset in the TEST state (test in progress), the
reset value is returned. On completion of the test, however, the value that
was set before the test is returned.
Example Response
If headers are on :CONFIGURE:CURRENT 25.0
If headers are off 25.0
Error If the response message is longer than 300 bytes, a query error is generated.
:CONFigure:DATA
■
Syntax :CONFigure:DATA_<data>
<data> Numerical data in NR1 format between 1 and 99
Function Sets the number of test data.
The numerical value can be in NRf format, but any digits after the decimal
point will be rounded.
Example Transmission :CONFigure:DATA 10
The number of test data is set to 10.
Error If <data> is other than numerical value described above, an execution error
occurs.
The execution of this command in a state other than the READY state causes
an execution error.
If a number exceeding the maximum number of test data in the test data
count function is set, an execution error occurs.
:CONFigure:DATA?
■
Syntax :CONFigure:DATA?
Function
Returns the setting for the number of test data as a numerical value in NR1
format.
<data> Numerical data in NR1 format between 1 and 99
Example Response
If headers are on :CONFIGURE:DATA 10
If headers are off 10
Error If the response message is longer than 300 bytes, a query error is generated.
Syntax :CONFigure:RUPPer_<data>
<data> Numerical data in NR2 format between 0.000 and 2.000
Function Sets the maximum test value (resistance).
The numerical value can be in NRf format, but rounding is performed for
figures beyond the last valid decimal place.
Note The maximum test value (resistance) can be used as the basis for the test only
when the maximum and minimum test values are set to be expressed in
"OHM" (resistance) and when "ON" is selected in the ON/OFF setting for the
maximum test value.
Example Transmission :CONFigure:RUPPer 0.100
The maximum test value (resistance) is set to 0.100 Ω.
Error If <data> is other than numerical value described above, an execution error
occurs.
The execution of this command in a state other than the READY state causes
an execution error.
:CONFigure:RUPPer?
■
Syntax :CONFigure:RUPPer?
Function Returns the maximum test value (resistance) setting as a numerical value in
NR2 format.
<data> Numerical data in NR2 format between 0.000 and 2.000
Example Response
If headers are on :CONFIGURE:RUPPER 0.200
If headers are off 0.200
Error If the response message is longer than 300 bytes, a query error is generated.
Syntax :CONFigure:TIMer_<data>
<data> Numerical data in NR1 or NR2 format between 0.5 and 999
Function Sets the test time.
The numerical value can be in NRf format, but rounding is performed for
figures beyond the last valid decimal place.
Note The test time can be used as the basis for the test only when the endless timer
function setting is disabled and when "ON" is selected in the ON/OFF setting
for the test time.
Example Transmission :CONFigure:TIMer 60.0
The test time is set to 60.0 s.
Error If <data> is other than numerical value described above, an execution error
occurs.
The execution of this command in a state other than the READY state causes
an execution error.
:CONFigure:TIMer?
■
Syntax :CONFigure:TIMer?
Function Returns the test time setting as a numerical value in NR1 or NR2 format.
<data> Numerical data in NR1 or NR2 format between 0.5 and 999
Example Response
If headers are on :CONFIGURE:TIMER 60.0
If headers are off 60.0
Error If the response message is longer than 300 bytes, a query error is generated.
Syntax :CONFigure:VLOWer_<data>
<data> Numerical data in NR2 format between 0.00 and 6.00
Function Sets the minimum test value (voltage).
The numerical value can be in NRf format, but rounding is performed for
figures beyond the last valid decimal place.
Note The minimum test value (voltage) can be used as the basis for the test only
when the maximum and minimum test values are set to be expressed in
"VOLT" (voltage) and when the minimum test value setting is not disabled,
and when "ON" is selected in the ON/OFF setting for the minimum test value.
Example Transmission :CONFigure:VLOWer 0.00
The minimum test value (voltage) is set to 0.00 V.
Error If <data> is other than numerical value described above, an execution error
occurs.
The execution of this command in a state other than the READY state causes
an execution error.
:CONFigure:VLOWer?
■
Syntax :CONFigure:VLOWer?
Function Returns the minimum test value (voltage) setting as a numerical value in NR2
format.
<data> Numerical data in NR2 format between 0.00 and 6.00
Example Response
If headers are on :CONFIGURE:VLOWER 0.00
If headers are off 0.00
Error If the response message is longer than 300 bytes, a query error is generated.
Syntax :ESE0
Function Sets event status enable register 0 (ESER0) to the bitmask for controlling
access to events in event status register 0 (ESR0).
The numerical value can be in NRf format, but any digits after the decimal
point will be rounded.
When the power is turned on, the data is reinitialized to zero.
1286432168421
bit 7bit 6bit 5bit 4bit 3bit 2bit 1bit 0
UnusedUnusedUnusedUnusedEOMLFAILUFAILPASS
Event status enable register 0 (ESER0)
Example Transmission :ESE0 4
Bit 2 of ESER0 is set to 1.
Error If <data> is other than numerical value described above, an execution error
occurs.
:ESE0?
■
Syntax :ESE0?
Function Returns the value of event status enable register 0 (ESER0) as a numerical
value in NR1 format between 0 and 15.
1286432168421
bit 7bit 6bit 5bit 4bit 3bit 2bit 1bit 0
UnusedUnusedUnusedUnusedEOMLFAILUFAILPASS
Event status enable register 0 (ESER0)
Example Response
If headers are on :ESE0 4
If headers are off 4
Error If the response message is longer than 300 bytes, a query error is generated.
Syntax :LOWer?
Function Returns the current enablement state of the minimum test value as character
data.
<data> ON/OFF (character data)
Example Response
If headers are on :LOWER ON
If headers are off ON
Error If the response message is longer than 300 bytes, a query error is generated.
:MEASure:CURRent?
■
Syntax :MEASure:CURRent?
Function Returns the measured current value as a numerical value in NR2 format.
<data> Numerical data in NR2 format between 0.0 and 35.0
Note The measured current value is returned in the TEST state (test in progress),
and the result of the previous test is returned in the other states.
In the stand-by state (as indicated by a blinking TEST lamp), the following
values are returned.
In the soft start mode: Measured value
In the continuous test mode: Result of the previous test
Example Response
If headers are on :MEASURE:CURRENT 25.0
If headers are off 25.0
Error If the response message is longer than 300 bytes, a query error is generated.
Syntax :MEASure:RESistance?
Function Returns the measured resistance value as a numerical value in NR2 format.
<data> O.F. (character data)
Numerical data in NR2 format between 0.0 and 35.0
Note The measured current value is returned in the TEST state (test in progress),
and the result of the previous test is returned in the other states.
In the stand-by state (as indicated by a blinking TEST lamp), the following
values are returned.
In the soft start mode: Measured value
In the continuous test mode: Result of the previous test
In the case of an overflow for the measured resistance, "O.F." is returned.
Example Response
If headers are on :MEASURE:RESISTANCE 0.200
If headers are off 0.200
Error If the response message is longer than 300 bytes, a query error is generated.
:MEASure:TIMer?
■
Syntax :MEASure:TIMer?
Function Returns the test time elapsed as a numerical value in NR2 format.
<data> --- (character data)
Numerical data in NR2 format between 0.0 and 999.0
Note The measured current value is returned in the TEST state (test in progress),
and the result of the previous test is returned in the other states.
The test time elapsed is returned regardless of the ON/OFF setting for the test
time. Thus, the value displayed on the GP-IB interface may differ from that
displayed on the main body.
The test time elapsed is returned regardless of the ON/OFF setting for the test
time. However, when the endless timer function is set, "---" is returned.
In the stand-by state (as indicated by a blinking TEST lamp), the following
values are returned.
In the soft start mode: Measured value
In the continuous test mode: Result of the previous test
Example Response
If headers are on :MEASURE:TIMER 10.0
If headers are off 10.0
Error If the response message is longer than 300 bytes, a query error is generated.
Syntax :MEASure:VOLTage?
Function Returns the measured voltage value as a numerical value in NR2 format.
<data> Numerical data in NR2 format between 0.00 and 6.00
Note The measured current value is returned in the TEST state (test in progress),
and the result of the previous test is returned in the other states.
In the stand-by state (as indicated by a blinking TEST lamp), the following
values are returned.
In the soft start mode: Measured value
In the continuous test mode: Result of the previous test
Example Response
If headers are on :MEASURE:VOLTAGE 2.50
If headers are off 2.50
Error If the response message is longer than 300 bytes, a query error is generated.
:MEASure:RESult:VOLTage?
■
Syntax :MEASure:RESult:VOLTage?
Function
<data> Measured current and voltage values: Numerical value in NR2 format
Note The previous measured value and result are returned until the next test is
Example Response
Returns as data the measured value and result as <measured current value>,
<measured voltage value>, <test time elapsed>, <screening result> in order.
If the unit of the maximum and minimum test values is set to "OHM"
(resistance), the measured voltage value and screening result are OFF.
Test time elapsed: --- (character data) or numerical value in NR2 format
Syntax :MEASure:RESult:RESistance?
Function Returns as data the measured value and result as <measured current value>,
<measured resistance value>, <test time elapsed>, <screening result> in order.
If the unit of the maximum and minimum test values is set to "VOLT"
(voltage), the measured resistance value and screening result are OFF.
<data> Measured current value: Numerical value in NR2 format
Measured resistance value: O.F. (character data) or numerical value in NR2
format
Test time elapsed: --- (character data) or numerical value in NR2 format
Screening results: PASS, UFAIL (UPPER FAIL), LFAIL (LOWER FAIL),
ULFAIL (FAIL due to the protection function), OFF (other than PASS and
FAIL) (character data)
Note The previous measured value and result are returned until the next test is
completed.
If the measured voltage value is required, query using the
":MEASure:VOLTage?" command until the next test starts.
In the case of an overflow for the measured resistance, "O.F." is returned.
The test time elapsed is returned regardless of the ON/OFF setting for the test
time. However, when the endless timer function is set, "---" is returned.
Example Response
If headers are on :MEASURE:RESULT:RESISTANCE 25.0,0.100,60.0,PASS
If headers are off 25.0,0.100,60.0,PASS
Error If the response message is longer than 300 bytes, a query error is generated.
:MEMory:CLEar
■
Syntax :MEMory:CLEar_<data>
<data> Numerical data in NR1 format between 1 and 20
Function Clears Setting memory numbered <data>.
The numerical value can be in NRf format, but any digits after the decimal
point will be rounded.
Note The specified Setting memory is initialized.
For the items which are initialized, see the "*RST" command.
Example Transmission:MEMory:CLEar 10
Setting memory numbered 10 is cleared.
Error If <data> is other than numerical value described above, an execution error
occurs.
The execution of this command in a state other than the READY state causes
an execution error.
Syntax :MEMory:FILE?_<data 1>
<data 1> Numerical data in NR1 format between 1 and 20
Function Returns as data (<data2>) the contents of Setting memory numbered <data 1>
as <output current value>, <maximum test value>, <minimum test value>,
<test time> in order.
If the unit of the maximum and minimum test values is set to "OHM"
(resistance), the maximum and minimum test values are expressed as
resistance values.
If the unit of the maximum and minimum test values is set to "VOLT"
(voltage), the maximum and minimum test values are expressed as voltage
values.
<data 2> Output current value: Numerical value in NR2 format
Maximum test value, minimum test value, test time: OFF, --- (character data),
or numerical value in NR2 format
When the minimum test value is not set, returns "---."
When the minimum test value is set and set to OFF, returns "OFF."
When the endless timer function is set, returns "---."
When the endless timer function is not set, and the test time is set to OFF,
returns "OFF."
Example Transmission:MEMory:FILE? 1
Response
If headers are on :MEMORY:FILE 25.0,0.100,0.000,60.0
If headers are off 25.0,0.100,0.000,60.0
Error If the response message is longer than 300 bytes, a query error is generated.
The execution of this command in a state other than the READY state causes
an execution error.
:MEMory:LOAD
■ Loads
Syntax :MEMory:LOAD_<data>
<data> Numerical data in NR1 format between 1 and 20
Function Loads Setting memory numbered <data>.
The numerical value can be in NRf format, but any digits after the decimal
point will be rounded.
Example Transmission:MEMory:LOAD 10
Setting memory numbered 10 is loaded.
Error If <data> is other than numerical value described above, an execution error
occurs.
The execution of this command in a state other than the READY state causes
Syntax :MEMory:SAVE_<data>
<data> Numerical data in NR1 format between 1 and 20
Function Saves the current settings in Setting memory numbered <data>.
The numerical value can be in NRf format, but any digits after the decimal
point will be rounded.
Example Transmission:MEMory:SAVE 10
The current settings are saved in Setting memory numbered 10.
Error If <data> is other than numerical value described above, an execution error
occurs.
The execution of this command in a state other than the READY state causes
an execution error.
:STARt
■
Syntax :STARt
Function Starts a test in the READY state (except the optional function setting screen).
Note The ":STARt" command works in a state in which the momentary OUT
settings are disabled even though the momentary OUT settings have been set.
Example Transmission:STARt
Error The execution of this command in a state other than the READY state causes
an execution error.
If the data parameters are set after this command, a command error occurs.
:STATe?
■
Syntax :STATe?
Function Returns the state as data.
<data> Screening results: PASS, UFAIL, LFAIL, ULFAIL, READY, TEST, OFF
(character data)
PASS: PASS state
UFAIL: FAIL state (UPPER FAIL)
LFAIL: FAIL state (LOWER FAIL)
ULFAIL: FAIL state (FAIL due to the protection function)
OFF: Hold state (in a state other than the PASS and FAIL states), save
screen, load screen, optional function setting screen
Example Response
If headers are on :STATE PASS
If headers are off PASS
Error If the response message is longer than 300 bytes, a query error is generated.
Syntax :SYSTem:OPTion:CDATa_<data>
<data> Numerical data in NR1 format between 1 and 99
Function Sets the maximum number of test data in the test data count function.
The numerical value can be in NRf format, but any digits after the decimal
point will be rounded.
Note When the test data count function is not set, the setting for the maximum
number of test data is not reflected in the test.
Example Transmission:SYSTem:OPTion:CDATa 10
The maximum number of test data is set to 10.
Error If <data> is other than numerical value described above, an execution error
occurs.
If a smaller value than that set for the number of test data is set, an
execution error occurs.
The execution of this command in a state other than the following states
causes an execution error:
・ READY state
・ Optional function setting screen
:SYSTem:OPTion:CDATa?
■
Syntax :SYSTem:OPTion:CDATa?
Function Returns the setting for the maximum number of test data in the test data
count function as a numerical value in NR1 format.
<data> Numerical data in NR1 format between 1 and 99
Example Response
If headers are on :SYSTEM:OPTION:CDATA 10
If headers are off 10
Error If the response message is longer than 300 bytes, a query error is generated.
Syntax :SYSTem:OPTion:HOLD_<data>
<data> Numerical data in NR1 format between 0 and 1
Function Sets the hold function.
0: Not held
1: Held
The numerical value can be in NRf format, but any digits after the decimal
point will be rounded.
Example Transmission:SYSTem:OPTion:HOLD 1
The hold function is set to "Held."
Error If <data> is other than numerical value described above, an execution error
occurs.
The execution of this command in a state other than the following states
causes an execution error:
・ READY state
・ Optional function setting screen
:SYSTem:OPTion:HOLD?
■
Syntax :SYSTem:OPTion:HOLD?
Function Returns the hold function setting as a numerical value in NR1 format.
<data> Numerical data in NR1 format between 0 and 1
Example Response
Error If the response message is longer than 300 bytes, a query error is generated.
Syntax :SYSTem:OPTion:LOWer_<data>
<data> Numerical data in NR1 format between 0 and 1
Function Sets the minimum test value.
0: Not set
1: Set
The numerical value can be in NRf format, but any digits after the decimal
point will be rounded.
Note The ":STARt" command works in a state in which the momentary OUT
settings are disabled even though the momentary OUT settings have been set.
Example Transmission:SYSTem:OPTion:LOWer 1
The minimum test value is set.
Error If <data> is other than numerical value described above, an execution error
occurs.
The execution of this command in a state other than the following states
causes an execution error:
・ READY state
・ Optional function setting screen
:SYSTem:OPTion:LOWer?
■
Syntax :SYSTem:OPTion:LOWer?
Function Returns the minimum test value setting as a numerical value in NR1 format.
<data> Numerical data in NR1 format between 0 and 1
Example Response
If headers are on :SYSTEM:OPTION:LOWER 1
If headers are off 1
Error If the response message is longer than 300 bytes, a query error is generated.
Syntax :SYSTem:OPTion:PFHold_<data>
<data> Numerical data in NR1 format between 0 and 3
Function Sets the PASS/FAIL hold function.
0: PASS not held, FAIL held
1: PASS held, FAIL held
2: PASS not held, FAIL not held
3: PASS held, FAIL not held
The numerical value can be in NRf format, but any digits after the decimal
point will be rounded.
Example Transmission:SYSTem:OPTion:PFHold 3
The PASS/FAIL hold function is set to "PASS held, FAIL not held."
Error If <data> is other than numerical value described above, an execution error
occurs.
The execution of this command in a state other than the following states
causes an execution error:
・ READY state
・ Optional function setting screen
:SYSTem:OPTion:PFHold?
■
Syntax :SYSTem:OPTion:PFHold?
Function
<data> Numerical data in NR1 format between 0 and 3
Example Response
Error If the response message is longer than 300 bytes, a query error is generated.
Returns the PASS/FAIL hold function setting as a numerical value in NR1
format.
If headers are on :SYSTEM:OPTION:PFHOLD 3
If headers are off 3
Syntax :SYSTem:OPTion:TMODe_<data>
<data> Numerical data in NR1 format between 0 and 2
Function Sets the test mode.
0: Soft start mode
1: Normal mode
2: Continuous test mode
The numerical value can be in NRf format, but any digits after the decimal
point will be rounded.
Note When the momentary OUT function is set, if the continuous test mode is set,
the momentary OUT function is automatically set to "Not set."
Example Transmission:SYSTem:OPTion:TMODe 2
The test mode is set to Continuous test mode.
Error If <data> is other than numerical value described above, an execution error
occurs.
The execution of this command in a state other than the following states
causes an execution error:
・ READY state
・ Optional function setting screen
:SYSTem:OPTion:TMODe?
■
Syntax :SYSTem:OPTion:TMODe?
Function Returns the test mode setting as a numerical value in NR1 format.
<data> Numerical data in NR1 format between 0 and 2
Example Response
If headers are on :SYSTEM:OPTION:TMODE 2
If headers are off 2
Error If the response message is longer than 300 bytes, a query error is generated.
Function Sets the unit of the maximum and minimum test values.
Note If the unit of the maximum and minimum test values is set to "OHM"
(resistance), the maximum and minimum test values (resistance) settings are
reflected in the test.
If the unit of the maximum and minimum test values is set to "VOLT"
(voltage), the maximum and minimum test values (voltage) settings are
reflected in the test.
Example Transmission:UNIT OHM
The unit of the maximum and minimum test values is set to OHM.
Error If <data> is other than character data and numerical value described above, a
command error occurs.
The execution of this command in a state other than the following states
causes an execution error:
・ READY state
・ Optional function setting screen
:UNIT?
■
Syntax :UNIT?
Function Returns the setting for the unit of the maximum and minimum test values as
character data.
<data> OHM/VOLT (character data)
Example Response
If headers are on :UNIT OHM
If headers are off OHM
Error If the response message is longer than 300 bytes, a query error is generated.
380 OUTPUT 701;":MEAS:RES:RES?"
390 ENTER 701;C$
400 PRINT C$
410 IF BINAND(D,2)=2 THEN
420OUTPUT 701;":STOP"
430 END IF
440 GOTO Exit1
450 Interrupt: !
460 P=SPOLL(701)
470 OUTPUT 701;":ESR0?"
480 ENTER 701;D
490 IF BINAND(D,8)=8 THEN F=1
500 DISABLE INTR 7
510 OUTPUT 701;"*CLS"
520 RETURN
530 Exit1: !
540 END
Program comments
Line Comment
110-160 Confirm that the 3157 is in the READY state.
170-240 Make test settings.
250 Set SRQ generation conditions(an SRQ interrupt is produced whether
comparator result is "EOM").
260 Attach interrupt handler to SRQ interrupt.
310-330 Check that a test has started.
340-350 Check that a test has finished.
360-440 Query the test results.
450-520 SRQ interrupt
Sample display
25.0,0.020,60.0,PASS
(2) Saving the basic settings
This program sets the 3157 to the following test values, and then save them in
Setting memory.
Setting memory 1
Output current value: 25.0 A
Maximum test value: 0.100 Ω
Test time: 60.0 s
Setting memory 3
Output current value: 25.0 A
Maximum test value: 0.100 Ω
Test time: 5.0 s
Setting memory 2
Output current value: 10.0 A
Maximum test value: 1.00 V
Test time: 10.0 s
Setting memory 4
Output current value: 15.0 A
Maximum test value: 1.50 V
Test time: OFF
Setting memory 5
Output current value: 10.0 A
Maximum test value: 0.100 Ω
Test time: 5.0 s
Line Comment
110-160 Confirm that the 3157 is in the READY state.
170-240 Perform test settings in Setting memory 1.
250-280 Make sure that saving has been completed.
290-360 Perform test settings in Setting memory 2.
370-400 Make sure that saving has been completed.
410-480 Perform test settings in Setting memory 3.
490-520 Make sure that saving has been completed.
530-590 Perform test settings in Setting memory 4.
600-630 Make sure that saving has been completed.
640-710 Perform test settings in Setting memory 5.
(3) Inquiry on, and the loading of, the contents of memory
This program loads the contents of Setting memory in the 3157 after making
this inquiry
Program List
100 DIM A$[10],B$[40],C$[10]
110 Statecheck1: !
120 OUTPUT 701;":STAT?"
130 ENTER 701;A$
140 IF A$="READY" THEN GOTO Filecheck
150 OUTPUT 701;":STOP"
160 GOTO Statecheck1
170 Filecheck: !
180 OUTPUT 701;":MEM:FILE? 1"
190 ENTER 701;B$
200 PRINT B$
210 Keyin: !
220 INPUT "LOAD?(Y/N)",C$
230 IF C$="Y" THEN GOTO Fileload
240 IF C$="N" THEN GOTO Exit1
250 GOTO Keyin
260 Fileload: !
270 OUTPUT 701;":MEM:LOAD 1"
280 Exit1: !
290 END
Program comments
Line Comment
110-160 Confirm that the 3157 is in the READY state.
170-200 Query the contents of Setting memory 1.
210-250 Check if loading is workable.
260-270 Load Setting memory 1.
(6) Summary of functional elements for use when constructing device specific
commands, and whether compound commands or program headers can be used:
・ 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, and decimal program data.
・ Compound commands and program headers can be used.
(7) Buffer capacity limitations for block data
Block data is not used.
(8) Summary of program data elements used in expressions, and deepest nesting
level allowable in sub-expressions, including syntax restrictions imposed by the
device.
Sub-expressions are not used. Character data and decimal data are the only
program data elements used.
(9) Response syntax for queries
Response syntax is detailed in Chapter 5, "Command Reference."
(10) Transmission congestion relating to device-to-device messages which do not
conform to the general 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
This appears in Chapter 5, "Command Reference."
(13) Device state after a calibration query has been completed without any problem
The "*CAL?" query is not used.
(14) When using the "*DDT" command, the maximum length of block used in a trigger
macro definition
The "*DDT" command is not used.
(15) When a macro command is being executed, the maximum length of macro label,
the maximum length of block for defining a macro, and how echoing is managed
when expanding a macro
Macros are not used.
(16) For queries related to identification, explanation of the response to the "*IDN?"
query
This is detailed in Section 5.3 "Standard Commands."
(17) Capacity of the user data storage area reserved for when the "*PUD" command
and the "*PUD?" query are being 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.
(19) Conditions which are influenced when "*RST", "*LRN?", "*RCL", and "*SAV" are
used
"*LRN?", "*RCL", and "*SAV" are not used. The"*RST" command returns the
3157 to its initial state. (Refer to Section 5.3, "Standard Commands", and
Section 5.6, "Initialization Items".)
If the GP-IB appears to be malfunctioning, refer to the information below
before calling for servicing.
SymptomCause / Treatment
The GP-IB has stopped working
completely.
After transmission on the GP-IB
bus, the keys on the 3157
freeze up and have no effect.
When attempting to read data
using a HP-Basic ENTER
statement, the GP-IB bus
hangs.
Although a command has been
transmitted, nothing has
happened.
Are the cables properly connected?
Is the device address for the 3157 set correctly?
Does some other device have the same device address?
Are all the devices powered on?
Press the LOCAL key on the front panel of the 3531・3522
to release the remote state.
Has a LLO (Local Lock-Out) command been transmitted?
Transmit a GTL command to put the 3531・3522 into the
local state.
Be sure to transmit one query before each ENTER
statement.
Have any of these transmitted queries resulted in an
error?
Using the "*ESR?" query, inspect the standard event
status register, and check what type of error has
occurred.
Has an error occurred?
Send the queries one at a time, and read the responses
Sending several queries,
produces only one response.
individually.
When you want to read them in all at once, try doing so
by putting them all on one line separated by the message
separator character.
Have the service request enable register and the various
event status enable registers been correctly set?
Sometimes service requests
are not generated.
The response message to a
query differs from the display
on the front panel of the 3157.
Service
If the unit is not functioning properly, check the "Troubleshooting" list. If a
problem is found, contact your dealer or HIOKI representative.
Clear all the event registers at the end of SRQ processing
subroutines by using the "*CLS" command. If an event
bit is not cleared, no service request will be generated for
that event.
Due to the response message being produced at the
instant that the 3157 receives the query, there is a
possibility that it may not agree with the display at the
instant that the controller reads it in.