1. Function description
Flash close: when the relay is in the off state, operate the relay to close for a period of time (setting parameter * 0.1s) and then automatically disconnect;
Flash off: when the relay is in the closed state, the operating relay will close automatically after being disconnected for a period of time (setting parameter * 0.1s);
2. The flash on and flash off function is realized by sending instructions, and the mode cannot be set by using dam debugging software.
3. Instruction description
① Support to control the delay action of one channel separately;
② It supports the delay action of controlling multiple channels with different delay time at one time. When controlling multi-channel delay action, the channels must be continuous.
③ Detailed explanation of single channel flash on / off instruction
field | meaning | detailed description |
FE | Device address | Hexadecimal, representing hexadecimal 254 broadcast address |
10 | 10 instruction | Write multiple register function codes |
00 03 | Starting address | 3 + 5 (n-1), n represents the control channel, and hexadecimal needs to be converted into hexadecimal |
00 02 | Number of control channels | 2 + 5 (n-1), n represents the number of controlled channels, and hexadecimal needs to be converted into hexadecimal |
4 | Control content byte length | 4 + 10 (n-1), n represents the number of controlled channels, and hexadecimal needs to be converted into hexadecimal |
00 04 | instructions | 00 04 is the flash off instruction and 00 02 is the flash off instruction |
00 0A | Flash on / off time | 00 0A is hexadecimal, 10 is decimal, and the interval time is (0.1s * 10) |
41 6B | CRC16 | Check code |
Example:
The 1s instruction (hexadecimal) for controlling the delay of the first channel is as follows:
FE 10 00 03 00 02 04 00 04 00 0A 41 6B
⑥ Detailed explanation of multi-channel flash closing instruction
field | 含義 | detailed description | |
FE | Device address | Hexadecimal, representing hexadecimal 254 broadcast address | |
10 | 10 instruction | Write multiple register function codes | |
00 03 | Starting address | 3 + 5 (n-1), n represents the control channel, and hexadecimal needs to be converted into hexadecimal | |
00 02 | Number of control channels | 2 + 5 (n-1), n represents the number of controlled channels, and hexadecimal needs to be converted into hexadecimal | |
4 | Control content byte length | 4 + 10 (n-1), n represents the number of controlled channels, and hexadecimal needs to be converted into hexadecimal | |
First channel | 00 04 | instructions | 00 04 is the flash off command, and 00 02 is the flash off command |
00 0A | Flash on / off time | 00 0A is hexadecimal, 10 is decimal, and the interval time is (0.1s * 10) | |
00 00 | Default parameters | Default parameter * (n-1), n represents the number of channels dodged | |
00 00 | |||
00 00 | |||
Second channel | 00 04 | instructions | 00 04 is the flash off command, and 00 02 is the flash off command |
00 0A | Interval time | 00 0A is hexadecimal, 10 is decimal, and the interval time is (0.1s * 10) | |
00 00 | Default parameters | Default parameter * (n-2), n represents the number of channels dodged | |
00 00 | |||
00 00 | |||
The nth channel | 00 04 | instructions | 00 04 is the flash off command, and 00 02 is the flash off command |
00 0A | Flash on / off time | 00 0A is hexadecimal, 10 is decimal, and the interval time is (0.1s * 10) | |
00 00 | Default parameters | Default parameter * (N-N), n represents the number of channels dodged | |
00 00 | |||
00 00 | |||
CRC | CRC16 | Check code |
Example:
At the same time, control the flash off delay of channel 1 for 10s, flash off delay of channel 2 for 20s, flash off delay of channel 3 for 30s and flash off delay of channel 4 for 40s. The instructions (hexadecimal) are as follows: