background image

17

────────────────────────────────────────────────────

4.9 Output Queue

────────────────────────────────────────────────────

4.9 Output Queue

4.10 Input Buffer

Response messages accumulate in the output queue and are read out as data
and cleared by the controller.
The output queue is also cleared in the following circumstances:

When a device clear is issued.

When the power is turned off and turned on again.

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. Further, if a new message is received while the output
queue still contains data, the output queue is cleared, and a query error is
generated.

The 3157 has an input buffer of 300 bytes capacity. Messages which are
received are put into this buffer and executed in order. If the data
accumulated in this buffer exceeds 300 bytes the buffer becomes full, and until
a space again becomes available in the buffer the GP-IB interface bus goes
into the waiting state.

Содержание 9518-02

Страница 1: ...GP IB INTERFACE INSTRUCTION MANUAL 9518 02 3157 AC GROUNDING HiTESTER...

Страница 2: ......

Страница 3: ...ns 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...

Страница 4: ...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...

Страница 5: ...k 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 an...

Страница 6: ...ii Introduction...

Страница 7: ...rnal 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 contac...

Страница 8: ...ng 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 in...

Страница 9: ...blems 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...

Страница 10: ...ith 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 fit...

Страница 11: ...comes 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...

Страница 12: ...ellation 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 R...

Страница 13: ...ote 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 con...

Страница 14: ...terface 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 I...

Страница 15: ...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 apparent...

Страница 16: ...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...

Страница 17: ...essages 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...

Страница 18: ...n 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...

Страница 19: ...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 Exampl...

Страница 20: ...ats 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 excee...

Страница 21: ...the TRANsmit TERMinator command is given in Section 5 4 1 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...

Страница 22: ...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...

Страница 23: ...sponse messages overflow this limit of 300 bytes a query error is generated and the output queue is cleared Further if a new message is received while the output queue still contains data the output q...

Страница 24: ...4 11 Status Model 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 ge...

Страница 25: ...s register 0 4 12 Status Byte Register 1 Status byte register STB The status byte register is an 8 bit register whose contents are output from the 3157 to the controller when serial polling is being p...

Страница 26: ...ster SESER Status byte register STB 4 13 Event Registers 1 Standard event status register SESR The standard event status register is an 8 bit register If any bit in the standard event status register...

Страница 27: ...some other function is being performed Bit 3 DDE 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...

Страница 28: ...ove upper limit of comparator Bit 0 PASS Within limits of comparator 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...

Страница 29: ...STB Service request enable register SRE SRE Standard event status register ESR Standard event status enable register ESE ESE Event status register 0 ESR0 Event status enable register 0 ESE0 ESE0 5 Su...

Страница 30: ...o the local state LLO Local Lock Out All keys including the LOCAL key become inoperable DCL Device Clear Clears the input buffer and the output queue SDC Selected Device Clear Clears the input buffer...

Страница 31: ...s register SESR 30 IDN Queries device ID 30 OPC Issues service request SRQ after execution completion 31 OPC Queries execution completion 31 RST Device initialization 31 SRE Sets service request enabl...

Страница 32: ...igure VUPPer Sets the maximum test value voltage 41 CONFigure VUPPer Queries the maximum test value voltage 41 ESE0 Sets event status enable register 0 42 ESE0 Queries event status enable register 0 4...

Страница 33: ...y 56 SYSTem OPTion HOLD Sets the hold function 57 SYSTem OPTion HOLD Queries the hold function 57 SYSTem OPTion LOWer Sets the minimum test value 58 SYSTem OPTion LOWer Queries the minimum test value...

Страница 34: ...ommand Note Specifies precautions to be taken when using the command Example These are simple examples of the use of the command Note that all transmission messages are expressed in a short form Error...

Страница 35: ...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 Syntax ESE_ data data Nume...

Страница 36: ...R have been set to 1 Error If the response message is longer than 300 bytes a query error is generated Syntax ESR Function Returns the contents of the standard event status register SESR as a numerica...

Страница 37: ...t 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 t...

Страница 38: ...r 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...

Страница 39: ...the self test of the 3157 and returns the result thereof as a numerical value in NR1 format between 0 and 3 No header is affixed to the response message Bit 0 A ROM error occurred Bit 1 A RAM error o...

Страница 40: ...zero adjustment function is turned on 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 READ...

Страница 41: ...ue 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 Response If headers a...

Страница 42: ...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 r...

Страница 43: ...resistance 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 RLOWer 0 000 The minimum tes...

Страница 44: ...e 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...

Страница 45: ...sabled 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 ab...

Страница 46: ...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 va...

Страница 47: ...set to be expressed in VOLT voltage and when ON is selected in the ON OFF setting for the maximum test value Example Transmission CONFigure VUPPer 2 50 The maximum test value voltage is set to 2 50 V...

Страница 48: ...le 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...

Страница 49: ...message Example Response 4 Bit 2 of ESR0 has been set to 1 Error If the response message is longer than 300 bytes a query error is generated Syntax HEADer_ data data ON OFF character data Function Set...

