You are on page 1of 8

FE FE FE – lead characters

68 Frame start operator


AA AA AA AA AA AA AA AA The address of meter
A0—The lowest byte of the production stream number;

A1—Production stream number second high byte;

A2—The highest byte of production stream number;

A3—Table of production month;

A4—Table of production year;

A5—Manufacturer code low byte;

A6—Manufacturer code high byte;


03 – Control code
03 Data field length
81 0A Data indentification
00 The serial number
49 Result code
16 End of the frame
53
6A
(125 ms)

FF FE lead characters
68 Frame start operator
10 Table type
01 00 03 1C C0 00 03 1C C0 The address of meter
83 – Control code
03 – Data field length
17 3A C1
00 The serial number
53
9F
F1

Data indentification (DI0 DI1):810Ah Read the address of meter:00000000000012

FE FE FE 68 10 12 00 00 00 00 00 00 83 03 810A 00 9B 16

Instructions:FE FE FE – lead characters;68 – Frame start operator;10– Table type;12 00 00 00 00 00

00 – The address of meter;

83 – Control code;03 – Data field length;81 0A – Data indentification;00 – The serial number;9B –
Result code;16 – End of the frame。

The byte format conforms to CJ/T188-2004 standard byte format , that is,each byte contains 8 bits of binary

code , transfer with 1 bit start bit ( 0 ) 、 an even check bit 、 one stop bit ( 1 ) , a total of 11 , D0 is the least

significant bit of a byte,D7 is the most significant bit of a byte 。 First the low , will be high 。 The transport

sequence diagram is shown below:


0 D0 D1 D2 D3 D4 D5 D6 D7 P 1
Transfer
direction

Start bit 8 bit of data Parity bit Stop bit

The communication baud rate is 2400bps。Check code CS accord with CJ/T188-2004,be lead characters
(0x68)start up to the checksum of all bytes before the module 256。

1 Read meter data: SND_SU

2 Set table base: SND_UD_DT

3 Read mete address: SND_UD_RAD

4 Set the table address: SND_UD_AD

5 Read meter status: SND_UD_CK

6 Write valve control: SND_UD_CTR

A0—The lowest byte of the production stream number;

A1—Production stream number second high byte;

A2—The highest byte of production stream number;

A3—Table of production month;

A4—Table of production year;

A5—Manufacturer code low byte;

A6—Manufacturer code high byte;

Table data encoding format( The BCD code):

The data in the table is 123456.78,the data is encoded as follows:

D0—0x78;

D1—0x56;

D2—0x34;

D3—0x12;

Table type code description:

Water meter: 10

Gas meter:30

Electric meter: 40

Description of accumlated flow on serrlement date:


00 00 00 00 it consists of four bytes,this feature is not used,the data defaults to 0。
Broadcast address description:
Broadcast addresses can only be used in point-to-point communications。
Unit description:
The unit of measurement is:ton,in 2 CH said
Real-tinme time description:
00 00 00 00 00 00 00 it consists of seven bytes,this feature is not used,the data defaults to 0。
Data length description:
Represents the number of bytes from the data id to checksum.

Transfer request:

The concentrator sends 2 bytes 0xfe before sending the command frame ; The response time from the command
frame in the concentrator to the meter is <1 second,Other meet CJ/T188-2004。

1 Read meter data(The address of meter:00000000000012,The dial in number:1000.10)


Concentrator——>meter

The frame data:

byte Code Describe

0 68h Frame start operator

1 T Table type code

2-8 A0-A6 The address of meter

9 01h CTR_0

10 03h Data field length L

11-12 901Fh/1F90 Data indentification DI0-DI1

13 SER The serial number(00h)

14 CS Result code

15 16h End of the frame

For example:4.1 Read meter data:

Data sent:FE FE FE 68 10 12 00 00 00 00 00 00 01 03 90 1F 00 3D 16(struggle for water meter)

Data indentification(DI0 DI1):901F h

FE FE FE 68 10 12 00 00 00 00 00 00 01 03 90 1F 00 3D 16

Instructions:FE FE FE - lead characters;68 – Frame start operator;10 – Table type;12 00 00 00 00 00 00 –

The adress of meter;

01 – Control code;03 – Data field length;90 1F – Data indentification;00 – The serial number;3D –
Result code;16 – End of the frame。

Data sent:FE FE FE 68 10 12 00 00 00 00 00 00 01 03 1F 90 00 3D 16(struggle for water meter)

Data indentification(DI0 DI1):1F90 h


FE FE FE 68 10 12 00 00 00 00 00 00 01 03 1F 90 00 3D 16

Instructions:FE FE FE - lead characters;68 – Frame start operator;10 – Table type;12 00 00 00 00 00 00 –

The adress of meter;

01 – Control code ;03 – Data field length ;1F 90 – Data indentification ;00 – The serial number ;3D –
Result code;16 – End of the frame。

Meter——>concentrator

Control code(CTR_1):81h;

Data field length: L = 16h;

Data indentification(DI0 DI1):901F/1F90 h;

The serial number:SER;

The frame data:

byte Code Describe

0 68h Frame start operator

1 T Table type code

2-8 A0-A6 The address of meter

9 81h CTR_1

10 L Data field length

11-12 901F/1F90h Data indentification DI0-DI1

13 SER The serial number(00h)

14-17 CURDATA Current year cumulative flow(D0-D3)

18 2C unit:tons

19-22 DAYDATA Daily cumlative flow (D4-D7)

23 2C unit:tons

24-30 REALTIME Real time

31 S0 State 0

32 S1 State 1(keep byte,set to ff)

33 CS Result code
34 16h End of the frame

