60
AUTO LENSMETER Model LM-1000/ 1000P/ 1200 RS-232C INTERFACE MANUAL December, 2008 Pages in total: 60 31001*RTZ001E/E

AUTO LENSMETER Model LM-1000/ 1000P/ 1200

  • Upload
    others

  • View
    6

  • Download
    0

Embed Size (px)

Citation preview

Page 1: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

AUTO LENSMETER

Model LM-1000/ 1000P/ 1200

RS-232C INTERFACE MANUAL

December, 2008Pages in total: 60

31001*RTZ001E/E

Page 2: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

NIDEK CO., LTD. : 34-14, Maehama, Hiroishi-cho, Gamagori, Aichi 443-0038, Japan(Manufacturer) Telephone: 81-533-67-6611

Facsimile: 81-533-67-6610NIDEK CO., LTD : 3F Sumitomo Fudosan Hongo Bldg., 3-22-5, Hongo,(Tokyo Office) Bunkyo-Ku, Tokyo 113-0033, Japan

Telephone: 81-3-5844-2641Facsimile: 81-3-5844-2642

NIDEK INCORPORATED : 47651 Westinghouse Drive, Fremont, California 94539, U. S. A.(United States Agent) Telephone: 1-510-226-5700

Facsimile: 1-510-226-5750NIDEK SOCIETE ANONYME : Europarc 13, rue Auguste Perret, 94042 CRETEIL, France(EU Authorized Representative) Telephone: 33-1-49 80 97 97

Facsimile: 33-1-49 80 32 08

Page 3: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

Table of Contents

1. OUTLINE OF COMMUNICATION. . . . . . . . . . . . . . . . . . . . 11.1 Outline of Communication Function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1

1.1.1 Basic interface specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11.1.2 Cable connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3

2. DATA FORMAT. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52.1 Command Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6

2.2 Data Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .82.2.1 Basic format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .82.2.2 Format of each data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10

2.3 Error Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17

2.4 Example of Data Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18

3. COMMUNICATION PROCEDURE . . . . . . . . . . . . . . . . . . 413.1 Outline. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .41

3.2 Communication Control Signals (DTR Output to DSR Input). . . . . . . . . . . . . .42

3.3 Actual Communications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .453.3.1 The LM requests the computer to receive measured data. . . . . . . . . . . . . . . . . . .463.3.2 The computer requests the LM to send measured data. . . . . . . . . . . . . . . . . . . . .473.3.3 The computer controls all the operations of the LM.. . . . . . . . . . . . . . . . . . . . . . . .48

4. EXAMPLE OF COMMUNICATION PROGRAM . . . . . . . . 494.1 Communication Program. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .49

4.2 Flowchart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .53

I

Page 4: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

:

II

Page 5: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

1

1

1. OUTLINE OF COMMUNICATION

1.1 Outline of Communication Function

The LM-1000, LM-1000P, or LM-1200 comes standard with an RS-232C interface that enables trans-mission of measured data to an external computer. This manual explains the method of receiving themeasured data from the LM-1000, LM-1000P, or LM-1200 through the RS-232C interface.

The following sections describe the specifications for the interface for communication between theLM-1000, LM-1000P, or LM-1200 and an external device such as a personal computer.

1.1.1 Basic interface specifications

The underlined options show the factory settings for communication with NIDEK devices.

The settings of Parameter 4 ComMode to Parameter 9 CR Code are changeable.

For the procedure for changing the parameter settings, see “2.13 Setting Parameters” of the LM-1000, LM-1000P, or LM-1200 Operator’s Manual.

The settings of Parameter 5 BaudRate to Parameter 8 StopBits are changeable only whenParameter 4 ComMode is set to PC or NCP10.

If Parameter 4 ComMode is set to NIDEK, Parameter 5 BaudRate to Parameter 8 StopBitsare automatically set for connection with NIDEK devices; once the parameters are set auto-matically, the settings are unchangeable.

• Be sure to set the A.Prt S and A.Prt R/L parameters to OFF before communication.Failure to do so could cause a printer error.

1 Basic specifications In accordance with the RS-232C specifications

2 Communication method Asynchronous

3 Transmission type Half duplex

4 Communication mode (ComMode) NIDEK, PC, NCP10

5 Baud rate (BaudRate) 1200, 2400, 4800, 9600 (bps)

6 Parity (Parity check) OFF, ODD, EVEN

7 Data bits 7bit, 8bit

8 Stop bits 1bit, 2bit

9 CR code OFF, ON

10 Data code ASCII code

Page 6: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

OUTLINE OF COMMUNICATION: Outline of Communication Function

Setting related to the transmission of prism data

Set the Prism Tx parameter to suit the needs for prism data.

• Addition of CR codeSet the CR Code parameter to ON when the communication software on the computer side needsthe CR code to terminate the reception of the character strings. (BASIC language etc.)

The CR code is added to the data sent from the LM; For character strings sent from the computer,whether the CR code is added or not does not matter.

• To enable communication with a computer, it is necessary to keep consistency in the settings of communication parameters between the LM and computer.

Before data communication, also confirm the settings of the communication parameters on thecomputer side.

11 Prism Tx OFF, ON, Display

OFFThe measured prism data is not transmitted at any time.

Choose this option not to transmit prism data or restrain the size of data to be transmitted.

ONThe measured prism data is transmitted at all times.

Choose this option to make the external device control and align measured lenses.

Display

The measured prism data is transmitted in a coordinate system in which the data is represented on the screen,

OFF: The measured prism data is not transmitted.BU/D BI/O: The measured prism data in a rectangular coordinates is transmitted.P-B: The measured prism data in a polar coodinates is transmitted.

• Set the representation form of prism data by setting the Prism parameter.

2

Page 7: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

OUTLINE OF COMMUNICATION: Outline of Communication Function

1

1.1.2 Cable connection

Connect signal wires between the LM and the external device as shown above.

Be sure to connect a wire between RTS (7) and CTS (8) on the computer side.

It is unnecessary connect a wire between RTS (4) and CTS (5) on the LM side.Use the DIN 8-pin connector (DIN Standard No.45329) on the LM side. In the above example, the D-Sub 9-pin connector is connected to the computer side.If the used connector is different from the D-Sub 9-pin connector, connect respective signal wires asshown by referring to the instruction manual provided with the computer.Use a special interface cable that is available as an option (OPIF-11, 5 m) between the DIN 8-pin andD-Sub 9 pin connectors if necessary.

1

2

3

45

67

8

1

9

5

6

Signal name SignalConnector

Pin No.Connection

ConnectorPin No.

Signal Signal name

1 1

Transmit exchange Data TXD 2 2 RXD Received exchange

Data

Received exchange Data RXD 3 3 TXD Transmit exchange

Data

(Ready To Send) RTS 4 4 DTR Data Terminal Ready

(Clear To Send) CTS 5 5 SG Signal Ground

Data Set Ready DSR 6 6 DSR Data Set Ready

Signal Ground SG 7 7 RTS (Ready To Send)

Data Terminal Ready DTR 8 8 CTS (Clear To Send)

Frame Ground FG Housing 9

Housing FG Frame Ground

D-Sub 9P (Female) at the computer sideDIN 8P at the LM side

RS-232C cable (Option: OPIF-11, standard length of 5 m)

<LM-1000/LM-1000P/1200> <Computer (external device)>

3

Page 8: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

OUTLINE OF COMMUNICATION: Outline of Communication Function

4

Page 9: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

2. DATA FORMAT

2

Among transmitted data are commands such as “Request to Send” other than measured data. In asequence of transmission of measured data from the LM to the computer etc., the computer transmits“Send Data command” to the LM, and the LM receives the command and sends “measured data”. Thesoftware on the computer reads the received data strings according to the format information and thenperforms necessary processing (display of data on the screen, storage of data on disks, etc.)

* When the ComMode parameter is set to NCP10, the transmission and reception of com-mands are not performed.

This chapter explains the formats of these commands or measured data.

Symbols other than ordinary characters in commands or data strings are described as “com-munication control characters” that are commonly used in data transmission.

These signals are added at the start or end of character strings or to delimit data.

Character name

Decimal Hexadecimal Description

SOH 1 01H Start of heading character

STX 2 02H Start of text character

ETB 23 17H End of transmission block

EOT 4 04H End of character string

CR 13 0DH

Means the end of the input character string for some software on the computer.

The CR code is added to the data output from the LM when the CR Code parameter is set to ON.

The CR code is not added to the character strings transmitted from the computer.

In addition, whether the line feed (LF: 0AH) code is added or not after the CR code does not matter.

5

Page 10: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

DATA FORMAT: Command Format

2.1 Command Format

The commands (control character string) that are transmittable from and receivable by the LM aredescribed below. These commands reciprocally control the LM and computer to make them transmitand receive data. The format of a basic command is described immediately below:

(1) RD command (Computer → LM)

Command for the computer to request the LM to save the measured data. The commandcorresponds to the actuation of the read key of the LM. The command also holds the valuesdisplayed on the screen. Before making the LM to transmit data to the computer, this com-mand should make the LM to save the measured data.

(2) SD command (Computer → LM)

Command for the computer to request the LM to transmit measured data. The computersends this command to the LM when the computer is ready for the reception of measureddata.

SOH C L M STX R D ETB EOT CR: Character string (10 characters in this case)

01H 43H 4CH 4DH 02H 52H 44H 17H 04H 0DH : Character code (H = Hexadecimal)

The CR code is added.

Characters representing the RD com-mandCommand to be sent to the LM. “** ” rep-resents the unspecified commands.

Characters representing a command

SOH C L M STX R D ETB EOT CR

01H 43H 4CH 4DH 02H 52H 44H 17H 04H 0DH

SOH C L M STX S D ETB EOT CR

01H 43H 4CH 4DH 02H 53H 44H 17H 04H 0DH

6

Page 11: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

DATA FORMAT: Command Format

2

(3) RS command (LM → Computer)

Command for the LM to request the computer to receive measured data and to send the SDcommand. The command is used to transmit data with switch operation of the LM.

The computer sends the SD command to the LM when the computer receives the RS com-mand and is ready for the reception of measured data.

“C**” represents that the LM sends the command to an infinite number of destinations.

(4) CL command (Computer → LM)

Command for the computer to make the LM clear the data in it.

The command corresponds to the actuation of the clear button of the LM. This com-mand also releases the fixed data indication.

(5) AB command (Computer → LM)

Command for the computer to set the abbe number for the LM in accordance with the mate-rial of the measured lens. This command should be sent before measurements. When theLM receives the AB command from the computer, the LM displays “X: 40” on the top of thescreen for example. (“X:” represents reception.)

If the abbe number is not specified, the LM measures lenses with the abbe number that isset internally. The abbe number specified by the AB command is in effect until it is reset onthe LM.

nn = Abbe number (20 to 60)

e.g.) 34H, 31H for number 41

SOH C * * STX R S ETB EOT CR

01H 43H 2AH 2AH 02H 52H 53H 17H 04H 0DH

SOH C L M STX C L ETB EOT CR

01H 43H 4CH 4DH 02H 43H 4CH 17H 04H 0DH

SOH C L M STX A B n n ETB EOT CR

01H 43H 4CH 4DH 02H 41H 42H 17H 04H 0DH

7

Page 12: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

DATA FORMAT: Data Format

2.2 Data Format

2.2.1 Basic formatThe measured data transmitted from the LM is provided below:The basic data format is described in details. When the LM receives “SD command”, it sends data outin the following format.

Only when the ComMode parameter is set to “NCP10”, a checksum is added after “EOT”.

