BLIIOT Industrial Ethernet Remote I/O Module Application 20--How to Write to Multiple DO Outputs of I/O Module at the same time
Write to multiple DO outputs of this device at the same time
Master Send Data Format:
Receiver Return Data Format:
Example: Simultaneously close the 16 DOs of this device, then:
Server send: 01 0F 00 00 00 10 02 55 AA 5D 0F
01= Device address;
0F= Write multiple holding coils;
00 00=DO register starting address;
00 10 = Control 16 DOs of this device at the same time;
00 00=Number of data sent;
55 AA= DO status data sent, each bit represents a DO status, 0 represents open, 1 represents closed; the first byte 55H is converted into binary: 0101 0101, corresponding to DO1-DO8 status from low to high ; The second byte AAH is converted into binary system: 1010 1010, corresponding to the state of DO9-DO16 from low to high. The details are as follows:
5D 0F = CRC verify.
Device answer: 01 0F 00 00 00 10 54 07
01= Device address;
05= Write a single holding coil;
00 00= DO1 register starting address;
00 10 = 16 DO performed actions.
54 07 = CRC verify.
More information about Ethernet Remote I/O module: https://www.bliiot.com/modbus-tcp-io-modules-p00254p1.html