logo资料库

IEEE488.2标准协议.pdf

第1页 / 共261页
第2页 / 共261页
第3页 / 共261页
第4页 / 共261页
第5页 / 共261页
第6页 / 共261页
第7页 / 共261页
第8页 / 共261页
资料共261页,剩余部分请下载后查看
CONTENTS
Foreword
IEEE Foreword
1. Introduction
1.1 Scope
1.2 Objectives
1.3 Notation
2. References
3. System Considerations
3.1 Definitions
3.2 System Message Traffic
3.3 Functional Layers
4. Device Compliance Criteria
4.1 IEEE 488.1 Requirements
4.2 Message Exchange Requirements
4.3 Syntax Requirements
4.4 Status Reporting Requirements
4.5 Common Commands
4.6 Synchronization Requirements
4.7 System Configuration Capability
4.8 Controller Capability
4.9 Device Documentation Requirements
5. Device Interface Function Requirements
5.1 Handshake Requirements
5.2 Address Requirements
5.3 Talker Requirements
5.4 Listener Requirements
5.7 Parallel Poll Requirements
5.8 Device Clear Requirements
5.9 Device Trigger Requirements
5.10 Controller Function Requirements
5.11 Electrical Requirements
5.12 Power-On Requirements
6. Message Exchange Control Protocol
6.1 Functional Elements
6.2 Protocol Overview
6.3 Message Exchange Control Operation
6.4 Protocol Rules
6.5 Protocol Exceptions
7. Device Listening Formats
7.1 Overview
7.2 Notation
7.3 Terminated Program Messages—Functional Syntax
7.4 Separator Functional Elements
7.5
7.6 Program Header Functional Elements
7.7 Functional Elements
8. Device Talking Elements
8.1 Overview
8.2 Notation
8.3 Terminated Response Messages—Functional Syntax
8.4 Separator Functional Elements
8.5
8.6
8.7 Functional Elements
9. Message Data Coding
9.1 ASCII 7 Bit Codes
9.2 Binary 8 Bit Integer Codes
9.3 Binary Floating Point Code
10. Common Commandsand Queries
10.1 *AAD, Accept Address Command
10.2 *CAL?, Calibration Query
10.3 *CLS, Clear Status Command
10.4 *DDT, Define Device Trigger Command
10.5 *DDT?, Define Device Trigger Query
10.6 *DLF, Disable Listener Function Command
10.7 *DMC, Define Macro Command
10.8 *EMC, Enable Macro Command
10.9 *EMC?, Enable Macro Query
10.10 *ESE, Standard Event Status Enable Command
10.11 *ESE?, Standard Event Status Enable Query
10.12 *ESR?, Standard Event Status Register Query
10.13 *GMC?, Get Macro Contents Query
10.14 *IDN?., Identification Query
10.15 *IST?, Individual Status Query
10.16 *LMC?, Learn Macro Query
10.17 *LRN?, Learn Device Setup Query
10.18 *OPC, Operation Complete Command
10.19 *OPC?, Operation Complete Query
10.20 *OPT?, Option Identification Query
10.21 *PCB, Pass Control Back
10.22 *PMC, Purge Macros Command
10.23 *PRE, Parallel Poll Enable Register Command
10.24 *PRE?, Parallel Poll Enable Register Query
10.25 *PSC, Power-On Status Clear Command
10.26 *PSC?, Power-On Status Clear Query
10.27 *PUD, Protected User Data Command
10.28 *PUD?, Protected User Data Query
10.29 *RCL, Recall Command
10.30 *RDT, Resource Description Transfer Command
10.31 *RDT?, Resource Description Transfer Query
10.32 *RST, Reset Command
10.33 *SAV, Save Command
10.34 *SRE, Service Request Enable Command
10.35 *SRE?, Service Request Enable Query
10.36 *STB?, Read Status Byte Query
10.37 *TRG, Trigger Command
10.38 *TST?, Self-Test Query
10.39 *WAI, Wait-to-Continue Command
10.40 *RMC, Remove Individual Macro Command
10.41 *SDS, Save Default Device Settings Command
11. Device Status Reporting
11.1 Overview
11.3 Service Request Enabling
11.4 Status Data Structures
11.5 Standard Status Data Structure
11.6 Parallel Poll Response Handling
12. Device/Controller Synchronization Techniques
12.1 Overview
12.2 Sequential and Overlapped Commands
12.3 Pending-Operation Flag
12.4 No-Operation-Pending Flag
12.5 Controller/Device Synchronization Commands
12.6 Synchronization With External-Control-Signals
12.7 Improper Usage of *OPC and *OPC?
12.8 Design Considerations
13. Automatic System Configuration
13.1 Introduction
13.2 Overview
13.3 Generic Approach to Automatic System Configuration
13.4 Detailed Requirements of the Auto Configuration Commands
13.5 Additional Automatic Configuration Techniques
13.6 Examples
14. Controller Compliance Criteria
14.1 IEEE 488.1 Requirements
14.2 Message Exchange Requirements
14.3 Protocols
14.4 Functional Element Handling
14.5 Controller Specification Requirements
15. IEEE 488.2 Controller Requirements
15.1 Controller Interface Function Requirements
15.2 Additional IEEE 488.2 Controller Requirements
15.3 IEEE 488.2 Controller Recommendations
16. Controller Message Exchange Protocols
16.1 Definitions
16.2 Control Sequences
17. Common Controller Protocols
17.1 Reset Protocols
17.2 Find Device Requesing Service Protocol
17.3 Serial Poll All Devices Protocol
17.4 Pass Control Protocol
17.5 Requesting Control
17.6 Find Listeners Protocol
17.7 Set Address Protocol
17.8 Test System Protocol
Annex A—Compound Headers—Usage and Examples
Annex B—Device/Controller Synchronization Techniques
Annex C—Automatic System Configuration Example
Annex D—Reset Guidelines
Annex E—List of Participants
INTERNATIONAL STANDARD IEC 60488-2 First edition 2004-05 IEEE 488.2 ™ Standard digital interface for programmable instrumentation – Part 2: Codes, formats, protocols and common commands Reference number IEC 60488-2(E):2004 IEEE Std. 488.2(E):1992 Authorized licensed use limited to: Zhengzhou University. Downloaded on April 07,2010 at 08:50:56 EDT from IEEE Xplore. Restrictions apply.
Publication numbering As from 1 January 1997 all IEC publications are issued with a designation in the 60000 series. For example, IEC 34-1 is now referred to as IEC 60034-1. Consolidated editions The IEC is now publishing consolidated versions of its publications. For example, edition numbers 1.0, 1.1 and 1.2 refer, respectively, to the base publication, the base publication incorporating amendment 1 and the base publication incorporating amendments 1 and 2. Further information on IEC publications The technical content of IEC publications is kept under constant review by the IEC, thus ensuring that the content reflects current technology. Information relating to this publication, including its validity, is available in the IEC Catalogue of publications (see below) in addition to new editions, amendments and corrigenda. Information on the subjects under consideration and work in progress undertaken by the technical committee which has prepared this publication, as well as the list of publications issued, is also available from the following: IEC Web Site (www.iec.ch) Catalogue of IEC publications The on-line catalogue on the IEC web site (www.iec.ch/searchpub) enables you to search by a variety of criteria including text searches, technical committees and date of publication. On-line information is also available on recently issued publications, withdrawn and replaced publications, as well as corrigenda. IEC Just Published This summary of recently issued publications (www.iec.ch/online_news/ justpub) is also available by email. Please contact the Customer Service Centre (see below) for further information. Customer Service Centre If you have any questions regarding this publication or need further assistance, please contact the Customer Service Centre: Email: custserv@iec.ch Tel: +41 22 919 02 11 Fax: +41 22 919 03 00 • • • • Authorized licensed use limited to: Zhengzhou University. Downloaded on April 07,2010 at 08:50:56 EDT from IEEE Xplore. Restrictions apply.
INTERNATIONAL STANDARD IEC 60488-2 First edition 2004-05 IEEE 488.2 ™ Standard digital interface for programmable instrumentation – Part 2: Codes, formats, protocols and common commands © IEEE 2004 ⎯ Copyright - all rights reserved IEEE is a registered trademark in the U.S. Patent & Trademark Office, owned by the Institute of Electrical and Electronics Engineers, Inc. No part of this publication may be reproduced or utilized in any form or by any means, electronic or mechanical, including photocopying and microfilm, without permission in writing from the publisher. International Electrotechnical Commission, 3, rue de Varembé, PO Box 131, CH-1211 Geneva 20, Switzerland Telephone: +41 22 919 02 11 Telefax: +41 22 919 03 00 E-mail: inmail@iec.ch Web: www.iec.ch The Institute of Electrical and Electronics Engineers, Inc, 3 Park Avenue, New York, NY 10016-5997, USA Telephone: +1 732 562 3800 Telefax: +1 732 562 1571 E-mail: stds-info@ieee.org Web: www.standards.ieee.org Commission Electrotechnique Internationale International Electrotechnical Commission Международная Электротехническая Комиссия Authorized licensed use limited to: Zhengzhou University. Downloaded on April 07,2010 at 08:50:56 EDT from IEEE Xplore. Restrictions apply.
– 2 – CONTENTS IEC 60488-2:2004(E) IEEE 488.2-1992(E) .......................................................................................................................................................................6 Introduction..........................................................................................................................................................10 1.1 Scope ...........................................................................................................................................................10 1.2 Objectives....................................................................................................................................................11 1.3 Notation.......................................................................................................................................................11 References............................................................................................................................................................11 System Considerations.........................................................................................................................................12 3.1 Definitions...................................................................................................................................................12 3.2 System Message Traffic..............................................................................................................................13 3.3 Functional Layers .......................................................................................................................................14 Device Compliance Criteria ...............................................................................................................................15 4.1 IEEE 488.1 Requirements...........................................................................................................................16 4.2 Message Exchange Requirements ..............................................................................................................16 4.3 Syntax Requirements ..................................................................................................................................16 4.4 Status Reporting Requirements .................................................................................................................18 4.5 Common Commands...................................................................................................................................21 4.6 Synchronization Requirements ..................................................................................................................24 4.7 System Configuration Capability................................................................................................................24 4.8 Controller Capability...................................................................................................................................25 4.9 Device Documentation Requirements .......................................................................................................25 Device Interface Function Requirements............................................................................................................26 Foreword 1. 2. 3. 4. 5. 6. 7. 5.1 Handshake Requirements........................................................................................................................... 26 5.2 Address Requirements ................................................................................................................................27 5.3 Talker Requirements ...................................................................................................................................27 5.4 Listener Requirements ................................................................................................................................27 5.5 Service Request Requirements ...................................................................................................................28 5.6 Remote/Local Requirements.......................................................................................................................28 5.7 Parallel Poll Requirements..........................................................................................................................30 5.8 Device Clear Requirements ........................................................................................................................31 5.9 Device Trigger Requirements.....................................................................................................................31 5.10 Controller Function Requirements..............................................................................................................31 5.11 Electrical Requirements ..............................................................................................................................31 5.12 Power-On Requirements.............................................................................................................................32 Message Exchange Control Protocol ..................................................................................................................33 6.1 Functional Elements....................................................................................................................................33 6.2 Protocol Overview ......................................................................................................................................45 6.3 Message Exchange Control Operation .......................................................................................................47 6.4 Protocol Rules .............................................................................................................................................52 6.5 Protocol Exceptions ....................................................................................................................................55 Device Listening Formats....................................................................................................................................57 7.1 Overview ....................................................................................................................................................57 7.2 Notation.......................................................................................................................................................58 7.3 Terminated Program Messages – Functional Syntax ................................................................................61 Published by IEC under licence from IEEE. © 1992 IEEE. All rights reserved. Authorized licensed use limited to: Zhengzhou University. Downloaded on April 07,2010 at 08:50:56 EDT from IEEE Xplore. Restrictions apply.
IEC 60488-2:2004(E) IEEE 488.2-1992(E) – 3 – 7.4 Separator Functional Elements ...................................................................................................................65 7.5 .............................................................................................67 7.6 Program Header Functional Elements........................................................................................................67 7.7 Functional Elements..............................................................................................72 Device Talking Elements.....................................................................................................................................87 8.1 Overview .....................................................................................................................................................87 8.2 Notation.......................................................................................................................................................88 8.3 Terminated Response Messages – Functional Syntax ...............................................................................88 8.4 Separator Functional Elements ...................................................................................................................92 8.5 ............................................................................................93 8.6 ...........................................................................................................................94 8.7 Functional Elements..............................................................................................95 Message Data Coding........................................................................................................................................106 9.1 ASCII 7 bit Codes .....................................................................................................................................107 9.2 Binary 8 Bit Integer Codes .......................................................................................................................109 9.3 Binary Floating Point Code ......................................................................................................................110 Common Commands and Queries.....................................................................................................................113 10.1 *AAD, Accept Address Command...........................................................................................................116 10.2 *CAL?, Calibration Query........................................................................................................................116 10.3 *CLS, Clear Status Command..................................................................................................................117 10.4 *DDT, Define Device Trigger Command ...............................................................................................118 10.5 *DDT?, Define Device Trigger Query .....................................................................................................119 10.6 *DLF, Disable Listener Function Command ..........................................................................................120 10.7 *DMC, Define Macro Command .............................................................................................................120 10.8 *EMC, Enable Macro Command..............................................................................................................123 10.9 *EMC?, Enable Macro Query...................................................................................................................124 10.10 *ESE, Standard Event Status Enable Command ....................................................................................125 10.11 *ESE?, Standard Event Status Enable Query .........................................................................................125 10.12 *ESR?, Standard Event Status Register Query.......................................................................................126 10.13 *GMC?, Get Macro Contents Query.......................................................................................................126 10.14 *IDN?., Identification Query..................................................................................................................127 10.15 *IST?, Individual Status Query ..............................................................................................................129 10.16 *LMC?, Learn Macro Query ..................................................................................................................129 10.17 *LRN?, Learn Device Setup Query .......................................................................................................130 10.18 *OPC, Operation Complete Command...................................................................................................131 10.19 *OPC?, Operation Complete Query........................................................................................................131 10.20 *OPT?, Option Identification Query.......................................................................................................132 10.21 *PCB, Pass Control Back.......................................................................................................................133 10.22 *PMC, Purge Macros Command ............................................................................................................134 10.23 *PRE, Parallel Poll Enable Register Command .....................................................................................134 10.24 *PRE?, Parallel Poll Enable Register Query .........................................................................................135 10.25 *PSC, Power-On Status Clear Command...............................................................................................136 10.26 *PSC?, Power-On Status Clear Query ...................................................................................................137 10.27 *PUD, Protected User Data Command ..................................................................................................137 10.28 *PUD?, Protected User Data Query........................................................................................................138 10.29 *RCL, Recall Command .........................................................................................................................139 10.30 *RDT, Resource Description Transfer Command .................................................................................140 8. 9. 10. Published by IEC under licence from IEEE. © 1992 IEEE. All rights reserved. Authorized licensed use limited to: Zhengzhou University. Downloaded on April 07,2010 at 08:50:56 EDT from IEEE Xplore. Restrictions apply.
– 4 – IEC 60488-2:2004(E) IEEE 488.2-1992(E) 11.1 Overview ...................................................................................................................................................149 11.2 Status Byte Register ..................................................................................................................................150 11.3 Service Request Enabling .........................................................................................................................155 11.4 Status Data Structures ...............................................................................................................................161 11.5 Standard Status Data Structure..................................................................................................................166 11.6 Parallel Poll Response Handling...............................................................................................................173 10.31 *RDT?, Resource Description Transfer Query.......................................................................................141 10.32 *RST, Reset Command ...........................................................................................................................142 10.33 *SAV, Save Command............................................................................................................................143 10.34 *SRE, Service Request Enable Command..............................................................................................143 10.35 *SRE?, Service Request Enable Query...................................................................................................144 10.36 *STB?, Read Status Byte Query .............................................................................................................145 10.37 *TRG, Trigger Command .......................................................................................................................145 10.38 *TST?, Self-Test Query...........................................................................................................................146 10.39 *WAI, Wait-to-Continue Command.......................................................................................................147 10.40 *RMC, Remove Individual Macro Command........................................................................................147 10.41 *SDS, Save Default Device Settings Command.....................................................................................148 11. Device Status Reporting ...................................................................................................................................149 12. Device/Controller Synchronization Techniques ...............................................................................................174 13. Automatic System Configuration .....................................................................................................................184 14. Controller Compliance Criteria ........................................................................................................................197 15. I 12.1 Overview ...................................................................................................................................................174 12.2 Sequential and Overlapped Commands....................................................................................................175 12.3 Pending-Operation Flag ............................................................................................................................176 12.4 No-Operation-Pending Flag......................................................................................................................176 12.5 Controller/Device Synchronization Commands.......................................................................................176 12.6 Synchronization With External-Control-Signals......................................................................................180 12.7 Improper Usage of *OPC and *OPC?......................................................................................................181 12.8 Design Considerations ..............................................................................................................................182 13.1 Introduction ...............................................................................................................................................184 13.2 Overview ...................................................................................................................................................185 13.3 Generic Approach to Automatic System Configuration ..........................................................................186 13.4 Detailed Requirements of the Auto Configuration Commands...............................................................191 13.5 Additional Automatic Configuration Techniques ....................................................................................197 13.6 Examples ...................................................................................................................................................197 14.1 IEEE 488.1 Requirements.........................................................................................................................197 14.2 Message Exchange Requirements ............................................................................................................198 14.3 Protocols....................................................................................................................................................198 14.4 Functional Element Handling ...................................................................................................................200 14.5 Controller Specification Requirements.....................................................................................................200 IEEE 488.2 Controller Requirements................................................................................................................200 15.1 Controller Interface Function Requirements............................................................................................200 15.2 Additional IEEE 488.2 Controller Requirements.....................................................................................201 15.3 IEEE 488.2 Controller Recommendations ...............................................................................................202 Published by IEC under licence from IEEE. © 1992 IEEE. All rights reserved. Authorized licensed use limited to: Zhengzhou University. Downloaded on April 07,2010 at 08:50:56 EDT from IEEE Xplore. Restrictions apply.
IEC 60488-2:2004(E) IEEE 488.2-1992(E) – 5 – 16.1 Definitions.................................................................................................................................................203 16.2 Control Sequences.....................................................................................................................................205 16. Controller Message Exchange Protocols...........................................................................................................202 17. Common Controller Protocols ..........................................................................................................................213 Annex A Compound Headers – Usage and Examples (Informative) .........................................................................228 Annex B Device/Controller Synchronization Techniques (Informative) ....................................................................232 Annex C Automatic System Configuration Example (Informative)............................................................................244 Annex D Reset Guidelines (Informative) .....................................................................................................................250 Annex E List of Participants (Informative) ..................................................................................................................256 17.1 Reset Protocol ...........................................................................................................................................214 17.2 Find Device Requesting Service Protocol................................................................................................215 17.3 Serial Poll All Devices Protocol ...............................................................................................................216 17.4 Pass Control Protocol................................................................................................................................218 17.5 Requesting Control....................................................................................................................................219 17.6 Find Listeners Protocol .............................................................................................................................220 17.7 Set Address Protocol.................................................................................................................................221 17.8 Test System Protocol.................................................................................................................................226 Published by IEC under licence from IEEE. © 1992 IEEE. All rights reserved. Authorized licensed use limited to: Zhengzhou University. Downloaded on April 07,2010 at 08:50:56 EDT from IEEE Xplore. Restrictions apply.
– 6 – IEC 60488-2:2004(E) IEEE 488.2-1992(E) INTERNATIONAL ELECTROTECHNICAL COMMISSION ____________ STANDARD DIGITAL INTERFACE FOR PROGRAMMABLE INSTRUMENTATION – Part 2: Codes, formats, protocols and common commands FOREWORD 1) The International Electrotechnical Commission (IEC) is a worldwide organization for standardization comprising all national electrotechnical committees (IEC National Committees). The object of IEC is to promote international co- operation on all questions concerning standardization in the electrical and electronic fields. To this end and in addition to other activities, IEC publishes International Standards, Technical Specifications, Technical Reports, Publicly Available Specifications (PAS) and Guides (hereafter referred to as “IEC Publication(s)”). Their preparation is entrusted to technical committees; any IEC National Committee interested in the subject dealt with may participate in this preparatory work. International, governmental and non-governmental organizations liaising with the IEC also participate in this preparation. IEC collaborates closely with the International Organization for Standardization (ISO) in accordance with conditions determined by agreement between the two organizations. 3) 2) The formal decisions or agreements of IEC on technical matters express, as nearly as possible, an international consensus of opinion on the relevant subjects since each technical committee has representation from all interested IEC National Committees. IEC Publications have the form of recommendations for international use and are accepted by IEC National Committees in that sense. While all reasonable efforts are made to ensure that the technical content of IEC Publications is accurate, IEC cannot be held responsible for the way in which they are used or for any misinterpretation by any end user. In order to promote international uniformity, IEC National Committees undertake to apply IEC Publications transparently to the maximum extent possible in their national and regional publications. Any divergence between any IEC Publication and the corresponding national or regional publication shall be clearly indicated in the latter. IEC provides no marking procedure to indicate its approval and cannot be rendered responsible for any equipment declared to be in conformity with an IEC Publication. 5) 4) 6) Attention is drawn to the possibility that some of the elements of this IEC Publication may be the subject of patent rights. IEC shall not be held responsible for identifying any or all such patent rights. International Standard IEC/IEEE 60488-2 has been processed through subcommittee 65C: Digital communications, of IEC technical committee 65: Industrial-process measurement and control. This standard cancels and replaces the second edition of IEC 60625-2 (1993). At times in this standard, specific reference is made to IEEE Std 488.1:1987, which constituted an earlier version of IEEE Std 488.1:2003, the IEEE edition upon which IEC/IEEE 60488-1:2004 is based. Where specific dated references were made to the 1987 edition, these references have been maintained. The text of this standard is based on the following documents: IEEE Std 488.2 (1992) FDIS 65C/320/FDIS Report on voting 65C/326/RVD Full information on the voting for the approval of this standard can be found in the report on voting indicated in the above table. This publication has been drafted in accordance with the ISO/IEC Directives. The committee has decided that the contents of this publication will remain unchanged until 2009. IEC/IEEE 60488 consists of the following publications: • Higher performance protocol the standard digital for programmable interface for instrumentation – Part 1: General (60488-1). • Standard digital interface for programmable instrumentation – Part 2: Codes, formats, protocols and common commands (60488-2). Published by IEC under licence from IEEE. © 1992 IEEE. All rights reserved. Authorized licensed use limited to: Zhengzhou University. Downloaded on April 07,2010 at 08:50:56 EDT from IEEE Xplore. Restrictions apply.
分享到:
收藏