User's Guide

14
Arad Technologies Ltd. | st. HaMada, Yokneam Elite , 2069206, Israel | www.arad.co.il
5.6 Encoder Message formatting
5.6.1 Fixed Length Format
RnnnniiiiiiiiCR
R[Encoder Data][ Meter ID 8 LSB(Configuration)]CR
The fixed length format is of the form:
Where: "R" is the leading character.
"nnnn" is a four character meter reading.
"iiiiiiii" is an eight character identification number.
"CR" is the carriage return character (ASCII value 0Dh)
Valid characters for "n" are "0-9" and "?"
Valid characters for "i" are: 0-9, A-Z, a-z, ?
In case of fix format the module will:
1. Convert the Meter counter sent to the module to ASCII (0 to 9999)
2. Take the 8 LSB from the Meter ID Main or Meter ID (secondary)
5.6.2 Variable Length Format
The variable length format consists of a leading character "V", a series of fields, and a
terminator character "CR". The general form:
V;IMiiiiiiiiiiii;RBmmmmmmm,uv;Aa,a,a;GCnnnnn,ufCR
1. Take the 12 LSB chars from the Meter ID Main or Meter ID (secondary)
2. Convert the meter counter field of the Encoder Data and convert to ASCII (0 to
99999999) , the number of digits depends on configuration
3. Send the Alarm Byte from the Encoder Data , if exists
4. Send unit Byte from the Encoder Data , if exists
5. Convert the meter Flow field of the Encoder Data and convert from float to ASCII, the
number of digits are 4 and decimal point and sign if required.
6. Concatenate all with appropriate headers and separators
7. Add CR.
Totalizer
0
1
2
3
.
4
5
6
7
8
Sensus
0
0
0
0
0
1
2
3
Encoder Data-volume
123
Number of digit = 8
Resolution = 1
Decimal point location = 0 (no decimal point)
Totalizer
0
1
2
3
.
4
5
6
7
8
Sensus
0
0
1
2
3
.
4
5
Encoder Data-volume
12345
Number of digit = 7 (max because of decimal point)
Resolution = 1
Decimal point location = 2
Totalizer
0
1
2
3
.
4
5
6
7
8
Sensus
1
2
3
4
5
.
6
7
Encoder Data-volume
1234567
Number of digit =7 (max because of decimal point)