![Schambeck RI 2012 Скачать руководство пользователя страница 47](http://html1.mh-extra.com/html/schambeck/ri-2012/ri-2012_operation-manual_1210122047.webp)
Schambeck SFD GmbH
Refractive Index Detector RI2012
RI2012 V1.0 06-2013.EN / 28.10.2013
45
http://www.schambeck-sfd.com
15.6 Serial (RS232) Communication
Refractive Index detector RI2012 – Serial RS232 Interface – Firmware V 5.02
The RS232 port is used for the communication of detector and computer.
The following option can be used to acquire data and control RI2012 refractive index detector.
a)
Clarity data acquisition software and instrument control from DATAAPEX.
b)
Special designed software solutions depending on the customer´s need
c)
Simple software solutions like Windows HyperTerminal or Putty or special macros for Microsoft
Excel
DigIN for Start signal
TTL-LOW or SHORT
Refractive Index detector RI2012
●
●
Dis
p
lay
an
d
Key
b
o
ar
d
µC & Co.
●2
●3
●5
GND
GND
GO
TXT
RXD
Specification of the RS232 port:
•
- signal TXD (Pin #2) RDX (Pin #3) and GND (PIN #5)
•
- baudrate: 9600, 8 data bits, no parity, 1 start bit, 1 stop bit
•
- handshake: none
•
- code: ASCII
Computer
SUB-D9
(RS232 for PC
)
Com RS232 settings (user settings on RI2012):
•
LOCK serial port blocked in both directions
•
LOW 0,4 Hz serial port open, 0,4 data point/sec sent
•
1 Hz serial port open, 1 data point / second sent
•
2 Hz serial port open, 2 data point / second sent
•
5 Hz serial port open, 5 data point / second sent
•
10 Hz serial port open, 10 data point / second sent
REMARKS:
•
No start of data output at this point (more see below)
•
Each time the ENTER key is pressed will stop data
output
•
Active data output is represented by three dots (…) in
the
line ComRS232
Communication: Computer is sending command,
detector is sending data:
ASCII
Hex
Function
s
S
0x73
0x53
S t a r t d a t a o u t p u t
h
H
0x68
0x48
Stop data output
z
Z
0x7A
0x5A
S e t A u t o Z e r o f l a g
p
P
0x70
0x50
S e t f l a g f o r
P u r g e M o d e
REMARKS:
•
Setting a flag is not directly the operation
•
Unused letter might be used in further versions
Data sent by RI2012
•
Character 1: Sp a ce ( 0 x2 0) ac ts a s s e p ara to r
•
Character 2: A l g e b r a i c s i g n ( + / - ) ( 0 x2 D / 0 x 2 B )
•
Character 3-9: 7 n u m b e r s , r e p r e s e n t i n g t h e v o l t a g e
•
Character 10: Carrier Return (CR, 0x0D)
•
Character 11: Line Feed (LF, 0x0A)
Me ssag e se nt by RI20 12
•
GO (data output after external start signal
Format: CR (0x0D), LF (0x0A), G (0x47), O (0x4F), CR (0x0D),
LF (0x0A)
External start - signal
One of the digital input (Dig In.) is used to start data output.
The low edge results in the output of the text GO