玉米地听见女人爽叫,把胸露出来给人揉玩视频,色色AV女优天堂在线,WWW.就去干,叼嘿视频在线观看桃花,在线观看最新AV网站

首頁
產(chǎn)品
卓越 ? 易用 ? 可靠
視頻
讓中國物聯(lián)網(wǎng)領(lǐng)先世界
搜索
歷史搜索
搜索發(fā)現(xiàn)
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


聯(lián)系銷售
銷售王經(jīng)理微信 銷售王經(jīng)理
微信公眾號 微信公眾號
服務(wù)熱線
400-6688-400
英山县| 禄丰县| 华池县| 吉林省| 阜新| 荃湾区| 晋城| 仪陇县| 会宁县| 藁城市| 永仁县| 丽江市| 清涧县| 漳浦县| 黄陵县| 余姚市| 建水县| 四子王旗|