background image

Page 43 of 51

9.3.2.2 MODBUS Protocol Function Code 0x03 Usage 

The host sends out the read register information frame format: 

Slave Address 

Operation 

Function Code 

First Address Register

Register Number 

Verify Code 

1 byte 

1 byte 

2 bytes 

2 bytes 

2 bytes 

0x01~0xF7

0x03

0x0000~0xFFFF

0x0000~0x7D 

CRC(Verify) 

The slave returns the data frame format: 

Slave Address 

Read Operation 

Function Code 

Number of Data 

Bytes 

Data Bytes 

Verify Code 

1 byte 

1 byte 

1 byte 

N*x2 byte 

2 bytes 

0x01~0xF7

0x03

2xN*

N*x2

CRC(Verify)

N*

data register number 

The range of flow meter addresses 1 to 247 (Hexadecimal: 0x01

0xF7 ), and can be checked in the Menu 46. For 

example,  decimal  number  "11"  displayed  on  Menu  46  means  the  address  of  the  flow  meter  in  the  MODBUS 

protocol is 0x0B. 
The CRC Verify Code adopts CRC-16-IBM (polynomial is X

16

+X

15

+X

2

+1, shield character is 

0xA001

) which is 

gained by the cyclic redundancy algorithm method. Low byte of the verify code is at the beginning while the high 

byte is at the end. 
For  example,  to  read  the  address  1  (0x01)  in  the  RTU  mode,  if  the  instantaneous  flow  rate  uses  hour  as  a 

unit(m3/h), namely reads 40005 and 40006 registers data, the read command is as follows: 

0x01 

0x03 

0x00 0x04 

0x00 0x02 

      0x85 0xCA 

Flowmeter Address 

Function Code 

Register Address      Register Number 

CRC Verify Code 

Flowmeter returned data is (assuming the current flow=1.234567m3/h) 

0x01 

 

          0x03 

0x04 

0x06 0x51 0x3F 0x9E           0x3B 0x32 

Flowmeter Address 

Function Code 

Data Bytes      Data(1.2345678) 

CRCVerify Code 

The four bytes 3F 9E 06 51 is in the IEEE754 format single precision floating point form of 1.2345678. 
Pay attention to the data storage order of the above example. Using C language to explain the data, pointers can be 

used  directly  to  input  the  required  data  in  the  corresponding  variable  address,  the  low  byte  will  be  put  at  the 

beginning, such as the above example 1.2345678 m/s, 3F 9E 06 51 data stored in order as 51 06 9E 3F. 

9.3.2.3 Error Check 

The flowmeter only returns one error code 0x02 which means data first address in error. 
For  example,  to  read  address  1  (0x01)  of  the  flowmeter  40002  register  data  in  the  RTU  mode,  the  flowmeter 

considers it to be invalid data, and sends the following command: 

0x01 

0x03 

0x00 0x01   

        0x00 0x01 

      0xD5 0xCA 

Flowmeter Address  Function Code 

Register Address    Register Number 

CRC Verify Code 

Flowmeter returned error code: 

0x01 

0x83 

0x02 

        0xC0 0xF1 

Flowmeter Address 

Error Code 

Error Extended Code 

CRC Verify Code 

9.3.2.4 MODBUS Register Address List 

The flowmeter MODBUS Register has a read register and a single write register. 
Read Register Address List (use 0x03 performance code to read)

 

 

UFM-40

 

 

  

Ultrasonic transit-time flowmeter

 

Summary of Contents for UFM-40

Page 1: ......

Page 2: ......

Page 3: ...e spare parts are in accordance with the packing list Make sure that there is no damage to the enclosure due to a loose screw or loose wire or other damage that may have occurred during transportation Any questions please contact your representative as soon as possible UFM 40 Ultrasonic transit time flowmeter ...

Page 4: ...ement Site Selection 14 4 Transducer Installation 15 4 1 Installing the transducers 15 4 1 1Transducer Spacing 15 4 1 2 Transducer Mounting Methods 15 4 1 3 V Method 15 4 1 4 Z Method 16 4 1 5 N Method not commonly used 16 4 2 Transducer Mounting Inspection 16 4 2 1 Signal Strength 16 4 2 2 Signal Quality Q value 17 4 2 3 Total Time and Delta Time 17 4 2 4 Transit Time Ratio 17 4 2 5 Warnings 17 5...

