LTDVE8CH– INSTRUCTIONS MANUAL
28
register file. The master specifies the starting register address and the number of registers to be read.
Registers are addressed starting at zero. The register data in the response message are packed as two
bytes per register. For each register, the first byte contains the high order bits and the second contains
the low order bits.
14.1.4. Write Single Register (0x06)
This function code is used to write a single register in the controller register file. The master specifies
the address of the register to be written and the actual data to be written. Registers are addressed
starting at zero. The register data in the request message are packed as two bytes per register. For each
register, the first byte contains the high order bits and the second contains the low order bits. The
normal response is an echo of the request, returned after the register contents have been written.
14.1.5. Write Multiple Registers (0x10)
This function code is used to write a block of contiguous registers (1 to 123 registers) in the controller
register file. The master specifies the starting register address, the number of registers and the actual
data to be written. Registers are addressed starting at zero. The register data in the request message
are packed as two bytes per register. For each register, the first byte contains the high order bits and
the second contains the low order bits. The normal response returns the function code, starting
address, and quantity of registers written.
14.2. Register file
The list in
Table 16
: controller register file
summarizes all the Modbus registers implemented in the
controller. There are 512 registers, each of sixteen-bits (two bytes) in size. The registers are mapped
at contiguous addresses starting from 0 and ending to 511.
Address
Name
Type
Range
Description
0
DEVICE_TYPE
R
0-
65535
Device type
1
BOOT_VERSION
R
0-
65535
Bootloader firmware version
2
MCU_VERSION
R
0-
65535
Microcontroller firmware version
3
FPGA_VERSION
R
0-
65535
FPGA firmware version
4
BOARD_VERSION
R
0-
65535
Board version
5
OSC_PERIOD
RW 10-
1000
Period of the internal oscillator
6
FILTER_SEL0
RW 0-6
Filter setting for input TR1
7
FILTER_SEL1
RW 0-6
Filter setting for input TR2
8
FILTER_SEL2
RW 0-6
Filter setting for input TR3
9
FILTER_SEL3
RW 0-6
Filter setting for input TR4