The hexadecimal numbers in the low-order two bytes are represented by four-byte ASCIIcodes as a simple sum of SOH (01H) at the header of the data to “EOT (04H)”.

Be aware that “CR code (0DH) ” is excluded from the calculation of the checksum.

SOH D L M STX Data ETB CR Data ETB CR Data ETB CR EOT CR

01H 44H 4CH 4DH 02H 17H 0DH 17H 0DH 17H 0DH 04H 0DH

Data character stringSeparated by the data type.

The CR codes are added.

Represents “LM data”.

Represents “Data”.

… Data ETB CR EOT CS3 CS2 CS1 CS0 CR

17H 0DH 04H 30H 43H 33H 42H 0DH

Checksum

If the hexadecimal numbers in the low-order two bytes are 0C3BH:

8

Page 13: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

DATA FORMAT: Data Format

2

The LM transmits the following types of data. These types of data are output according to the lensmeasurement mode, whether the data has been measured or not, and the condition for the lenses(single, left or right).

: Output if measured ×: Not output

*1: LM-1200 only.

When the parameter is not set to “ON”, measurement or data ouput is not performed.

*2: 1st addition power only

*3: In the case of “Single (not the right- nor left-eye lens)” state, only single data is output.

When both left- and right-eye lenses are measured, the data is output in following order:“Right” “Left”.

*4: In the prism layout, the measured value is output for the PRISM value.

Measured lens mode Lens*3

Single vision

Progressive power

Contact lens

Prism layout

Single Right Left

1) Manufacturer/model name Once at the beginning

2) SPH, CYL, AXIS

3) SE (Spherical Equivalent value) × × ×

4) ADD (1st/2nd addition power) *2 × ×

5) PRISM

6) Progressive Length*1 × × ×

7) Channel Width *1 × × ×

8) PD *1 × × ×

9) Near Portion Inside Amount*1 × × × ×

10) Net Prism *1 × × × × One for both sides

LM-1000/LM-1000P (In the order of 1) → Right 2) - 5) data → Left 2) - 5) data)

LM-1200 (In the order of 1) → Right 2) - 7) data → Left 2) - 7) data → (8) - 10))

• Measured data has been rounded off according to the cylinder mode, the indication form of the measured prism data, and indication step specified on the LM.

9

Page 14: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

DATA FORMAT: Data Format

2.2.2 Format of each dataThe number inside the parentheses indicates the number of characters transmitted.

(1) Company name / Model name

The name of the manufacturer (NIDEK) and the name of model (LM-1000/LM-1000P/LM-1200) are output.

* In the lower line, the ASCII codes are represented by hexadecimals.

• LM-1000P

• LM-1000

• LM-1200

(2) SPH, CYL and AXIS data

Measured data of SPH, CYL, and AXIS are output.

The ETB and CR codes are added to the end (when the CR Code parameter is set to ON).(The codes are added to the end of all the following types of data.)

Each measured data is output by fixed digits with the leading digit 0 remaining.

I D N I D E K / L M - 1 0 0 0 P ETB CR

49H 44H 4EH 49H 44H 45H 4BH 2FH 4CH 4DH 2DH 31H 30H 30H 30H 50H 17H 0DH

Company name Model name (LM-1000P)

I D N I D E K / L M - 1 0 0 0 ETB CR

49H 44H 4EH 49H 44H 45H 4BH 2FH 4CH 4DH 2DH 31H 30H 30H 30H 17H 0DH

Company name Model name (LM-1000)

I D N I D E K / L M - 1 2 0 0 ETB CR

49H 44H 4EH 49H 44H 45H 4BH 2FH 4CH 4DH 2DH 31H 32H 30H 30H 17H 0DH

Company name Model name (LM-1200)

Identification code

Single “ ” (Space, space)

Right “ R” (Space, R)

Left “ L” (Space, L)

SPHFour digits with a fixed decimal point and with a polarity sign

CYLFour digits with a fixed decimal point and with a polarity sign

AXIS Three-digit integer

10

Page 15: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

DATA FORMAT: Data Format

2

1) Example of single data (SPH = +1.00 D, CYL = 0.00 D, AXIS = 0°)

2) Example of Right data (SPH = -11.25 D, CYL = -9.75 D, AXIS = 90°)

3) Example of Left data (SPH = 0.00 D, CYL = +1.50 D, AXIS = 180°)

(3) SE (Spherical Equivalent value, only in the contact lens measuring mode)

Measured of the SE value is output.

Measured data is output by fixed four digits including a decimal point with a polarity sign andthe leading digit 0 remaining.

1) Example of the single data (SE = +2.00 D)

2) Example of the right data (SE = -10.00 D)

+ 0 1 . 0 0 + 0 0 . 0 0 0 0 0 ETB CR

20H 20H 2BH 30H 31H 2EH 30H 30H 2BH 30H 30H 2EH 30H 30H 30H 30H 30H 17H 0DH

SPH (6 characters) CYL (6 characters)AXIS

(3 characters)

R - 1 1 . 2 5 - 0 9 . 7 5 0 9 0 ETB CR

20H 52H 2DH 31H 31H 2EH 32H 35H 2DH 30H 39H 2EH 37H 35H 30H 39H 30H 17H 0DH

SPH (6 characters) CYL (6 characters)AXIS (3

characters)

L + 0 0 . 0 0 + 0 1 . 5 0 1 8 0 ETB CR

20H 4CH 2BH 30H 30H 2EH 30H 30H 2BH 30H 31H 2EH 35H 30H 31H 38H 30H 17H 0DH

SPH (6 characters) CYL (6 characters)AXIS

(3 characters)

Identification code

Single “S ” (S, Space)

Right “SR”

Left “SL”

S + 0 2 . 0 0 ETB CR

53H 20H 2BH 30H 32H 2EH 30H 30H 17H 0DH

SE (6 characters)

S R - 1 0 . 0 0 ETB CR

53H 52H 2DH 31H 30H 2EH 30H 30H 17H 0DH

SE (6 characters)

11

Page 16: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

DATA FORMAT: Data Format

(4) ADD data

Measured data of the addition power is output.

If the secondary addition power has been measured, the data is sent subsequently to theprimary addition power.

Measured data is output by fixed four digits including a decimal point with no polarity signand the leading digit 0 remaining.

If the NEAR parameter is set to NEAR SPH, near SPH data is added to the end of the addi-tion powers.

(Both the addition power and near SPH data are output because some devices recognizethe addition powers (ADD data) only).

Measured data is output by fixed four digits including a decimal point with a polarity sign andthe leading digit 0 remaining.

1) Example of the primary addition power in single data (ADD = + 2.00 D)

2) Example of the primary and secondary addition powers in the right data (ADD = +2.00 D, ADD2= +2.50 D)

3) Example of the primary and secondary addition powers represented by spherical powers in theleft data

(ADD = +2.00 D, ADD2 = +2.50 D)

(NSPH = -1.00 D, NSPH2 = -0.50 D)

Identification code

Single “A ” (A, space)

Right “AR”

Left “AL”

Identification code

Single “N ” (N, space)

Right “NR”

Left “NL”

A 0 2 . 0 0 ETB CR

41H 20H 30H 32H 2EH 30H 30H 17H 0DH

ADD (5 characters)

A R 0 2 . 0 0 ETB CR 0 2 . 5 0 ETB CR

41H 52H 30H 32H 2EH 30H 30H 17H 0DH 30H 32H 2EH 35H 30H 17H 0DH

ADD (5 characters) ADD2 (5 characters)

A L 0 2 . 0 0 ETB CR 0 2 . 5 0 ETB CR→ To be continued

41H 4CH 30H 32H 2EH 30H 30H 17H 0DH 30H 32H 2EH 35H 30H 17H 0DH

ADD (5 characters) ADD2 (5 characters)

12

Page 17: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

DATA FORMAT: Data Format

2

(5) PRISM

Measured data of the prism power is output.

If the PrismTx parameter is set to ON, the prism data is output in the format of “BU/D BI/O”setting (by the rectangular coordinate system).

If the PrismTx parameter is set to Display, the form varies with the prism representationmode.

When the PRISM parameter is set to BU/D BI/O:

Measured data is output by fixed four digits including a decimal point with no polarity sign and theleading digit 0 remaining.

In addition, a character representing the base direction is added to the end of the measured data.

E.g.:IN 3.00, UP 2.50: 03.00 I 02.50 U

OUT 1.25, DOWN 2.00: 01.25 O 02.00 D

When the PRISM parameter is set to P-B:

Measured data is output by fixed digits with the leading digit 0 remaining.

1) Example of single data when the PRISM parameter is set to BU/D BI/O:

(PRISM = IN 3.00∆, UP 2.50∆)

N L - 0 1 . 0 0 ETB CR - 0 0 . 5 0 ETB CR

4EH 4CH 2DH 30H 31H 2EH 30H 30H 17H 0DH 2DH 30H 30H 2EH 35H 30H 17H 0DH

NSPH (6 characters) NSPH2 (6 characters)

Identification code

Single “P ”(P, Space)

Right “PR”

Left “PL”

Identification code

Single “P ” “B ” (P, Space) (B, Space)

Right “PR” “BR”

Left “PL” “BL”

PRISMFour digits with a fixed decimal point with no polarity sign

BASE Three-digit integer with no polarity sign

P 0 3 . 0 0 I ETB CR P 0 2 . 5 0 U ETB CR

50H 20H 30H 33H 2EH 30H 30H 49H 17H 0DH 50H 20H 30H 32H 2EH 35H 30H 55H 17H 0DH

PRISM1 (6 characters) PRISM2 (6 characters)

BASE IN BASE UP

13

Page 18: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

DATA FORMAT: Data Format

2) Example of right data when the PRISM parameter is set to BU/D BI/O:

(PRISM = OUT 1.25∆, DOWN 2.00∆)

3) Example of left data when the PRISM parameter is set to P-B: (PRISM = 6.5∆, BASE = 70°)

Data (6) to (10) is output from the LM-1200 only.

(6) Progressive Length (Only for LM-1200)

Measured data of the progressive length (V. Length) is output.

Measured data of the progressive length is output by a two-digit integer with the leading digit0 remaining.

1) Example of single data (V. Length= 12 mm)

2) Example of right data (V. Length= 8 mm)

P R 0 1 . 2 5 O ETB CR P R 0 2 . 0 0 D ETB CR

50H 52H 30H 31H 2EH 32H 35H 4FH 17H 0DH 50H 52H 30H 32H 2EH 30H 30H 44H 17H 0DH

PRISM1 (6 characters) PRISM2 (6 characters)

BASE DOWNBASE OUT

P L 0 6 . 5 0 ETB CR B L 0 7 0 ETB CR

50H 4CH 30H 36H 2EH 35H 30H 17H 0DH 42H 4CH 30H 37H 30H 17H 0DH

PRISM (5 characters)BASE

(3 characters)

Identification code

Single “D ” (D, space)

Right “DR”

Left “DL”

D 1 2 ETB CR

44H 20H 31H 32H 17H 0DH

V. Length (2 characters)

D R 0 8 ETB CR

44H 52H 30H 38H 17H 0DH

V. Length (2 characters)

14

Page 19: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

DATA FORMAT: Data Format

2

(7) Channel Width (Only for LM-1200)

Measured data of the channel width (C. Width) and its position (Len) are output.

Measured data of the channel width/position is output by a two-digit integer with the leadingdigit 0 remaining.

1) Example of single data (C. Width = 6 mm/ Meaurement at the position of 16 mm of the near por-tion from the add starting point)

2) Example of left data (C. Width = 5 mm/ Measurement at the position of 8 mm of the near portionfrom the add starting point)

(8) PD (Only for LM-1200)

The measured PD data is output.* This data will not be included in the output unless PD has been measured for both sides.

The data is sent in the order of Total PD (T. PD), Right PD (R. PD) and Left PD (L. PD).

Measured data of the PD is output by fixed three digits including a decimal point.

If T. PD is 100.0 mm or more, 99.9 is output.Sample of PD data (T. PD= 64.0 mm, R. PD= 31.5 mm, L.PD= 32.5 mm)

Identification code

Single “W ” (W, space)

Right “WR”

Left “WL”

W 0 6 / 1 6 ETB CR

57H 20H 30H 36H 2FH 31H 36H 17H 0DH

C. Width(2 characters)

Position(2 characters)

W L 0 5 / 0 8 ETB CR

57H 4CH 30H 35H 2FH 30H 38H 17H 0DH

C. Width(2 characters)

Position(2 characters)

Identification code

PD

P D 6 4 . 0 3 1 . 5 3 2 . 5 ETB CR

50H 44H 36H 34H 2EH 30H 33H 31H 2EH 35H 33H 32H 2EH 35H 17H 0DH

T. PD (4 characters) R. PD (4 characters) L. PD (4 characters)

15

Page 20: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

DATA FORMAT: Data Format

(9) Near Portion Inside Amount (Only for progressive power lens measurement mode of LM-1200)

Measured data of the near portion inside amount is output.

* Output only when both the right and left distance PDs are measured.

* The side (R or L) whose near portion inside amount has not been measured is output with“*****”.

Measured data is output in the order of “R. INS” to “L. INS”.

Measured data of the near portion inside amount is output by fixed three digits including adecimal point with a polarity sign and the leading digit 0 remaining.

Example of near portion inside amount (R. INS = 1.5 mm, L. INS = -2.5 mm)

(10)Net Prism data (Only for normal lens measurement mode of LM-1200)

This output data shows the net prism measurements.* This data will not be included in the output unless prism has been measured for both sides.

The data is sent out in the order of Net Horizontal Prism, and Net Vertical Prism.

The net prism measurements are always indicated by rectangular coordinates (BASE IN/OUT, UP/DOWN). Measured data is output by fixed four digits including a decimal point andthe leading digit 0 remaining.

The base direction is shown with a letter put after the value, just as in the case of the PRISMdata.

E.g. Net H. Prism = IN 3.00, Net V. Prism = UP 2.50 03.00 I 02.50 U

Net H. Prism = OUT 1.25, Net V. Prism = DOWN 2.00 01.25 O 02.00 D

Example of net prism data (Net H. Prism = IN 3.00, Net V. Prism = UP 2.50)

Identification code

“IS”

I S + 0 1 . 5 - 0 2 . 5 ETB CR

49H 53H 2BH 30H 31H 2EH 35H 2DH 30H 32H 2EH 35H 17H 0DH

R. INS (5 characters) L. INS (5 characters)

Identification code

“NP”

N P 0 3 . 0 0 I ETB CR N P 0 2 . 5 0 U ETB CR

4EH 50H 30H 33H 2EH 30H 30H 49H 17H 0DH 4EH 50H 30H 32H 2EH 35H 30H 55H 17H 0DH

Net H. Prism (6 characters) Net V. Prism (6 characters)

BASE IN BASE UP

16

Page 21: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

DATA FORMAT: Error Format

2

2.3 Error Format

When LM becomes unable to perform measurements or to perform measurements properly, the LMwill respond to “SD command” by transmitting an error message instead of sending measured data.Basic error formats are as follows.Since this format is the same as that of other data, the error can be processed with a normal interfacesoftware. The data identification code tells what kind of the error it is.

The LM sends the following errors:To cancel the error, see “4.2 Error Messages and Countermeasures” of the operator’s manual.

In the case of “Measurement error”

SOH D L M STX I E ETB CR EOT CR

01H 44H 4CH 4DH 02H 49H 45H 17H 0DH 04H 0DH

The CR codes are added.

Character representing “Error”

Character representing “Initialize error”

Represents “Data for LM”.

Represents “Data”.

: Character string (11 characters including CR): Character code (H = Hexadecimal)

Error Code Indication on LM Description

Initialization error

IE

UV Init Error.

The error occurred during the initialization after power ON.

Please Out Lens of Nosepiece.

Dust detection. Please clean a lens.

Is it all right by ContactNosepiece?

0D Init Error.

CCD Error.

Measurement error

DE Measurement errorThe LM cannot measure lenses

properly.

SOH D L M STX D E ETB CR EOT CR

01H 44H 4CH 4DH 02H 44H 45H 17H 0DH 04H 0DH

Identification code of data string : “DE”

17

Page 22: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

DATA FORMAT: Example of Data Output

2.4 Example of Data Output

The formats of various types of measured data are explained in “2.2.2. Format of each data (Page10)”; the entire format of the data to be transmitted varies with the existence or absence of varioustypes of measured data and the designation of lenses (Left/Right).Several concrete examples are provided below for reference:

(1) In the case of single data in normal measurement mode:

Measurement conditions

: Single vision lens measurement with the single state designated

: SPH = +1.00D, CYL = 0.00D, AXIS = 0°

: No prism measurement performed

: CR code = None

• Example outputs of (1) - (5), (8), (14) - (15) are common among LM-1000, LM-1000P, and LM-1200.

For the LM-1000 and LM-1200, replace the model name.

• The following is an example of minimum data to be output.

SOH D L M STX → To be continued

01H 44H 4CH 4DH 02H

I D N I D E K / L M - 1 0 0 0 P ETB → To be continued

49H 44H 4EH 49H 44H 45H 4BH 2FH 4CH 4DH 2DH 31H 30H 30H 30H 50H 17H

Company name/Model name

+ 0 1 . 0 0 + 0 0 . 0 0 0 0 0 ETB EOT

20H 20H 2BH 30H 31H 2EH 30H 30H 2BH 30H 30H 2EH 30H 30H 30H 30H 30H 17H 04H

Single SPH Single CYL Single AXIS

18

Page 23: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

DATA FORMAT: Example of Data Output

2

(2) In the case of signal data in progressive power lens measurement mode:

Measurement conditions:

Progressive power lens measurement with the single state designated

SPH = +1.00D, CYL = 0.00D, AXIS = 0°

PRISM = IN 3.00∆. UP 2.50∆ (BU/D BI/O setting)

CR code = None

• Prism data is added to the end of SPH, CYL and Axis data.

SOH D L M STX → To be continued

01H 44H 4CH 4DH 02H

I D N I D E K / L M - 1 0 0 0 P ETB → To be continued

49H 44H 4EH 49H 44H 45H 4BH 2FH 4CH 4DH 2DH 31H 30H 30H 30H 50H 17H

Company name/ Model name

+ 0 1 . 0 0 + 0 0 . 0 0 0 0 0 ETB → To be continued

20H 20H 2BH 30H 31H 2EH 30H 30H 2BH 30H 30H 2EH 30H 30H 30H 30H 30H 17H

Single SPH Single CYL Single AXIS

P 0 3 . 0 0 I ETB P 0 2 . 5 0 U ETB EOT

50H 20H 30H 33H 2EH 30H 30H 49H 17H 50H 20H 30H 32H 2EH 35H 30H 55H 17H 04H

Single PRISM1 Single PRISM2

19

Page 24: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

DATA FORMAT: Example of Data Output

(3) In the case of single data in contact lens measurement mode:

Measurement conditions:

Contact lens measurement with the single state designated

SPH = +2.00 D, CYL = +0.50 D, AXIS = 60°, SE = +2.25 D

PRISM = 1.25∆, BASE = 70°(P-B setting)

CR code = Added

• In the contact lens measurement mode, the SE value is added to the end of SPH, CYL and AXIS data.

• The prism representation mode is different from case (2).

• The CR code is added to the end of “ETB” and “EOT”.

SOH D L M STX → To be continued

01H 44H 4CH 4DH 02H

I D N I D E K / L M - 1 0 0 0 P ETB CR → To be continued

49H 44H 4EH 49H 44H 45H 4BH 2FH 4CH 4DH 2DH 31H 30H 30H 30H 50H 17H 0DH

Company name/ Model name

+ 0 2 . 0 0 + 0 0 . 5 0 0 6 0 ETB CR → To be continued

20H 20H 2BH 30H 32H 2EH 30H 30H 2BH 30H 30H 2EH 35H 30H 30H 36H 30H 17H 0DH

Single SPH Single CYL Single AXIS

S + 0 2 . 2 5 ETB CR P 0 1 . 2 5 ETB CR → To be continued

53H 20H 2BH 30H 32H 2EH 32H 35H 17H 0DH 50H 20H 30H 31H 2EH 32H 35H 17H 0DH

Single SE Single PRISM

B 0 7 0 ETB CR EOT CR

42H 20H 30H 37H 30H 17H 0DH 04H 0DH

Single BASE

20

Page 25: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

DATA FORMAT: Example of Data Output

2

(4) In the case of right data only in normal measurement mode

Measurement conditions:

Single vision lens measurement with the right-eye lens designated

Right: SPH = -11.25 D, CYL = -9.75 D, AXIS = 90°

Right: PRISM = OUT 1.25∆, DOWN 2.00∆ (BU/D BI/O setting)

CR code = Added

• The identification code is changed to that for the right-eye lens data.

• In the case of measurement of the left-eye lens only, the identification code change from R to L.

SOH D L M STX → To be continued

01H 44H 4CH 4DH 02H

I D N I D E K / L M - 1 0 0 0 P ETB CR → To be continued

49H 44H 4EH 49H 44H 45H 4BH 2FH 4CH 4DH 2DH 31H 30H 30H 30H 50H 17H 0DH

Company name/ Model name

R - 1 1 . 2 5 - 0 9 . 7 5 0 9 0 ETB CR → To be continued

20H 52H 2DH 31H 31H 2EH 32H 35H 2DH 30H 39H 2EH 37H 35H 30H 39H 30H 17H 0DH

Right SPH Right CYL Right AXIS

P R + 0 1 . 2 5 O ETB CR P R 0 2 . 0 0 D → To be continued

50H 52H 2BH 30H 31H 2EH 32H 35H 4FH 17H 0DH 50H 52H 30H 32H 2EH 30H 30H 44H

Single PRISM1 Single PRISM2

ETB CR EOT CR

17H 0DH 04H 0DH

21

Page 26: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

DATA FORMAT: Example of Data Output

(5) In the case of the left and right data in normal measurement mode

Measurement conditions:Trifocal lens measurement with the left- and right-eye lenses designatedRight: SPH = -1.25 D, CYL = -0.75 D, AXIS = 120° No prism measurement performed

ADD = +2.00 D, ADD2 = +3.00 DLeft: SPH = -2.00 D, CYL = -0.50 D, AXIS =180°

No prism measurement performedADD = +2.25 D, ADD2 has not been measured.

CR Code = Added

• The secondary addition power of the left-eye lens has not been measured and therefore, it is not transmitted.

SOH D L M STX → To be continued

01H 44H 4CH 4DH 02H

I D N I D E K / L M - 1 0 0 0 P ETB CR → To be continued

49H 44H 4EH 49H 44H 45H 4BH 2FH 4CH 4DH 2DH 31H 30H 30H 30H 50H 17H 0DH

Company name/ Model name

R - 0 1 . 2 5 - 0 0 . 7 5 1 2 0 ETB CR → To be continued

20H 52H 2DH 30H 31H 2EH 32H 35H 2DH 30H 30H 2EH 37H 35H 31H 32H 30H 17H 0DH

Right SPH Right CYL Right AXIS

