Hioki 9593-02 Instruction Manual

Instruction Manual
9593-02
RS-232C INTERFACE
For 3157 AC GROUNDING HiTESTER
Oct. 2018 Revised edition 4 9593A985-04 18-10H
EN
Contents
Introduction i Chapter 1 Before Use
1.1 Check of External Appearance and Accessories 1
1.2 Shipping Precautions
1.3 Notes on Use 3
1.4 Installing the RS-232C Interface 4
Chapter 2 Overview 5
2.1 Introduction to the RS-232C Interface 5
2.2 Features 6
2.3 Specifications 7
Chapter 3 Names of Parts 11
3.1 Controls and Connections 11
Chapter 4 Connection to the Printer 13
4.1 9442 PRINTER 13
1
2
4.2 Setting the 9442 PRINTER Communication Conditions 14
4.3 Connecting the Printer 15
Chapter 5 Connection to the 3155 17 Chapter 6 Operation
6.1 Setting the RS-232C Communication Conditions 19
6.2 Communication Methods by the RS-232C 20
6.3 Message Format 21
6.3.1 Program Message 21
6.3.2 Response Messages
6.4 Headers 22
6.5 Data Formats
6.6 Delimiters 24
6.7 Separators 24
6.8 Abbreviation of Compound Commands
19
21
23
25
6.9 Output Queue
6.10 Input Buffer 26
6.11 Event Registers
9593A
985-04
26
27
Chapter 7 Command Reference 29
7.1 Command Summary 29
7.2 Format of Command Explanations 32
7.3 Particular Commands 33
7.4 Commands Specific to the 3157 35
7.5 Response Format for Queries as Numerical Value
7.6 Initialization Items
67 68
Chapter 8 Sample Programs 69
8.1 Sample program Flowchart 69
8.2 Sample programs 74
Chapter 9 Troubleshooting 81
────────────────────────────────────────────────────
G
N
I
ntroduction
Thank you for purchasing this HIOKI "9593-02 RS-232C 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.
────────────────────────────────────────────────────
Introduction
ii
────────────────────────────────────────────────────
────────────────────────────────────────────────────
Introduction
1
1 e
1
────────────────────────────────────────────────────
Chapter
Before Us
.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) 9593-02 RS-232C INTERFACE (2) This instruction manual
────────────────────────────────────────────────────
1.1 Check of External Appearance and Accessories
2
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.
────────────────────────────────────────────────────
1.2 Shipping Precautions
3
1
────────────────────────────────────────────────────
.3 Notes on Use
(1) If you change the communication conditions of the 3157 while using it, you
should immediately turn the power off and on again. If you do not do so, the communication conditions will not be changed to the new ones.
(2) Always be sure to secure the RS-232C cable to the 9593-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.
────────────────────────────────────────────────────
1.3 Notes on Use
4
G
N
1
────────────────────────────────────────────────────
.4 Installing the RS-232C Interface
WARNIN
CAUTIO
To prevent electrical shock, before adding or replacing the RS-232C 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 an RS-232C 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.
When inserting in the interface, hold the metal plate. Directly touching the board may cause static electricity and lead to damage of the instrument. (Using the wrist strap for preventing static electricity when inserting is recommended.)
The space for fitting the 9593-02 RS-232C INTERFACE in the rear panel of the 3157 is covered with a blank panel. Follow these three steps to install the 9593-02 interface:
(1) Remove the fixing screws, and take off the blank panel. (2) Insert the 9593-02 RS-232C INTERFACE into the exposed slot in the rear
of the unit in the figure below.
(3) Push the 9593-02 firmly into place, and fix with the screws removed in
step 1.
────────────────────────────────────────────────────
1.4 Installing the RS-232C Interface
5
2
w
2
────────────────────────────────────────────────────
Chapter
Overvie
.1 Introduction to the RS-232C Interface
By connecting the 9593-02 RS-232C 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 RS-232C bus.
────────────────────────────────────────────────────
2.1 Introduction to the RS-232C Interface
6
2
────────────────────────────────────────────────────
.2 Features
(1) All of the functions of the 3157 main unit, except for powering on and off, can
be controlled via the RS-232C 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) Test results can be printed on the optional 9442 PRINTER. (5) Connecting with the optional 3155 LEAK CURRENT HiTESTER enables
testing and the test results can be saved and printed together with the 3155
leakage current test results.
────────────────────────────────────────────────────
2.2 Features
7
)
s
Signal assignments and explanation
)
2
────────────────────────────────────────────────────
.3 Specifications
Transfer system Start-stop synchronization Baud rate 2400, 4800, 9600, 19200 bps Data length 7 or 8 bits Parity Even, odd, or none Stop bits 1 or 2 bits Delimiter CR+LF, CR Handshake hardware
Selected by DIP switch.
Electrical characteristic
NOTE
Input voltage levels Output voltage levels
(load impedance 3 kΩ to 7 kΩ
+5 V+15 V
-15 V〜-5 V +5 V+9 V
-9 V〜-5 V
Connector
RS-232C interface connector pin assignment (D-subminiature 25-pin female)
The connector on the 9593-02 is for terminal (DTE).
Connector (Dsub
pin number
RS-232C CCITT
Circuit
ON OFF
ON OFF
Description
1 AA(FG) 101 Protective Ground 2 BA(TxD) 103 Transmitted Data 3 BB(RxD) 104 Received Data
────────────────────────────────────────────────────
4 CA(RTS) 105 Request to Send 5 CB(CTS) 106 Clear to Send 7 AB(GND) 102 Signal Ground
20 CD(DTR) 108/2 Data Terminal Ready
Other pins Unused
2.3 Specifications
8
e
BATxD
CBCTS
ABGND
CCRI
234567206238745BBRxD
CDDTR
CARTS
BBRxD
CARTS
ABGND
CDDTR
BATxD
CCDSR
CBCTS
e
e
BATxD
CFDCD
CARTS
CBCTS
2
3456788231457
BBRxD
ABGND
CDDTR
BBRxD
CARTS
ABGND
CFDCD
BATxD
CCDSR
CBCTS
e
20
6
CDDTR
CCDSR
────────────────────────────────────────────────────
Connecting method
When connecting to the controller (DTE), use a cross cable which meets the
connector specifications of both sides of the 9593-02 and the controller.
Example
When connecting to the PC/AT
(1)
(2)
D‑subminiature 25pin mal
9593-02
D‑subminiature 25pin mal
9593-02
D‑subminiature 9pin femal PC/AT
D‑subminiature 9pin femal PC/AT
2.3 Specifications
────────────────────────────────────────────────────
9
85%
%
CA (RTS)
t
y
S
e
Mark
────────────────────────────────────────────────────
Handshake
Buffer flow control (1) Controls when receiving
When the receiving buffer is more than 85% full, CA (RTS) is set to Space to indicate to the controller that the empty buffer capacity is low. Processing of data in the buffer continues, and when the receiving buffer is less than 25 % full, CA (RTS) is set to Mark to indicate to the controller that there is ample buffer capacity.
Amount of inpu buffer used
25
Buffer empt
pac
(2) Controls when transmitting
When CB (CTS) is found to be Space, transmission is suspended; it is found
to be Mark transmission resumes.
────────────────────────────────────────────────────
2.3 Specifications
10
────────────────────────────────────────────────────
────────────────────────────────────────────────────
2.3 Specifications
11
3
ts
3
────────────────────────────────────────────────────
Chapter
Names of Par
.1 Controls and Connections
(1) 3157 front panel
1 2
Display of RS-232C status
Each lamp displays the state of control by the RS-232C. RMT: Remote
Remote state releasing keys
Press the state by the RS-232C and resume the local state. However, this key operation is disabled if the RS-232C controller has put the unit into the local lock out state. (Pressing When the unit enters the remote state because of a command message, it is forcibly returned to the READY state.
0ADJ key while holding down the SHIFT key to release the remote
SHIFT + 0ADJ has no effect.)
────────────────────────────────────────────────────
3.1 Controls and Connections
12
1
2
────────────────────────────────────────────────────
(2) 9593-02 RS-232C interface outer panel
Communication condition setting switches
These are used to set the communication conditions of the 3157 unit on the
RS-232C bus. For how to set these switches, refer to Section 5.1, "Setting the
RS-232C Communication Conditions."
RS-232C connector
Connect the RS-232C cable to this connector.
────────────────────────────────────────────────────
3.1 Controls and Connections
13
4
er
4
────────────────────────────────────────────────────
Chapter
Connection to the Print
.1 9442 PRINTER
Using with the optional 9593-02 RS-232C INTERFACE, 9442 PRINTER, and 9446 CONNECTING CABLE, the test values can be printed out.
NOTE
The 9442 is shipped with the function settings for use with the HIOKI 3166
CLAMP ON POWER HiTESTER. Before using, always change the settings of the DIP switches.
For details on the operations and handling of the printer, refer to the
instruction manual supplied to the printer. For the printer, use the 1196 RECORDING PAPER or an equivalent.
────────────────────────────────────────────────────
4.1 9442 PRINTER
14
.
)
.
4
────────────────────────────────────────────────────
.2 Setting the 9442 PRINTER Communication
Conditions
The 9442 is shipped with the function settings for use with the HIOKI 3166
CLAMP ON POWER HiTESTER. Before using, always change the settings of
the DIP switches.
Change the settings of the DIP switches as follows. For more information on
settings, refer to the instruction manual for the DPU-414 supplied to the 9442.
Setting the 9442 PRINTER
: Use these settings.
(1) Software DIP SW1
Switch No
1 Input method Parallel Serial 2 Printing speed High Low 3 Auto loading ON OFF
4 CR function 5
6to8 Printing density See the table below.
Function ON OFF
DIP SW setting
command
Carriage return
and line feed
Enable Disable
Carriage return
Printing density (%
100
6 7 8
OFF ON ON
Switch No.
(2) Software DIP SW2
It has been set to the DPU-414 default setting.
(3) Software DIP SW3
Switch No
1 Data bit length 8 bits 7 bits 2 Parity permission None With parity 3 Parity condition Odd Even 4 Flow control H/W BUSY XON/XOFF
5to8 Baud rate See the table below.
Baud ratebps
19200
Function ON OFF
Switch No.
5 6 7 8
OFF ON ON OFF
Setting the 9593-02 RS-232C INTERFACE
Set all the communication condition setting switches on the RS-232C panel to
ON.
────────────────────────────────────────────────────
4.2 Setting the 9442 PRINTER Communication Conditions
15
G
4
────────────────────────────────────────────────────
.3 Connecting the Printer
WARNIN
To prevent electrical shock, before adding or replacing the RS-232C 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 an RS-232C 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.
To connect the 9593-02 and printer, use the 9446 CONNECTING CABLE. Use the 9443* AC ADAPTER and the 1196 RECORDING PAPER. (All are options.)
*9443-01 (for Japan) *9443-02 (for EU) *9443-03 (for U.S.A.)
(1) Make the settings for both the 9442 PRINTER and the 9593-02. (2) Power off both the 3157 and the 9442 PRINTER. (3) Install the 9593-02 in the 3157. (4) Use the 9446 CONNECTING CABLE to connect the 9593-02 and printer.
────────────────────────────────────────────────────
4.3 Connecting the Printer
16
e
g
t t
────────────────────────────────────────────────────
Example of printing
Example of set value printing
Example of test result printin
Actual siz
Set value printing
SETTING Shows test parameter printing. CURRENT Set current value and output current frequency UPPER Maximum test value LOWER Minimum test value
"---" is printed if the optional minimum test value setting function is set to "0: Not set."
TIMER Testing Time
"---" is printed if the optional endless timer function is set to "1: Set."
MAX DATA # Maximum number of test data (Not printed for OFF)
Test result printing
HIOKI 3157 GROUNDING HiTESTER
DATA # Number of test data and maximum number of test data
Model name This is printed if the test data count function is not used or if the number of test data is 1.)
These are not printed if the test data count function is no used.
JUDGEMENT Test result
PASS, UPPER FAIL or LOWER FAIL is printed. The
elapsed time and testing time are also printed for FAIL.
RESISTANCE Measured resistance value and measured voltage value at
the end of a test
CURRENT Measured current value and frequency at the end of a tes
────────────────────────────────────────────────────
4.3 Connecting the Printer
17
5 5
────────────────────────────────────────────────────
Chapter
Connection to the 315
Attaching optional 9593-02 RS-232C INTERFACE to 3157 enables testing when connected with 3155. 3155 sends command to 3157 to start testing and receives test results when the 3157 testing is complete. The test results can be saved and printed together with the 3155 leakage current test results. For usage for the 3155, see 3155 (-01) Instruction Manual.
────────────────────────────────────────────────────
18
3157 (9593-02)
CC (DSR)
2
3
3155
BB (RxD)
BA (TxD)
7
CA (RTS)
CB (CTS)
AB (GND)
CF (DCD)
CD (DTR)
86514324567820
BA (TxD)
BB (RxD)
CA (RTS)
CB (CTS)
CC (DSR)
AB (GND)
CF (DCD)
CD (DTR)
────────────────────────────────────────────────────
When connecting 3155 with 3157 (9593-02), use connection cable as specified
below.
Specification: D-subminiature 25-pin male to D-subminiature 9-pin female
connectors, with "crossed" data connections
Settings
(1) Leave power OFF for both 3155 and 3157 while connecting each RS-232C
connector with the RS-232C cable. (2) Turn the power ON for both 3155 and 3157. (3) Set up 3157 test settings. Measurement does not start unless the following
conditions are met.
1. Test settings
Unit of the maximum and minimum test values: ResistanceTest time: ONMaximum test value: ON
When the optional minimum test value setting function is ON. Minimum test value: OFF
2. Optional function setting Endless timer function: Not set
────────────────────────────────────────────────────
19
n
0
6
n
6
────────────────────────────────────────────────────
Chapter
Operatio
.1 Setting the RS-232C Communication Conditions
Use the communication condition setting switches on the RS-232C panel to set
the communication conditions.
On dispatch from the factory, this address is initially set to 00000000.
Bit 1 2 3 4 5 6 7 8
Descriptio
Bits
Baud rate
12 00
01 10 11
Bit 7 Delimiter
0 1
NOTE
9600 4800 2400
19200
CR+LF
CR
If you change the communication conditions while the 3157 is being used,
then you should immediately turn the power off and on again. If this is not done, the communication conditions will not be changed to the new ones.
When using with the personal computer, set bit 8 to 0.When using with the optional 9442 PRINTER, set all bits to 1.When the 3157 soft start mode is enabled, its operation slows down at starting
test. This may cause a communication error, depending on the preset baud
rate.
Baud rate
Bit 3 Data length
0 1
Data
length
8 bits 7 bits
Parity Stop bit DelimiterFixed to
Bits
45
00 01 10 11
Parity
None None Even
Odd
Bit 6 Stop bit
0 1
0: OFF, 1: ON
1 bit
2 bits
────────────────────────────────────────────────────
6.1 Setting the RS-232C Communication Conditions
20
s
s
s
s
s
6
────────────────────────────────────────────────────
.2 Communication Methods by the RS-232C
In order to control the 3157 by the RS-232C, 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.
Program messages
Message
Response message
Command message Query messages
(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
(Queries the current test time enablement)
:TIMER?
(2) Response messages
It represents the response data for query messages from the 3157. Example
(Test time is currently enabled.)
:TIMER_ON
NOTE
A space is represented by "_" in the examples.
Program message
Response message
────────────────────────────────────────────────────
6.2 Communication Methods by the RS-232C
21
6
6
6
────────────────────────────────────────────────────
.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.
.3.1 Program 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.2 Response 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
(Test time is currently enabled.)
NOTE
────────────────────────────────────────────────────
If an error occurs when the query message is received, the query does not produce response message.
6.3 Message Format
22
6
────────────────────────────────────────────────────
.4 Headers
(1) Program message headers
There are three types of header: simple headers, compound headers, and particular headers.
Simple header
A header consisting of a single word beginning with a letter. Examples :HEADer etc.
Compound header
A header consisting of a sequence of words separated by colons. Examples :CONFigure:CURRent, MEASure:RESistance?, etc.
Particular header
A header beggining with an asterisk (*) to indicate that it is a particular command. 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
────────────────────────────────────────────────────
6.4 Headers
Loading...
+ 64 hidden pages