1、Recognized as anAmerican National Standard (ANSI)Copyright 1982 byThe Institute of Electrical and Electronics Engineers, Inc. 345 E. 47th Street, New York, NY 10017No part of this publication may be reproduced in any form, in an electronic retrieval system or otherwise, without the priorwritten perm
2、ission of the publisher.IEEE Std 726-1982(R2006)(Revision of IEEE 726-1979)IEEE Standard Real-Time BASIC for CAMAC1Sponsor Instrumentation and Detectors Committeeof theIEEE Nuclear and Plasma Sciences SocietyReaffirmed March 30, 2006Approved September 17, 1981IEEE-SA Standards BoardReaffirmed Decemb
3、er 21, 1990Approved December 15, 1981American National Standards Institute1Computer Automated Measurement and ControlIEEE Standards documents are, developed within the Technical Committees of the IEEE Societies and the StandardsCoordinating Committees of the IEEE Standards Board. Members of the comm
4、ittees serve voluntarily and withoutcompensation. They are not necessarily members of the Institute. The standards developed within IEEE represent aconsensus of the broad expertise on the subject within the Institute as well as those activities outside of IEEE whichhave expressed an interest in part
5、icipating in the development of the standard.Use of an IEEE Standard is wholly voluntary. The existence of an IEEE Standard does not imply that there are no otherways to produce, test, measure, purchase, market, or provide other goods and services related to the scope of the IEEEStandard. Furthermor
6、e, the viewpoint expressed at the time a standard is approved and issued is subject to changebrought about through developments in the state of the art and comments received from users of the standard. EveryIEEE Standard is subjected to review at least once every five years for revision or reaffirma
7、tion. When a document ismore than five years old, and has not been reaffirmed, it is reasonable to conclude that its contents, although still ofsome value, do not wholly reflect the present state of the art. Users are cautioned to check to determine that they havethe latest edition of any IEEE Stand
8、ard.Comments for revision of IEEE Standards are welcome from any interested party, regardless of membership affiliationwith IEEE. Suggestions for changes in documents should be in the form of a proposed change of text, together withappropriate supporting comments.Interpretations: Occasionally questi
9、ons may arise regarding the meaning of portions of standards as they relate tospecific applications. When the need for interpretations is brought to the attention of IEEE, the Institute will initiateaction to prepare appropriate responses. Since IEEE Standards represent a consensus of all concerned
10、interests, it isimportant to ensure that any interpretation has also received the concurrence of a balance of interests. For this reasonIEEE and the members of its technical committees are not able to provide an instant response to interpretation requestsexcept in those cases where the matter has pr
11、eviously received formal consideration.Comments on standards and requests for interpretations should be addressed to:Secretary, IEEE Standards Board345 East 47th StreetNew York, NY 10017USAiiiForeword(This Foreword is not a part of ANSI/IEEE Std 726-1982, IEEE Standard Real-Time BASIC for CAMAC.)*ES
12、ONE Committee2W. Attwenger, Austria, Chair 198081H. Meyer, Belgium, Secretary Representatives of ESONE Member LaboratoriesW. Attwenger, AustriaR. Biancastelli, ItalyL. Binard, BelgiumJ. Biri, HungaryB. Bjarland, FinlandD. A. Boyce, EnglandB. A. Brandt, F.R. GermanyF. Cesaroni, ItalyP. Christensen, D
13、enmarkW. K. Dawson, CanadaM. DeMarsico, ItalyC. A. DeVries, NetherlandsH. Dilcher, F.R. GermanyB. V. Fefilov, USSRR. A. Hunt, EnglandW. Kessel, F.R. GermanyR. Klesse, FranceE. Kwakkel, NetherlandsJ. L. Lecomte, FranceJ. Lingertat, D.R. GermanyM. Lombardi, ItalyM. Maccioni, ItalyP. Maranesi, ItalyC.
14、H. Mantakas, GreeceD. Marino, ItalyH. Meyer, BelgiumK. D. Muller, F.R. GermanyJ. G. Ottes, F.R. GermanyA. D. Overtoom, NetherlandsE. C. G. Owen, EnglandL. Panaccione, ItalyM. Patrutescu, RoumaniaR. Patzelt, AustriaA. C. Peatfield, EnglandI. C. Pyle, EnglandB. Rispoli, ItalyM. Sarquiz, FranceW. Schoe
15、ps, SwitzerlandR. Schule, F.R. GermanyP. G. Sjolin, SwedenL. Stanchi, ItalyR. Trechcinski, PolandM. Truong, FranceP. Uuspaa, FinlandH. Verweij, SwitzerlandA. J. Vickers, EnglandS. Vitale, ItalyM. Vojinovic, YugoslaviaK. Zander, F.R. GermanyD. Zimmermann, F.R. GermanyESONE Executive Group (XG)W. Attw
16、enger, Austria, XG Chair 198081H. Meyer, Belgium, Secretary P. Christensen, DenmarkM. Dilcher, F.R. GermanyB. Rispoli, ItalyM. Sarquiz, FranceR. Trechcinski, PolandA. Vickers, EnglandH. Verweij, SwitzerlandESONE Technical Coordination Committee (TCC)A. C. Peatfield, England, TCC ChairP. Christensen,
17、 Denmark, TCC SecretaryW. Attwenger, AustriaR. Biancastelli, ItalyG. Bianchi, FranceH. Dilcher, F.R. GermanyP. Gallice, FranceW. Kessel, F.R. GermanyJ. Lukacs, HungaryR. Patzelt, AustriaP. J. Ponting, SwitzerlandW. Schoeps, SwitzerlandS. Vitali, ItalyECA/ESONE CAMAC Document Maintenance Study Group
18、(DMSG)P. Gallice, France, Chair R. C. M. Barnes, EnglandL. Besse, SwitzerlandJ. Davis, EnglandF. Iselin, SwitzerlandH. Meyer, BelgiumH. J. Trebst, F.R. Germany2European Standards on Nuclear Electronics Committee.ivWhen this standard was approved on September 17, 1981, the IEEE Standards Board had th
19、e following membership:I. N. Howell, Jr., Chair Irving Kolodny, Vice Chair Sava I. Sherr, Secretary G. Y. R. AllenJ. J. ArchambaultJ. H. BeallJ. T. BoettgerEdward ChelottiEdward J. CohenLen S. CoreyJay ForsterKurt GreeneLoering M. JohnsonJoseph L. KoepfingerJ. E. MayDonald T. Michael*J. P. RiganatiF
20、. RosaR. W. SeelbachJ. S. StewartW. E. VannahVirginius N. Vaughan, JrArt WallRobert E. Weiler* Member emeritusvCAMAC and NIM Standards and ReportsNOTE Availability of DocumentsANSI Sales Department, American National Standards Institute, 1430 Broadway, New York,NY 10018.IEEE IEEE Service Center, 445
21、 Hoes Lane, Piscataway, New Jersey 08854, USA.IEC International Electrotechnical Commission, 1, rue de Varemb, CH-1211 Geneva 20,Switzerland.DOE and TID Reports National Bureau of Standards, Washington, D.C. 20234, USA, Attn: L. Costrell.EURATOM Office of Official Publications of the European Commun
22、itities, P.O. Box 1003,Luxembourg.ESONE Commission of the European Communities, CGR-BCMN, B-2440 GEEL, Belgium,Attn: ESONE Secretariat, H. Meyer.Title IEEE, ANSI Std NoIEC No DOE NoEURATOM (EUR) orENSONE NoCAMAC Instrumentation and Interface Standards*SH08482*(Library of Congress No 8185060) Modular
23、 Instrumentation and Digital Interface System (CAMAC)ANSI/IEEE Std 583-1982 516TID-25875and TID-25877EUR 4100eSerial Highway Interface System (CAMAC)ANSI/IEEE Std 595-1982 640TID-26488EUR 6100eParallel Highway InterfaceSystem (CAMAC)ANSI/IEEE Std 596-1982 552TID-25876and TID-25877EUR 4600eMultiple C
24、ontrollers ina CAMAC CrateANSI/IEEE Std 675-1982 729DOE/EV-0007EUR 6500eBlock Transfers inCAMAC SystemsANSI/IEEE Std 683-1976 (Reaff 1981)677 TID-26616EUR 4100 supplAmplitude Analog Signalswithin a 50 W System TID-26614 EUR 5100eThe Definition of IML A Language for Use in CAMAC Systems TID-26615 ESO
25、NE/IML/01CAMAC Tutorial Articles TID-26618 Real-Time BASIC for CAMACANSI/IEEE Std 726-1982 TID-26619ESONE/RTB/03Subroutines for CAMACANSI/IEEE Std 758-1979 (Reaff 1981)713 DOE/EV-0016ESONE/SR/01Recommendations for CAMACSerial Highway Drivers andLAM Graders for the SCC-L2 DOE/EV-0006 ESONE/SD/02Defin
26、itions of CAMAC Terms Included in SH08482 678 DOE/ER-0104 ESONE/GEN/01Standard Nuclear Instrument Modules NIM547*TID-20893 (Rev 4)*This is a hard cover book that contains ANSI/IEEE Std 583-1982, ANSI/IEEE Std 595-1982, ANSI/IEEE Std 596-1982, ANSI/IEEE Std 675-1982, ANSI/IEEE Std 683-1976 (Reaff 198
27、1), ANSI/IEEE Std 726-1982 and IEEE Std 758-1979 (Reaff 1981), plus introductory material and aglossary of CAMAC terms.Superseded by corresponding IEEE Standard listed.In preparation.*Covers only mechanical features and connector pin assignments.viThis standard deals with software for the CAMAC modu
28、lar instrumentation and interface system of ANSI/IEEE Std583-1982, Modular Instrumentation and Digital Interface System (CAMAC) (also Report EUR 4100e of theCommission of the European Communities). The report on which this standard was originally based, ERDA ReportTID-26619, was prepared by the NIM
29、Committee* of the United States Energy Research and DevelopmentAdministration (now the Department of Energy) and the ESONE Committee* of European Laboratories. Thecorresponding ESONE document was ESONE/RTB/02.This standard differs from these original documents in several respects, particularly to be
30、 consistent with the newstandard for BASIC3that has been developed jointly by ANSI X3J2, ECMA TC21 and EWICS TC2. Enhancementsto the BASIC3standard include a real-time module that provides input-output to process peripherals, response toasynchronous events, synchronization and communication between
31、concurrent activities, and the handling ofexceptions.The BASIC3standard is general, and specific parts of the syntax and semantics are left open to be definedappropriately for particular process peripheral systems. The purpose of this standard is to define specific syntax andsemantics for use with C
32、AMAC in the areas left open in the standard.The revision of this standard was in conjunction with the 1981 review (1982 issue) of the entire family of IEEECAMAC standards undertaken to incorporate existing addenda and corrections into the standards.This standard was reviewed and balloted by the Nucl
33、ear Instruments and Detectors Committee of the IEEE Nuclearand Plasma Sciences Society. At the time of approval of this standard, the membership was as follows:D. C. Cook, Chair Louis Costrell, Secretary J. A. ColemanJ. F. DetkoF. S. GouldingF. A. KirstenT. R. KohlerH. W. KranerW. W. ManaganG. L. Mi
34、llerD. E. PersykP. L. Phelps, JrJ. H. TrainorS. WagnerF. J. WalterAt the time it approved this standard, the American National Standards Committee N42 on Nuclear Instruments hadthe following personnel:Louis Costrell, Chair David C. Cook, Secretary Organization Represented Name of RepresentativeAmeri
35、can Conference of Governmental Industrial Hygienists Jesse LiebermanAmerican Nuclear Society . Frank W. ManningHealth Physics Society. J. B. Horner KuperJ. M. Selby (Alt)Institute of Electrical and Electronics Engineers .Louis CostrellJulian Forster (Alt)D. C. Cook (Alt)A. J. Spurgin (Alt)Instrument
36、 Society of America .M. T. SlindJ. E. Kaveckis (Alt)Lawrence Berkeley National Laboratory . L. J. Wagner3Standard ECMA-55 Minimal BASIC (1978), also published as: ANSI X3.60, American National Standard for Minimal BASIC (1978), ISOMinimal BASIC (1980) ref DIS 6376, ANSI X3J2/8064, Draft American Nat
37、ional Standard for BASIC (1980), and EWICS-TC2 81/7, IRTBIndustrial Real-Time BASIC (1981), published by the CEC.This is the standard referred to in this document when reference is made to “the ANSI standard”.viiOak Ridge National Laboratory. Frank W. ManningD. J. Knowles (Alt)US Department of Energ
38、y. Gerald GoldsteinUS Department of the Army, Materiel Command .Abraham E. CohenUS Department of Commerce, National Bureau of Standards Louis CostrellUS Federal Emergency Management Agency Carl R. Siebentritt, JrUS Naval Research Laboratory D. C. CookUS Nuclear Regulatory Commission .Robert E. Alexa
39、nderMembers-at-Large.J. G. BellianO. W. Bilharz, JrJohn M. Gallagher, JrVoss A. MooreR.F. SheaE. J. Vallario*NIM Committee4L. Costrell, Chair C. AkerlofE. J. BarsottiB. BertolucciJ. A. BiggerstaffA. E. BrennerR. M. BrownE. DaveyW. K. DawsonS. R. DeissS. DhawanR. DowningT. F. DroegeC. D. EthridgeC. E
40、. L. GingellA. GjovigB. GobbiD. B. GustavsonD. R. HeywoodN. W. HillD. HorelickM. E. JohnsonC. KernsA. KirstenP. F. KunzR. S. LarsenA. E. Larsh, JrR. A. LaSalleN. LatnerF. R. LenkszusR. LeongC. LoggS. C. LokenD. R. MachenD. A. MackJ. L. McAlpineL. B. MortaraV. C. NegroL. PaffrathD. G. PerryI. PizerE.
41、 PlatnerS. RankowitzS. J. RudnickG. K. SchulzeW. P. SimsD. E. StilwellJ. H. TrainorK. J. TurnerH. VerweijB. F. WadsworthL. J. WagnerH. V. WalzD. H. WhiteNIM Executive Committee for CAMACL. Costrell, Chair E. J. BarsottiJ. A. BiggerstaffS. DhawanF. A. KirstenR. S. LarsenD. A. MackJ. H. TrainorNIM Blo
42、ck Transfer SubgroupE. J. Barsotti, Chair W. K. DawsonF. A. KirstenR. A. LaSalleF. R. LenkszusR. G. MartinR. F. Thomas, Jr4National Instrumentation Methods Committee of the US Department of Energy.viiiNIM Dataway Working GroupF. A. Kirsten, Chair E. J. BarsottiJ. A. BiggerstaffL. CostrellS. DhawanA.
43、 GjovigD. R. HeywoodD. HorelickC. KernsP. F. KunzR. S. LarsenD. R. MachenL. PaffrathS. RankowitzS. J. RudnickNIM Software Working GroupD. B. Gustavson, Chair W. K. Dawson, Secretary A. E. BrennerR. M. BrownS. R. DeissS. DhawanC. D. EthridgeM. E. JohnsonR. A. LaSalleF. B. LenkszusC. A. LoggJ. McAlpin
44、eL. B. MortaraD. G. PerryNIM Mechanical and Power Supplies Working GroupL. J. Wagner, Chair L. CostrellC. KernsS. J. RudnickW. P. SimsNIM Analog Signals Working GroupD. I. Porat, Chair L. CostrellC. E. L. GingellN. W. HillS. RankowitzNIM Serial System SubgroupD. R. Machen, Chair E. J. BarsottiD. Hor
45、elickF. A. KirstenR. G. MartinL. PaffrathS. J. RudnickNIM Multiple Controllers SubgroupP. F. Kunz, Chair E. J. Barsotti F. A. KirstenD. R. MachenR. G. MartinixCLAUSE PAGE1. Introduction.12. Real-Time Capabilities .13. Declarations 23.1 Data Structure Declarations . 23.2 CAMAC Declarations 23.3 Dynam
46、ic Address Modification . 44. Parallel Activities 55. CAMAC Input and Output65.1 Simple Data Transfers 65.2 Block Transfers 65.3 CAMAC Control Actions 76. The CAMAC Q and X Signals 87. CAMAC LAM Handling 87.1 LAM Control Actions 87.2 LAM Servicing 97.3 Dynamic GL Modification. 98. Message Passing .1
47、09. Shared Data .1010. Bit Manipulation .11Annex A (Informative) Method of Syntax Definition.12Annex B (Informative) The Formal Definitions13Annex C (Informative) CAMAC Keywords, Functions and Statements15Copyright 1982 IEEE All Rights Reserved 1An American National StandardIEEE Standard Real-Time B
48、ASIC for CAMAC1. IntroductionReal-Time BASIC for CAMAC is ANSI standard Real-Time BASIC in which the declarations and real-timestatements are defined for use with CAMAC hardware. The ANSI standard1defines process declarations andprocess input-output in a general way, independently of any particular
49、interface hardware. Specific parts of thesyntax and semantics of the language are left implementation defined so that an implementation for a particularhardware system can define these areas in the most appropriate way. The purpose of this standard is to provide astandard for reference, to achieve maximum compatibility between different implementations of ANSI BASIC for usewith CAMAC.The language is defined by formal syntax definitions and symbols. An explanation of these definitions and symbols isgiven in Annex A.It is