Перейти к содержанию

Навигация

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

Новая страница: «The channels are divided into 4 groups - register types in Modbus: *'''Discrete inputs'''- binary values (1/0) that are read-only (for example, GPIO input States…»
(Новая страница: «If new channels appear in the message broker (for example, when a new device is connected), they will be added to the list when the service is restarted (this hap…»)
(Новая страница: «The channels are divided into 4 groups - register types in Modbus: *'''Discrete inputs'''- binary values (1/0) that are read-only (for example, GPIO input States…»)
Строка 49: Строка 49:
If new channels appear in the message broker (for example, when a new device is connected), they will be added to the list when the service is restarted (this happens when the configuration file is saved or when the controller is restarted).
If new channels appear in the message broker (for example, when a new device is connected), they will be added to the list when the service is restarted (this happens when the configuration file is saved or when the controller is restarted).


Каналы распределены по 4 группам - типам регистров в Modbus:
The channels are divided into 4 groups - register types in Modbus:
* '''Discrete inputs''' - дискретные входы - двоичные значения (1/0), доступные только на чтение (например, состояния входов GPIO);
 
* '''Coils''' - регистры флагов - двоичные значения, доступные на чтение и на запись (например, переключатели состояний реле);
*'''Discrete inputs'''- binary values (1/0) that are read-only (for example, GPIO input States);
* '''Input registers''' - регистры ввода - численные значения, доступные только на чтение (например, значение с датчика температуры);
*'''Coils''' - registers flags - binary values available for reading and writing (for example, switches state relay);
* '''Holding registers''' - регистры хранения - численные значения, доступные на чтение и на запись (например, яркость освещения).
*'''Input registers''' - read-only numeric values (e.g. value from temperature sensor);
*'''Holding registers''' - storage registers - numeric values available for reading and writing (for example, brightness).


Распределение происходит автоматически на основании описания канала (в топиках /devices/+/controls/+/meta/+).
Распределение происходит автоматически на основании описания канала (в топиках /devices/+/controls/+/meta/+).
12 063

правки