Translations:WB-MIR v1 - Modbus IR Remote Control/25/en: различия между версиями

Материал из Wiren Board
(Новая страница: «=== Register reading example === Let's check whether it is true that we are connected to the module of the desired type. (Module wb-mqtt-serial needs to be stoppe…»)
 
(нет различий)

Текущая версия на 18:38, 23 июля 2019

Определение сообщения (WB-MIR v1 - Modbus IR Remote Control)
=== Пример чтения регистров ===
Проверим, верно ли, что мы подключились именно к модулю нужного типа. (Модуль wb-mqtt-serial должен быть предварительно остановлен). По адресу 200 хранится уникальная сигнатура длиной в 6 регистров. Прочтем 6 регистров, начиная с адреса 200, и преобразуем полученный ответ из шестнадцатеричных цифр в символьную строку:

Register reading example

Let's check whether it is true that we are connected to the module of the desired type. (Module wb-mqtt-serial needs to be stopped). At address 200, a unique signature of 6 registers is stored. Let's read 6 registers, starting with the address 200, and convert the received answer from hexadecimal digits into a character string: