background image

12

GF U3000 V2 Ultrasonic Flowmeter

Modbus Supplement to the operating instructions

The general procedure for updating a unit’s setting by the MBM follows the steps below:
1.  Set the “Lock-out Updates” flag as mentioned earlier.
2.  Perform write operations as necessary and set respective update flags.
3.  Clear the “Lock-out Updates” flag.
4.  Check the desired action has been performed by examining the update flags. If the action has been performed, update flags will 

be automatically cleared , but if the action has not been performed, these flags will remain set.

There may be several reasons why an action has not been performed, but the most likely cause is that there has been a race condi-
tion between checking the inhibit bits and them being set by a local user.

If the register to be updated is read, then the value that was written to it will often be returned despite the operation failing. An ex-
ample of this are the damping registers. The update of the unit is triggered by a low to high transition and not simply by setting the 
bit high. Since the value has already been set in the register, and providing it has not been overwritten, all that is required to try again 
is to clear then set the update bit once more. Leave a few hundred milliseconds between these operations.

3.6 

Some Examples

3.6.1 

Unpacking Time and Date

The following pseudocode may be useful in unpacking time and date.

uint32 timeNdate; // allocate a 32-bit holding value.
uint16 year, month, day, hour, minute, second;

// Read the time and date starting at register offset 8.
timeNdate = Read2HoldingRegisters(8); 
// Extract elements
second = timeNdate mod 2^6;
timeNdate = timeNdate div 2^6;
minute = timeNdate mod 2^6;
timeNdate = timeNdate div 2^6;
hour = timeNdate mod 2^5;
timeNdate = timeNdate div 2^5;
Day = timeNdate mod 2^5;
timeNdate = timeNdate div 2^5;
Month = timeNdate mod 2^4;
timeNdate = timeNdate div 2^4;
year = tim 2000;

3.6.2 

Resetting Forward and Reverse Totals

1.  Ensure inhibit bits are not set and that the update flags (bit 0 and bit 1 of the Status Flags register) are reset.
2.  Send a MASK WRITE REGISTER message (command 22 or 0x16) to register address 5 with the AND mask being set to 0xFFFE 

and the OR mask being 0x0001. This will set the “Lock-out Updates” flag (bit 0) of the Instrument Control Flags register.

3.  Send a WRITE MULTIPLE REGISTERS message (command 16 or 0x10) with the big-endian floating-point representation of the 

value being set. (Hint: use a tool to provide the conversion from a single precision floating point number to its hexadecimal re-
presentation. If the value is being reset to zero, then its value is 0x00000000)

4.  Send a MASK WRITE REGISTER message (command 22 or 0x16) to register address 136 with the AND mask being set to 0xFFFC 

and the OR mask being 0x0003. This will initiate the reset of totals on the unit.

5.  Send a MASK WRITE REGISTER message (command 22 or 0x16) to register address 5 with the AND mask being set to 0xFFFE 

and the OR mask being 0x0000. This will clear the “Lock-out Updates” flag (bit 0) of the Instrument Control Flags register.

When totals are read, they will start from the new values.

Summary of Contents for U3000 V2

Page 1: ...er 2026161 F U3000 V2 Modbus Supplement MA_00138 EN 00 07 2022 Georg Fischer Piping Systems Ltd CH 8201 Schaffhausen Switzerland 41 52 631 30 26 info ps georgfischer com www gfps com 7 Units 4 Velocit...

Page 2: ...dentification 13 3 9 Status Flags 14 4 GLOSSARY 14 Original instruction manual Disclaimer The technical data are not binding It does not constitute expressly warranted characteristics and neither guar...

Page 3: ...the next unit It is the responsibility of the user to install cable and wire to the MULTICOMP MP002510 Modbus plug connector The connection diagram is shown below in Figure 1 Note that the connection...

Page 4: ...for the GF U3000 V2 Ultrasonic Flowmeter The Modbus specification for RTU mode defines an 11 bit character frame containing an 8 bit character If Parity is used then only one stop bit is required If...

Page 5: ...ssages The following message types are supported from the Modbus Application Protocol Specification Message Type Message Number Notes READ HOLDING REGISTERS 03 0x03 Read a contiguous block of register...

Page 6: ...of the mantissa are stored in the higher address Some registers below contain bit mappings These values may be manipulated via the MASK WRITE REGISTER command 22 as outlined in Table 1 Bit fields are...

Page 7: ...value Interface version uint16 0x5A00 R This is a check value and an interface version number This version is zero All values start at the base 0x5A00 2 1 Device ID uint16 GF U3000 V2 Ultrasonic Flow...

Page 8: ...12 MBM to control digital output s on a unit 12 100 Reserved uint16 Sec 6 RZ 0 to 59 101 102 100 101 Date Time uint32 Min 6 R 0 to 59 Hour 5 0 to 23 Day 5 1 to 31 1st 1 Month 4 1 to 12 Jan 1 Year 6 b...

Page 9: ...d 13 Reserved allocation of 13 LS bits of reg 133 Hot probe fault 1 Faulty or disconnected hot probe Cold probe fault 1 Faulty or disconnected cold probe Signal Loss 1 Device is online and has lost si...

Page 10: ...Registers Registers highlighted as RW are updateable They provide the ability to update the unit s configuration Except for the Regime regis ter register 5 offset 4 all updateable registers can be up...

Page 11: ...lags associated with them Values can be written into these registers but no action will be taken until the associated flag is activated There are three key flags that must be considered when updating...

Page 12: ...uint16 year month day hour minute second Read the time and date starting at register offset 8 timeNdate Read2HoldingRegisters 8 Extract elements second timeNdate mod 2 6 timeNdate timeNdate div 2 6 m...

Page 13: ...address 136 with the AND mask being set to 0xFFEF and the OR mask being 0x0010 This will start the update 5 Send a MASK WRITE REGISTER message command 22 or 0x16 to register address 5 with the AND mas...

Page 14: ...entry for the moment Status Flags Online The unit is currently reading flow This flag is reset when the unit stops reading flow and enters the configuration mode Status Flags Urgent Error An urgent er...

Page 15: ...15 GF U3000 V2 Ultrasonic Flowmeter Modbus Supplement to the operating instructions...

Page 16: ...td Unit 2501 U Tower 120 Heungdeok Jungang ro Yeongdeok dong Giheung gu Yongin si Gyeonggi do Phone 82 31 8017 1450 Fax 82 31 217 1454 kor ps georgfischer com www gfps com kr Malaysia George Fischer M...

Reviews: