TUF-2000 Series Communication Protocols PDF
TUF-2000 Series Communication Protocols PDF
TUF-2000 Series Communication Protocols PDF
A software switch located at the window number 63(shorted as M63 after) select
MODBUS-ASCII or MODBUS-RTU will be in functioning.
TUF-2000 can only support MODBUS functions code 3 and code 6, i.e. reading
registers and writing a register.
For example, reading the registers from REG0001 to REG0010 in the unit #1
(ultrasonic flow meter) under the MODBUS-RTU format, the command could be as
following
01 03 00 00 00 0A C5 CD
(hex)
Details about the standard MODBUS protocol will not be studied in this manual;
please the users find them on other related materials.
(please take notice the difference with the water meter MODBUS table)
unlock
0051 1 Password for hardware BCD
Writable。“A55Ah”
for unlock
0053-0055 3 Calendar (date and time) BCD
Writable。6 Bytes of
BCD stands
SMHDMY,lower
byte first
0056 1 Day+Hour for Auto-Save BCD
Writable。For
example 0512H
stands Auto-save on
12:00 on 5th。0012H
for 12:00 on
everyday。
better.
0093 1 Upstream strength INTEGER Range 0-2047
0094 1 Downstream strength INTEGER Range 0-2047
0096 1 Language used in user interface INTEGER
0 : English,1:Chinese
Note : (1) The internal accumulator is been presented by a LONG number for the
integer part together with a REAL number for the decimal fraction. In general uses,
only the integer part needs to be read. Reading the fraction can be omitted. The final
accumulator result has a relation with unit and multiplier. Assume N stands for the
integer part (for the positive accumulator, the integer part is the content of REG 0009,
0010, a 32-bits signed LONG integer,), Nf stands for the decimal fraction part (for the
positive accumulator, the fraction part is the content of REG 0011, 0012, a 32-bits
REAL float number,), n stands for the flow multiplier (REG 1439).
then
The final positive flow rate=(N+Nf ) ×10n-3 (in unit decided by REG 1438)。
1 liter (L)
While
(3) Please note there are many of the data that is not applicable for the
non-energy measurement users. These none-energy-related registers only serves for
the intension of only one unique register table provided both with flow meter and
energy meat.
Bit13 reserved
Please try to override these energy-related bits first when in flow-only measurement,
(5) Unit code for flow rate
Accumulator data for every past day are stored in a loop queue. Every day has 16
bytes of data and there are 64 days in total. The current pointer which has a range of
0~63 for the day is in REG 0162. if the pointer is decreased by 1 when the pointer is 0,
then new pointer value will be 63. Assume REG 0162= 1, the data for yesterday are in
REG 2825~2832, the data for the day before yesterday are in REG2817-2824, and the
data for the day of 2 days ago are in REG 3321-3328.
The structure of month accumulator is the same as that of the day,please refer to
related paragraph。The difference is there are only 32 data blocks for the month
accumulator, and day variable always has a value of 0.
(3) There is no direct data for the year, data for the year could be conducted from the
data of the months.
There are as many as 16 blocks of data can be recorded, for 16 times of power-on and
16 times of power-off. The data blocks are in a structure of loop queue. The 16th data
block will override the first block by default. The location of the current block is
presented in the data pointer. The current power-on data block is pointed by the
decease by 1 of the pointer.
Note:
0.(cr)stand for carriage return, its ASCII value is 0DH. (lf) stand for line feed, its
ASCII value is 0AH.
2.d stand for digit 0~9, the number before ‘E’ is an integer.
3.Working status code, 1~6 letters, refer to error code related chapter.
For example ‘TR:ON,RL:ON’ means the OCT and RELAY are closed
‘TR:UD,RL:UD” means the OCT and RELAY are not used.
5.@ stand for key value, for example, value 30H means key ‘0’. The command
‘M4(cr)’ acts just like the number 4 key on the keypad was pressed.
6. ’a’ stands for the output current value. The maximum value should not exceed
20.0 For example AO2.34567, AO0.2
8. If there are more than one devices in a network, all the basic command must be
prefixed with ‘N’ or ‘W’, otherwise multiple flow meter may reply to the same
request, and thus a conflict may occurs.
9. The returns by the special command for GSM networks contend Chinese
characters.
The ‘P’ prefix can be added before every basic command to have the returned
message with a two digits check-sum. The check-sum is obtained by a binary addition.
For example, if the command DI+(CR) (44H,49H,2BH,0DH in binary numbers)
will bring a return like +1234567E+0m3 (CR)
(2BH,31H,32H,33H,34H,35H,36H,37H,45H,2BH,30H,6DH,33H,20H,0DH,0AH in
binary numbers), then the PDI+(CR) will brings a return like
+1234567E+0m3 !F7(CR), after the character‘!’ are the
Pay attention to that there may be no characters or only spaces before the character
‘!’.
The usage of prefix ‘N‘ goes like: N + single byte address + basic command.
For example if the address number 88 flow meter is going to be addressed, the
command should like: NXDV(CR), the decimal value of X should be 88.
The prefix W is strongly recommended for new users.
The value of the character string should have a value in the range of 0~65535, except
for the value of 13(0DH carriage return),10(0AH line feed ),42(2AH *),
38(26H&).
For example, if the velocity of number 12345 flow meter is wanted, the command can
be like: W12345DV(CR), (57H,31H,32H,33H,34H,35H,44H,56H,0DH in binary
numbers)
The command connecter ‘&’ adds several basic commands into a one-line compound
command. The compound command should not exceed a length of over 253
characters. The prefix ‘P’ should be added before every basic command, to make the
returned results having a check-sum.
For example, if the 1)flow rate 2)velocity 3)positive totalizer 4) net energy totalizer 5)
the AI1 input 6) the AI2 input of the address number 4321 flow meter are wanted to
return with check-sum, the one-line command is like:
W4321PDQD&PDV&PDI+&PDIE&PBA1&PAI2(CR)
+0.000000E+00m3/d!AC(CR)
+0.000000E+00m/s!88(CR)
+1234567E+0m3 !F7(CR)
+0.000000E+0GJ!DA(CR)
+7.838879E+00mA!59
+3.911033E+01!8E(CR)
Any command can be connected together. For example, if a serious key want be sent,
to set up the outer diameter to 1234.567 mm, a compound command will be
MENU11&M1&M2&M3&M4&M:&M5&M6&M7&M=(CR)
interface:RS232,RS485
Data bits:8
Stop bits: 1, 2
XXh stands for the address (or network ID)of the instrument, range:00h-FFh.
YYh stands for the new address that will be assigned, range:00h-FFh.
ZZh the check-sum, which is obtained by means of binary addition of all the
data bytes (take notice to that the addition is for the data bytes,
not the controlling and commands bytes, and the carry over 0ffh
is discarded.
In the above, the contents of LL(BCD) are formatted as in the following table:
The difference between the command 4A and command 49 is that the late
command reads out the data which are recorded in the meter by the time
which is defined by command 4C.
If XXh=YYh, this command can be used to do a loop test the net work, or to
scan and find the existed meters in the network. Please pay attention to that the
network may lose meters if this command is used in a noisy network.
(4) Change or assign a time for meter data recording (command 4C)
DDh stands for the day, HHh for hour, MM for minute,data are in BCD
code.
DD is the day of this month, for example: 2Ah 86h 4Ch 12h 15h stands for
assigning a recording time for the number 86 meter 86. the meter will
record the flow rate, total net flow, the working timer and the error code
when time is 15:00 the 12th of this month. The recorded date will be read
out by command 49.
If DD=0, it stands that the data recording will take place by 15:00 for every
day.
Answer: no answer
In above, ssmmhhDDMMYY is the date and time in BCD format.
02h stands for the pipe may be empty or meter works improperly.
05h stand for there exist hardware failure, repair may needed.
Key Key value Key value ASCII key Key value Key value ASCII
(headecimal) (decimal) (headecimal) (decimal)
value value
0 30H 48 0 8 38H 56 8
1 31H 49 1 9 39H 57 9
2 32H 50 2 . 3AH 58 :
3 33H 51 3 ◄ 3BH 59 ;
4 34H 52 4 MENU 3CH 60 <
5 35H 53 5 ENT 3DH 61 =
6 36H 54 6 ▲/+ 3EH 62 >
7 37H 55 7 ▼/- 3FH 63 ?