12
Example: Set watchdog triggering time to 30s:
Transmit Message: 30 10 00 10 00 01 02 00 1E 7D 59
Where:
30 is the slave address.
10 is the function used. Write Multiple Registers.
00 10 is the address of the first Holding Register to be written.
00 01 is the number of Holding Registers to be written. 1 in this case.
02 is the number of bytes of data to be sent.
00 1E is the value to be sent. 30 in decimal.
7D 59 is the CRC.
Now, the watchdog time is set to 30s. Therefore, whenever two properly constructed messages are
read in less than 30s, even not addressed to the Lumiplus, the watchdog is not triggered. Otherwise, it
is triggered.
To know the Watchdog time, is necessary read the holding registers.
The response of the Watchdog_time, in this case, will be: 30 03 02 00 1E 45 88
30 is the slave address.
03 is the function used. Read holding registers.
02 is the number of bytes of data to be read.
00 1E is the time configured. 30 in decimal.
45 88 is the CRC.
7.5.2.
WATCHDOG SETUP
The Watchdog Setup, register 0x11, must be setup in conjunction with the Watchdog triggering
register, and the watchdog predefined color/sequence.
The High Byte
of the register defines how to proceed when the Watchdog is triggered. If it is set to 0,
then the Watchdog predefined color/sequence will be considered. If it is set to 1, then the
communication bridge is reset.
The Low Byte
is not considered in this function. Set it to 0.
Example: Configuring the watchdog to do the defined in the watchdog predefined color/sequence:
Transmit Message: 30 10 00 11 00 01 02 00 00 FC 80
Where:
30 is the slave address.
10 is the function used. Write multiple registers.
00 11 is the address of the first register to be written.
00 01 is the number of registers to be written. 1 in this case
02 is the number of bytes to be sent.
00 High Byte. The watchdog will do the defined in the Watchdog predefined color/sequence.
Содержание 57434
Страница 3: ...3 ...