Академический Документы
Профессиональный Документы
Культура Документы
Model
Mo ARK-530A/ARK-510A
INTERFACE MANUAL
September 2009
Pages in total - 52
XRK8A*RTZ001B/E
NIDEK CO., LTD. : 34-14, Maehama, Hiroishi-cho, Gamagori, Aichi 443-0038, Japan
(Manufacturer) Telephone: +81-533-67-6611
Facsimile: +81-533-67-6610
NIDEK CO., LTD : 3F Sumitomo Fudosan Hongo Bldg., 3-22-5, Hongo,
(Tokyo Office) Bunkyo-Ku, Tokyo 113-0033, Japan
Telephone: +81-3-5844-2641
Facsimile: +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-5750
NIDEK 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
Table of Contents
1. OUTLINE OF COMMUNICATION. . . . . . . . . . . . . . . . . . . . 3
1.1 Interface Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3
2. RS-232C COMMUNICATION . . . . . . . . . . . . . . . . . . . . . . . 5
2.1 Outline of RS-232C Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5
2.1.1 Communication sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7
2.2 Data Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9
2.2.1 Command format (with “NIDEK”) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9
2.2.2 Data format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10
2.2.3 CR (Carriage Return) Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18
2.3 Communication Program. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19
2.3.1 Interface between the ARK-530A/510A and external PC . . . . . . . . . . . . . . . . . . . .19
2.3.2 Flow of sample program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20
2.3.3 Sample program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .22
3. LAN COMMUNICATION . . . . . . . . . . . . . . . . . . . . . . . . . . 27
3.1 Outline of LAN Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .27
3.1.1 Outline of communication function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .27
3.1.2 Reception structure of measurement data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28
3.2 Data Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29
3.2.1 Folder configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29
3.2.2 Measurement data (image data) output file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29
3.2.3 Response to data acquisition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .30
3.2.4 XML file configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .31
3.2.5 Style sheet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .31
3.2.6 XML file sample . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32
1
:
2
1. OUTLINE OF COMMUNICATION
The ARK-530A/510A comes equipped with the following two types of interface to transfer measure-
ment data to external computers:
• RS-232C interface
• LAN interface
This interface manual describes the method of receiving measurement data from the ARK-530A/510A
using the RS-232C interface in Chapter 2 and the LAN interface in Chapter 3.
3
OUTLINE OF COMMUNICATION: Interface Type
4
2. RS-232C COMMUNICATION
This chapter describes the specifications for the interface for data transmission between the ARK-
530A/510A and a personal computer, etc.
As the Transmission system, Parity check, and Stop bit length are fixed as above, it is necessary for
the external computer to conform to these specifications.
5
RS-232C COMMUNICATION: Outline of RS-232C Communication
{ Cable connection
㧝 㧝
4'& 4'&
4:& 㧞 㧞 6:&
140 140
6:& 㧟 㧟 4:&
$.7 ;'.
&64 㧠 㧠 465
External computer $.74'&
ARK-530A/510A
5)0& 㧡 㧡 %65
Serial communication Interface connector
)4; $.7
&54 㧢 㧢 &54
port
;'. $.74'&
(RS-232C) 465 㧣 㧣 5)0&
)4;
%65 㧤 㧤 &64
㧥 㧱 ()0&
()0& 㧱
5 1 2
5 4
8
3 1
7 6
9 6
Connect the ARK-530A/510A interface port and the serial communication port (RS-232C) of
the external computer with the above interface cable (Model: OPIF-15).
This interface cable allows the “71. I/F MODE” parameter to be set either to “Nidek” or “NCP10”.
Connection to the external computer by any means other than that specified above (Dsub 9P) needs a
conversion adapter.
6
RS-232C COMMUNICATION: Outline of RS-232C Communication
With “NIDEK”, the transmission sequence is the same as the conventional transmission sequence.
With “NCP10”, press the button to transmit data. Because “NCP10” does not need complicated
controls such as the DTR control, DSR control, RS command control, SD command control, etc., it
allows easier communication compared with “NIDEK”. However, with “NCP10”, data transmission in
response to a request from the personal computer is not available. Select a transmission sequence
that suits your needs or purposes.
Data
Sending
end Same timing
Data
Same timing
Receiving
end
7
RS-232C COMMUNICATION: Outline of RS-232C Communication
8
RS-232C COMMUNICATION: Data Format
1 RS command
Sends a request for 2 SD command to the external computer from the ARK-530A/510A. 2
SOH C * * STX R S ETB EOT
01H 43H 2AH 2AH 12H 52H 53H 17H 04H H: HEX (Hexadecimal)
2 SD command
Sends a request for measurement data transmission to the ARK-530A/510A from the exter-
nal computer.
1) For requesting AR measurement data:
This process clears the above commands. This is the equivalent of pressing the print button
( ), after which preparations for the next measurement are made.
When the measurement is started after preparation, the previous data is cleared and the
next patient is measured.
9
RS-232C COMMUNICATION: Data Format
{ Basic format
1) AR measurement data:
2) KM measurement data:
When the ARK-530A/510A receives the SD command, data transmission is started in this format.
When the “71. I/F MODE (Interface Mode)” parameter is set to “NCP10”, four digits of checksum are
added after “EOT” in each data format.
10
RS-232C COMMUNICATION: Data Format
{ Data
The number inside the parentheses indicates the number of characters transmitted.
I D N I D E K / A R K - 5 3 0 A
I D N I D E K / A R K - 5 1 0 A
2
ID code Company name Model name (ARK-510A)
When the “72. I/F FORMAT” parameter is set to “SHORT” and a request for KM data only is
sent (see “2 SD Command” of 2.1), the company name and model name are not transmitted.
2 Patient number
N O 0 1 2 3
3 Patient ID
Transfer the data when the patient ID is inputted by the bar code reader.
I P 0 1 2 3 4 5 6 7 ••• 27 28 29 30
D A 2 0 0 6 . 0 5 . 1 2 . 0 1 : 2 3 P M
Date Year (4) Month Date (2) Hour (2) Minute AM/PM
code (2) (2) (2)
D A M A Y / 1 2 / 2 0 0 6 . 0 1 : 2 3 P M
Date Month (3) Date (2) Year (4) Hour (2) Minute AM/PM
code (2) (2)
D A 1 2 / M A Y / 2 0 0 6 . 0 1 : 2 3 P M
Date Date (2) Month (3) Year (4) Hour (2) Minute AM/PM
code (2) (2)
11
RS-232C COMMUNICATION: Data Format
D A 2 0 0 6 . 0 5 . 1 2 . 0 1 : 2 3
D A M A Y / 1 2 / 2 0 0 6 . 0 1 : 2 3
Date Month (3) Date (2) Year (4) Hour (2) Minute
code (2)
D A 1 2 / M A Y / 2 0 0 6 . 0 1 : 2 3
Date Date (2) Month (3) Year (4) Hour (2) Minute
code (2)
5 Vertex distance
V D 1 2 . 0 0
W D 4 0
Working
WD code distance
(2)
O L - 0 5 . 2 5 - 0 0 . 7 5 1 0 9 9 *
O R - 0 5 . 0 0 - 0 0 . 5 0 0 3 4 8 *
12
RS-232C COMMUNICATION: Data Format
O R - 0 5 . 0 0 - 0 0 . 5 0 0 3 4 E *
4) Error data
2
When “46. ERROR PRINT” is set to “YES”, the measurement errors are stored in memory
and transmitted together with AR measurement data.
E R + 0
ERROR Type of
code error (2)
13
RS-232C COMMUNICATION: Data Format
C L - 0 5 . 2 5 - 0 0 . 7 5 1 0 9
C R - 0 5 . 0 0 - 0 0 . 5 0 0 3 4
When “54. CL PRINT” is set to “NO”, contact lens conversion data is not transmitted.
9 Optimum trial lens data
1) Left eye data
T L - 0 5 . 2 5 - 0 0 . 7 5 1 0 9
T R - 0 5 . 0 0 - 0 0 . 5 0 0 3 4
When the “53. TL PRINT” parameter is set to “NO”, trial lens data is not transmitted.
When the median value could not be obtained from the objectively measurement result, the
data is not transmitted.
10 PD measurement
1) When both right and left PD values are measured:
P D 6 8 3 5 3 3 6 3
N. PD (2)
PD code PD (2) RPD (2) LPD (2) (Near point
(2) PD)
P D 6 8 ? ? ? ? ? ?
N. PD (2)
PD code PD (2) RPD (2) LPD (2) (Near point
(2) PD)
When the “55. NEAR PD PRINT” parameter is set to “NO”, only “??” in N.PD is transmitted.
When the PD values are measured more than one time, the measurement PD data is trans-
mitted in order of acquisition time with the latest PD data first. However, when the “72. I/F
FORMAT” parameter is set to “SHORT”, only the latest PD value is transmitted.
14
RS-232C COMMUNICATION: Data Format
11 KM measurements
When median values have been obtained after three or more measurements, the median
values are transmitted first and then respective items of data are transmitted (in order of
acquisition time with the latest data first). Order of R/L: L Æ R.
When the “72 I/F FORMAT” parameter is set to “SHORT”:
• Only KM median values are transmitted.
• When median values could not be obtained, only the latest KM measurement data is transmitted.
• Data (D: in diopter) is not transmitted.
KM measurement (center) 2
1) Left eye (mm) data
L 0 7 . 9 5 0 7 . 7 1 1 7 6 0 7 . 8 3
D L 4 2 . 4 5 4 3 . 7 7 1 7 6 4 3 . 1 1
- 0 1 . 3 2
CYL (6)
R 0 7 . 8 6 0 7 . 5 3 1 7 5 0 7 . 7 0
D R 4 2 . 9 4 4 4 . 8 2 1 7 5 4 3 . 8 8
- 0 1 . 8 8
CYL (6)
15
RS-232C COMMUNICATION: Data Format
KM peripheral measurement
E L 0 7 . 9 8 0 7 . 9 6 1 7 4 0 7 . 9 7
H L 4 2 . 2 5 4 2 . 5 0 1 7 4 4 2 . 3 8
- 0 0 . 2 5
CYL (6)
E R 0 7 . 9 3 0 7 . 9 1 1 7 5 0 7 . 9 2
H R 4 2 . 5 0 4 2 . 7 5 1 7 5 4 2 . 6 3
- 0 0 . 2 5
CYL (6)
16
RS-232C COMMUNICATION: Data Format
S L 1 1 . 5
P L 0 6 . 0 F
P R 0 6 . 0 N
“Target lamp” transfers the state of the target lamp during the PS measurement.
N Target lamp ON
14 Checksum
When the “71. I/F MODE” parameter is set to “NCP10”, a checksum is added to the data for-
mat. It is added after “EOT” of each data format.
The checksum is represented by four hexadecimal digits. The value of the checksum is the
simple sum of “SOH” to “EOT” in the data format. However, the “CR” code is not included
into the calculation of the checksum when the “CR” code is added.
17
RS-232C COMMUNICATION: Data Format
0DH
ETB CR EOT CR
“CR” code is added to the end of the “ETB” code and the end of data.
3 Data with “CR” code (When the “71. I/F MODE” parameter is set to “NCP10”)
ETB CR EOT C1 C2 C3 C4 CR
Checksum
“CR” code is added to the end of the “ETB” code and the end of data.
18
RS-232C COMMUNICATION: Communication Program
See “2.12 Parameter Settings” in the operator’s manual for the method of setting parame-
ters.
4 Measure eyes with the ARK-530A/510A and press the print button when the
sample program is running.
When data is transmitted successfully, measurement data is displayed on the monitor of the
computer.
ARK-530A
When the I/F MODE parameter is set to NIDEK When the I/F MODE parameter is set to NCP10
19
RS-232C COMMUNICATION: Communication Program
External computer
ARK-530A/510A
20
RS-232C COMMUNICATION: Communication Program
External computer
ARK-530A/510A
21
RS-232C COMMUNICATION: Communication Program
'****************************************************
' Input DATA from ARK/AR for PC/AT
' Sample Program for I/F Mode = NIDEK
' (Visual Basic Ver6.0)
'****************************************************
' Setting of ARK
' I/F Mode = NIDEK
' Baud-Rate = 9600
' Bit Length = 8
' CR Code = YES
'
Dim TimeupFlag, RecEotFlag As Integer
Dim Buf, L_Buf As String
End Sub
Text1.Text = ""
Label3.Caption = "Initializing..."
' Open COM1 Port
If MSComm1.PortOpen = False Then
MSComm1.PortOpen = True
MSComm1.DTREnable = False
Timer1.Enabled = False
Timer1.Interval = 2000
Timer1.Enabled = True: TimeupFlag = False
Do ' Waiting for DSR turn off
DoEvents
Loop Until TimeupFlag = True
End If
Label3.Caption = "Waiting for RS command (DSR)"
L_Buf = "": RecEotFlag = False
Do ' Check DSR
DoEvents
Loop Until MSComm1.DSRHolding = True
Label3.Caption = "Waiting for RS command (Text)"
Timer1.Interval = 5000
Timer1.Enabled = True: TimeupFlag = False
MSComm1.DTREnable = True
Do ' Waiting for RS command
DoEvents
If TimeupFlag = True Then
Exit Do
End If
Loop Until RecEotFlag = True
If L_Buf = CXX_RS Then
Label3.Caption = "Waiting for SD command transmitting (DSR)"
L_Buf = "": RecEotFlag = False
Do ' Check DSR
DoEvents
22
RS-232C COMMUNICATION: Communication Program
23
RS-232C COMMUNICATION: Communication Program
'******************************************************
' Input DATA from ARK/AR for PC/AT
' Sample Program for I/F Mode = NCP10
' (Visual Basic Ver6.0)
'******************************************************
' Setting of ARK
' I/F Mode = NCP10
' Baud-Rate = 9600
' Bit Length = 8
' CR Code = YES
'
Dim TimeupFlag, RecEotFlag As Integer
Dim Buf, L_Buf As String
End Sub
Text1.Text = ""
Label3.Caption = "Initializing..."
' Open COM1 Port
If MSComm1.PortOpen = False Then
MSComm1.PortOpen = True
End If
L_Buf = ""
RecEotFlag = False
TimeupFlag = False
Timer1.Enabled = False
Label3.Caption = "Waiting for DATA receiving"
Do ' Waiting for Data
DoEvents
If RecEotFlag = True Then
Exit Do
End If
Loop Until TimeupFlag = True
24
RS-232C COMMUNICATION: Communication Program
s = Len(L_Buf)
If s > 4 Then
If Mid$(L_Buf, s - 4, 1) = Chr(4) Then ' Search EOT before checksum
RecEotFlag = True
Timer1.Enabled = False
End If
End If
Case comEvCTS
Case comEvDSR
Case comEvCD
Case comEvRing
Case comEvEOF
Case Else
MsgBox "Error", vbCritical
End Select
End Sub 2
25
RS-232C COMMUNICATION: Communication Program
26
3. LAN COMMUNICATION
Network settings such as the IP address and file share of external computers need to be specified accord-
ing to the network setting manual of the AR-310A, AR-330A, AR-360A, ARK-510A, ARK-530A, ARK-560A.
{ Cable connection
Connect the LAN cable to the LAN connector on the underside of the device.
Connect the other end of the LAN cable to the hub to which the receiver PC is connected.
Network hub
LAN cable
ARK-530A/510A Receiver PC
27
LAN COMMUNICATION: Outline of LAN Communication
Receiver PC
Filing software
Transmission of measured
data from the device via LAN
Database
Shared folder
Measurement data transmitted via LAN are written in the shared folder set in the receiver PC. Mea-
surement data is written in XML format in the shared folder. When there is image data, JPEG format
files are written in the shared folder. Then, measurement data is extracted by filing software and saved
in the database.
28
LAN COMMUNICATION: Data Format
When no style sheet file (RKT_style.xsl) is found in the TXT folder, a style sheet file is also output.
When a style sheet file exists, a new file is not ouput.
29
LAN COMMUNICATION: Data Format
{ File name
File names of measurement data (image data) transmitted from the device to the receiver PC are as fol-
lows:
ID characters that cannot be used for file names are all converted to tilde (∼).
XML extension
Header 3 characters fixed ID14 characters fixed Date and time 14 characters fixed (3 characters fixed)
ARK (If no characters, space is entered.) (YYYYMMDDHHMMSS)
Header 3 characters fixed ID14 characters fixed Date and time 14 characters fixed JPEG extension
ARK (If no characters, space is entered.) (YYYYMMDDHHMMSS) (3 characters fixed)
30
LAN COMMUNICATION: Data Format
31
LAN COMMUNICATION: Data Format
32
LAN COMMUNICATION: Data Format
33
LAN COMMUNICATION: Data Format
34
LAN COMMUNICATION: Data Format
35
LAN COMMUNICATION: Data Format
</PD>
</Data>
36
4. EXAMPLE OF RECEIVED DATA
{ Sample printout
Patient number
Patient ID
Name and sex
Data and time of measurement
Vertex distance
Near working distance
KM measurement (center)
Right eye: 1st, KM data
KM peripheral measurement
Right eye: 1st, KM data (P)
37
EXAMPLE OF RECEIVED DATA: Example of Measurement Data Received by PC
KM measurement (center)
Left eye: 1st, KM measurement data
KM peripheral measurement
Left eye: 1st, KM data (P)
38
EXAMPLE OF RECEIVED DATA: Example of Measurement Data Received by PC
39
EXAMPLE OF RECEIVED DATA: Example of Measurement Data Received by PC
40
EXAMPLE OF RECEIVED DATA: Example of Measurement Data Received by PC
41
EXAMPLE OF RECEIVED DATA: Example of Measurement Data Received by PC
42
EXAMPLE OF RECEIVED DATA: Example of Measurement Data Received by PC
43
EXAMPLE OF RECEIVED DATA: Example of Measurement Data Received by PC
44
EXAMPLE OF RECEIVED DATA: Sample Printout of KM Data when the I/F FORMAT Parameter is Set to Short
{ Sample printout
Patient number
Name and sex
Data and time of measurement
4
Right eye: Corneal size and pupil size measurements
Comments
The above sample example is produced when the SD command is CKM. (See (2) SD command
of 2.1.) Because the “72. I/F FORMAT” parameter is set to “SHORT”, only KM median values
(mm) are transmitted.
The company name, model name, corneal size and pupil size data are not transmitted.
45
EXAMPLE OF RECEIVED DATA: Transmission of Sagittal Measurement Data
DKM
NO.0001 %4
DAMAY/18/2006.10:50AM %4
L08.5107.8410008.18 % 4
DL39.6643.0510041.36-03.39 %4
FA25 %4
LS07.8608.53+0.16A %4
LI07.8608.53+0.16A % 4
LT08.5507.87+0.24A %4
LN08.5507.87+0.24A %4
LE+0.24+0.16+0.20 % 4
LR07.8708.5208.18+0.67 %4
LA-03.39-03.26-00.13 %4 %4
= 01H SOH
= 02H STX
= 17H ETB
= 04H EOT
%4 = 0DH % 4 is added in accodance with setting.
46
EXAMPLE OF RECEIVED DATA: Transmission of Sagittal Measurement Data
Cylindrical diopters and its differences at center and peripheral : ASTc(6), ASTp(6), dAST(6)
Central corneal cylinder diopter : (ASTc)
Peripheral corneal cylinder diopter : (ASTp)
Difference of corneal cylinder diopter
between center and peripheral : (dAST)
* When data are output, all data are printed out with the above format regardless the Sagittal printing
format.
47
EXAMPLE OF RECEIVED DATA: Interface Error Messages
If any error occurs during communications with the external computer, the corresponding error
message is displayed on the LCD screen.
ERROR
Display Description Symptom
CODE
11 ERR011 Time-out error (OUT) in characters Communication breaks during data reception.
22 ERR022 Time-out error (IN) for receiving data DSR is not flagged while SD command is sent.
48
EXAMPLE OF RECEIVED DATA: Interface Error Messages
ERROR
Display Description Symptom
CODE
• Check the LAN cable connection.
• File sharing error
700 ERR700 • Check that the IP address or subnet mask is
Windows file sharing error
correct on the NETWORK setting screen.
• Hardware error
703 ERR703 • Replace BA01.
IC error
• PC name error
• Check that the computer name specified by the 4
PC NAME parameter on the NETWORK setting
754 ERR754 The specified PC name does not
screen is correct or that LAN is properly
exist.
connected.
• Log-on error
Logging on the PC is not possible • Entry in the user name or password field on the
756 ERR756
(The user name or password is NETWORK setting screen is incorrect.
incorrect.)
• Time-out error
• Reduce the PC processing load. (Reduce the
758 ERR758 Timeout (The PC did not finish the
resident software).
process in a specified time.)
• Access authority error • Check the file sharing setting of the shared folder
761 ERR761
File sharing setting is improper. of the connected PC.
• Account error
762 ERR762 The account is disabled. (The user • Enable the account of the connected PC.
setting is improper.)
49
EXAMPLE OF RECEIVED DATA: Interface Error Messages
ERROR
Display Description Symptom
CODE
• The deleting process of measurement data files
by the receiver software did not finish within the
• ACK error specified time. Check that the software operates
772 ERR772
There is no response from the PC. properly. If it occurs frequently, retry connection
after setting the NETWORK parameter from ACK
to YES.
50