MB40 & MB45 MODBUS TCP/IP Gateway
Page
11
of
21
Weather Station Date and Time Configuration
The date and time of the weather station can be directly altered by the MB40, by writing to specific
Modbus Registers. The date command is of the following format:
SET DATE YYYY MM DD<cr>
Where each argument is set using the Modbus registers:
SET DATE holding_register[248] holding_register[249] holding_register[250] <cr>
The command is sent to the Weather Station by writing a 1 to Holding Register 251.
Similarly, the time command is of the following format:
SET TIME HH MM SS<cr>
Where each argument is set using the Modbus registers:
SET TIME holding_register[252] holding_register[253] holding_register[254] <cr>
The command is sent to the Weather Station by writing a 1 to Holding Register 255.
Note that there is no error checking on this interface. Once a one is written to the send register, the
command will be sent to the weather station, even if there is garbage or incorrect arguments
specified.
Take care when using this functionality.
Table 15: EEPROM Write Modbus Register Listing
Modbus Holding
Register
Description
248
Year argument
Four digits: format YYYY
249
Month argument
Two digits: format MM. Padded with leading
zeroes.
250
Day argument
Two digits: format DD. Padded with leading
zeroes.
251
Commit Date to Weather Station Write a 1 to send date command.
252
Hour argument
Two digits: format HH. Padded with leading
zeroes.
253
Minute argument
Two digits: format MM. Padded with leading
zeroes.
254
Second argument
Two digits: format SS. Padded with leading
zeroes.
255
Commit Time to Weather Station Write a 1 to send time command.