Page 5: ......

Page 6: ......

Page 7: ......

Page 8: ......

Page 9: ...asurement results by visiting a specific window These windows are arranged by 2 digit serial numbers including sign from 00 99 then to 0 1 etc Each window serial number or so called window ID code has a defined meaning For example Window M11 indicates the parameter input for pipe outside diameter while Window M25 indicates the mounting spacing between the transducers etc Refer Windows Display Expl...

Page 10: ......

Page 11: ......

Page 12: ......

Page 13: ......

Page 14: ...iquid such as a vertical pipe with flow in the upward direction or a full horizontal pipe Ensure enough straight pipe length at least equal to the figure shown below for the upstream and downstream transducers installation Ensure that the pipe surface temperature at the measuring point is within the transducer temperature limits Consider the inside condition of the pipe carefully If possible selec...

Page 15: ......

Page 16: ......

Page 17: ......

Page 18: ......

Page 19: ......

Page 20: ......

Page 21: ......

Page 22: ...eset Zero 44 Manual Zero Point 45 Scale Factor 46 Network identifying address code 47 System Lock Input and output setup 55 CL Mode Select 56 CL 4mA Output Value 57 CL 20mA Output Value 58 CL Check 59 CL Current Output 60 Date and Time 61 ESN 62 Serial Port Parameter 67 FO Frequency Range 68 Low FO Flow Rate 69 High FO Flow Rate 70 LCD Backlit Option 72 Working Timer 77 Beeper Setup 78 OCT Output ...

Page 23: ...in Window M31 If the NEG Total has been turned off the NEG Total value displayed is the total prior to its turn off Date Time Flow Rate The time setting method can be found in WindowM60 03 04 03 15 49 40 R Flow 0 116 m3 h Heat Capacity Totalizer Heat Capacity Display Instantaneous Heat Capacity and Totalizer Heat Capacity Net Energy Totalizer E T Instantaneous Energy EFR Note when the instrument i...

Page 24: ...R System Normal Diagnoses Net Flow Today Display Net Flow Today POS Flow Today 09 0 458748 m3 Pipe Outer Diameter Enter the pipe outside diameter or enter the pipe circumference in Window M10 The pipe outside diameter must range from 10mm to 6000mm Note Enter either pipe outside diameter or pipe circumference Pipe Outer Diameter 50mm Enter the pipe wall thickness Pipe Wall Thickness 4 00 mm Pipe M...

Page 25: ......

Page 26: ...y falls below this value the measurement stops automatically If the flow meter is already able to stop measuring when the pipe is empty a value in the range of 30 to 40 should also be entered in this window to ensure no measurement when the pipe is empty Holding with PoorSig NO Measurement Units Options Select the measurement unit as follows 0 Metric 1 English Measurement Units In 0 Metric Flow Ra...

Page 27: ...1000 7 x 10000 1E 4 Factory default factor is x1 Totalizer Multiplier 0 x0 001 1E 3 ON OFF POS Totalizer On off POS Totalizer NO indicates the Flowmeter starts to totalize the value When it is turned off the positive totalizer displays in Window M02 will not change Factory default is YES POS Totalizer 35 YES ON OFF NEG Totalizer On off NEG Totalizer NO indicates the Flowmeter starts to totalize th...

Page 28: ......

Page 29: ......

Page 30: ...lue that the user entered in Window M58 In the 4 20mA modes F4mAand F20mA can be selected as a positive or negative flow value as long as the two values are not the same CL 4mA Output Value CL 4 mA Output Value 0 0000 m3 h Set the CL output value according to the flow value at 4mA The flow unit s options are the same as those in Window m31 Once 4 20mA vs Vel is selected in Window M56 the unit shou...