A R 0 2 . 0 0 ETB CR 0 3 . 0 0 ETB CR → To be continued

41H 52H 30H 32H 2EH 30H 30H 17H 0DH 30H 33H 2EH 30H 30H 17H 0DH

Right ADD Right ADD2

L - 0 2 . 0 0 - 0 0 . 5 0 1 8 0 ETB CR → To be continued

20H 4CH 2DH 30H 32H 2EH 30H 30H 2DH 30H 30H 2EH 35H 30H 31H 38H 30H 17H 0DH

Left SPH Left CYL Left AXIS

A L 0 2 . 2 5 ETB CR EOT CR

41H 4CH 30H 32H 2EH 32H 35H 17H 0DH 04H 0DH

Left ADD

22

Page 27: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

DATA FORMAT: Example of Data Output

2

(6) Sample 1 of the left and right data in normal measurement mode with PD measurement (LM-1200)

Measurement conditions: Bifocal lens measurement with the left- and right-eye lenses designatedRight: SPH = -1.25 D, CYL= -0.75 D, AXIS = 120°

No prism measurement performedADD = +2.00 DRPD = 31.5 mm

Left: SPH = -2.00 D, CYL = -0.50 D, AXIS = 180°No prism measurement performedADD = +2.25 DLPD = 32.5 mm

Total PD = 64.0 mmCR Code = Added

• The secondary addition power has not been measured and therefore, it is not transmitted.

• PD data is added after R and L data.

SOH D L M STX → To be continued01H 44H 4CH 4DH 02H

I D N I D E K / L M - 1 2 0 0 ETB CR → To be continued

49H 44H 4EH 49H 44H 45H 4BH 2FH 4CH 4DH 2DH 31H 32H 30H 30H 17H 0DHCompany name/ Model name

R - 0 1 . 2 5 - 0 0 . 7 5 1 2 0 ETB CR → To be continued

20H 52H 2DH 30H 31H 2EH 32H 35H 2DH 30H 30H 2EH 37H 35H 31H 32H 30H 17H 0DHRight SPH Right CYL Right AXIS

A R 0 2 . 0 0 ETB CR → To be continued

41H 52H 30H 32H 2EH 30H 30H 17H 0DHRight ADD

L - 0 2 . 0 0 - 0 0 . 5 0 1 8 0 ETB CR → To be continued

20H 4CH 2DH 30H 32H 2EH 30H 30H 2DH 30H 30H 2EH 35H 30H 31H 38H 30H 17H 0DHLeft SPH Left CYL Left AXIS

A L 0 2 . 2 5 ETB CR → To be continued

41H 4CH 30H 32H 2EH 32H 35H 17H 0DHLeft ADD

P D 6 4 . 0 3 1 . 5 3 2 . 5 ETB CR EOT CR50H 44H 36H 34H 2EH 30H 33H 31H 2EH 35H 33H 32H 2EH 35H 17H 0DH 04H 0DH

Total PD Right PD Left PD

23

Page 28: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

DATA FORMAT: Example of Data Output

(7) Sample 2 of left and right data in normal measurement mode with PD measurement (LM-1200)

Measurement conditions: Single vision lens measurement with the left-eye lens designatedRight: SPH = -1.25 D, CYL = 0.75 D, AXIS = 120°

No prism measurement performedRPD = 31.5 mm

Left: SPH = -2.00 D, CYL = -0.50 D, AXIS = 180°No prism measurement performedNo LPD measurement

Total PD is undecided.CR code = Added

• No PD outputs because LPD has not been measured.

• Net PRISM measurements will also be excluded from the output unless prism has been measured for both sides.

SOH D L M STX → To be continued01H 44H 4CH 4DH 02H

I D N I D E K / L M - 1 2 0 0 ETB CR → To be continued

49H 44H 4EH 49H 44H 45H 4BH 2FH 4CH 4DH 2DH 31H 32H 30H 30H 17H 0DHCompany name/ Model name

R - 0 1 . 2 5 - 0 0 . 7 5 1 2 0 ETB CR → To be continued

20H 52H 2DH 30H 31H 2EH 32H 35H 2DH 30H 30H 2EH 37H 35H 31H 32H 30H 17H 0DHRight SPH Right CYL Right AXIS

L - 0 2 . 0 0 - 0 0 . 5 0 1 8 0 ETB CR → To be continued

20H 4CH 2DH 30H 32H 2EH 30H 30H 2DH 30H 30H 2EH 35H 30H 31H 38H 30H 17H 0DHLeft SPH Left CYL Left AXIS

EOT CR04H 0DH

24

Page 29: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

DATA FORMAT: Example of Data Output

2

(8) In the case of the left and right data in progressive power lens measurement mode

Measurement conditions:Progressive power lens measurement with the left- and right-eye lenses desig-natedRight: SPH = -1.25 D, CYL = -0.75 D, AXIS = 120° PRISM = IN 2.50∆, DOWN 2.00∆ (BU/D BI/O setting)

ADD = +2.00 DLeft: SPH = -2.00 D, CYL = -0.50 D, AXIS = 180°

PRISM = OUT 1.25∆, UP 2.00∆ (BU/D BI/O setting)ADD = +2.25 D

CR code = Added

• The addition power is added before the prism data.

• After the transmission of the right-eye lens data, the left-eye lens data is output.

SOH D L M STX → To be continued01H 44H 4CH 4DH 02H

I D N I D E K / L M - 1 0 0 0 P ETB CR → To be continued

49H 44H 4EH 49H 44H 45H 4BH 2FH 4CH 4DH 2DH 31H 30H 30H 30H 50H 17H 0DHCompany name/ Model name

R - 0 1 . 2 5 - 0 0 . 7 5 1 2 0 ETB CR → To be continued

20H 52H 2DH 30H 31H 2EH 32H 35H 2DH 30H 30H 2EH 37H 35H 31H 32H 30H 17H 0DHRight SPH Right CYL Right AXIS

A R 0 2 . 0 0 ETB CR P R 0 2 . 5 0 I ETB CR → To be continued

41H 52H 30H 32H 2EH 30H 30H 17H 0DH 50H 52H 30H 32H 2EH 35H 30H 49H 17H 0DHRight ADD Right PRISM1

P R 0 2 . 0 0 D ETB CR → To be continued

50H 52H 30H 32H 2EH 30H 30H 44H 17H 0DHRight PRISM2

L - 0 2 . 0 0 - 0 0 . 5 0 1 8 0 ETB CR → To be continued

20H 4CH 2DH 30H 32H 2EH 30H 30H 2DH 30H 30H 2EH 35H 30H 31H 38H 30H 17H 0DHLeft SPH Left CYL Left AXIS

A L 0 2 . 2 5 ETB CR P L 0 1 . 2 5 O ETB CR → To be continued

41H 4CH 30H 32H 2EH 32H 35H 17H 0DH 50H 4CH 30H 31H 2EH 32H 35H 4FH 17H 0DHLeft ADD Left PRISM1

P L 0 2 . 0 0 U ETB CR EOT CR

50H 4CH 30H 32H 2EH 30H 30H 55H 17H 0DH 04H 0DH

Left PRISM2

25

Page 30: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

DATA FORMAT: Example of Data Output

(9) In the case of the left and right data in progressive power lens measurement mode with PD measurement and near portion inside amount measurement (LM-1200)

Measurement conditions: Progressive power lens measurement with the left- and right-eye lenses designated: R : SPH = -1.25 D, CYL = -0.75 D, AXIS = 120°

No prism measurement performedADD = +2.00 DRPD = 31.5 mmRINS = 1.5 mm

: L : SPH = -2.00 D, CYL = -0.50 D, AXIS = 180°No prism measurement performedADD = +2.25 DLPD = 32.5 mmNo LINS measurement

Total PD = 64.0 mmCR code is used

• PD data is added after R and L data.

• Since the near portion inside amount of the left eye is not measured, “*****” is output.

SOH D L M STX → To be continued

01H 44H 4CH 4DH 02H

I D N I D E K / L M - 1 2 0 0 ETB CR → To be continued

49H 44H 4EH 49H 44H 45H 4BH 2FH 4CH 4DH 2DH 31H 32H 30H 30H 17H 0DH

Company name/ Model name

R - 0 1 . 2 5 - 0 0 . 7 5 1 2 0 ETB CR → To be continued

20H 52H 2DH 30H 31H 2EH 32H 35H 2DH 30H 30H 2EH 37H 35H 31H 32H 30H 17H 0DH

Right SPH Right CYL Right AXIS

A R 0 2 . 0 0 ETB CR → To be continued

41H 52H 30H 32H 2EH 30H 30H 17H 0DH

Right ADD

L - 0 2 . 0 0 - 0 0 . 5 0 1 8 0 ETB CR → To be continued

20H 4CH 2DH 30H 32H 2EH 30H 30H 2DH 30H 30H 2EH 35H 30H 31H 38H 30H 17H 0DH

Left SPH Left CYL Left AXIS

26

Page 31: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

DATA FORMAT: Example of Data Output

2

A L 0 2 . 2 5 ETB CR → To be continued

41H 4CH 30H 32H 2EH 32H 35H 17H 0DH

Left ADD

P D 6 4 . 0 3 1 . 5 3 2 . 5 ETB CR → To be continued

50H 44H 36H 34H 2EH 30H 33H 31H 2EH 35H 33H 32H 2EH 35H 17H 0DH

Total PD Right PD Left PD

I S + 0 1 . 5 * * * * * ETB CR EOT CR

49H 53H 2BH 30H 31H 2EH 35H 2AH 2AH 2AH 2AH 2AH 17H 0DH 04H 0DH

Right INS Left INS

27

Page 32: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

DATA FORMAT: Example of Data Output

(10) In the case of the maximum data size in normal measurement mode (LM-1000/1000P)

Measurement conditions:Trifocal lens measurement with the left- and right-eye lenses designatedRight: SPH = -1.25 D, CYL = -0.75 D, AXIS = 120°

PRISM = IN 2.25∆, DOWN 2.00∆ (BU/D BI/O setting)ADD = +2.00 D, ADD2 = +3.00 DRepresentation form of near portion power = NEAR SPHNSPH = +0.75D, NSPH2 = +1.75 D

Left: SPH = -2.00 D, CYL = -0.50 D, AXIS = 180°PRISM = OUT 1.25∆, UP 2.00∆ (BU/D BI/O setting)ADD = +2.25 D, ADD2 = +3.50 DRepresentation form of near portion power = NEAR SPHNSPH = +0.25 D, NSPH2 = +1.50 D

CR code = Added

• This is an example of LM-1000P of the maximum data size (171 characters) in ordinary lens measurement mode.

• When the NEAR parameter is set to NEAR SPH, both the addition powers (ADD) and near spherical data (NSPH) are output.

1 5 (Number of characters)

SOH D L M STX → To be continued01H 44H 4CH 4DH 02H

10 15 20

I D N I D E K / L M - 1 0 0 0 P ETB CR → To be continued

49H 44H 4EH 49H 44H 45H 4BH 2FH 4CH 4DH 2DH 31H 30H 30H 30H 50H 17H 0DHCompany name/ Model name

25 30 35 40

R - 0 1 . 2 5 - 0 0 . 7 5 1 2 0 ETB CR → To be continued

20H 52H 2DH 30H 31H 2EH 32H 35H 2DH 30H 30H 2EH 37H 35H 31H 32H 30H 17H 0DHRight SPH Right CYL Right AXIS

45 50 55

A R 0 2 . 0 0 ETB CR 0 3 . 0 0 ETB CR → To be continued

41H 52H 30H 32H 2EH 30H 30H 17H 0DH 30H 33H 2EH 30H 30H 17H 0DHRight ADD Right ADD2

