12 063
правки
(Новая страница: «Let's take a closer look at how data is exchanged between the client device sending the request and the server device responding to it. The following figure shows…») |
|||
Строка 155: | Строка 155: | ||
=== Modbus request and response data format === | === Modbus request and response data format === | ||
Let's take a closer look at how data is exchanged between the client device sending the request and the server device responding to it. The following figure shows how the controller communicates with a device with address 0x01. We want to read 8 coil registers starting from the first one. | |||
[[ | [[File:Read_8_Coils_2.png|600px|thumb|center|Data exchange in Modbus]] | ||
В качестве данных мы получили шестнадцатеричное число 0x2D, то есть состояние восьми coil-регистров в двоичном виде такое: 0b10110100. | В качестве данных мы получили шестнадцатеричное число 0x2D, то есть состояние восьми coil-регистров в двоичном виде такое: 0b10110100. |
правки