EasyManua.ls Logo

BLH NOBEL G4-HE - Page 150

BLH NOBEL G4-HE
194 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Technical Manual
6-44
Examples
Example 1: Setting ‘Level 1 Value’ to 123.5 (Writing to float value register).
1. Make sure that the previous command was not 251.
Set command byte (00) to 0 if previous command was 251.
2. Set number of registers (2) to write in byte 01.
3. Set start address (46026) in bytes 02 and 03.
See chapter ‘Communication – Modbus protocol – General registers’.
4. Set the following four bytes (04 – 07) to the value to write (123.5).
5. Enter the command (251) in byte 00.
Byte
Description
Dec
Hex
00 Command 251 FB
01 Number of registers to write 2 02
02 – 03 Start address 46026 B3 CA
04 – 07 Value to write in register 1 and 2 123.5 42 F7 00 00
08 – 15 Write registers 3 – 6.
Example 2: Setting ‘Setpoint 14 value’ to 123.5 (Writing to integer value register).
1. Make sure that the previous command was not 251.
Set command byte (00) to 0 if previous command was 251.
2. Set number of registers (3) to write in byte 01.
3. Set start address (42169) in bytes 02 and 03.
See chapter ‘Communication – Modbus protocol – General registers’.
4. Set the following four bytes (04 – 07) to the value to write 123.50,
i.e. 12350 and two decimals.
5. Set bytes 08 and 09 to number of decimals. In this example is 2 decimals used.
6. Enter the command (251) in byte 00.
Byte
Description
Dec
Hex
00 Command 251 FB
01 Number of registers to write 3 03
02 – 03 Start address 42169 A4 B9
04 – 07 Value to write in register 1 and 2 12350 00 00 30 3E
08 – 09 Value to write to register 3 2 00 02
10 – 15 Write registers 4 – 6.

Table of Contents