60 65 70 75

N R + 0 0 . 7 5 ETB CR + 0 1 . 7 5 ETB CR → To be continued

4EH 52H 2BH 30H 30H 2EH 37H 35H 17H 0DH 2BH 30H 31H 2EH 37H 35H 17H 0DHRight NSPH Right NSPH2

28

Page 33: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

DATA FORMAT: Example of Data Output

2

80 85 90 95

P R 0 2 . 2 5 I ETB CR P R 0 2 . 0 0 D ETB CR → To be continued

50H 52H 30H 32H 2EH 32H 35H 49H 17H 0DH 50H 52H 30H 32H 2EH 30H 30H 44H 17H 0DHRight PRISM1 Right PRISM2

100 105 110 115

L - 0 2 . 0 0 - 0 0 . 5 0 1 8 0 ETB CR → To be continued

20H 4CH 2DH 30H 32H 2EH 30H 30H 2DH 30H 30H 2EH 35H 30H 31H 38H 30H 17H 0DHLeft SPH Left CYL Left AXIS

120 125 130

A L 0 2 . 2 5 ETB CR 0 3 . 5 0 ETB CR → To be continued

41H 4CH 30H 32H 2EH 32H 35H 17H 0DH 30H 33H 2EH 35H 30H 17H 0DHLeft ADD Left ADD2

135 140 145

N L + 0 0 . 2 5 ETB CR + 0 1 . 5 0 ETB CR → To be continued

4EH 4CH 2BH 30H 30H 2EH 32H 35H 17H 0DH 2BH 30H 31H 2EH 35H 30H 17H 0DHLeft NSPH Left NSPH2

150 155 160 165

P L 0 1 . 2 5 O ETB CR P L 0 2 . 0 0 U ETB CR → To be continued

53H 4CH 30H 31H 2EH 32H 35H 4FH 17H 0DH 50H 4CH 30H 32H 2EH 30H 30H 55H 17H 0DHLeft PRISM1 Left PRISM2

170 171EOT CR04H 0DH

29

Page 34: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

DATA FORMAT: Example of Data Output

(11) In the case of the maximum data size in normal measurement mode (LM-1200)

Measurement conditions: Trifocal lens measurement with the left- and right-eye lenses designatedRight: SPH=-1.25 D, CYL=-0.75 D, AXIS=120°

PRISM = IN 2.25∆, DOWN 2.00∆ (BU/D BI/O setting)ADD=+2.00 D, ADD2=+3.00 DRepresentation form of near portion power = NEAR SPH NSPH =+0.75D, NSPH2 = +1.75 DRPD= 31.5 mm

Left: SPH=-2.00 D, CYL=-0.50 D, AXIS=180°PRISM=OUT 1.25∆, UP 2.00∆ (BU/D BI/O setting)ADD=+2.25D, ADD2=+3.50 DRepresentation form of near portion power = NEAR SPH NSPH =+0.25D, NSPH2 = +1.50 DLPD= 32.5 mm

Total PD= 64.0 mmNet Prism Net H. Prism = IN 1.25∆ Net V. Prism = UP 1.00∆

CR code = Added

• This is an example of LM-1200 of the maximum data size (206 characters) in ordinary lens measurement mode.

• When the NEAR parameter is set to NEAR SPH, both the addition powers (ADD) and near spherical data (NSPH) are output.

• When the Net PRISM parameter is set to “ON", differences between right and left prism values are included in the output as the Net PRISM value.

1 5 (Number of characters)

SOH D L M STX → To be continued01H 44H 4CH 4DH 02H

10 15 20

I D N I D E K / L M - 1 2 0 0 ETB CR → To be continued

49H 44H 4EH 49H 44H 45H 4BH 2FH 4CH 4DH 2DH 31H 32H 30H 30H 17H 0DHCompany name/ Model name

25 30 35 40

R - 0 1 . 2 5 - 0 0 . 7 5 1 2 0 ETB CR → To be continued

20H 52H 2DH 30H 31H 2EH 32H 35H 2DH 30H 30H 2EH 37H 35H 31H 32H 30H 17H 0DH

Right SPH Right CYL Right AXIS

45 50 55

A R 0 2 . 0 0 ETB CR 0 3 . 0 0 ETB CR → To be continued

41H 52H 30H 32H 2EH 30H 30H 17H 0DH 30H 33H 2EH 30H 30H 17H 0DHRight ADD Right ADD2

30

Page 35: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

DATA FORMAT: Example of Data Output

2

60 65 70 75

N R + 0 0 . 7 5 ETB CR + 0 1 . 7 5 ETB CR → To be continued

4EH 52H 2BH 30H 30H 2EH 37H 35H 17H 0DH 2BH 30H 31H 2EH 37H 35H 17H 0DHRight NSPH Right NSPH2

80 85 90 95

P R 0 2 . 2 5 I ETB CR P R 0 2 . 0 0 D ETB CR → To be continued

50H 52H 30H 32H 2EH 32H 35H 49H 17H 0DH 50H 52H 30H 32H 2EH 30H 30H 44H 17H 0DHRight PRISM1 Right PRISM2

100 105 110

L - 0 2 . 0 0 - 0 0 . 5 0 1 8 0 ETB CR → To be continued

20H 4CH 2DH 30H 32H 2EH 30H 30H 2DH 30H 30H 2EH 35H 30H 31H 38H 30H 17H 0DHLeft SPH Left CYL Left AXIS

115 120 125 130

A L 0 2 . 2 5 ETB CR 0 3 . 5 0 ETB CR → To be continued

41H 4CH 30H 32H 2EH 32H 35H 17H 0DH 30H 33H 2EH 35H 30H 17H 0DHLeft ADD Left ADD2

135 140 145

N L + 0 0 . 2 5 ETB CR + 0 1 . 5 0 ETB CR → To be continued

4EH 4CH 2BH 30H 30H 2EH 32H 35H 17H 0DH 2BH 30H 31H 2EH 35H 30H 17H 0DHLeft NSPH Left NSPH2

150 155 160 165

P L 0 1 . 2 5 O ETB CR P L 0 2 . 0 0 U ETB CR → To be continued

50H 4CH 30H 31H 2EH 32H 35H 4FH 17H 0DH 50H 4CH 30H 32H 2EH 30H 30H 55H 17H 0DHLeft PRISM1 Left PRISM2

170 175 180

P D 6 4 . 0 3 1 . 5 3 2 . 5 ETB CR → To be continued

50H 44H 36H 34H 2EH 30H 33H 31H 2EH 35H 33H 32H 2EH 35H 17H 0DHTotal PD Right PD Left PD

185 190 195 200

N P 0 1 . 2 5 I ETB CR N P 0 1 . 0 0 U ETB CR → To be continued

4EH 50H 30H 31H 2EH 32H 35H 4CH 17H 0DH 4EH 50H 30H 31H 2EH 30H 30H 55H 17H 0DHNet H. PRISM Net V. PRISM

205 206EOT CR04H 0DH

31

Page 36: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

DATA FORMAT: Example of Data Output

(12)In the case of the maximum data size in progressive power lens measurement mode (LM-1000/1000P)

Measurement conditions:Progressive power lens measurement with the left- and right-eye lenses desig-natedRight: SPH = -1.25 D, CYL = -0.75 D, AXIS = 120°

PRISM = IN 2.25∆, DOWN 2.00∆ (BU/D BI/O setting)ADD = +2.00 DRepresentation form of near portion power = NEAR SPH NSPH = +0.75 D

Left: SPH = -2.00 D, CYL = -0.50D, AXIS = 180°PRISM = OUT 1.25∆, UP 2.00∆ (BU/D BI/O setting)ADD = +2.25 DRepresentation form of near portion power = NEAR SPH NSPH = +0.25 D

CR code = Added

• This is an example of the maximum data size (141 characters) in progressive power lens measurement mode.

• When the NEAR parameter is set to NEAR SPH, both the addition powers (ADD) and near spherical data (NSPH) are output.

1 5 (Number of characters)SOH D L M STX → To be continued01H 44H 4CH 4DH 02H

10 15 20

I D N I D E K / L M - 1 0 0 0 P ETB CR → To be continued

49H 44H 4EH 49H 44H 45H 4BH 2FH 4CH 4DH 2DH 31H 30H 30H 30H 50H 17H 0DHCompany name/ Model name

25 30 35 40

R - 0 1 . 2 5 - 0 0 . 7 5 1 2 0 ETB CR → To be continued

20H 52H 2DH 30H 31H 2EH 32H 35H 2DH 30H 30H 2EH 37H 35H 31H 32H 30H 17H 0DHRight SPH Right CYL Right AXIS

45 50 55 60

A R 0 2 . 0 0 ETB CR N R + 0 0 . 7 5 ETB CR → To be continued

41H 52H 30H 32H 2EH 30H 30H 17H 0DH 4EH 52H 2BH 30H 30H 2EH 37H 35H 17H 0DHRight ADD Right NSPH

65 70 75 80

P R 0 2 . 2 5 I ETB CR P R 0 2 . 0 0 D ETB CR → To be continued

50H 52H 30H 32H 2EH 32H 35H 49H 17H 0DH 50H 52H 30H 32H 2EH 30H 30H 44H 17H 0DHRight PRISM1 Right PRISM2

32

Page 37: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

DATA FORMAT: Example of Data Output

2

85 90 95 100

L - 0 2 . 0 0 - 0 0 . 5 0 1 8 0 ETB CR → To be continued

20H 4CH 2DH 30H 32H 2EH 30H 30H 2DH 30H 30H 2EH 35H 30H 31H 38H 30H 17H 0DHLeft SPH Left CYL Left AXIS

105 110 115

A L 0 2 . 2 5 ETB CR N L + 0 0 . 2 5 ETB CR → To be continued

41H 4CH 30H 32H 2EH 32H 35H 17H 0DH 4EH 4CH 2BH 30H 30H 2EH 32H 35H 17H 0DHLeft ADD Left NSPH

120 125 130 135

P L 0 1 . 2 5 O ETB CR P L 0 2 . 0 0 U ETB CR → To be continued

50H 4CH 30H 31H 2EH 32H 35H 4FH 17H 0DH 50H 4CH 30H 32H 2EH 30H 30H 55H 17H 0DHLeft PRISM1 Left PRISM2

140 141EOT CR04H 0DH

33

Page 38: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

DATA FORMAT: Example of Data Output

(13)In the case of the maximum data size in progressive power lens measurement mode (LM-1200)

Measurement conditions: Progressive power lens measurement with the left- and right-eye lenses designatedRight: SPH = -1.25 D, CYL= -0.75 D, AXIS = 120°

PRISM = IN 2.25∆, DOWN 2.00∆ (BU/D BI/O setting)ADD = +2.00 DRepresentation form of near portion power = NEAR SPH NSPH = +0.75 D

Progressive Length = 16 mmChannel Width = 8 mm / Position = 15 mmRPD = 31.5 mmRINS = 1.5 mm

Left: SPH = -2.00 D, CYL = -0.50 D, AXIS = 180°PRISM = OUT 1.25∆, UP 2.00∆ (Rectangular)ADD = +2.25 DRepresentation form of near portion power = NEAR SPH NSPH = +0.25 DProgressive Length = 17 mmChannel Width = 10 mm / Position = 18 mmLPD = 32.5 mmLINS =2.0 mm

Total PD = 64.0 mmCR code = Added

• This is an example of the LM-1200 of the maximum data size (200 characters) in progressive power lens measurement mode.

• When the NEAR parameter is set to NEAR SPH, both the addition powers (ADD) and near spherical data (NSPH) are output.

