Hioki 9518-02 User manual


Contents
Introduction i
Chapter 1 Before Use 1
1.1 Check of External Appearance and Accessories 1
1.2 Shipping Precautions 2
1.3 Notes on Use 3
1.4 Installing the GP-IB Interface 4
Chapter 2 Overview 5
2.1 Introduction to the GP-IB Interface 5
2.2 Features 5
2.3 Specifications 6
Chapter 3 Names of Parts 7
3.1 Controls and Connections 7
Chapter 4 Operation 9
4.1 Setting the GP-IB Device Address 9
4.2 Communication Methods by the GP-IB 11
4.3 Message Format 12
4.3.1 Program Message 12
4.3.2 Response Messages 12
4.4 Headers 13
4.5 Data Formats 14
4.6 Message Terminators 15
4.7 Separators 15
4.8 Abbreviation of Compound Commands 16
4.9 Output Queue 17
4.10 Input Buffer 17
4.11 Status Model 18
4.12 Status Byte Register 19
4.13 Event Registers 20
4.14 GP-IB Commands 24
Chapter 5 Command Reference 25
5.1 Command Summary 25
5.2 Format of Command Explanations 28

5.3 Standard Commands 29
5.4 Commands Specific to the 3157 34
5.5 Response Format for Queries as Numerical Value 66
5.6 Initialization Items 67
Chapter 6 Sample Programs 69
Chapter 7 Device Compliance Statement 75
Chapter 8 Troubleshooting 79

i
────────────────────────────────────────────────────
Introduction
────────────────────────────────────────────────────
WARNIN
G
Indicates that incorrect operation presents significant
danger of accident resulting in death or serious injury to
the user.
CAUTIO
N
Indicates that incorrect operation presents possibility of
injury to the user or damage to the equipment.
NOTE Denotes items of advice related to performance of the
equipment or to its correct operation.
I
ntroduction
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.
* The "3157" in this Instruction Manual includes the "3157-01."

ii
────────────────────────────────────────────────────
Introduction
────────────────────────────────────────────────────

1
────────────────────────────────────────────────────
1.1 Check of External Appearance and Accessories
────────────────────────────────────────────────────
Chapter
1
Before Us
e
1
.1 Check of External Appearance and Accessories
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

2
────────────────────────────────────────────────────
1.2 Shipping Precautions
────────────────────────────────────────────────────
1
.2 Shipping Precautions
If reshipping the unit, preferably use the original packing.
If this is not available, use the following procedure.
(1) Wrap the unit in plastic sheeting.
(2) After wrapping cushioning material around the unit, pack it into a
cardboard box, and then seal up the box with adhesive tape.

3
────────────────────────────────────────────────────
1.3 Notes on Use
────────────────────────────────────────────────────
1
.3 Notes on Use
(1) If you change the device address of the 3157 while using it, you should
immediately turn the power off and on again. If you do not do so, the address
change will not be registered by the bus, and problems will occur.
(2) Always be sure to secure the GP-IB cable to the 9518-02 unit by tightening up
the fixing screws provided.
(3) Program messages sent just after the power has been turned on are executed
after the self test has terminated.
(4) It is vital that the proper data format is used when inputting commands with
data values to the 3157 unit.
(5) For details of the various functions, refer to the instruction manual for the
3157 unit.

4
────────────────────────────────────────────────────
1.4 Installing the GP-IB Interface
────────────────────────────────────────────────────
WARNIN
G
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.
1
.4 Installing the GP-IB Interface
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
step 1.

