TReX User Manual v2.14 Firmware
Function Code
Description
Valid Address
Range
Registers
01 – Read Coils
Code to read the 8 TReX digital
outputs (MASTER TReX plus up to 10
wireless SLAVE TReX units)
0x0000 - 0x0057
1 to 88
02- Read
Digital Inputs
Code to read the up to 88 TReX digital
inputs (MASTER TReX plus up to 10
wireless SLAVE TReX units)
0x0000 - 0x0057
10001 to 10088
03- Read
Holding
Registers
Read DAC1 registers
Read DAC2 registers
0x0000 – 0x000A
0x0100 - 0x010A
40001 to 40011
40257 to 40267
04 – Read Input
Registers
Code to read the ADC1
Code to read the ADC 2
Code to read Temperature
Reserved
Code to read BattV
Read Link Status Count
0x0000 – 0x000A
0x0100 – 0x010A
0x0200 – 0x020A
0x0300 – 0x030A
0x0400 – 0x040A
0x0500 – 0x050A
30001 to 30011
30257 to 30267
30513 to 30523
30769 to 30779
31025 to 31035
31281 to 31291
05 – Write
Single Coil
Code to write to the 8 TReX
outputs(MASTER TReX plus up to 10
wireless SLAVE TReX units)
0x0000 - 0x0057
1 to 88
06 – Write
Single Register
Code to write DAC1
Code to write DAC2
Special Command Code
0x0000 – 0x000A
0x0100 – 0x010A
0x0200 – 0x020A
40001 to 40011
40257 to 40267
40513 to 40523
15 – Write
Multiple Coils
Code to write to up to 8 outputs at once
(MASTER TReX plus up to 10
wireless SLAVE TReX units)
0x0000 - 0x0057
1 to 88
16- Write
Multiple
Registers
Message TX Buffer (see below)
0x0300 – 0x03FA
40769 to 40892
Modbus Mapping Table
Base Address
Num Registers
Description
R/W
Bits
1
88
Digital Out (discrete)
R/W
1
10001
88
Digital In (discrete)
R
1
30001
11
ADC 1 (raw count 0-1023)
R
16
30257
11
ADC 2(raw count 0-1023 )
R
16
30513
11
Temperature 1(signed short x 10)
R
16
© WTE Limited, 2018 – Christchurch New Zealand
Page 90 of 158