1、American National Standardfor Ophthalmic Optics Information Interchange forOphthalmic Optical EquipmentANSI Z80.24-2007 (R2012)ANSI Z80.24-2007(R2012)ANSIZ80.24-2007 (R2012)Reaffirmation ofANSI Z80.24-2007American National Standardfor Ophthalmic Optics Information Interchange forOphthalmic Optical E
2、quipmentSecretariatThe Vision CouncilApproved March 28, 2007Reaffirmed April 16, 2012American National Standards Institute, Inc.Approval of an American National Standard requires review by ANSI that therequirements for due process, consensus, and other criteria for approval havebeen met by the stand
3、ards developer.Consensus is established when, in the judgement of the ANSI Board ofStandards Review, substantial agreement has been reached by directly andmaterially affected interests. Substantial agreement means much more thana simple majority, but not necessarily unanimity. Consensus requires tha
4、t allviews and objections be considered, and that a concerted effort be madetowards their resolution.The use of American National Standards is completely voluntary; theirexistence does not in any respect preclude anyone, whether he has approvedthe standards or not, from manufacturing, marketing, pur
5、chasing, or usingproducts, processes, or procedures not conforming to the standards.The American National Standards Institute does not develop standards andwill in no circumstances give an interpretation of any American NationalStandard. Moreover, no person shall have the right or authority to issue
6、 aninterpretation of an American National Standard in the name of the AmericanNational Standards Institute. Requests for interpretations should beaddressed to the secretariat or sponsor whose name appears on the titlepage of this standard.CAUTION NOTICE: This American National Standard may be revise
7、d orwithdrawn at any time. The procedures of the American National StandardsInstitute require that action be taken periodically to reaffirm, revise, orwithdraw this standard. Purchasers of American National Standards mayreceive current information on all standards by calling or writing the AmericanN
8、ational Standards Institute.American National StandardPublished byThe Vision Council225 Reinekers Lane, Suite 700Alexandria, VA 22314Copyright 2012 by The Vision CouncilAll rights reserved.No part of this publication may be reproduced in anyform, in an electronic retrieval system or otherwise,withou
9、t prior written permission of the publisher.Printed in the United States of AmericaDeveloped byThe Accredited Committee Z80 for Ophthalmic Standards -The Vision CouncilZ80 Secretariat225 Reinekers Lane, Suite 700Alexandria, VA 22314ANSI Z80.24-2007 iContents Page Foreword. ii Introduction. iii 1 Sco
10、pe1 2 Normative reference1 3 Terms and definitions.1 3.1 General1 3.2 Special characters.2 3.3 Data types.2 3.4 Messages3 3.5 Records.4 3.6 Sessions.4 3.7 Timeout.5 4 Overview.5 5 Requirements.6 5.1 Records.6 5.2 Reference point records.8 5.3 Generator records.10 5.4 Tracing records11 5.5 Packets.18
11、 6 Sessions.21 6.1 General21 6.2 Initialization sessions21 6.3 Upload sessions29 6.4 Download sessions.31 7 Other requirements.32 7.1 RS-232 Communications parameters32 7.2 Operator messages.32 Annex A (normative) Record labels33 Annex B (informative) Packed binary format example55 Annex C (informat
12、ive) CRC calculation61 ANSI Z80.24-2007 iiForeword ISO (the International Organization for Standardization) is a worldwide federation of national standards bodies (ISO member bodies). The work of preparing International Standards is normally carried out through ISO technical committees. Each member
13、body interested in a subject for which a technical committee has been established has the right to be represented on that committee. International organizations, governmental and non-governmental, in liaison with ISO, also take part in the work. ISO collaborates closely with the International Electr
14、otechnical Commission (IEC) on all matters of electrotechnical standardization. International Standards are drafted in accordance with the rules given in the ISO/IEC Directives, Part 3. Draft International Standards adopted by the technical committees are circulated to the member bodies for voting.
15、Publication as an International Standard requires approval by at least 75 % of the member bodies casting a vote. Attention is drawn to the possibility that some of the elements of this International Standard may be the subject of patent rights. ISO shall not be held responsible for identifying any o
16、r all such patent rights. International Standard ISO 16284 was prepared by Technical Committee ISO/TC 172, Optics and optical instruments, Subcommittee SC 7, Ophthalmic optics and instruments. Annex A forms a normative part of this International Standard. Annexes B and C are for information only. AN
17、SI Z80.24-2007 iiiIntroduction This International Standard is the result of a desire shared by manufacturers of optical laboratory equipment and producers of software used in optical laboratories to simplify the interconnection of their products. The International Standard defined herein provides: a
18、 method by which machines and computer systems conduct their exchanges of data; a method by which computer systems can initialize such parameters on machines as the manufacturers thereof allow; a method by which machines can initialize computer systems with information that the systems can use for v
19、arious purposes; a method by which a machine can inform a computer system as to what information it wants to receive, thus allowing machines to define new interfaces dynamically. a standard set of records and device types that are used to communicate agreed-upon sets of information. The last feature
20、 listed above requires that this International Standard be amended on a regular basis, as the need for new data elements is inevitable. AMERICAN NATIONAL STANDA5 ANSI Z80.24-2007 5 1Ophthalmic optics Information interchange for ophthalmic optical equipment 1 Scope This International Standard establi
21、shes a method by which machines and computer software systems used in the fabrication of ophthalmic lenses can exchange information. 2 Normative reference The following normative document contains provisions which, through reference in this text, constitute provisions of this International Standard.
22、 For dated references, subsequent amendments to, or revisions of, any of these publications do not apply. However, parties to agreements based on this International Standard are encouraged to investigate the possibility of applying the most recent edition of the normative document indicated below. F
23、or undated references, the latest edition of the normative document referred to applies. Members of ISO and IEC maintain registers of currently valid International Standards. ISO 13666:1998, Ophthalmic optics Spectacle lenses Vocabulary. 3 Terms and definitions For the purposes of this International
24、 Standard, the terms and definitions given in ISO 13666 and the following apply. 3.1 General 3.1.1 device machine or instrument used in the fabrication of ophthalmic lenses that communicates with a computer system to send or receive job information 3.1.2 host computer system providing information to
25、 or receiving information from a device 3.1.3 job order for prescription ophthalmic lenses or spectacles 3.1.4 download communication session in which the host system transmits data to the device 3.1.5 upload communication session in which the device transmits data to the host ANSI Z80.24-2007 2 3.2
26、 Special characters 3.2.1 code separator special character used to delimit codes in a device record 3.2.2 CRC position character special character marking the location of the end of the data records and the start of the optional CRC record within a packet 3.2.3 end character special character markin
27、g the end of a packet 3.2.4 field separator special character delimiting the fields in a record 3.2.5 label separator special character separating the record label from the field(s) within a record 3.2.6 mandatory record flag special character marking certain records as mandatory 3.2.7 start charact
28、er special character marking the beginning of a packet 3.2.8 record separators special characters which delimit records 3.2.9 reserved characters set of characters reserved for special functions 3.2.10 unknown data indicator special character indicating that data required for a particular field is u
29、nknown to the host 3.2.11 ACK character special character indicating successful transmission of a packet 3.2.12 NAK character special character indicating failed transmission of a packet 3.3 Data types 3.3.1 limited data text data limited to a maximum length ANSI Z80.24-2007 33.3.2 literal data text
30、 data limited to a maximum length and specified in this International Standard 3.3.3 numeric data floating-point and integer numbers 3.3.4 text data strings of characters that have no pre-defined meaning 3.3.5 integer data data represented in whole number form 3.3.6 binary data data presented in a f
31、orm usable by computer software with little or no translation NOTE It requires special handling to avoid introduction of control characters. 3.4 Messages 3.4.1 message structured stream of data transmitted from a host to a device or from a device to a host 3.4.2 confirmation message message sent by
32、the receiver of a packet and comprised of a single character indicating that the transmission was successful 3.4.3 positive acknowledgement single character message indicating successful reception of a senders message 3.4.4 negative acknowledgement single character message indicating unsuccessful re
33、ception of a senders message 3.4.5 packet structured message consisting of a start character and a series of records and terminated by an end character 3.4.5.1 data packet packet sent from a device to a host or a host to a device, and containing requested information 3.4.5.2 request packet packet se
34、nt from a device to a host to initiate a session 3.4.5.3 response packet packet containing status information ANSI Z80.24-2007 4 3.5 Records 3.5.1 record structured stream of characters including a record label, a label separator, zero or more data fields separated by field separators and a terminat
35、ing record separator 3.5.2 data field single data element within a record 3.5.3 record label means of identifying data contained in a record, limited in length to 8 characters and not including special characters defined in this International Standard 3.5.4 ASCII record record comprised of ASCII cha
36、racters and conforming to the structures defined herein 3.5.5 binary record record comprised of bytes encoded using the binary number system 3.5.6 chiral record record with two fields, one for a data element for a right lens or eye, and one for a left, arranged in the order right then left 3.5.7 CRC
37、 record record at the end of any packet containing a CCITT CRC-16 cyclical redundancy check value calculated on the characters transmitted 3.5.8 device record record containing job specific data elements conveyed between devices and hosts 3.5.9 interface record record supporting the operation of the
38、 host-device interface and not containing job-specific data 3.6 Sessions 3.6.1 session sequence of messages passed between a device and a host that serves to exchange information related to a single order or task 3.6.2 initialization session specialized session allowing devices to provide hosts with
39、 information that would otherwise be included with each request, such as machine model, software version and operator ID 3.6.2.1 auto-format initialization initialization session allowing devices to define sets of device records to be requested from hosts ANSI Z80.24-2007 53.6.2.2 preset initializat
40、ion initialization session allowing devices to transmit sets of identifying data to hosts 3.6.3 download session session in which information is passed from a host to a device 3.6.4 upload session session in which information is passed from a device to a host 3.6.5 INFO session upload request packet
41、 containing job status information used to indicate the completion of a job by a device 3.6.6 MNT session upload request packet containing vendor specific device information 3.7 Timeout 3.7.1 timeout numeric value representing that period of time that a host or device shall wait for the arrival of d
42、ata, after which it assumes that such data will not be forthcoming 3.7.1.1 confirmation timeout timeout which applies to the reception of the confirmation message 3.7.1.2 intercharacter timeout timeout which applies to the interval between successive characters in a stream of data 3.7.1.3 packet tim
43、eout timeout which applies to the reception of a packet 4 Overview The strategy used in this International Standard for the exchange of data between devices and hosts can be expressed as follows. A machine used in the fabrication of ophthalmic lenses (a device) sends a request to a computer system (
44、a host), indicating a need to do one of the following: initialize information to identify the dev ice, software versions, model numbers, etc.; upload to the host, information for it to store and/or use in the processing of ophthalmic prescription orders; download from the host, information required
45、by the device for it to perform its tasks. Communication can be initialized in two ways. The device may begin an initialization session or the host can force the device to do so by refusing to accept a normal request and asking for initialization via a special error response. For upload requests, th
46、e host acknowledges the request and the device sends its data, the receipt of which the host acknowledges. For download requests, the host responds to the request with the data requested. ANSI Z80.24-2007 6 The variable-length packets of data that comprise this exchange consist of a series of record
47、s, each of which contains data and a label identifying the data. This International Standard defines a set of labels and characterizes the data associated with each. This set of labels shall be expanded as needed in the future. An exchange of packets related to a single job is called a session. The
48、structure of these sessions and the packets of records of which they are comprised is the substance of this International Standard. Although this International Standard was conceived as being implemented on point-to-point RS-232 serial links, it could be implemented on other hardware platforms. As this is done, specifications shall be incorporated into this International Standard so as to maximize interconnectability amongst diverse hosts and devices. 5 Requirements NOTE In the examples in this International Standard, i