温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,汇文网负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。
网站客服:3074922707
TM_E_2222_
_02_2007
Designation:E 2222 02(Reapproved 2007)Standard Practice forHost Computer Communication with Spectrometers forColor Measurements1This standard is issued under the fixed designation E 2222;the number immediately following the designation indicates the year oforiginal adoption or,in the case of revision,the year of last revision.A number in parentheses indicates the year of last reapproval.Asuperscript epsilon(e)indicates an editorial change since the last revision or reapproval.1.Scope1.1 This practice provides a standard communications pro-tocol for a serial communication between a host computer anda spectrometer designed for colorimetry.The adoption of thestandard communication protocol on the part of instrumentmanufacturers will allow instrument users the option to employthird-party software,or to replace one instrument with anotherwhile retaining the same software.This standard is not in-tended to replace existing standards,such as SCPI-1999written by the SCPI Consortium2as a set of Standard Com-mands for Programmable Instruments for bench-top instru-ments that utilize the IEEE-488 or IEEE-488.2 interface.Thisstandard has been adopted by many analytical instrumentmakers and is used by them as the interface standard forspectroscopy even when the instrument interface is RS-232c.1.2 This standard does not purport to address all of thesafety concerns,if any,associated with its use.It is theresponsibility of the user of this standard to establish appro-priate safety and health practices and determine the applica-bility of regulatory limitations prior to use.2.Referenced Documents2.1 ASTM Standards:3E 284 Terminology of Appearance3.Terminology3.1 Terms and definitions in Terminology E 284 are appli-cable to this practice.4.Summary of Practice4.1 The practice provides a minimal set of commands to beissued to the instrument by the host computer and the argu-ments of these commands.It standardizes the instrumentsacknowledgement,the data format,and the error messages theinstrument will return from such command.The commands arecomplete enough to allow the users to set the instrumentsmode of measurement to transmission or reflectance measure-ments,and the wavelength interval to 10 or 20 nm.Users mayperform zero and 100%photometric calibration,and they mayboth upload and download standard white-tile calibration datato the instrument.Provision is made for obtaining a statusstring,and obtaining information about the particular instru-ment such as its serial number and geometry.5.Significance and Use5.1 The practice should be adopted by spectrometer manu-facturers and developers of software to be used on hostcomputers to communicate with such instruments.6.Procedure6.1 RS232C Communications ParametersThe followingserial communications parameters are supported:Baud rates1200 bps2400 bps4800 bps9600 bps19200 bpsCharacter length8 bitsStop bits1 bitParityNoneX parameterNot used6.2 UniversalSerialBuss(USB)CommunicationsParametersUSB 1.1 Specification,or higher,at a transferrate not less than 1.5 Mb/s is supported for USB compatibledevices.6.3 Delimiter CodesAny of the following three ASCIIcodes may terminate any command to the instrument:Carriage returnLine feedCarriage return and line feed1This practice is under the jurisdiction of ASTM Committee E12 on Color andAppearance and is the direct responsibility of Subcommittee E12.04 on Color andAppearance Analysis.Current edition approved May 1,2007.Published May 2007.Originallyapproved in 2002.Last previous edition approved in 2002 as E 2222-02.2Standard Commands for Programmable Instruments is an industrial consensusstandard and is under the control of the SCPI Consortium,8380 Hercules Drive,Suite P3,La Mesa,CA 91942,www.scpiconsortium.org.3For referenced ASTM standards,visit the ASTM website,www.astm.org,orcontact ASTM Customer Service at serviceastm.org.For Annual Book of ASTMStandards volume information,refer to the standards Document Summary page onthe ASTM website.1Copyright ASTM International,100 Barr Harbor Drive,PO Box C700,West Conshohocken,PA 19428-2959,United States.Copyright ASTM International Provided by IHS under license with ASTM Licensee=University of Texas Revised Sub Account/5620001114 Not for Resale,12/04/2007 08:21:01 MSTNo reproduction or networking permitted without license from IHS-,-,-6.3.1 The instrument will automatically terminate its replieswith the user-selected delimiter.The symbol,implyingthat any of the three may be used,will denote furtheroccurrences of the delimiter in this practice.6.4 Error CodesAll of the following error codes aresupported by the practice:OK00Command performed successfullyOK02Low lamp lightOK99Calibration coefficients out-of-limitER00Command not understoodER02Illumination circuit still chargingER07Instrument not calibratedFor codes beginning with OK,the command has beencompleted.For codes beginning with ER,the command has notbeen performed.Instrument manufacturers may assign anymeaning desired to unused codes,but such codes