Thank you for purchasing the HIOKI "9557 RS-232C CARD / 9558 GP-IB
CARD" . To obtain maximum performance from the product, please read this
manual first, and keep it handy for future reference.
When using the HIOKI MEMORY HiCORDER can be used with the HIOKI
"9557 RS-232C CARD / 9558 GP-IB CARD" except following products, reffer to
the communication comands manual (Flopply disk) supplied with the
MEMORY HiCORDER.
■ The products consultable this manual:
8826, 8835, 8835-01, 8841, 8842
afety Notes
i
This manual contains information and warnings essential for safe operation of
the product and for maintaining it in safe operating condition. Before using
the product, be sure to carefully read the following safety notes.
DANGE
This product is designed to conform to IEC 61010 Safety Standards, and
has been thoroughly tested for safety prior to shipment. However,
mishandling during use could result in injury or death, as well as damage
to the product. Be certain that you understand the instructions and
precautions in the manual before use. We disclaim any responsibility for
accidents or injuries not resulting directly from product defects.
Safety symbol
The following symbols in this manual indicate the relative importance of
cautions and warnings.
In the manual, thesymbol indicates particularly important
information that the user should read before using the product.
The GP-IB (General Purpose Interface Bus) was developed as an interface for
general use by programmable instrumentation, and as an interface is rich in
expandability and has many distinctive features.
There are various interfaces with specific names apart from the GP-IB, such
as the IEEE-488 bus, the IEC bus, and the HP-IB which is an internal
standard within the Hewlett-Packard Company. These are basically the same
standard, but, because the number of connector pins and the arrangement of
the signals and so on differ, much care should be exercised.
GP-IB and RS-232
Interface
3
4
5
6
7
8
9
10
In this explanation of management and operation, only the GP-IB related
resources of the 8835 and 8826 will be described.
If more detailed knowledge of the GP-IB interface is required, reference should
be made to the following literature:
The Institute of Electrical and Electronics Engineers, Inc.: "IEEE Standard
Digital Interface for Programmable Instrumentation", IEEE Std 488.1-1987,
IEEE Std 488.2-1987 (1987)
IFC (Interface Clear)
SRQ (Service Request)Signal which requests a non-synchronous service.
REN (Remote Enable)
EOI (End or Identify)Indicates the last byte of data.
Signal which sets the interface bus system to the
initial condition.
Signal which performs changeover of remote and
local control.
RS-232C is a serial interface standard defined by the EIA (Electronic
Industries Association). It specifies the interface parameters for
communication between a DTE (Data Terminal Equipment) and DCE (Data
Communications Equipment).
The MEMORY HiCORDER incorporates a partial implementation of the RS232C specification (only certain signal lines) to allow data exchange and
remote control using a personal computer.
.2.2Specification
Standard
EIA RS-232C
General Specifications
Communication mode Full-duplex
Synchronization Start-stop synchronization
Transfer rate 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200
(bits/s), (set from the setting screen of the unit)
Start bit 1bit
Stop bits 1 or 2 bits
(set from the setting screen of the unit)
Data length 7 or 8 bits
Parity None, even, or odd
(set from the setting screen of the unit)
Delimiter LF, CR+LF
Flow control Xon/Xoff, hardware, none
The connector on the PC card is a D-sub 9-pin connector (male).
Make connection to the computer using a null-modem cable with the type of
connector that matches the computer.
The GP-IB or RS-232C interface is not isolated from the unit system.
Exercise caution, because the ground of the logic inputs and the GP-IB
or RS-232C interface ground are connected.
Connect GP-IB or RS-232C cable
3
4
5
6
7
8
Check that the power is ON for all
devices connected to the bus. (GP-IB
Check that the power is ON for the
unit. (RS-232C)
Set "INTERFACE.
Send orders to the controller
and perform remote control.
GP-IB set up
RS-232C set up
GP-IB mode
Address
Header
Transfer rate
Data length
Parity
Stop bits
Delimiter
Header
Flow control
When making the connection, the cable connector and PC card should be
properly aligned, so that the connector can be pushed in straight. Do not exert
strong force on the PC card connector, to prevent the possibility of damage
and contact problems.
This section explains procedures for connecting the cable using the 8835 as an
example. For other models, refer to the instruction manual included with the
unit.
(1) Cable and PC card connection
1. Pass the PC card protector through the connection cable, as shown below.
2. Plug the PC card end of the connection cable into the PC card. The top side
of the cable connector (marked with a ▲) should match the top side of the
PC card, as shown below.
The following actions may result in damage to the PC card or connector and
must be avoided.
・Inserting the card with the wrong orientation or in other ways than described
above.
・Inserting the card while attached to the connection cable.
・Moving the unit while the connection cable is connected to the card.
・Pulling the card out by the cable or exerting excessive force on the
connector.
・Placing objects on the connection cable connector.
1. Insert the PC card in the PC card slot on the unit. Verify that the ▲ mark
on the card points in the correct direction as shown below, and make sure
that the card is properly seated in the slot.
The PC card is keyed to prevent wrong insertion, but exerting excessive
force may damage the card or the slot.
1
2
3
4
5
6
2. Attach the PC card protector to the unit as shown below.
4. Enable or disable the headers.
Select whether or not this unit as talker should output
an identifying header at the beginning of each
message it sends.
Move the flashing cursor to the position shown in the
figure on left, and use the function keys to make the
setting.
: Header information is not appended.
: Header information is appended.
NOTE
・The unit automatically recognizes which type of PC card is inserted, and the
appropriate setting items appear on the display. Perform the setting
procedure after inserting the GP-IB card.
・Do not change the settings during communications.
Data received or sent by the GP-IB or RS-232C interface is called a message.
The following are the message types:
Message
Program messages
Response message
Of these, program messages are those received by the unit from the controller,
while response messages are those sent from the unit to the controller.
Program messages are command messages or query messages.
Command messages are orders for control of the device, such as for making
settings or for reset or the like.
Query messages are orders for responses relating to the results of operation,
results of measurement, or the state of device settings.
Response messages are sent in response to query program messages. After a
query message has been received, a response message is produced the moment
that its syntax has been checked.
Command program message
Query program messages
(2) Command syntax
When no ambiguity would arise, the term "command" is henceforth used to
refer to both command and query program messages.
The unit accepts commands without distinction between lower case and upper
case letters.
The names of commands are as far as possible mnemonic. Furthermore, all
commands have a long form, and an abbreviated short form.
In command references 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.
The unit generates response messages in the long form (when headers are
enabled) and in upper case letters.
(Example)
For "DISPlay", either "DISPLAY" (the long form) or "DISP" (the short form)
will be accepted. However, any one of "DISPLA", "DISPL", or "DIS" is wrong
and will generate an error.
Commands must have a header, which identifies the command in question.
There are three kinds of header: the simple command type, the compound
command type, and standard command type.
Simple command type header
The first word constitute the header.
Exampl
Simple comman
type header
:HEADer ON
Compound command type header
A header made up from a plurality of simple command type headers marked
off by colons.
Exampl
:CONFigure:TDIV 1.E-3
Simple command
type header
Compound command type heade
Dat
Standard command type header
A command beginning with an asterisk and stipulated by IEEE 488.2
Exampl
*RST
(4) Query program headers
These are for commands used for interrogating the unit about the result of an
operation or about a setting.
These can be recognized as queries by a question mark appearing after the
program header. The structure of the header is identical to that of a
command program header, with "?" always being affixed to the last command.
There are queries possible in each of the three previously described types of
command form.
Exampl
:HEADER? ON
Query program
header
Dat
(5) Response messages
Response messages relating to queries are made up from header portions
(which also may be absent due to header disablement) and data portions
identical to those of program messages, and as a general rule are sent in an
identical format to the format of the program message corresponding to their
originating query.
A terminator is used in order to separate the transmission of one message
from another, and this terminator is not itself included in the message.
GP-IB interface
LF, EOI, or LF+EOI is used as the message terminator, and LF+EOI is also
used as the response message terminator.
RS-232C interface
Set the delimiter for the message terminator (see Section 2.3.2).
Message Unit Separator
A semicolon ";" is used as a message unit separator when it is desired to set
out several messages on a single line.
Exampl
:CONFIGURE:TDIV 1. E-3;:CONFIGURE:SHOT 1
Message unit separato
Header separator
With a message which has both a header and data, a space "_" is used as a
header separator to separate the header from the data. The space "_" is used
by way of explanation, but it does not appear on the actual program.
Exampl
:CONFIGURE:SHOT_1
Header separato
Data separator
Commas are used as data separators for separating several data items from
one another.
Exampl
Simple command type heade
Compound command type heade
:DISPLAY:DRAW CH1,DARK
Data separato
Header separato
(7) The command tree
The rule when writing several messages of compound command form on the
same line, when no colon is prefixed to the next header after the semicolon
(the message unit separator), is that that header is considered as continuing
on from the header before the last colon in the message directly preceding.
This corresponds to the general concept of the current directory in the
directory structure of UNIX or MS-DOS, and this directly preceding header is
called the "current path".
Both Example 1 and Example 2 are messages setting TIME/DIV to 1 ms and
recording length to 15 divisions.
With Example 1, because there is a colon directly after the semicolon, the
current position is the "root". Accordingly the reference of the next command
is performed from the root.
On the other hand, with Example 2, because with ":CONF:TDIV 1. E-3;" the
current path has become ":CONF", it is now possible to omit the ":CONF:"
before "SHOT".
To reiterate, the colon at the beginning of a command forces the search for the
command to begin from the root. Thus in Example 1:
:CONFIGURE:TDIV 1.E-3
The first colon indicates that the "CONFIGURE" command is
at the root level.
(8) Data format
The unit uses character data, decimal data and character string data as a data
format.
Character data
The first character must be alphabetic.
The characters after the first character can only be alphabetic characters,
numerals, or underline characters (_).
As alphabetic characters, during sending only upper case letters are used,
but during receiving both upper case and lower case letters are permitted.
Decimal data
Decimal data values are represented in what is termed NR format.
There are three types of NR format from NR1 to 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 range with which the
unit can deal, it is rounded off. (5 and above is rounded up; 4 and below is
rounded down.)
NR1 format - integer data
Examples: +15, -20, 25
NR2 format - fixed point numbers
Examples: +1.23, -4.56, 7.89
NRf forma
NR3 format - floating point number
Examples: +1.0E-3, -2.3E+3
The term "NRf format" includes all these three formats.
When the unit is receiving it accepts NRf format, but when it is sending it utilizes
whichever one of the formats NR1 to NR3 is indicated in the particular command.
Character string data
Character string data is enclosed within quotation marks.
The data is composed of 8 bit ASCII characters.
Characters which cannot be handled by the unit are replaced by spaces.
When the unit is sending, only the double quotation mark (") is used as a
quotation mark, but when receiving both this double quotation mark and
also the single quotation mark (’) are accepted.
The summary of this register is set in bit 5 of the status byte.
For GP-IB, each bit is masked by setting the standard event status enable
register (which starts off at zero when the power is turned on).
The circumstances when the contents of the standard event status register are
cleared are as listed below.
1. When the *CLS command is received.
2. When the contents have been read by an *ESR? query.
3. When the power is turned off and turned on again.
Bit allocations in the standard event status register
bit 7
PON
bit 6
URQ
bit 5
CME
bit 4
EXE
The power has been turned on again.
Since this register was last read, the unit has been
powered off and on.
User request: not used.
Command error.
There is an error in a command that has been received;
either an error in syntax, or an error in meaning.
Execution error.
An error has occurred while executing a command.
Range error; Mode error.
Device dependent error.
bit 3
DDE
It has been impossible to execute some command, due to
an error other than a command error, a query error, or an
execution error.
bit 2
QYE
Query error.
The queue is empty, or data loss has occurred (queue
overflow).
bit 1Request for controller right (not used) Unused: 0
bit 0
OPC
Operation finished.
Only set for the *OPC command.
The following commands are used to read the standard event status register,
and to set or read the standard event status enable register.
Read the standard event status register *ESR?
Set the standard event status enable register *ESE (GP-IB)
Read the standard event status enable register *ESE? (GP-IB)
The summary of this register is set in bit 0 of the status byte.
For GP-IB, each bit is masked when the event status enable register 0 (which
starts off at zero when the power is turned on) is set.
The circumstances when the contents of event status register 0 are cleared are
as listed below.
1. When the *CLS command is received.
2. When the contents have been read by an :ESR0? query.
3. When the power is turned off and turned on again.
The bits of event status register 0
bit 7Waveform decision fail (NG).
bit 6Parameter decision fail (NG).
bit 5Parameter calculation finished.
bit 4Waveform processing calculation finished.
bit 3Printer operation finished (print, or copy output).
bit 2Trigger wait finished (set when the trigger event occurs).
bit 1Measurement operation concluded (set by STOP).
bit 0Error not related to the GP-IB interface; printer error etc
The following commands are used for reading the event status register 0, and
for setting the event status enable register 0 and for reading it.
Reading event status register 0 :ESR0?
Setting event status enable register 0 :ESE0 (GP-IB)
Reading event status enable register 0 :ESE0? (GP-IB)
This is the state in which the unit is controlled by its keys. When the power
is turned on, the unit always comes up in local state.
Remote state
In this state the unit is controlled from the GP-IB interface (the REN line is
"true"), and its keys are disabled. When in the remote state, the unit returns
to local state if the local key (the [LOCAL] function key) is pressed.
Local lockout state
When an LLO (Local Lockout) command (this is a GP-IB universal command)
is received, even if the local key is pressed, the unit is prevented from
returning to the local state. This state is called the local lockout state.
In order to return the unit from the local lockout state to the local state, it is
necessary either (a) to send a GTL (Go To Local) command (this is a GP-IB
universal command), or (b) to turn the power to the unit temporarily off and
then on again, or (c) to bring the line REN to "false".
If a command is sent with REN in the "false" state, then the only way to
return to the local state is with the local key.
REN "true", command sen
Local State
REN "false", GTL, local ke
REN "false", GTL
Local Lockout State
Program example HP-9816 (Hewlett-Packard)
local lockout LOCAL LOCKOUT 7
local LOCAL 7
Remote
LLO
(2) Device Clear
When the unit receives the device clear command, it clears the input buffer
and the output queue (see Section 2.6).
The device clear command is exemplified by the following:
HP 9816 (made by Hewlett-Packard)
CLEAR 7