Manual
Weather Sensor u[sonic]WS7 Modbus
(16480.001) u[sonic]WS7 Modbus
Manual
6
Modbus data protocols u[sonic]
Note: Modbus must be con
fi
gured in default.
This manual covers the general Modbus speci
fi
cation common to all Modbus sensors from LAMBRECHT meteo. The manual
allows easy operation of all LAMBRECHT meteo Modbus sensors. Some sensors of the Modbus family o
ff
er additional regis-
ters and functions, which are described in separate documents via the registers and functions described here. The registers
and functions described in this manual are su
ffi
cient for general operation of Modbus sensors in a weather station or PLC.
6.1 Modbus-protocols
The Lambrecht meteo Modbus sensors and the met[LOG] follow the speci
fi
cation of the Modbus organization: “MODBUS
APPLICATION PROTOCOL SPECIFICATION V1.1b3”.
(See www.modbus.org).
6.2 Data
encoding
MODBUS uses the “big-endian” format for addresses and data. This means that if a value is transmitted with a number format
that is larger than a single byte, the “most signi
fi
cant byte” is sent
fi
rst. For values that go beyond one register (e.g. 32 bit)
this is not clearly speci
fi
ed for the Modbus. In these cases (32 bit or 64 bit) the LAMBRECHT Modbus sensors follow the big-
endian number format.
Example Big-Endian:
Register size value
16 - bits 0x1234 is transmitted in the order: 0x12 0x34.
Example big-endian (32 bit or 64 bit):
Register size value
32 - bits 0x12345678 is transmitted in the order: 0x12 0x34 0x56 0x78.
6.3 Device-adress
The addresses 1...247 are permitted for Modbus.
6.4 Standard
con
fi
guration - default
Baud rate: 19200 Baud
Address: Each sensor type (or family) has its own default address.
Default addresses of the LAMBRECHT sensors:
Adress
Sensor
1
Wind speed
2
Wind direction
3
Precipitation rain[e]
4
THP
5
EOLOS IND
6
com[b]
7
PREOS
8
ARCO
9
u[sonic]
10
Pyranometer 2nd Class
11
Secondary standard Pyranometer
12
PT100 to Modbus converter (temperature)
13
u[sonic]WS7
Byte frame according to MODBUS standard for RTU mode:
8E1 (1 start bit, 8 data bits, 1 parity bit (even parity), 1 stop bit)
6.5
Modbus command set
The LAMBRECHT Modbus sensors support the following commands:
• Read Input Register” command: 0x04 (measured data)
• Write Multiple Register” command: 0x10 (Write sensor data)
6