• When the function of the progressive length measurement and/or the channel width measurement is set, the measured result of the progressive length and/or channel width is output.

1 5 (Number of characters)

SOH D L M STX → To be continued01H 44H 4CH 4DH 02H

10 15 20

I D N I D E K / L M - 1 2 0 0 ETB CR → To be continued

49H 44H 4EH 49H 44H 45H 4BH 2FH 4CH 4DH 2DH 31H 32H 30H 30H 17H 0DHCompany name/ Model name

25 30 35 40

R - 0 1 . 2 5 - 0 0 . 7 5 1 2 0 ETB CR → To be continued

20H 52H 2DH 30H 31H 2EH 32H 35H 2DH 30H 30H 2EH 37H 35H 31H 32H 30H 17H 0DHRight SPH Right CYL Right AXIS

34

Page 39: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

DATA FORMAT: Example of Data Output

2

45 50 55 60

A R 0 2 . 0 0 ETB CR N R + 0 0 . 7 5 ETB CR → To be continued

41H 52H 30H 32H 2EH 30H 30H 17H 0DH 4EH 52H 2BH 30H 30H 2EH 37H 35H 17H 0DHRight ADD Right NSPH

65 70 75 80

P R 0 2 . 2 5 I ETB CR P R 0 2 . 0 0 D ETB CR → To be continued

50H 52H 30H 32H 2EH 32H 35H 49H 17H 0DH 50H 52H 30H 32H 2EH 30H 30H 44H 17H 0DHRight PRISM1 Right PRISM2

85 90 95

D R 1 6 ETB CR W R 0 8 / 1 5 ETB CR → To be continued

44H 52H 31H 36H 17H 0DH 57H 52H 30H 38H 2FH 31H 35H 17H 0DH

Right Len. Right Channel Width/Position

100 105 110

L - 0 2 . 0 0 - 0 0 . 5 0 1 8 0 ETB CR → To be continued

20H 4CH 2DH 30H 32H 2EH 30H 30H 2DH 30H 30H 2EH 35H 30H 31H 38H 30H 17H 0DHLeft SPH Left CYL Left AXIS

115 120 125 130

A L 0 2 . 2 5 ETB CR N L + 0 0 . 2 5 ETB CR → To be continued

41H 4CH 30H 32H 2EH 32H 35H 17H 0DH 4EH 4CH 2BH 30H 30H 2EH 32H 35H 17H 0DHLeft ADD Left NSPH

135 140 145 150

P L 0 1 . 2 5 O ETB CR P L 0 2 . 0 0 U ETB CR → To be continued

50H 4CH 30H 31H 2EH 32H 35H 4FH 17H 0DH 50H 4CH 30H 32H 2EH 30H 30H 55H 17H 0DH

Left PRISM1 Left PRISM2

155 160 165

D L 1 7 ETB CR W L 1 0 / 1 8 ETB CR → To be continued

44H 4CH 31H 37H 17H 0DH 57H 4CH 31H 30H 2FH 31H 38H 17H 0DH

Left Len. Left Channel Width/Position

170 175 180

P D 6 4 . 0 3 1 . 5 3 2 . 5 ETB CR → To be continued

50H 44H 36H 34H 2EH 30H 33H 31H 2EH 35H 33H 32H 2EH 35H 17H 0DHTotal PD Right PD Left PD

185 190 195 200I S + 0 1 . 5 + 0 2 . 0 ETB CR EOT CR

49H 53H 2BH 30H 31H 2EH 35H 2BH 30H 32H 2EH 30H 17H 0DH 04H 0DHRight INS Left INS

35

Page 40: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

DATA FORMAT: Example of Data Output

(14)In the case of the maximum data size in contact lens measurement mode

Measurement conditions:

Contact lens measurement with the left- and right-eye lenses designated

Right: SPH = -1.25 D, CYL = -0.75 D, AXIS = 120°, SE = -1.50 D

PRISM = IN 2.50∆, DOWN 2.00∆ (BU/D BI/O setting)

Left: SPH = -2.00 D, CYL = -0.50 D, AXIS = 180°, SE = -2.25 D

PRISM = OUT 1.25∆, UP 2.00∆ (BU/D BI/O setting)

CR code = Added

• This is an example of the maximum data size (123 characters) in contact lens measurement mode.

• The SE value is output.

• The addition power and PD are not measured.

1 5 (Number of characters)SOH D L M STX → To be continued01H 44H 4CH 4DH 02H

10 15 20

I D N I D E K / L M - 1 0 0 0 P ETB CR → To be continued

49H 44H 4EH 49H 44H 45H 4BH 2FH 4CH 4DH 2DH 31H 30H 30H 30H 50H 17H 0DHCompany name/ Model name

25 30 35 40

R - 0 1 . 2 5 - 0 0 . 7 5 1 2 0 ETB CR → To be continued

20H 52H 2DH 30H 31H 2EH 32H 35H 2DH 30H 30H 2EH 37H 35H 31H 32H 30H 17H 0DHRight SPH Right CYL Right AXIS

45 50 55 60

S R - 0 1 . 5 0 ETB CR P R 0 2 . 5 0 I ETB CR → To be continued

53H 52H 2DH 30H 31H 2EH 35H 30H 17H 0DH 50H 52H 30H 32H 2EH 35H 30H 49H 17H 0DHRight SE Right PRISM1

65 70

P R 0 2 . 0 0 D ETB CR → To be continued

50H 52H 30H 32H 2EH 30H 30H 44H 17H 0DHRight PRISM2

75 80 85 90

L - 0 2 . 0 0 - 0 0 . 5 0 1 8 0 ETB CR → To be continued

20H 4CH 2DH 30H 32H 2EH 30H 30H 2DH 30H 30H 2EH 35H 30H 31H 38H 30H 17H 0DHLeft SPH Left CYL Left AXIS

36

Page 41: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

DATA FORMAT: Example of Data Output

2

95 100 105 110

S L - 0 2 . 2 5 ETB CR P L 0 1 . 2 5 O ETB CR → To be continued

53H 4CH 2DH 30H 32H 2EH 32H 35H 17H 0DH 50H 4CH 30H 31H 2EH 32H 35H 4FH 17H 0DHLeft SE Left PRISM1

115 120 123P L 0 2 . 0 0 U ETB CR EOT CR

53H 4CH 30H 32H 2EH 30H 30H 55H 17H 0DH 04H 0DHLeft PRISM2

37

Page 42: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

DATA FORMAT: Example of Data Output

(15)In the case of the maximum data size in prism layout measurement mode

Measurement conditions:

Single vision lens measurement with the left- and right-eye lenses designated

Right: SPH = -1.25 D, CYL = -0.75 D, AXIS = 120°

PRISM = IN 2.50∆, DOWN 2.00∆ (BASE IN/OUT UP/DOWN setting)

RPD = 31.5 mm

Left: SPH = -2.00 D, CYL = -0.50 D, AXIS = 180°

PRISM = OUT 1.25∆, UP 2.00∆ (BASE IN/OUT UP/DOWN setting)

LPD = 32.5 mm

Total PD = 64.0 mm

CR code = Added

• This is an example of the maximum data size (117 characters) in prism layout measurement mode.

• PRISM is the measured prism power.

1 5 (Number of characters)SOH D L M STX → To be continued01H 44H 4CH 4DH 02H

10 15 20

I D N I D E K / L M - 1 0 0 0 P ETB CR → To be continued

49H 44H 4EH 49H 44H 45H 4BH 2FH 4CH 4DH 2DH 31H 30H 30H 30H 50H 17H 0DHCompany name/ Model name

25 30 35 40

R - 0 1 . 2 5 - 0 0 . 7 5 1 2 0 ETB CR → To be continued

20H 52H 2DH 30H 31H 2EH 32H 35H 2DH 30H 30H 2EH 37H 35H 31H 32H 30H 17H 0DHRight SPH Right CYL Right AXIS

45 50 55 60

P R 0 2 . 5 0 I ETB CR P R 0 2 . 0 0 D ETB CR → To be continued

50H 52H 30H 32H 2EH 35H 30H 49H 17H 0DH 50H 52H 30H 32H 2EH 30H 30H 44H 17H 0DHRight PRISM 1 Right PRISM2

65 70 75

L - 0 2 . 0 0 - 0 0 . 5 0 1 8 0 ETB CR → To be continued

20H 4CH 2DH 30H 32H 2EH 30H 30H 2DH 30H 30H 2EH 35H 30H 31H 38H 30H 17H 0DHLeft SPH Left CYL Left AXIS

38

Page 43: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

DATA FORMAT: Example of Data Output

2

80 85 90 95

P L 0 1 . 2 5 O ETB CR P L 0 2 . 0 0 U ETB CR → To be continued

53H 4CH 30H 31H 2EH 32H 35H 4FH 17H 0DH 50H 4CH 30H 32H 2EH 30H 30H 55H 17H 0DHLeft PRISM1 Left PRISM2

100 105 110 115

P D 6 4 . 0 3 1 . 5 3 2 . 5 ETB CR → To be continued

50H 44H 36H 34H 2EH 30H 33H 31H 2EH 35H 33H 32H 2EH 35H 17H 0DHTotal PD Right PD Left PD

116 117EOT CR04H 0DH

39

Page 44: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

DATA FORMAT: Example of Data Output

40

Page 45: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

3. COMMUNICATION PROCEDURE

3

3.1 Outline

The procedure for transmitting data measured by the LM to the computer etc. is explained.

1 Save measured data on the LM.Press the read key of the LM or send “RD command” from the computer.

2 Transmit the saved data to the computer. Press the print button of the LM-1000P/LM-1200 (or export button of the LM-1000) or send “SD command” from the computer.

3 As the computer receives measured data, it displays the data on the screen orsaves it to a floppy disk.

Therefore, the computer needs a program that sends or receives these “commands“ orthese items of “data”, analyzes and processes (displays, saves etc.) the received “data”.

In this manner, the operator can choose the following options for data transmission and reception: Toperform automatic data transmission with the operation buttons on the LM side, to use the computer togive all the commands to the LM from the data storage to data transmission, and to use the operationbuttons on the LM side and the computer in combination.

41

Page 46: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

COMMUNICATION PROCEDURE: Communication Control Signals (DTR Output to DSR Input)

3.2 Communication Control Signals (DTR Output to DSR Input)

The communication control method when the ComMode parameter is set to NIDEK is described. To transmit and received “Command” and/or “Data”, it is necessary to connect the DSR (Data SetReady) and DTR (Data Terminal Ready) wires as well as the TXD (Transmit eXchange Data) andRXD (Received eXchange Data) wires. (Also see “1.1.2 Cable connection (Page 3)”.)The DTR-to-DSR wire lets both devices know if the other device is ready for communication. If onedevice is ready for communication, it sends “DTR = ON” to the other device. If one device is not readyfor communication during printout by the LM or the processing of the previous data by the computer, itsends “DTR = OFF” to the other device to let the other device know the status of one device.The status of the other device is judged by ON or OFF of “DSR”. In this way, unwanted communicationtroubles can be prevented.

The figure below shows the changes in the DTR signals when the computer sends “SD command”and the LM sends “Data” back in response to the command.

1) Both the computer and LM are out of communication. The DTR signal of both devices is“OFF”.

2) The computer enables DTR (ON) to send “Command” to the LM.

TXD

DTR ON

OFF

DTR ON

OFF

TXD

T1 T2

1)

2) 3) 4)

6)

5)

7)

8) 9)

11)

10)

Command

Data

Computer side

LM side

T1, T2 ≤ 0.1 sec(Time out when T1, T2 > 0.1 sec.)

42

Page 47: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

COMMUNICATION PROCEDURE: Communication Control Signals (DTR Output to DSR Input)

3

3) Because DTR is not enabled (ON) on the LM side even after 0.1 seconds or more, thecomputer terminates communication by disabling DTR (OFF). In this way, if DTR is notenabled (ON) on the other device side, one device judges that the other device is notready for communication and terminates communication for a moment. The waiting timeuntil the other device enables DTR (ON) (or the time period from when DTR is enabled(ON) to the transmission of data or commands) shall be 0.1 second. The LM and com-puter program shall be designed to send a response to the other device within 0.1 sec-onds if it is ready for communication.

4) Again, the computer enables DTR (ON) to send “Command” to the LM.

5) The LM enables DTR (ON) in response to the command from the computer.

6) When the computer confirms that the DTR on the LM side is enabled (ON), the computersends “Command” to the LM.

7) After sending the command to the LM, the computer is put into the wait state to wait for“Data” from the LM.

To allow the LM to send data, the computer shall keep enabling DTR (ON). If the computer is notready for instant reception, it may make the LM wait for 0.1 seconds by disabling DTR (OFF) once.After the lapse of 0.1 seconds, a timeout occurs in the LM and the LM terminates communication.

The LM analyzes “Command” from the computer and prepares for “Data” to be sent.

8) The LM checks if DTR is enabled (ON) on the computer side and sends “Data”.

If DTR is disabled (OFF), the LM wait for 0.1 seconds for the computer to enable DTR (ON). If theDTR is disabled on the computer side, the LM disables DTR (OFF) and terminates communication.

9) The LM produces two beeps at the completion of transmission of “Data”, and disablesDTR (OFF) after the computer disables DSR (OFF). (Because there are cases where “CLcommand” is sent from the computer subsequently)

10)The computer disables DTR (OFF) when the computer receives “EOT” at the end of“Data” from the LM.

11)After the termination of communication, both the computer and LM are placed in thesame state as 1).

Note 1)The control process of the DTR signal is needed when the ComMode parameter is set to“NIDEK”. If the ComMode parameter is set to “PC”, the LM ignores the DTR signal on the computer side.Because the control and check processes of 4), 5), 9), and 10) can be omitted, a communica-tion program for the computer can be written easily. Because the LM does not confirm the sta-tus of DTR on the computer side even before sending data, the computer should ready for thereception of “Data” just after the transmission of “Command”.(The LM enables DTR (ON) at the same time when the computer enables DTR on conditionthat the LM is sending data or it is ready for communication.)

43

Page 48: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

COMMUNICATION PROCEDURE: Communication Control Signals (DTR Output to DSR Input)

Note 2)If the ComMode parameter is set to NIDEK, use caution not to leave the DTR signal enabled(ON).In 10) of the above example, unless the computer disables DTR (OFF), the LM misjudges thatthe computer will send the next “Command” etc. (State (4)) As a result, the LM enables DTR(ON) where it keeps waiting for “Command”. Although this operation of the LM causes no prob-lems, do not allow the computer to misjudge that the DTR is enabled (ON) on the LM side.If the computer is put into the wait state to wait for “Data” from the LM (State (7)), both the com-puter and LM are put into the wait sate, which appears to the operator that the computer pro-gram is stalled. “OPEN sentences” in BASIC language etc. automatically enables DTR (ON). Therefore, it isnecessary to control DTR by disabling DTR with “OUT sentences” etc. after that.

Note 3)If the ComMode parameter is set to NCP10, the LM ignores the DTR signal on the computerside. In addition, the LM does not send nor receive commands. The transmission of measureddata is enabled by pressing the print button on the LM-1000P/LM-1200 (or export button

of the LM-1000). Constantly place the computer in a state where it can receive mea-sured data.

44

Page 49: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

COMMUNICATION PROCEDURE: Actual Communications

3

3.3 Actual Communications

(1) Setting the computer

Set the parameters related to an RS-232C interface on the computer in accordance with thedescriptions in “1.1.1 Basic interface specifications (Page 1)”.

For the procedure for setting parameters, refer to the LM-1000, LM-1000P or LM-1200Operator’s Manual. It is allowed that the parameters are set by the communication program.

(2) Writing a communication program for the computer

Write a communication program for exchanging command and data with the LM.

(3) Setting the LM

Set the parameters related to the RS-232C interface on the LM in accordance with “1.1.1Basic interface specifications (Page 1)” to conform them to the settings on the computerside.

(4) Connecting an interface cable

Connect the computer and LM with an interface cable that conforms to the description of“1.1.2 Cable connection (Page 3)”.

(5) Execution of communication

Communications are started and controlled by the communication program on the computerside. There are three types of processes for the computer to receive measured data:• The LM requests the computer to receive measured data.

• The external computer requests the LM to send measured data.

• The computer controls all the operations of the LM: Measurement → Storage → Transmission ofmeasured data.

45

Page 50: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

COMMUNICATION PROCEDURE: Actual Communications

3.3.1 The LM requests the computer to receive measured data.Procedure for transmitting measured data to the computer by pressing the print button of theLM-1000P/LM-1200 (or export button of the LM-1000):

Note) If the LM receives no response from the computer in Step 1 (DTR remains disabled (OFF).), theLM only prints measured data; a communication error does not occur.

1 LM→After saving the measured data by pressing the read key of the LM, press the print button.The LM enables DTR (ON) and waits for a response from the computer.

2 ←COMThe computer confirms that DSR is enabled (= DTR of the LM) (ON) and enables DSR (ON).

3 LM→When the LM enables DSR (=DTR of the computer) (ON), it sends “RS command” to the computer to request the computer to send “SD command”.

4 ←COMWhen the computer receives “RS command”, it sends “SD command” and requests the LM to send “measured data”.

5 LM→When the LM receives “SD command”, it sends “measured data”. After the completion of transmission, the LM disables DTR (OFF) after confirming that DSR has been disabled (OFF).

6 →COMThe computer receives “measured data”. After receiving “EOT” at the end of the character string, the computer should disable DTR (OFF).

7 LM

After transmission of “measured data”, the LM prints data. After printout, the LM clears the measured data.

If the Printer parameter is set to OFF, only data transmission is enabled but printout is disabled. (The LM-1000 does not perform printout.)

46

Page 51: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

COMMUNICATION PROCEDURE: Actual Communications

3

3.3.2 The computer requests the LM to send measured data.Procedure for transmitting measured data saved by the actuation of the read key of the LM by control-ling the measured data from the computer:

Note) If the computer does not send “CL command” in step 7, the measured data remains in the LMeven after transmission. By repeating the processes 2. to 6., the computer can receive thesame data again.

1 LM→ Press the read key of the LM to save measured data.

2 ←COM The computer enables DTR (ON) to let the LM know that it is starting communication.

3 LM→When the LM confirms that DSR (= DTR of the computer) is enabled (ON), it enables DTR (On) to wait for “Command” from the computer.

4 ←COMWhen the computer conforms that DSR (=DTR of the LM) is enabled (ON), it sends “SD command” to request the LM to send “measured data”.

5 LM→When the LM receives “SD command”, it sends “measured data”. After the transmission of data, the LM disables DTR (OFF) after confirming that DSR is enabled (OFF).

6 →COMThe computer receives “measured data ”. After receiving “EOT” at the end of the character string, the computer should disable DTR (OFF).

7 ←COMIf necessary, after receiving EOT, the computer leaves DTR enabled (ON) and sends “CL command”. After sending the command, the computer disables DTR (OFF).

8 LM← When receiving “CL command”, the LM clears measured data.

47

Page 52: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

COMMUNICATION PROCEDURE: Actual Communications

3.3.3 The computer controls all the operations of the LM.Procedure for the computer to control the entire process: Measurement → Storage of measured data→ Transmission of measured data:

Note) If the computer sends “RD command” without waiting for the completion of measurement in 11,the LM does not accept “RD command”.

1 LM Place a lens on the nosepiece of the LM to put the LM into the measuring state.

2 ←COM The computer enables DTR (ON) to let the LM know that it is starting communication.

3 LM→When the LM confirms that DSR (=DTR of the computer) is enabled (ON), it enables DTR (ON) and waits for “Command” from the computer.

4 ←COMWhen the computer confirms that DSR (=DTR of the LM) is enabled (ON), it sends “RD command” to request the LM to “save measured data”.

5 LM← When the LM receives “RD command”, it saves the measured data.

6 ←COMThe computer sends “SD command” to request the LM to send “measured data” after waiting for about 0.1 seconds until the LM saves measured data.

7 LM→After receiving “SD command”, the LM sends “measured data”. After the transmission and confirmation that DSR has been disabled (OFF), the LM disables DTR (OFF).

8 →COMThe computer receives “measured data”. After receiving “EOT” at the end of the character string, the computer should disable DTR (OFF).

9 ←COMIf necessary, after the reception of “EOT”, the computer leaves DTR enabled (ON) and sends “CL command”. After transmission, the computer disables DTR (OFF).

10 LM← After receiving “CL command”, the LM clears measured data.

11 ←COM

To measure the next lens and receive measured data subsequently, the computer should clear the former data by sending “CL command” in 9. and 10. After placing the next lens on the nosepiece, the computer should wait for more than 0.5 seconds until the lens is measured (until the measured data is displayed on the screen after the former data is cleared) and repeat the process from 2.

48

Page 53: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

4. EXAMPLE OF COMMUNICATION PROGRAM

4

The communication program on the computer side should be written to handle such processes asdescribed in “3.3 Actual Communications” (Page 45). In this chapter, an example of communica-tion program is provided for reference.

4.1 Communication Program

A sample program for data communication to be installed to the computer is provided on the pageafter the next page. BASIC is used as a programming language.

In this example, the ComMode parameter on the LM should be set to NIDEK. Because communi-cation data input sentences in the BASIC language need “CR code”, the CR Code parametershould be set to ON.

1 Line 1000 to 1290: When the LM requests the computer to receive measured data:

For using the print button of the LM-1000P/LM-1200 (or export button of theLM-1000) to send measured data to the computer

<Procedure>

1) Enter the sample program. Connect the computer to the LM with the communicationcable in advance.

2) Type “RUN”, and press the Enter key to execute the program.

3) As the “Let’s Measure !!” message is displayed on the screen, measure a lens with theLM and press the read key to save measured data.

4) Press the print button of the LM-1000P/LM-1200 (or export button of theLM-1000).

5) The data is transmitted to the computer and the received data is displayed on the screen.

2 Line 2000 to 2260: When the external computer requests the LM to send measured data:

For controlling the computer to make the LM to send the measured data that has beensaved by the actuation of the read key.

Baud Rate 9600 (bps)

Parity (Parity check) ODD

Data Bits 8 bit

Stop Bits 1 bit

CR code Added

49

Page 54: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

EXAMPLE OF COMMUNICATION PROGRAM: Communication Program

< Procedure >

1) Enter the sample program. Connect the computer to the LM with the communicationcable in advance.

2) Type “RUN 2000” and press the Enter key to execute the program.

3) As the “Let’s Measure !!” message is displayed on the screen, measure a lens with theLM and press the read key to save measured data.

4) Press any key of the computer.

5) The data is transmitted and the received data is displayed on the screen.

3 Line 3000 to 3310: When the computer controls all the operations of the LM:

For making the computer control the entire processes: Measurement → Storage → Trans-mission of measured data → Clearing of measured data

< Procedure >

1) Enter the sample program. Connect the computer to the LM with the continuation cable inadvance.

2) Type “RUN 3000” and press the Enter key to execute the program.

3) As the “Let's Measure !!” message is displayed on the screen, measure a lens with theLM.

It is unnecessary to press the read key.

4) Press any key of the computer.

5) The data is transmitted and the received data is displayed on the screen.

6) After the transmission of data, the measured data in the LM is cleared.

Note 1: Lines 1100, 2110, and 3130 in the sample program have a command to open the RS-232C port and to enable DTR (ON). In addition, lines 1210, 2180 and 3230 have a com-mand to disable the RS-232C port and to disable DTR.

To enable DTR (ON) only, write as line 1140; to disable DTR (OFF) only, write as line 1110.

To check DSR, write as lines 1130, 2120, and 3140.

The address/data of the INP/OUT commands is for PC-9800 series. For the IBM (DOS/V)compatibles, write as:

DTR ON: OUT &H3FC,&HB

DTR OFF: OUT &H3FC,&HA

CHECK: (If INP(&H3FE) AND &H20)=&H0, DTR=OFF

Note 2) Lines 1280, 2250, 3160 and 3300 in the sample program are for allowing for time beforethe next line is executed. The time varies according to the execution speed of the com-puter.Understand the role of each line and change the number of “?” in “FOR I=1 TO ?????” asnecessary.

Line 1280 and Line 2250:Pause for the repeated execution of the program until DTR is disabled(OFF) on the LM and communications are completed. 0.2 seconds ormore

Line 3160: Pause until the LM receives “RD command” and saves measured data.0.1 seconds or more

50

Page 55: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

EXAMPLE OF COMMUNICATION PROGRAM: Communication Program

4

Line 3300: Pause until the LM receives “CL command”, clears measured data andcompletes the next measurement. 0.5 to 1 second or more

Reference) If the ComMode parameter is set to PC on the LM, the control/check process of DTRbecomes unnecessary; delete lines 1110, 1130, 1140, 2120, and 3140 in the sampleprogram.

10 '*************************************************************************20 '* *30 '* Input Data from LM-1000/1000P/1200 V1.00 *40 '* ( for NEC PC-9800/9821 ) by NIDEK 2004. 7.10 *50 '* *60 '*************************************************************************70 '80 ' SAVE "RS232C.BAS",A90 '1000 '-------------------------------------------------------------------------1010 ' READ SW(LM) --> PRINT SW(LM) --> RS(LM) --> SD(COMP) --> DATA(LM)1020 '-------------------------------------------------------------------------1030 CLEAR ,,,30001040 CHILD ("SWITCH RS232C-0 [9600]") ' set 9600 bit/sec1050 DIM LM$(210)1060 RS$=CHR$(1)+"C**"+CHR$(2)+"RS"+CHR$(23)+CHR$(4) ' RS command1070 SD$=CHR$(1)+"CLM"+CHR$(2)+"SD"+CHR$(23)+CHR$(4) ' SD command1080 FOR I=1 TO 210: LM$(I)="": NEXT I ' buffer clear1090 '1100 OPEN "COM:O81NN" AS #1 ' RS-232C & DTR on1110 OUT &H32,&H15 ' DTR off1120 PRINT: PRINT " ** Let's Measure !! ( and LM's PRINT sw on ! ) **"1130 IF (INP(&H32) AND &H80)=&H0 THEN 1130 ' check DSR on1140 OUT &H32,&H37 ' DTR on1150 INPUT #1,C$: IF C$<>RS$ THEN 1150 ' input RS command1160 PRINT #1,SD$ ' output SD command1170 FOR I=1 TO 2101180 INPUT #1,LM$(I) ' input DATA1190 IF LM$(I)=CHR$(4) THEN 1210 ' check 'EOT(04H)'1200 NEXT I1210 CLOSE #1 ' RS-232C & DTR off1220 '1230 BEEP1240 FOR I=1 TO 2101250 IF LM$(I)=CHR$(4) THEN 12801260 PRINT LM$(I) ' disp DATA1270 NEXT I1280 FOR I=1 TO 10000: NEXT I ' wait1290 GOTO 11001300 '

1310 '2000 '-------------------------------------------------------------------------2010 ' READ SW(LM) --> SD(COMP) --> DATA(LM)2020 '-------------------------------------------------------------------------2030 CLEAR ,,,30002040 CHILD ("SWITCH RS232C-0 [9600]") ' set 9600 bit/sec2050 DIM LM$(210)2060 SD$=CHR$(1)+"CLM"+CHR$(2)+"SD"+CHR$(23)+CHR$(4) ' SD command

51

Page 56: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

EXAMPLE OF COMMUNICATION PROGRAM: Communication Program

2070 FOR I=1 TO 210: LM$(I)="": NEXT I ' buffer clear2080 '2090 PRINT: PRINT " ** Let's Measure !! ( and COMPUTER's any key on ! ) **"2100 K$=INKEY$: IF K$="" THEN 21002110 OPEN "COM:O81NN" AS #1 ' RS-232C & DTR on2120 IF (INP(&H32) AND &H80)=&H0 THEN 2120 ' check DSR on2130 PRINT #1,SD$ ' output SD command2140 FOR I=1 TO 2102150 INPUT #1,LM$(I) ' input DATA2160 IF LM$(I)=CHR$(4) THEN 2180 ' check 'EOT(04H)'2170 NEXT I2180 CLOSE #1 ' RS-232C & DTR off2190 '2200 BEEP2210 FOR I=1 TO 2102220 IF LM$(I)=CHR$(4) THEN 22502230 PRINT LM$(I) ' disp DATA2240 NEXT I2250 FOR I=1 TO 10000: NEXT I ' wait2260 GOTO 20902270 '2280 '3000 '-------------------------------------------------------------------------3010 ' RD(COMP) --> SD(COMP) --> DATA(LM) --> CL(COMP)3020 '-------------------------------------------------------------------------3030 CLEAR ,,,30003040 CHILD ("SWITCH RS232C-0 [9600]") ' set 9600 bit/sec3050 DIM LM$(210)3060 RD$=CHR$(1)+"CLM"+CHR$(2)+"RD"+CHR$(23)+CHR$(4) ' RD command3070 SD$=CHR$(1)+"CLM"+CHR$(2)+"SD"+CHR$(23)+CHR$(4) ' SD command3080 CL$=CHR$(1)+"CLM"+CHR$(2)+"CL"+CHR$(23)+CHR$(4) ' CL command3090 FOR I=1 TO 210: LM$(I)="": NEXT I ' buffer clear3100 '3110 PRINT: PRINT " ** Let's Measure !! ( and COMPUTER's any key on ! ) **"3120 K$=INKEY$: IF K$="" THEN 31203130 OPEN "COM:O81NN" AS #1 ' RS-232C & DTR on3140 IF (INP(&H32) AND &H80)=&H0 THEN 3140 ' check DSR on3150 PRINT #1,RD$ ' output RD command3160 FOR I=1 TO 5000: NEXT I ' wait3170 PRINT #1,SD$ ' output SD command3180 FOR I=1 TO 2103190 INPUT #1,LM$(I) ' input DATA3200 IF LM$(I)=CHR$(4) THEN 3220 ' check 'EOT(04H)'3210 NEXT I3220 PRINT #1,CL$ ' output CL command3230 CLOSE #1 ' RS-232C & DTR off3240 '3250 BEEP3260 FOR I=1 TO 2103270 IF LM$(I)=CHR$(4) THEN 33003280 PRINT LM$(I) ' disp DATA3290 NEXT I3300 FOR I=1 TO 30000: NEXT I ' wait3310 GOTO 3110

52

Page 57: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

EXAMPLE OF COMMUNICATION PROGRAM: Flowchart

4

4.2 Flowchart

START

PRINT SW : ON

INITIALIZE

OPEN

DTR = LOW

CHECK DSROFF

ON

DTR : ON

NO

YES

RS COM. ?

OUTPUT

SD COMMAND

INPUT DATA

‘EOT’ ?NO

YES

DTR = OFF

DISPLAY DATA

END

DSR = ON

CHECK DSR

OUTPUT

RS COMMAND

OFF

ON

NO

YES

SD COM. ?

OUTPUT DATA

OUTPUT ‘EOT’

DTR : LOW

PRINT OUT

(1000)

(1100)

(1110)

(1130)

(1140)

(1150)

(1160)

(1180)

(1190)

(1210)

(1260)

(1290)

Initialization

Opening the RS-232C port

Disabling DTR that was enabled by 'OPEN'

The LM enables DTR (ON) and waits for thestart of communication.

The computer enables DTR (ON) and startscommunication.

Waiting for the RS comment to be sent

Transmission of the SD command

Reception of DATA from the LM

End of data at the reception of 'EOT'

DTR (OFF) is disabled by 'CLOSE'.

Displaying received DATA

The process is repeated by the program.

< LM-1000/ LM-1000P/ LM-1200 > < Computer > ExplanationNumbers in parentheses are line Nos. inthe sample program.

53

Page 58: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

EXAMPLE OF COMMUNICATION PROGRAM: Flowchart

START

INITIALIZE

OPEN

CHECK DSROFF

ON

OUTPUT

SD COMMAND

INPUT DATA

‘EOT’ ?NO

YES

DTR = OFF

DISPLAY DATA

END

CHECK DSROFF

ON

NO

YES

SD COM. ?

OUTPUT DATA

OUTPUT ‘EOT’

DTR = OFF

(2000)

(2110)

(2120)

(2130)

(2150)

(2160)

(2180)

(2230)

(2260)

DSR = ON

Initialization

Opening the RS-232C port. DTR is left en-abled (ON) because communication isstarted immediately.

The LM enables DTR (ON) and waits for thestart of communication.

Transmission of the SD command

Reception of DATA from the LM

End of data at the reception of 'EOT'

DTR is disabled (OFF) by 'CLOSE'.

Displaying received DATA

The process is repeated by the program.

< LM-1000/ LM-1000P/ LM-1200 > < Computer > ExplanationNumbers in parentheses are line Nos. inthe sample program.

54

Page 59: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

EXAMPLE OF COMMUNICATION PROGRAM: Flowchart

4

START

INITIALIZE

OPEN

CHECK DSRNO

YES

OUTPUT

RD COMMAND

INPUT DATA

‘EOT’ ?NO

YES

DTR = OFF

DISPLAY DATA

END

DSR = ON

CHECK DSROFF

ON

NO

YES

SD COM. ?

OUTPUT DATA

OUTPUT ‘EOT’

CLEAR PROCESS

(3000)

(3130)

(3140)

(3150)

(3190)

(3200)

(3230)

(3280)

(3310)

OUTPUT

CL COMMAND(3220)

WAIT 0.5sec (3300)

WAIT 0.1sec (3160)

OUTPUT

SD COMMAND(3170)

NORD COM. ?

READ PROCESS

NO

YES

CL COM. ?

DTR = OFF

YES

Initialization

Opening the RS-232C port. DTR is left en-abled (ON) because communication isstarted immediately.

The LM enables DTR (ON) and waits untilthe communication is ready.

Transmission of the RD command

The computer waits for about 0.1 secondsuntil the LM handles the RD command.

Transmission of the SD command

Reception of DATA from the LM

End of data at the reception of 'EOT'

Transmission of the CL command

DTR is disabled (OFF) by 'CLOSE'.

Displaying received DATA

Wait for 0.5 to 1 second or more until thenext measurement

< LM-1000/ LM-1000P/ LM-1200 > < Computer > ExplanationNumbers in parentheses are line Nos. inthe sample program.

The process is repeated by the program.

55

Page 60: AUTO LENSMETER Model LM-1000/ 1000P/ 1200

EXAMPLE OF COMMUNICATION PROGRAM: Flowchart

56