COM0
/
COM1
S
ERIAL
I
NTERFACES
96 / 157
System 6844(RC) - V03.00
hopf
Elektronik GmbH
Nottebohmstr. 41
• D-58511 Lüdenscheid • Tel.: +49 (0)2351 9386-86 • Fax: +49 (0)2351 9386-93 • Internet: http://www.hopf.com • E-Mail: [email protected]
6.3.4.2 Structure
Character No.
Meaning
Hex-Value
1
STX (start of text)
$02
2
status
$30-39, $41-46
3
day of the week
$31-37
4
tens hour
$30-32
5
unit hour
$30-39
6
tens minute
$30-35
7
unit minute
$30-39
8
tens second
$30-36
9
unit second
$30-39
10
tens day
$30-33
11
unit day
$30-39
12
tens month
$30-31
13
unit month
$30-39
14
tens year
$30-39
15
unit year
$30-39
16
difference time tens hour / operational sign
$30-31, $38-39
17
difference time unit hour
$30-39
18
difference time tens minutes
$30-35
19
difference time unit minutes
$30-39
20
LF (line feed)
$0A
21
CR (carriage Return)
$0D
22
ETX (end of text)
$03
The difference time is transmitted in hours and minutes following the year. The transmission
is done in BCD. The difference time may be up to ± 14.00h.
The operational sign is shown as the highest bit in the hours.
logic
1
= local time before UTC
logic
0
= local time after UTC
Example:
Data String
Tens Difference
Time Nibble
Difference Time
(STX)83123456030196
0
300(LF)(CR)(ETX)
0000
- 03:00h
(STX)83123456030196
1
100(LF)(CR)(ETX)
0001
- 11:00h
(STX)83123456030196
8
230(LF)(CR)(ETX)
1000
+ 02:30h
(STX)83123456030196
9
100(LF)(CR)(ETX)
1001
+ 11:00h