5
────────────────────────────────────────────────────
2.1 Introduction to the GP-IB Interface
────────────────────────────────────────────────────
NOTE
Chapter
2
Overvie
w
2
.1 Introduction to the GP-IB Interface
2
.2 Features
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
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.
(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.

6
────────────────────────────────────────────────────
2.3 Specifications
────────────────────────────────────────────────────
Interface functions
SH1 All source handshake functions
AH1 All acceptor handshake functions
T6
Basic talk functions
Serial poll function
No talk-only mode
The talker cancellation function with MLA (My Listen
Address)
L4 Basic listener functions
No listen-only mode
The listener cancellation function with MTA (My Talk
Address) is provided.
SR1 All service request functions
RL1 All remote/local functions
PP0 No parallel polling function
DC1 All device clear functions
DT0 No device trigger function
C0 No controller function
ASCII codes are used.
2
.3 Specifications

7
────────────────────────────────────────────────────
3.1 Controls and Connections
────────────────────────────────────────────────────
1 2
Chapter
3
Names of Par
ts
3
.1 Controls and Connections
(1) 3157 front panel
Display of GP-IB status
Each lamp displays the state of control by the GP-IB.
RMT: Remote
Remote state releasing keys
Press the 0ADJ key while holding down the SHIFT key to release the remote
state by the GP-IB and resume the local state. However, this key operation is
disabled if the GP-IB controller has put the unit into the local lock out state.
(Pressing SHIFT +0ADJ has no effect.)
When the unit enters the remote state because of a command message, it is
forcibly returned to the READY state.

8
────────────────────────────────────────────────────
3.1 Controls and Connections
────────────────────────────────────────────────────
1
2
(2) 9518-02 GP-IB interface outer panel
Address switches
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."
GP-IB connector
Connect the GP-IB cable to this connector.

9
────────────────────────────────────────────────────
4.1 Setting the GP-IB Device Address
────────────────────────────────────────────────────
Address switch for TALK ONLY
Chapter
4
Operatio
n
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
not used.

10
────────────────────────────────────────────────────
4.1 Setting the GP-IB Device Address
────────────────────────────────────────────────────
0: OFF, 1: ON
Addres
s
Switch settings Addres
s
Switch settings Addres
s
Switch settings
12345 12345 12345
0 00000 11 11010 22 01101
1 10000 12 00110 23 11101
2 01000 13 10110 24 00011
3 11000 14 01110 25 10011
4 00100 15 11110 26 01011
5 10100 16 00001 27 11011
6 01100 17 10001 28 00111
7 11100 18 01001 29 10111
8 00010 19 11001 30 01111
9 10010 20 00101
10 01010 21 10101
NOTE 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.

11
────────────────────────────────────────────────────
4.2 Communication Methods by the GP-IB
────────────────────────────────────────────────────
Command message
s
Query messages
Message
s
Program messages
Response message
s
NOTE
Response message
s
Program message
s
4
.2 Communication Methods by the GP-IB
In order to control the 3157 by the GP-IB, there are several kinds of messages.
Of these, program messages are those received by the 3157 from the computer,
while response messages are those sent from the 3157 to the computer.
(1) Program messages
Program messages are command messages or query messages.
・Command messages are orders for controls of the 3157, such as for making
unit settings or for reset or the like.
Example :TIMER_<data>
(Command message which enables and disables the test time)
・Query messages are orders for responses relating to results of operation,
results of measurement, or the state of 3157 settings. A question mark "?" is
suffixed at the end of the command.
Example :TIMER?
(Queries the current test time enablement)
(2) Response messages
It represents the response data for query messages from the 3157.
Example :TIMER_ON
(Test time is currently enabled.)
A space is represented by "_" in the examples.

12
────────────────────────────────────────────────────
4.3 Message Format
────────────────────────────────────────────────────
4
.3.1 Program Message
4
.3.2 Response Messages
NOTE
4
.3 Message Format
The commands for the 3157 are as far as possible mnemonic. Furthermore, all
commands have a long form, and an abbreviated short form.
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.
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
(Test time is currently enabled.)
If an error occurs when the query message is received, the query does not
produce response message.

13
────────────────────────────────────────────────────
4.4 Headers
────────────────────────────────────────────────────
4
.4 Headers
(1) Program message headers
There are three types of header: simple commands, compound commands, and
standard common commands.
・Simple command header
A header consisting of a single word beginning with a letter.
Examples :HEADer etc.
・Compound commands header
A header consisting of a sequence of words separated by colons.
Examples :CONFigure:CURRent,MEASure:RESistance?, etc.
・Standard command header
A header begins with an asterisk (*) to indicate that it is a standard
command, and continues with a standard command stipulated by IEEE 488.2.
Examples *RST etc.
(2) Response message
Headers in response messages can be enabled or disabled by using the
"HEADer" command.
Example When test time is enabled:
:TIMER?
(Query message asking for the current enablement state of the test
time)
Response message when headers are on.
:TIMER_ON
↑↑
:Header portion
:Data portion
Response message when headers are off.
ON
Data portion only

14
────────────────────────────────────────────────────
4.5 Data Formats
────────────────────────────────────────────────────
4
.5 Data Formats
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 +2.56, -30.45, 300.28
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
:CONFigure:CURRent_+25.012
:CONFigure:CURRent_0.0025E4
Table of contents
Other Hioki Recording Equipment manuals

Hioki
Hioki MR8847A User manual

Hioki
Hioki 9593-03 User manual

Hioki
Hioki RS-232C User manual

Hioki
Hioki Memory HiCorder MR6000 Instruction manual

Hioki
Hioki 8860 User manual

Hioki
Hioki 8205-10 User manual

Hioki
Hioki 9588 User manual

Hioki
Hioki 3920-01 User manual

Hioki
Hioki Memory HiCorder MR6000 Instruction manual

Hioki
Hioki 3909 User manual