Professional Documents
Culture Documents
1. Range
The standardization is used for the tariff device of multi-function watt-hour meter to do point to
point or one master to multi-slaves data exchange with hand-held unit(HHU) or other data terminal
equipments. It defines the technical specification of physical connection, communication link and
application.
4 Physical layer
………………………………………………….
4.1.6 Electrical characteristics of reading head
The reading head should be able to do data exchange with data terminal equipment. Its
communication interface is TTL level, or according to ITU-TV.24 and ITU-TV.28. The
electrical characteristics of reading head are shown in fig.4.
4.1.6.1 Working limit of reading head
Signal level
0 1 0 1
(b)
OFF
ON 0 1 0 1
Fig.5 signal and modulation
a) electrical signal with no modulation b)infrared light signal after modulation
Instruction Code
Frame start flag 68H
Address field A0
A1
A2
A3
A4
A5
Frame start flag 68h
Control code C
Data length L
Data DATA
Check code CS
End flag 16H
Fig.8 Frame format
Each byte has 8 bits binary code. A start bi t (0), an even check bit and a stop bit are added when
transferring. So the total is 11 bits. The sequence of transfer is as Fig.7. The D0 is the LSB (least
significant bit) and D7 is the MSB (most significant bit). The transfer order is that the bit in
lower address is transferred first and then the bit in higher address.
5.2 Frame format
The frame is the basic unit for transferring information. The frame format is shown in fig.8.
5.2.1 Frame start flag: indicate the start of one frame, its value is 68H=01101000B
5.2.2 Address field A0~A5: The address field comprises 6 bytes and each byte is composed of 2
BCD codes. It can express the address with 12 decimal digits at most. The address can be ID of
meter, or asset number, user number or device number, and so on which can be decided by users.
When the length of address is less than 6 bytes, the rest bytes can be filled with hexadecimal
number AAH. The lower address code is prior while higher one is in the latter. It's a broadcast
address when the address value is 999999999999H.
5.2.3 Control code: the format of control code is as following:
D7 D6 D5 D4 D3 D2 D1 D0
Function code
Flag of subsequent frame
Flag indicates whether slave station is abnormal
Transfer direction
D7=0: command frame from master station
D7=1: response frame from slave station
D6=0: slave station response correctly
D6=1: slave station response abnormally
D5=0: no subsequent data frame
D5=1: has subsequent data frame
D4~D0: function code of request and response
00000: reserved
00001: read data
00010: read subsequent data
00011: re-read data
00100: write data
01000: correcting time by broadcast
01010: write device address
01100: change communication speed
01111: change password
10000: clear maximum demand
5.2.4 Data length L: L describes the bytes number of data field. L<=200 when reading data, L <=50
when writing data, and L=0 indicates no data.
5.2.5 Data field DATA: data field can be data identifier, data or password, etc whose structure
change with different control codes. The sender adds 33H to each byte when transferring while the
receiver subtract 33H from each byte when received.
5.2.6 Check code CS: It's the sum with modular operation on 256 of all bytes from the start flag to
the byte before check code namely it's binary arithmetic sum of each byte deducting overflowing
value over 256.
5.2.7 End flag 16H: indicates the end of the frame, its value is 16H=00010110B
5.3 Transfer
5.3.1 Front-leading bytes
To awaken the receiver, it should send FEH with 1~4 bytes before sending the frame.
5.3.2 Transfer order
All items in data field should be transferred with the order that the byte in lower position
should be transferred firstly and then the bytes in higher position.
For example, if power energy value is 123456.78kWh, the transfer order is as fig.9.
CS
AB 89 67 45 78 56 34 12
DI1L, DI0H and DI0L describe different attributes of data. For the data of energy and max demand
which have multiple attributes such as attribute of time domain(current value, value of last
month, value of the month before last month), classification attribute(active, reactive), attribute
of power direction(positive, negative), tariff attribute( total amount, amount of different tariff)
and so on, their identifier is shown in 6.2.1 and 6.2.2.
6.2.1 Data identifier of energy
DI1
DI1H DI1L
D7 D6 D5 D4 D3 D2 D1 D0
DI0
DI0H DI0L
D7 D6 D5 D4 D3 D2 D1 D0
The coding of all data identifier of max demand is shown in table A2.
6.2.3 According to the data classification of the standardization, the happen time of max demand is
classified as variable. It is listed in table A3 individually which has same code but different type
symbol (A, B) with corresponding max demand considering the convenience for data terminal
reading data. The identifier codes of other data which are classified as variable and parametric
variable are listed in table A4, A5.
6.2.4 The identifier code of load record data block is listed in table A6.There is no definition about
the format and data length of this data in related standardization, so it can be self-defined by user.
6.3 Data set
6.3.1 Brief introduction
The identifier code of data represents single data item or collection of data items. A single data
item can be denoted uniquely by identifier code of corresponding data item in appendix A. The
identifier code of data block and data set can be used when requesting to access data set which
is composed of multiple data items.
6.3.2 Data item, data block and data set
6.3.2.1 Data item
They are some BCD codes which reflect a certain time-space value or digital value in tariff
device. For example, 9010H in NO. 1 in appendix A represents current positive active
energy whose format is XXXXXX.XX(kWh).
6.3.2.2 Data block
The data block is a group of data composed of continuous data items whose identifier fields
DI1H, DI1L, DI0H is same while DI0L is different (0,1,2,...,k(k is the possible maximum) in data
identifier. The identifier feature of data block is DI0L=1111B.
6.3.2.3 Data set
A data set is composed of 1 or more data blocks. In data identifier, it is a data set
when DI1H, DI1L, DI0H is 1111B or 11B, which is composed of all possible value of the filed
and multiple data blocks in its next field. At this condition, no matter what value of its next
field is, it’s viewed as a data set identifier namely 11B or 1111B.
Then end flag of each data block which constitute the data set is AAH when
transferring. Tow continuous AAH represents a null data block. As Fig.10, the data set has
four data blocks in which data block 1 has m1 data and data block 2 has m2 data, data block
3 has no data, and data block 4 has m4 data,
AAH
AAH
AAH
Fig.10 data set when transferring
Identifier of data
Data length
Control code
Data identifier
Data item
Data length
Control code
P0oP1oP2o is original password or password with higher authority. PAo represent authority of the
password; P0NP1NP2N represents new password or password that need be set.
PAN is the authority of new password. The data range of PAo,PAN is 0~9 which 0 is the
highest authority. The number is larger while the authority is lower. The level of authority is divided
into highest, programming and clear max demand.
7.8.2 Slave station response normally
function: slave station notify changing password correctly
control code: C=8FH
data length: L=04H
data field: authority of password and password PANP0NP1NP2N
frame format:
68H A0 … A5 68H 8FH 04H PAN P0N P1N P2N CS 16H