
3590ET - 3590EGT_Serial_Commands
45
RREC
Description
Reading of a record of a database.
Format
R
R
E
C
,
d
,
r
r
r
r
Where
d
Database index (0÷instruments available databases – 1).
rrrr
Record index (0÷database total number of records – 1).
Example
Reading of the 2
nd
field of the 3
rd
instrument database.
Command
R
R
E
C
,
2
,
0
0
0
1
Answer
R
R
E
C
,
2
,
0
0
0
1
,
T
e
x
t
1
;
V
a
l
u
e
1
;
3
2
;
0
;
0
;
,
3
0
Character
T
e
x
t
1
;
V
a
l
u
e
1
;
3
2
;
0
;
0
;
ASCII value
(hexadecimal)
54
65 78
74
20
31
3B 56
61
6C 75
65 20
31
3B
33
32 3B 30 3B 30 3B
Answer
If the record is empty.
R
R
E
C
,
d
,
r
r
r
r
,
N
U
L
L
,
c
c
If the record is not empty.
R
R
E
C
,
d
,
r
r
r
r
,
f
1
...
f
1
;
...
f
n
...
f
n
;
,
c
c
Where
d
Database index.
rrrr
Record index.
f
1...
f
1
1
st
record field value.
f
n...
f
n
n
th
record field value.
cc
Checksum (*).
(*) The checksum is the sum modulo 256 of the field values expressed in hexadecimal format:
• The sum modulo 256 of the ASCII values of the characters of the “NULL” string if the record is empty, that is 3B.
• The sum modulo 256 of the ASCII values of the characters f1…f1; …; fn…fn if the record is not empty.
In the shown example the checksum is the sum modulo 256 of the ASCII values of the characters Text 1; Value 1; 32; 0; 0;.
The sum of the ASCII values in hexadecimal is 630.
The sum modulo 256 in hexadecimal is 30.
In the answer string the checksum value is splitted on 2 characters: the character ‘3’ and the character ‘0’.
As follows:
Содержание 3590EGT Series
Страница 1: ...www diniargeo com 3590ET 3590EGT ENGLISH Serial commands TECHNICAL MANUAL ...
Страница 2: ......
Страница 5: ...WUBU 54 X 55 Z 56 ZERO 56 6 Simple example 57 ...
Страница 59: ...3590ET 3590EGT_Serial_Commands 59 ...
Страница 60: ...3590ET 3590EGT_Serial_Commands 60 NOTES ...
Страница 61: ...3590ET 3590EGT_Serial_Commands 61 NOTES ...
Страница 62: ...NOTES ...
Страница 63: ......