Users Manual

Operating Instructions Smart Weather Sensor
G. Lufft Mess- und Regeltechnik GmbH, Fellbach, Germany 135
19.7 Communication in Modbus Mode
For a simpler integration of WS family Smart Weather Sensors into a PLC environment the
Modbus communication protocol has been made available.
Measurement values are mapped to Modbus Input Registers. The range of values available
is basically the same as for the UMB protocol, including different unit systems.
In the interest of simple and safe integration the use of register pairs for floating point values
or 32 bit integers, which is not part of the Modbus standard, has not been applied. All
measurement values are mapped to 16bit integers using suitable scaling factors.
19.7.1 Modbus Communication Parameters
The Smart Weather Sensor can be configured for MODBUS-RTU or for MODBUS-ASCII.
The base configuration has to be done using the UMB Config Tool.
When selecting MODBUS RTU or MODBUS-ASCII with the UMB Config Tool,
communication parameters 19200 Bd, even parity, will be preselected.
Modbus operating modes: MODBUS-RTU, MODBUS-ASCII
Baud rate: 19200 (9600, 4800 or lower)
Interface Setting 8E1, 8N1, 8N2
NOTE: The Modbus communication has been tested for a poll rate of 1 sec. The proper
function of the Smart Weather Sensor with higher Modbus poll rates has not been tested.
We suggest to set the poll rate to 10 sec or slower, as, with the exception of the channels
„wind speed / wind directions fast“, which are provided for special purposes, the update rate
of the data is >= 10sec. Anyway for most of the weather data significant changes have tob e
expected more in the range of minutes.
19.7.2 Addressing
The Modbus address is deducted from the the UMB device ID (see Chap. 19.3.2).
A device with UMB device ID 1 also has the UMB address 1, etc..
The valid address range of Modbus from 1 to 247 is smaller than that of the UMB device IDs.
If a UMB device ID > 247 has been selected, the Modbus address will be set to 247.
19.7.3 Modbus Functions
The functions of conformance class 0 and 1 have been implemented as far as they are
applicable for the Smart Weather Sensor, i.e. all functions operating on register level.
Starting with device version 227 / firmware version v60 additional coil functions are available
which are used for selected operations. This coil functions are currently not
implemented for WS100-UMB.
Conformance Class 0
0x03
Read Holding Registers
Selected configuration settings
0x16
Write Multiple Registers
Selected configuration settings
Conformance Class 1
0x01
Read Coils
Selected additional operations *)
0x04
Read Input Registers
Measurement values and status information
0x05
Write Single Coil
Selected additional operations *)
0x06
Write Single Register
Selected configuration settings
0x07
Read Exception Status
Currently not used
Conformance Class 2
(partly)
0x0F
Write Multiple Coils
Selected additional operations *)
Diagnostics
0x11
Report Slave ID
(responds also to broadcast address)
*) Verfügbar ab Geräteversion 227