Fast Modbus/en: различия между версиями

Новая страница: «===How does it work?=== 500px|thumb|right|Polling of registers in Fast Modbus and standard protocol 500px|thumb|right|Distribution of event polling time Every 50 ms, the master sends a broadcast request on the bus, which is received by all devices on the bus. If a device generates an event, it sends a response containing the event identifier, its type, and additional data. If there are multiple d...»
(Новая страница: «#When changing the value of the register that supports events. #When rebooting the device. This is the only event that occurs immediately after device startup.»)
(Новая страница: «===How does it work?=== 500px|thumb|right|Polling of registers in Fast Modbus and standard protocol 500px|thumb|right|Distribution of event polling time Every 50 ms, the master sends a broadcast request on the bus, which is received by all devices on the bus. If a device generates an event, it sends a response containing the event identifier, its type, and additional data. If there are multiple d...»)
Строка 23: Строка 23:
#When rebooting the device. This is the only event that occurs immediately after device startup.
#When rebooting the device. This is the only event that occurs immediately after device startup.


<div lang="ru" dir="ltr" class="mw-content-ltr">
===How does it work?===
===Как это работает?===
 
[[File:register_polling.png|500px|thumb|right|Опрос регистров в Быстром Modbus и стандартном протоколе]]
[[File:register_polling_en.png|500px|thumb|right|Polling of registers in Fast Modbus and standard protocol]]
[[File:polling_time.png|500px|thumb|right|Распределение времени опроса событий]]
[[File:polling_time_en.png|500px|thumb|right|Distribution of event polling time]]
Мастер каждые 50 мс отправляет в шину широковещательный запрос, который получают все устройства на шине. Если устройство сгенерировало событие оно отправляет ответ содержащий идентификатор события, его тип и дополнительные данные. Если таких устройств несколько, они устраивают арбитраж, в котором побеждает устройство у которого Slave ID меньше. Подробнее про арбитраж читайте на [https://github.com/wirenboard/wb-modbus-ext-scanner/blob/main/protocol.md github].
Every 50 ms, the master sends a broadcast request on the bus, which is received by all devices on the bus. If a device generates an event, it sends a response containing the event identifier, its type, and additional data. If there are multiple devices that generate such events, they engage in arbitration, in which the device with a lower Slave ID wins. For more information about arbitration, please refer to [https://github.com/wirenboard/wb-modbus-ext-scanner/blob/main/protocol.md github].
</div>


<div lang="ru" dir="ltr" class="mw-content-ltr">
<div lang="ru" dir="ltr" class="mw-content-ltr">