You are on page 1of 8

RS-485 MODBUS for Wind101 MODBUS Weather Stations

Input registers

Prefessional Weather station and Anemometer MODBUS protocol PDF version.

13/12/15

Address
ofset
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55

Access
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro
ro

Register name
humidity sensor temperature
pressure sensor temperature
pressure [15..0]
pressure [31..16]
humidity
wind dirrection
wind speed
rain
lighting status
lighting cnt
AIN1
AIN2
Vmon
state
time [15..0]
time [31..16]
min. humidity sensor temperatu
max. humidity sensor temperat
avg. humidity sensor temperatu
raw humidity sensor temperatu
min. pressure sensor temperat
max. pressure sensor temperatu
avg. pressure sensor temperatu
res1
raw press. temp. [15..0]
raw press. temp. [31..16]
min. pressure [15..0]
min. pressure [31..16]
max. pressure [15..0]
max. pressure [31..16]
avg. pressure [15..0]
avg. pressure [31..16]
raw pressure [15..0]
raw pressure [31..16]
min. humidity
max. humidity
avg. humidity
raw humidity
min. wind speed
max. wind speed
avg. wind speed
res2
raw wind frequency [15..0]
raw wind frequency [31..16]
avg. wind dirrection
raw wind dirrection
raw rain
min. AIN1
max. AIN1
avg. AIN1
raw AIN1
min. AIN2
max. AIN2
avg. AIN2
raw AIN2
raw Vmon

Type

Example
reading/value
23.12C
2312
2312
23.12C

Unit

i16
i16

0.01C
0.01C

u32
u16
u16
u16
u16
u16
u16
u16
u16
u16
u16

1Pa
0.01%
0.01
0.01ms-1
*
HEX
dimensionless
*
*
0.01V
*

u32
i16
i16
i16
u16
i16
i16
i16
u16

1s
0.01C
0.01C
0.01C
HEX
0.01C
0.01C
0.01C
*

u32

HEX

u32

0.001Pa

u32

0.001Pa

u32

0.001Pa

u32
u16
u16
u16
u16
u16
u16
u16
u16

HEX
0.01%
0.01%
0.01%
HEX
0.01ms-1
0.01ms-1
0.01ms-1
*

u32
u16
u16
u16
u16
u16
u16
u16
u16
u16
u16
u16
u16

HEX
0.01
HEX
*
*
*
*
*
*
*
*
HEX
HEX

100123
5000
27521
123
*

100123Pa
50.00%
275.21
1.23ms-1
*

*
12
*
*

*
12
*
*

523

5.23V

1 of 8

hardware no.
firmware no.

u16
u16

*
*

serial no. [32..0]


usart
modbus

u32
u16
u16

*
*
*

config 0 [32..0]

u32

config 1 [32..0]
period
command
reserve
reserve

u32
u16
u16
u16
u16

Time [32..0]
c0
c1
c2
c3
c4
c5

u32
u16
u16
u16
u16
u16
u16

*
*
*
*
*
Seconds after
1.1.1970
*
*
*
*
*
*

kt1[0]

f32

kt1[1]

f32

kt1[2]

f32

kt1[3]

f32

kt1[4]

f32

krh[0]

f32

krh[1]

f32

krh[2]

f32

ktrh[3]

f32

krh[4]

f32

kp[0]

f32

kp[1]

f32

kp[2]

f32

kp[3]

f32

kp[4]

f32

purpose

System
Configuration

Unit

pressure sensor
factory
calibration
constants

Type

pressure sensor
temperature
calibration constants

rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw

Register name

humidity sensor
temperature
calibration constants

Access

pressure sensor
calibration constants

Holding registers
13/12/15

Address
ofset
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51

2 of 8

label
i16
u16
i32
u32
f16
f32
f64

f32

kt1[1]

f32

kt1[2]

f32

kt1[3]

f32

kt1[4]

f32

kws[0]

f32

kws[1]

f32

kws[2]

f32

kws[3]

f32

kws[4]
kwd[0]
kwd[1]

f32
u16
u16

*
*
*

krn[0]

f32

krn[1]

f32

kain1[0]

f32

kain1[1]

f32

kain2[0]

f32

kain2[1]

f32

kvmon[0]

f32

kvmon[1]

f32

humidity sensor
calibration constants

kt1[0]

wind speed
calibration constants

rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw

wind direction
calibration
rain sensor
calibration
constant
voltage
AIN2
AIN1
monitor
calibration calibration
calibration
constant constant
constants

52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89

Comment
signed short 16bit
unsigned short 16bit
signed long 32bit
unsigned long 32bit
half-precision float (IEEE 754-2008 standard)
float 32bit (IEEE 754 standard)
double 64bit (IEEE 754 standard)