Страница 50: ...entry is possible or not depends on the state of the unit For more information see the instruction manual for the 3157 Example Transmission KEY 0 2 The right arrow key entry is set Error If data 1 an...

Страница 51: ...ent 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...

Страница 52: ...e is longer than 300 bytes a query error is generated Syntax MEASure TIMer Function Returns the test time elapsed as a numerical value in NR2 format data character data Numerical data in NR2 format be...

Страница 53: ...red 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 measur...

Страница 54: ...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 i...

Страница 55: ...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 t...

Страница 56: ...e 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 ST...

Страница 57: ...buzzer 1 ON at screening ON at error 2 OFF at screening OFF at error 3 OFF at screening ON at error 4 ON at screening OFF at error The numerical value can be in NRf format but any digits after the dec...

Страница 58: ...SYSTem OPTion CCHange 1 The current changeability in the TEST state is set to Changeable Error If data is other than numerical value described above an execution error occurs The execution of this com...

Страница 59: ...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 val...

Страница 60: ...test data is not reflected in the test Example Transmission SYSTem OPTion COUNt 1 The test data count function is set Error If data is other than numerical value described above an execution error occ...

Страница 61: ...is not reflected in the test Example Transmission SYSTem OPTion ENDLess 1 The endless timer function is set Error If data is other than numerical value described above an execution error occurs The e...

Страница 62: ...PTion FREQuency 1 The output current frequency is set to 60 Hz Error If data is other than numerical value described above an execution error occurs The execution of this command in a state other than...

Страница 63: ...n 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...

Страница 64: ...gh 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 occu...

Страница 65: ...Example Transmission SYSTem OPTion MOMentary 1 The momentary OUT function is set Error If data is other than numerical value described above an execution error occurs In the continuous test mode sett...

Страница 66: ...unded 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 Th...

Страница 67: ...will be rounded Example Transmission SYSTem OPTion PRINter 0 The printer output function is set to Not used Error If data is other than numerical value described above an execution error occurs The ex...

Страница 68: ...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 exec...

Страница 69: ...ing screen Syntax TIMer Function Returns the current enablement state of the test time as character data data ON OFF character data Example Response If headers are on TIMER ON If headers are off ON Er...

Страница 70: ...lues 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 m...

Страница 71: ...a 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...

Страница 72: ...Two or three digits in NR2 format 2 Maximum test value voltage minimum test value voltage and measured voltage value Three digits in NR2 format 3 Maximum test value resistance minimum test value resi...

Страница 73: ...nput buffer Status byte register 1 2 Event registers 3 Enable registers Current path Headers on off Terminator for response messages Measurement resister 5 6 Initialization Items The following table s...

Страница 74: ...68 5 6 Initialization Items...

Страница 75: ...splays the result on the screen Program List 100 DIM A 10 B 10 C 40 110 Statecheck1 120 OUTPUT 701 STAT 130 ENTER 701 A 140 IF A READY THEN GOTO Setting 150 OUTPUT 701 STOP 160 GOTO Statecheck1 170 Se...

Страница 76: ...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...

Страница 77: ...MEM SAVE 2 370 Statecheck3 380 OUTPUT 701 STAT 390 ENTER 701 C 400 IF C READY THEN GOTO Statecheck3 410 Setting3 420 OUTPUT 701 CONF CURR 25 0 430 OUTPUT 701 UNIT OHM 440 OUTPUT 701 UPP ON 450 OUTPUT...

Страница 78: ...ading 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 ENTE...

Страница 79: ...sting 290 INPUT PRESS ANY KEY TO START A 300 OUTPUT 701 STAR 310 Statetest 320 OUTPUT 701 STAT 330 ENTER 701 T 340 IF T TEST THEN Statetestend 350 GOTO Statetest 360 Statetestend 370 OUTPUT 701 STAT 3...

Страница 80: ...090 5 0 PASS 25 2 0 098 5 0 PASS 24 6 0 101 0 1 UFAIL 24 7 0 102 0 1 UFAIL 5 24 7 0 101 0 1 UFAIL Sample output 1 25 1 0 090 5 0 PASS 2 25 2 0 098 5 0 PASS 3 24 6 0 101 0 1 UFAIL 4 24 7 0 102 0 1 UFAI...

Страница 81: ...tems are preserved However the header on off setting and response message separator and terminator are all reinitialized 5 List of message exchange options 1 Input buffer capacity and operation These...

Страница 82: ...ty 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 bee...

Страница 83: ...ata used in a device status report This is detailed in Section 4 13 Event Registers 22 Whether commands are overlap or sequential type All the commands are sequential commands 23 Criterion relating to...

Страница 84: ...78...

Страница 85: ...HP Basic ENTER statement the GP IB bus hangs Be sure to transmit one query before each ENTER statement Have any of these transmitted queries resulted in an error Although a command has been transmitte...

Страница 86: ...t cleared no service request will be generated for that event The response message to a query differs from the display on the front panel of the 3157 Due to the response message being produced at the...

Отзывы: