59
COMMUNICATION PROCEDURE (other than NCP20)
:
Example of Communication Program
MLM26*RTZ002F
3
3.4
Example of Communication Program
The communication program on the computer should be written to handle such processes as
described in "3.3. Actual Communications (Page 55)". In this section, an example of communica-
tion program is provided for reference.
3.4.1
Communication Program
A sample program for data communication to be installed to the computer is provided on the page
after the next page. BASIC is used as a programming language.
In this example, the Com mode parameter on the LM should be set to “NIDEK”. Because commu-
nication data input sentences in the BASIC language need “CR code”, the CR code parameter
should be set to On.
1Line 1000 to 1290: When the LM requests the computer to receive the measurement data:
For using the print button
(or export button
) to send the measurement data to the
computer
<Procedure>
1) Enter the sample program. Connect the computer to the LM with the communication cable 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 the LM and
press the read key to save the measurement data.
4) Press the print button
(or export button
).
5) The data is transmitted to the computer and the received data is displayed on the screen.
2Line 2000 to 2260: When the external computer requests the LM to send the measurement
data:
For controlling the computer to make the LM to send the measurement data that has been
saved by the actuation of the read key.
Baud rate
9600 (bps)
Parity (Parity check)
Odd
Data bits
8bit
Stop bits
1bit
CR code
On
Summary of Contents for LM-1800P
Page 1: ...INTERFACE MANUAL MLM26 RTZ002F LM 1800P LM 1800PD AUTO LENSMETER...
Page 6: ...2 OUTLINE OF COMMUNICATION Outline of Communication Function MLM26 RTZ002F...
Page 54: ...50 RS 232C Communication and USB Communication Example of Data Output MLM26 RTZ002F...
Page 70: ...66 COMMUNICATION PROCEDURE other than NCP20 Flowchart MLM26 RTZ002F...