Weather stations designed by Barani Design feature MODBUS ASCII, MODBUS RTU and Y-modem communication protocol for
high speed sensor data transfer.

13/12/15

3 of 8

bit
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

Register
name

bit

USART setup

Register
name

Lighting status

RS-485 MODBUS REGISTERS for Wind101 MODBUS Weather Stations

0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

13/12/15

Comment

*
*
*
*
*

Comment
Baudrate 0..32
vis. Next table

Parity
Stop Bits
*
*
*
*
*
*
*
*

4 of 8

bit

Modbus setup

0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

Register
name

bit

Status

Register
name

0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

13/12/15

Comment
Baudrate 0..32
vis. Next table

Parity
Stop Bits
Modbus address
1..127
(1 - default)

Comment
New data sample aviable (set if new measurement
New data aviable (set if new data block measuremend
Humidity sensor not responding
Pressure sensor not responding
Pressure sensor not responding
Humidity sensor not responding
Wind Direction Sensor reading error
Wind speed overflow
Lightning sensor reading error
Analog input 1 error
Analog input 2 error
Vmon input error
*
*
*
*

5 of 8

Register
name

bit

Comment
Writing code to tdis register switch to binary protocol
Code id unsigned 16bit nubmer, value not specified yet

Command

0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

Register
name

bit

Comment

config 0

0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

* - Not used yet

13/12/15

temperature of pressure sensor (t1)


temperature of humidity sensor (t2)
pressure (p)
humidity (rh)
wind speed (ws)
wind dirrection (wd)
rain (rain)
lighting status (ls)
lighting cnt (lc)
AIN1 (ain1)
AIN2 (ain2)
Vmon (vmon)
min. pressure sensor temperature (t1_min)
max. pressure sensor temperature (t1_max)
average pressure sensor temperature (t1_avg)
raw pressure sensor temperature (t1_raw)
min. humidity sensor temperature (t2_min)
max. humidity sensor temperature (t2_max)
average humidity sensor temperature (t2_avg)
raw humidity sensor temperature (t2_raw)
min. pressure (p_min)
max. pressure (p_max)
avg. pressure (p_avg)
raw pressure (p_raw)
min. humidity (rh_min)
max. humidity (rh_max)
avg. humidity (rh_avg)
raw humidity (rh_raw)
min. wind speed (ws_min)
max. wind speed (ws_max)
avg. wind speed (ws_max)
raw wind frequency

6 of 8

Register
name

bit

config 1

0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

Comment
avg. wind dirrection (wd_awg)
raw wind dirrection (wd_raw)
raw rain (rain_raw)
min. AIN1 (ain1_min)
max. AIN1 (ain1_max)
avg. AIN1 (ain1_avg)
raw AIN1 (ain1_raw)
min. AIN2 (ain2_min)
max. AIN2 (ain2_max)
avg. AIN2 (ain2_avg)
raw AIN2 (ain2_raw)
raw Vmon (vmon_raw)
state flags for internal sensors

- write 1 to bit enable column in log file


Register
name

value

Comment

command

0x0000 ACCEPTED
0x0001 SET_TIME
0x0002 RESTORE_DEFAULT
0x0003 SWITCH_TO_CLI
0x0004 SAVE_CONFIG
0x0005 LOAD_CONFIG
0x0006 SAVE_CALIB
0x0007 LOAD_CALIB
0x0008 SAVE_MODBUS
0x0009 LOAD_MODBUS
0x000A SAVE_CLI
0x000B LOAD_CLI
0x000C RESET
0x000D CLEAR_CALIB
0xA5A5 CMD_FAILED

0XFFFF CMD_UNKNOWN
Weather stations designed by Barani Design feature MODBUS ASCII, MODBUS RTU and Y-modem communication protocol
for high speed sensor data transfer.

13/12/15

7 of 8

RS-485 MODBUS BAUDRATE for Wind101 MODBUS Weather Stations


code
baudrate [Bd]
code
parity
0
600
0
no parity (default)
1
1200
1
odd parity
2
2400
2
even parity
3
4800
3
no parity
4
9600
5
14400
6
19200
code
baudrate [Bd]
7
28800
0
1 stop bit (default)
8
38400
1
2 stop bits
9
56000
10
57600
11
115200 (default)
12
128000
13
230400
14
256000
15
460800
16
921600
17
1000000
18
2000000
19
115200
20
115200
21
115200
22
115200
23
115200
24
115200
25
115200
26
115200
27
115200
28
115200
29
115200
30
115200
31
115200
32
115200
Weather stations designed by Barani Design feature MODBUS ASCII, MODBUS RTU and Y-modem communication
protocol for high speed meteo data transfer.

13/12/15

8 of 8

You might also like