Sta R ANCG218 I
Sta R ANCG218 I
Sta R ANCG218 I
USER INTERFACE
RS232-C
Réf. : 27634
ANCG218
is a trademark registered
by Diagnostica Stago
USER INTERFACE/RS232-C STA-R ANCG218
Table of Contents
TABLE OF CONTENTS
1. Physical Characteristics 1
2. Standards 1
3. Terminology 1
5. Exchange Protocol 4
6. Record Definitions 5
V 1.0 – March 02 I
Table of Contents ANCG218
USER INTERFACE/RS232-C STA-R
8. Flowcharts (ASTM) 17
II V 1.0 – March 02
USER INTERFACE/RS232-C STA-R ANCG218
Revision Table
Revision Table
V 1.0 – March 02 i
ANCG218
USER INTERFACE/RS232-C STA-R ANCG218
1. Physical Characteristics
• Interface: Series type, RS232C standard
• Baud Rate (*): 300, 600, 1200, 2400, 4800 or 9600 baud;
• Data Bit(*): 7 or 8;
2. Standards
The ASTM connection protocol on STA-R is based on the two following standards:
− E 1381-94 : Specification for Low-Level Protocol to transfer messages between Clinical
Laboratory Instruments and Computer Systems,
− E 1394-97 : Standard Specification for transferring information between Clinical Instruments and
Computer Systems.
3. Terminology
V 1.0 – March 02 1
ANCG218
USER INTERFFACE/RS232-C STA-R
Record: This is the DATA as described within the frame. If the DATA is longer
than 240 characters, then it must be split into two parts and sent in
two frames. The intermediate frame will use the [ETB] character, and
the ending frame will use the [ETX] character.
For our application:
in download mode, a frame may include several records, indeed a
message;
in upload mode, one frame is used for sending each record.
List of records selected:
− H (Header);
− P (Patient);
− O (Order);
− R (Result);
− Q (Query);
− L (Terminator);
− M (Manufacturer).
Calculation of Frame Checksum = the checksum is computed by adding the binary values of the
characters (except for [STX], [C1], [C2], [CR] and [LF]), keeping the least significant eight bits of the
result. The checksum is encoded as two characters.
For example a checksum of 122 can be represented as 7A in hexadecimal, 7 [C1] then A [C2]: the
checksum will be transmitted as the ASCII character one after the other one.
2 V 1.0 – March 02
USER INTERFACE/RS232-C STA-R ANCG218
4. Communication Menu and sequence number
This STA-R menu is used, , amongst other things, to define the communication parameters between
the STA-R and the host computer.
An automatically incremented sequence number is generated by the STA-R® when a new patient file
is created. This number is added to the data transmitted when the STA-R® uploads a result to the
host.
− Location in the message: frame Order, field 4 Instrument Specimen ID
− Value: between 1 through 9999
− Reset: when the value 9999 is reached
− Application : Type 1 for the key SendNumberSequence in the file OptionsGlobales.ini, section
[Communications]
V 1.0 – March 02 3
ANCG218
USER INTERFFACE/RS232-C STA-R
5. Exchange Protocol
• If the STA-R is in the Rx reception line mode and a header record has been received, the
STA-R then changes to Idle line mode (releasing the line); the STA-R then analyses the
records received;
a) Establishment Phase
If the line mode is Idle, the STA-R sends an [ENQ] character (enquiry).
The following are the possible responses from the host computer:
4 V 1.0 – March 02
USER INTERFACE/RS232-C STA-R ANCG218
"Number of On Error Retries is reached, the STA-R changes to termination phase (transmission
of an [EOT] character) and displays an error message.
☞ Caution! The STA-R regards the [EOT] character as an acknowledgement character and
continues to transmit records.
The STA-R transmits an [EOT] character and does not wait for any return character.
[ENQ] ---------->
<---------- [ACK] or [EOT]
[STX] 1 [DATA1] [ETX] [C1] [C2] [CR] [LF] ---------->
<---------- [ACK] or [EOT]
[STX] 2 [DATA2] [ETX] [C1] [C2] [CR] [LF] ---------->
<---------- [ACK] or [EOT]
[STX] 3 [DATA3] [ETX] [C1] [C2] [CR] [LF] ---------->
<---------- [ACK] or [EOT]
[EOT] ---------->
No response expected
6. Record Definitions
V 1.0 – March 02 5
ANCG218
USER INTERFFACE/RS232-C STA-R
6 V 1.0 – March 02
USER INTERFACE/RS232-C STA-R ANCG218
Paragraph's Character Field Description Supported
Number of
7.1.12 | Processing ID
P P = Production Yes No
Q = Quality Control Yes No
T = Training No No
D = Debugging No No
7.1.13 | Version No. Yes No
1.00 = Version level of ASTM
specifications (E 1394-97)
7.1.14 | Date and Time of Message Yes Yes
199902261 Format: yyyymmddhhmmss
03432 yyyy = year
mm = month
dd = day
hh = hour
mm = minutes
ss = seconds
[CR] carriage return
V 1.0 – March 02 7
ANCG218
USER INTERFFACE/RS232-C STA-R
Note: Fields 8.1.9 to 8.1.35 as defined in the ASTM Specifications E 1394-97 are not supported. In
downloading (Host → STA-R), if these fields exist, they are ignored. In uploading (STA-R →
Host), we use the short record format described above.
8 V 1.0 – March 02
USER INTERFACE/RS232-C STA-R ANCG218
6.3 Test Order Record
Purpose:
− In downloading (Host → STA-R), this record is used by the host computer to give orders to the
instrument (STA-R): list of tests to be run;
− In uploading (STA-R → Host), this record is used by STA-R to give the sample identification.
O | 1 | 00120025 | | | R [CR]
Description of a Test Order Record:
^
^
^
V 1.0 – March 02 9
ANCG218
USER INTERFFACE/RS232-C STA-R
11 = ID of the second
requested test ➊
\ = Repeat field delimiter
^
^
^
12 = ID of the third requested
test ➊
9.4.6 | Priority
R R = Routine Yes Yes
S = Stat Yes Yes
A = As soon as possible No No
C = Callback No No
P = Preoperative No No
[CR] Carriage Return
➊ For STA-R, these identifications are the transmission test numbers defined for each test main
units.
Note: Field 9.4.7 to 9.4.31 as defined in the ASTM Specifications E 1394-97 are not
supported. In downloading (Host → STA-R), if these fields exist, they are ignored. In
uploading (STA-R → Host), we use the short record format described above.
10 V 1.0 – March 02
USER INTERFACE/RS232-C STA-R ANCG218
Paragraph's Character Field Description Supported
Number of
V 1.0 – March 02 11
ANCG218
USER INTERFFACE/RS232-C STA-R
✟ Caution! One record is used for each result. If for a requested test, result can be expressed in 3
different units, then there will be 3 records.
➊ For STA-R, this identification is the transmission test number defined for each related test unit
12 V 1.0 – March 02
USER INTERFACE/RS232-C STA-R ANCG218
➋ List of units available on STA-R:
✟ Caution! A Result Record is always followed by a Manufacturer Information Record, see § 6.7
p 14.
✟ Caution! The field "date and time" was used for the QC results only for the STA and the STA
Compact.
Note: Field 10.1.14 as defined in the ASTM Specifications E 1394-97 is not supported. In
downloading (Host → STA-R), if this field exist, it is ignored. In uploading (STA-R → Host),
we use the short record format described above.
Purpose: For instrument (STA-R), to request the working list (tests to be run).
Q | 1 | ^ 00120025 [CR]
Note: Field 12.1.4 to 12.1.13 as defined in the ASTM Specifications E 1394-97 are not supported.
In downloading (Host → STA-R), if these fields exist, they are ignored. In uplaoding (STA-R
→ Host), we use the short record format described above.
V 1.0 – March 02 13
ANCG218
USER INTERFFACE/RS232-C STA-R
L | 1 | N [CR]
M | 1 | A | @ [CR]
14 V 1.0 – March 02
USER INTERFACE/RS232-C STA-R ANCG218
Paragraph's Character Field Description Supported
Number of
Examples:
M | 1 | A | @ [CR]
M | 2 | A | @ [CR]
M | 3 | A | @ [CR]
V 1.0 – March 02 15
ANCG218
USER INTERFFACE/RS232-C STA-R
Note: If there are several alarm codes for a result, then the most priority one is transmitted. Alarm
codes are classified from '@' to 'N' with highest priority for code '@'.
• Header record;
• Patient record;
• Test Order record;
• Result record;
• Manufacturer Information record;
• Message Terminator record.
• Header record;
• Request Information record;
• Message Terminator record.
• Header record;
• Patient record;
• Test Order record;
• Message Terminator record.
16 V 1.0 – March 02
USER INTERFACE/RS232-C STA-R ANCG218
8. Flowcharts (ASTM)
Message to be Yes
Transmitted Building of C
Records to Send
No
Character
on Line ?
Yes
No
<ENQ>?
Yes
Send <ACK>
V 1.0 – March 02 17
USER INTERFFACE/RS232-C STA-R ANCG218
8.2 Acquisition of a Record from the Host Computer
Start Timer
Read RS232
No No No
Yes
<EOT> ?
Error:
No Error:"Frame Num.
"Record CheckSum
Incorrect"
Incorrect"
No Time Out
(30 sec.) ?
Yes
18 V 1.0 – March 02
USER INTERFACE/RS232-C STA-R ANCG218
8.3 Establishment Phase (STA-R → Host Computer)
Send <ENQ>
Start Timer
Read RS232
Yes Yes
Character
Received ?
<ACK>? F
No
No
Yes
<ENQ> ? Wait 5 Sec C
Time Out
No
(15 sec.)? Wait 10 Sec
No
Yes
Retry Num. + 1
No
Error: "Impossible to Get
On-Line"
E D
V 1.0 – March 02 19
ANCG218
USER INTERFFACE/RS232-C STA-R
Send Record
Start Timer
Read RS232
Yes Yes
Character <ACK> Send Next Record
Received ? or <EOT> ?
No No Yes
Last Record ? E
No Wait 10 Sec
Time Out
(15 sec.) ?
No
Retry Num. + 1
Yes
F
Error:"No Answer from
Host Computer" Yes
Retry
Counter
> n* ?
E No Error:"Answer Different
from <ACK>"
20 V 1.0 – March 02
USER INTERFACE/RS232-C STA-R ANCG218
8.5 Termination Phase (STA-R → Host Computer)
Send <EOT>
V 1.0 – March 02 21
ANCG218
USER INTERFFACE/RS232-C STA-R
Example No.1:
22 V 1.0 – March 02
USER INTERFACE/RS232-C STA-R ANCG218
STAR 2/26/99 10:31:09 AM STA-R sends the third Result record:
[STX]0R|3|^^^3|16.3|Sec.||||F||||199902 TP = 16.3 sec. the 26th of February 99 at 10h
26103109[CR][ETX]0D [CR][LF] 31mn and 9 s.
HOST 2/26/99 10:31:09 AM Host answers O.K. (Acknowledge).
[ACK]
STAR 2/26/99 10:31:09 AM STA-R sends the Manufacturer Information
[STX]1M|3|A|C[CR][ETX]B9[CR][LF] record for the third result.
Error code = Validated,
Alarm code = Quality Control: out of range or not
done
HOST 2/26/99 10:31:09 AM Host answers O.K. (Acknowledge).
[ACK]
STAR 2/26/99 10:31:09 AM STA-R sends the Message Terminator record.
[STX]2L|1|N[CR][ETX]05[CR][LF]
HOST 2/26/99 10:31:09 AM Host answers O.K. (Acknowledge).
[ACK]
STAR 2/26/99 10:31:09 AM STA-R sends an END of Transmission.
[EOT]
Example No.2 (Fibrinogen, measure performs in double mode: diff > tol):
V 1.0 – March 02 23
ANCG218
USER INTERFFACE/RS232-C STA-R
[STX]1H|\^&|||99^2.00|||||||P|1.00|
19950227160953[CR][ETX]2F[CR][LF]
Site central 16:11:52 Host answers O.K. (Acknowledge).
[ACK]
STA-R 16:11:52 STA-R sends the Request Information record for
patient "ESSAI".
[STX]2Q|1|^ESSAI[CR][ETX]8F[CR][LF]
Site central 16:11:52 Host answers O.K. (Acknowledge).
[ACK]
STA-R 16:11:53 STA-R sends the Message Terminator record.
[STX]3L|1|N[CR][ETX]06[CR][LF]
Site central 16:11:53 Host answers O.K. (Acknowledge).
[ACK]
STA-R 16:11:53 STA-R sends an END of Transmission.
[EOT]
✟ Caution! The STA-R can transmit several messages: "Request for a Working List" one after the
other without allowing the intermediate return of those (see § 7.2 p 16 and standard E
1381-91).
24 V 1.0 – March 02
USER INTERFACE/RS232-C STA-R ANCG218
STAR 2/26/99 11:23:00 AM STA-R answers O.K. (Acknowledge).
[ACK]
HOST 2/26/99 11:23:00 AM Host sends the Test Order record for patient
[STX]3O|1|00003109||^^^1|R[CR][ETX] "0 0 0 0 3 1 0 9 " .
59[CR][LF]
STAR 2/26/99 11:23:00 AM STA-R answers O.K. (Acknowledge).
[ACK]
HOST 2/26/99 11:23:00 AM Host sends the Message Terminator record.
[STX]4L|1|N[CR][ETX]07[CR][LF]
STAR 2/26/99 11:23:00 AM STA-R answers O.K. (Acknowledge).
[ACK]
HOST 2/26/99 11:23:00 AM Host sends an END of Transmission.
[EOT]
Note: This message "Working List Return" can also be used to add tests, to rerun tests or to
modify the priority code.
To add tests, Test Order record has to include the local codes of tests to be added.
To rerun tests, it has to include the local codes of the tests to be rerun.
And, to modify only the priority code for a patient file already present in the STA-R Working
File, short Test Order records can be used:
V 1.0 – March 02 25
ANCG218
USER INTERFFACE/RS232-C STA-R
➊ The characters ^^^ we re n o t tra n smitte d fo r th e STA and the STA Compact.
26 V 1.0 – March 02