The concentrator depends on what is received,,reply right,or no response,or no response。


or example:meter response:FE FE FE 68 10 12 00 00 00 0000 00 81 16 90 1F 00 10 00 10 00 2C 10 00 10

00 2C 00 00 00 00 00 00 00 00 FF 67 16 ( DI0 DI1:901F h)

Instructions:The address of meter 00 00 00 00 00 00 12 The meter reverts to the current cumulant 10 00 10

00(001000.10 is the real data )

FE FE FE 68 10 12 00 00 00 00 00 00 81 16 90 1F 00 10 00 10 00 2C

10 00 10 00 2C 00 00 00 00 00 00 00 00 FF 67 16

Instructions:FE FE FE – lead characters;68 – Frame start operator;10 – Table type;12 00 00 00 00 00 00 –


The address of meter;

81 – Control code;16 – Data field length;90 1F –Data indentification;00 – The serial number;10 00 10 00 –
Current year cumulative flow;

2C – unit:tons;10 00 10 00 – Daily cumlative flow;2C – unit:tons;00 00 00 00 00 00 00 – Real time;

00 FF – Meter state;67 – Result code;16 – End of the frame。

For example:meter response:FE FE FE 68 10 12 00 00 00 0000 00 81 16 1F 90 00 10 00 10 00 2C 10 00 10

00 2C 00 00 00 00 00 00 00 00 FF 67 16 ( DI0 DI1:1F 90 h)

Instructions:The address of meter 00 00 00 00 00 00 12 The meter reverts to the current cumulant 10 00

10 00(001000.10 is the real data)

FE FE FE 68 10 12 00 00 00 00 00 00 81 16 1F 90 00 10 00 10 00 2C

10 00 10 00 2C 00 00 00 00 00 00 00 00 FF 67 16

Instructions:FE FE FE – lead characters;68 – Frame start operator;10 – Table type;12 00 00 00 00 00 00 –


The address of meter;

81 – Control code;16 – Data field length;1F 90 – Data indentification;00 – The serial number;10 00 10 00 –
Current year cumulative flow;

2C – unit:tons;10 00 10 00 – Daily cumlative flow;2C – unit:tons;00 00 00 00 00 00 00 – Real time;

00 FF – Meter state;67 – Result code;16 – End of the frame。


4.3 Read meter of address

Concentrator——>Meter

Control code(CTR_0):03h;

The length of the data: L = 03h;

Data indentification(DI0 DI1):810A/0A81h;

The serial number:SER;

The frame data:

byte Code Describe

0 68h Frame start operator

1 T Table type code(AAh)

2-8 A0-A6 The address of meter AA AA AA AA AA AA AAh

9 03h CTR_0

10 03h Data field length L

11-12 810A/0A81h Data indentification DI0-DI1

13 SER The serial number(00h)

14 CS Result code

15 16h End of the frame

For example:4.3 Read meter of address:

Data sent:FE FE FE 68 AA AA AA AA AA AA AA AA 03 03 81 0A 00 49 16

Data indentification (DI0-DI1):810Ah

FE FE FE 68 AA AA AA AA AA AA AA AA 03 03 810A 00 49 16

Instructions:FE FE FE – lead characters;68 – Frame start operator;AA – Table type ;AA AA AA AA

AA AA AA – The address of meter;

3 – Control code;03 – Data field length;81 0A – Data indentification;00 – The serial number;49 – Result
code;16 – End of the frame。

Data sent:FE FE FE 68 AA AA AA AA AA AA AA AA 03 03 0A 81 00 49 16

Data indentification (DI0-DI1):0A 81Ah

FE FE FE 68 AA AA AA AA AA AA AA AA 03 03 0A81 00 49 16

Instructions:FE FE FE – lead characters;68 – Frame start operator;AA – Table type;AA AA AA AA


AA AA AA – The address of meter;

3 – Control code;03 – Data field length;0A 81 – Data indentification;00 – The serial number;49 – Result
code;16 – End of the frame。

Meter——>Concentrator

Control code(CTR_1):83h;

The length of the data: L = 03h;

Data indentification(DI0 DI1):810A/0A81 h;

The serial number:SER;

The frame data:

byte Code Describe

0 68h Frame start operator

1 T Table type code

2-8 A0-A6 The address of meter

9 83h CTR_1

10 L Data field length

11-12 810A/0A81 h Data indentification DI0-DI1

13 SER The serial number(00h)

14 CS Result code

15 16h End of the frame

For example:Meter response:

Data sent:FE FE FE 68 10 12 00 00 00 00 00 00 83 03 81 0A 00 9B 16(DI0 DI1:810Ah)

Data indentification (DI0 DI1):810Ah Read the address of meter:00000000000012

FE FE FE 68 10 12 00 00 00 00 00 00 83 03 810A 00 9B 16

Instructions:FE FE FE – lead characters;68 – Frame start operator;10– Table type;12 00 00 00 00 00

00 – The address of meter;

84 – Control code;03 – Data field length;81 0A – Data indentification;00 – The serial number;9B –
Result code;16 – End of the frame。

Data sent:FE FE FE 68 10 12 00 00 00 00 00 00 83 03 0A 81 00 9B 16(DI0 DI1:0A 81h)

Data indentification(DI0 DI1):0A 81h Read the address of meter:000000000012

FE FE FE 68 10 12 00 00 00 00 00 00 83 03 0A81 00 9B 16

Instructions:FE FE FE – lead characters;68 – Frame start operator;10– Table type;12 00 00 00 00 00

00 – The address of meter;– Control code;03 – Data field length;0A 81 – Data indentification;00 – The serial
number;9B – Result code;16 – End of the frame。

You might also like