99精品国产在热久久无码,av无码精品一区二区三区四区_国产69精品久久久久9999_精品久久久中文字幕无码_国产精品麻豆VA在线播放_亚洲日韩欧美专区制服_色久视频_婷婷久久综合,久久久精品国产免费,欧美精品久久久久久久自慰,无码国产精品一区二区高潮,国内精品九九久久久精品_国产99久久久久久免费看_中文精品99久久国产

Home
News
Let China lead the world in iot
About
Build a smart world where everything is connected
search
History search
Search and find
HOME > SERVICE > Problem > I/O

How to modify the flash on / off instruction

2022-03-09 18:15:10| | 0

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

fieldmeaningdetailed description
FEDevice addressHexadecimal, representing hexadecimal 254 broadcast address
1010 instructionWrite multiple register function codes
00 03Starting address3 + 5 (n-1), n represents the control channel, and hexadecimal needs to be converted into hexadecimal
00 02Number of control channels2 + 5 (n-1), n represents the number of controlled channels, and hexadecimal needs to be converted into hexadecimal
4Control content byte length4 + 10 (n-1), n represents the number of controlled channels, and hexadecimal needs to be converted into hexadecimal
00 04instructions00 04 is the flash off instruction and 00 02 is the flash off instruction
00 0AFlash on / off time00 0A is hexadecimal, 10 is decimal, and the interval time is (0.1s * 10)
41 6BCRC16Check 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
FEDevice addressHexadecimal, representing hexadecimal 254 broadcast address
1010 instructionWrite multiple register function codes
00 03Starting address3 + 5 (n-1), n represents the control channel, and hexadecimal needs to be converted into hexadecimal
00 02Number of control channels2 + 5 (n-1), n represents the number of controlled channels, and hexadecimal needs to be converted into hexadecimal
4Control content byte length4 + 10 (n-1), n represents the number of controlled channels, and hexadecimal needs to be converted into hexadecimal
First channel00 04instructions00 04 is the flash off command, and 00 02 is the flash off command
00 0AFlash on / off time00 0A is hexadecimal, 10 is decimal, and the interval time is (0.1s * 10)
00 00Default parametersDefault parameter * (n-1), n represents the number of channels dodged
00 00
00 00
Second channel00 04instructions00 04 is the flash off command, and 00 02 is the flash off command
00 0AInterval time00 0A is hexadecimal, 10 is decimal, and the interval time is (0.1s * 10)
00 00Default parametersDefault parameter * (n-2), n represents the number of channels dodged
00 00
00 00
The nth channel00 04instructions00 04 is the flash off command, and 00 02 is the flash off command
00 0AFlash on / off time00 0A is hexadecimal, 10 is decimal, and the interval time is (0.1s * 10)
00 00Default parametersDefault parameter * (N-N), n represents the number of channels dodged
00 00
00 00

CRCCRC16Check 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:

103.jpg

Contactus
Manager Wang Manager Wang
Official Accounts OfficialAccounts
Service hotline
400-6688-400
杭锦后旗| 运城市| 观塘区| 涟水县| 津市市| 杨浦区| 山西省| 大理市| 门头沟区| 贵定县| 白银市| 鹿邑县| 弥渡县| 金沙县| 忻城县| 河东区| 丁青县| 陵水| 黎川县| 荔波县| 安达市| 武宁县| 绥棱县| 上高县| 浦城县| 聊城市| 南宫市| 定边县| 会泽县| 溧阳市| 阿拉善右旗| 蓬安县| 盱眙县| 廉江市| 昌江| 钟祥市| 衡南县| 祁阳县| 海盐县| 成安县| 乌拉特中旗|