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 control multiple relays to output different switch states with one command

2022-03-09 18:11:41| | 0

When one command controls the action of multiple relay output channels:

1. Use to write multiple coil registers function code: 15 function code (hexadecimal: 0f);

2. The relay channel of control output must be continuous without interval;

3. The status of each relay output channel can be set differently.

Instruction (hexadecimal) details:

Specific control instructions:

fieldmeaningdetailed description
FEDevice addressHexadecimal, representing hexadecimal 254 broadcast address
0F0f instructionWrite multiple coil function codes
00 00Starting addressStarting from the relay of the first circuit, 00 represents the first circuit
00 10Control quantityNumber of relay channels controlled, 16 channels
2Byte lengthSend command byte length (8 channels are 1 byte)
FF FF(/00 00Full open and full close commandSpecific control instructions
A6 64/A7 D4CRC16Check bit

The coil register uses binary 1 and 0 states to represent the output state of the specific relay. Write 1 to represent the on of the relay and write 0 to represent the off of the relay, with one byte per 8 channels.

give an example:

① In the 16 channel relay output command, 1, 3, 5, 8, 10 and 12 are disconnected and others are on. The specific calculation process of control command is as follows:

Binary:

101.png

Hexadecimal control instruction: 56 (1-8 channels) AF (9-16 channels)

All control commands are as follows:

FE 0F 00 00 00 10 02 56 AF D8 08

② In the output command of channel 10 relay, 2, 4, 6 and 8 are disconnected and others are on. The specific calculation process of control command is as follows:

Binary:

102.png

Hexadecimal control instruction: AA (1-8 channels) 03 (9-10 channels)

All control commands are as follows:

FE 0F 00 00 00 0A 02 AA 03 9E 6D


Contactus
Manager Wang Manager Wang
Official Accounts OfficialAccounts
Service hotline
400-6688-400
延寿县| 扎兰屯市| 元江| 沙田区| 巴中市| 深水埗区| 遂平县| 克东县| 门源| 安徽省| 合山市| 蛟河市| 弋阳县| 股票| 泾阳县| 西青区| 邳州市| 达州市| 诸暨市| 正阳县| 南京市| 博湖县| 冷水江市| 郴州市| 河北区| 肥东县| 介休市| 曲沃县| 南通市| 常宁市| 马尔康县| 嫩江县| 汽车| 通道| 峨山| 尼勒克县| 长泰县| 广饶县| 瓦房店市| 大竹县| 洞头县|