Page 31: ...ade in this window The format for setting time setting is 24 hours Press wait until appears the modification can be made ESN Display electronic serial number ESN of the instrument This ESN is the only one assigned to each Flowmeter ready to leave the factory The factory uses it for files setup and the user uses it for management Ultrasonic Flowmeter S N V2500008 Serial Port Settings This window is...

Page 32: ......

Page 33: ... the or to review totalizer in days months and years 0 for day 1 for month 2 for year Use the or to review the totalizer in some day some month some year For example to display the flow total for July 18 2000 the display at the upper right corner of the screen indicates that it was working properly the whole day On the contrary if G is displayed it indicates that the instrument gain was adjusted a...

Page 34: ... are available day per day hour per hour min per minute sec per second The factory default unit is hour Temperature sensitivity and user SHC When the delta temperature is less than the sensitivity set energy will not be accumulated Set the adjustable temperature range of 0 to 10 The factory default setting is 0 2 When the user specific heat is setting energy is accumulated according to the user sp...

Page 35: ......

Page 36: ......

Page 37: ......

Page 38: ......

Page 39: ......

Page 40: ......

Page 41: ...r lf 注0 Return daily instantaneous flow d ddddddE dd cr 1 DQH cr lf Return hourly instantaneous flow d ddddddE dd cr DQM cr lf Return instantaneous flow per minute d ddddddE dd cr DQS cr lf Return instantaneous flow per second d ddddddE dd cr DV cr lf Return instantaneous velocity d ddddddE dd cr DI cr lf Return positive accumulative flow dddddddE d cr 2 DI cr lf Return negative accumulative flow ...

Page 42: ...ed Corresponding binary code is 57H 31H 32H 33H 34H 35H 44H 56H and 0DH Function sign Function sign can add up to 5 basic commands Prefix P is allowed together to form a compound command sent to the flowmeter together The flowmeter will answer simultaneously For example if No 4321 flowmeter is requested to simultaneously return 1 instantaneous flow 2 instantaneous flow velocity 3 positive total fl...

Page 43: ...r Address Function Code Register Address Register Number CRC Verify Code Flowmeter returned data is assuming the current flow 1 234567m3 h 0x01 0x03 0x04 0x06 0x51 0x3F 0x9E 0x3B 0x32 Flowmeter Address Function Code Data Bytes Data 1 2345678 CRCVerify Code The four bytes 3F 9E 06 51 is in the IEEE754 format single precision floating point form of 1 2345678 Pay attention to the data storage order o...

Page 44: ...B 40028 4 20mA Analog output low word 32 bits real 2 Unit mA 001C 40029 4 20mA Analog output high word 001D 40030 Error code char 1 2 String 3 Refer to Error Analysis for detailed codes meanings 001E 40031 Error code char 3 4 001F 40032 Error code char 5 6 003B 40060 Velocity unit char 1 2 String 2 Currently support m s only 003C 40061 Velocity unit char 3 4 003D 40062 Flow unit char 1 2 String 2 ...

Page 45: ...ut 4 Ball value 5 Mounting base 6 Sensor 10 2 Measurement Point Selection To guarantee highly accurate measurement results it is necessary to select an appropriate measurement point before installing the transducer For examples of measuring point selection see the related section in the manual 10 3 Determining Transducer Spacing Transducer Installation The mounting space of insertion transducer is...

Page 46: ......

Page 47: ......

Page 48: ...nsducer mounting method and press the key to confirm Choose according to the pipes on site Transducer Mounting 1 Z Step6 Adjust Transducer spacing Press the keys to enter the window M25 accurately install the transducer according to the displayed transducer mounting spacing and the selected mounting method Refer to Installing the Transducers in this chapter Transducer Spacing 192 68 mm Step7 Displ...

Page 49: ......

Page 50: ......

Page 51: ...ter temperature is 100 0 05 Temperature difference is 0 00 0 05 7 After the ice water mixture temperature sensors back to room temperature put them into a constant temperature oil water bath the temperature is 100 C 11 5 Installation of RTD Module Before installation of the RTD module as shown in the figure below After installation as shown in the figure below UFM 40 Ultrasonic transit time flowme...

Reviews: