Hardy HI 6300 Series User Manual

Page 44

Advertising
background image

36 Chapter

4

b. Place 0x0201 into data register #3.

2. Enter the command #0 into data register #0.

3. Run the Modbus Function code #16 (write multiple registers).

4. Run the Modbus Function code #4 (read multiple registers).

5. Read the value for the span parameter in data registers #4 & 5. This value will be

in floating point format.

Example 2: If you wish to write a new span value of 100.55:

1. Enter the Span parameter ID into data registers 2 & 3. The Span ID is

0x0000 0201.

a.

Place 0x0000 into data register #2.

b. Place 0x0201 into data register #3.

2. Enter the new value into data registers 4 & 5. The float value 100.55 in hex is

0x42C9 1999.

a.

Place 0x42C9 into data register #4.

b. Place 0x1999 into data register #5.

3. Enter the write float command into data register #0. The write float command is

0x1001.

a.

Place 0x1001 into data register #0.

4. Run the Modbus Function code #16 (write multiple registers).

5. Run the Modbus Function code #4 (read multiple registers). This will allow the

user to read the status of the command in data register #1.

If you wish to then read back the value you have written:

6. Enter the command #0 into data register #0.

7. Run the Modbus Function code #16 (write multiple registers), or Function code

#6 (write single register) insuring the correct data location is being set.

8. Run the Modbus Function code #4 (read multiple registers).

Read the value for the span parameter in data registers #4 & 5. This value will be in
floating point format.

Advertising