12 063
правки
(Новая страница: «Note the structure of the query data:») |
(Новая страница: «*[01] — address *[0F] — write Multiple Coils function code *[00][00] — address of the first flag register to be recorded *[00][0E] — number of items to re…») |
||
Строка 158: | Строка 158: | ||
Note the structure of the query data: | Note the structure of the query data: | ||
*[01] — | *[01] — address | ||
*[0F] — | *[0F] — write Multiple Coils function code | ||
*[00][00] — | *[00][00] — address of the first flag register to be recorded | ||
*[00][0E] — | *[00][0E] — number of items to record (14) | ||
*[02] — | *[02] — number of data bytes (14 bits are placed in 2 bytes) | ||
*[55][15] — 01010101 00010101 ( | *[55][15] — 01010101 00010101 (the first relay is the lowest bit of the first byte, 8th relay is the highest bit of the first byte, 9th relay is the lowest bit of the second byte) | ||
*[1A][97] — CRC16 | *[1A][97] — CRC16 | ||
правки