background image

10 

4.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

ロニ

Command messages 

Messages 

[/ 

Query messages 

Response 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  :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.) 

C三)

A space is represented by "_" in the examples. 

へ|四ニ

Program messages 

← 

Response messages 

4.2 Communication Methods by the RS-232C 

HIOKI 9593C981-01

Summary of Contents for 9593-03

Page 1: ...9593 03 Instruction Manual RS 232C INTERFACE EN Mar 2022 Revised edition 1 9593C981 01 22 03H For 3157 AC GROUNDING HiTESTER 600629071 HIOKI 9593C981 01...

Page 2: ...ifications 7 Chapter 3 Names of Parts 7 3 1 Controls and Connections 7 Chapter 4 Operation 9 4 1 Setting the RS 232C Communication Conditions 9 4 2 Communication Methods by the RS 232C 10 4 3 Message...

Page 3: ...HIOKI 9593C981 01...

Page 4: ...he following safety notes The following symbols are used in this Instruction Manual to indicate the relative importance of cautions and warnings lowARNINGI I locAuT10NI NOTE Indicates that incorrect o...

Page 5: ...HIOKI 9593C981 01...

Page 6: ...heck 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 03 RS 232C INTE...

Page 7: ...ginal 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 u...

Page 8: ...e sure to secure the RS 232C cable to the 9593 03 unit by tightening up the fixing screws provided 3 Program messages sentjust after the power has been turned on are executed after the self test has t...

Page 9: ...e 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 fitt...

Page 10: ...wering on and off via the RS 232C bus 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 wor...

Page 11: ...iter Handshake Set using the DIP switches Start stop synchronization full duplex 2400 bps 4800 bps 9600 bps 19200 bps 7 bit 8 bit Even odd or none 1 bit 2 bit When sending CR LF CR When receiving CR L...

Page 12: ...of control by the RS 232C RMT Remote Remote state releasing keys Press the key while holding down the key to release the remote state by the RS 232C and resume the local state However this key operat...

Page 13: ...HIOKI 9593C981 01...

Page 14: ...ity 45 0 0 None 0 1 None 1 0 Even 1 1 Odd DELIMITER when sending 0 OFF 1 ON C If you change the communication conditions while the 3157 is being used then you should immediately turn the power off and...

Page 15: ...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...

Page 16: ...etters 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 du...

Page 17: ...s CONFigure CURRent MEASure RESistance etc 4 Particular header A header beginning with an asterisk to indicate that it is a particular command Examples RST etc 2 Response message Headers in response m...

Page 18: ...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 315...

Page 19: ...ral messages on a single line Example UNIT_OHM UPPER_ON CONFIGURE RUPPER_0 100 C When messages are combined in this way if a syntax error occurs all subsequent messages up to the next delimiter will b...

Page 20: ...m 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...

Page 21: ...The 3157 has an output queue of 300 bytes capacity If the response messages overflow this limit of 300 bytes a query error is generated and the output queue is cleared 4 10 Input Buffer 4 10 Input Buf...

Page 22: ...d 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 Bit 4 When for some reason a command which has been re...

Page 23: ...HIOKI 9593C981 01...

Page 24: ...s event register 19 Chapter 5 Command Reference Explanation Ref page 23 ESR Queries standard event status register SESR 23 IDN Queries device ID 23 RST Device initialization 24 TST Queries the result...

Page 25: ...HIOKI 9593C981 01...

Page 26: ...HIOKI 9593C981 01...

Page 27: ...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...

Page 28: ...ffixed to the response message Example Response 32 Bit 5 of SESR has been set to 1 128 64 32 16 8 4 2 1 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 PON URQ CME EXE DDE QYE RQC OPC Standard event s...

Page 29: ...HIOKI 9593C981 01...

Page 30: ...ue described above a command error occurs The execution of this command in a state other than the READY state causes an execution error ADJust Queries the zero adjustment function enablement Syntax AD...

Page 31: ...HIOKI 9593C981 01...

Page 32: ...HIOKI 9593C981 01...

Page 33: ...HIOKI 9593C981 01...

Page 34: ...HIOKI 9593C981 01...

Page 35: ...HIOKI 9593C981 01...

Page 36: ...HIOKI 9593C981 01...

Page 37: ...HIOKI 9593C981 01...

Page 38: ...HIOKI 9593C981 01...

Page 39: ...HIOKI 9593C981 01...

Page 40: ...HIOKI 9593C981 01...

Page 41: ...HIOKI 9593C981 01...

Page 42: ...HIOKI 9593C981 01...

Page 43: ...HIOKI 9593C981 01...

Page 44: ...HIOKI 9593C981 01...

Page 45: ...HIOKI 9593C981 01...

Page 46: ...HIOKI 9593C981 01...

Page 47: ...HIOKI 9593C981 01...

Page 48: ...5 HIOKI 9593C981 01...

Page 49: ...HIOKI 9593C981 01...

Page 50: ...HIOKI 9593C981 01...

Page 51: ...HIOKI 9593C981 01...

Page 52: ...HIOKI 9593C981 01...

Page 53: ...HIOKI 9593C981 01...

Page 54: ...HIOKI 9593C981 01...

Page 55: ...HIOKI 9593C981 01...

Page 56: ...HIOKI 9593C981 01...

Page 57: ...HIOKI 9593C981 01...

Page 58: ...HIOKI 9593C981 01...

Page 59: ...HIOKI 9593C981 01...

Page 60: ...HIOKI 9593C981 01...

Page 61: ...HIOKI 9593C981 01...

Page 62: ...minimum test value voltage and measured voltage value Three digits in NR2 format 57 3 Maximum test value resistance minimum test value resistance and measured resistance value Four digits in NR2 form...

Page 63: ...d Powering RST on command RS 232C communication conditions Device specific functions ranges etc 1 Output queue Input buffe r Event registers 2 Current path Headers on off Measurement resister 1 When...

Page 64: ...on the RS 232C Has an error occurred Sending several queries Send the queries one at a time and read the responses individually produces only one response When you want to read them in all at once try...

Page 65: ...HIOKI 9593C981 01...

Page 66: ...www hioki com HIOKI 9593C981 01...

Reviews: