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

Навигация

Gas sensor WB-MSGR/en: различия между версиями

Нет описания правки
(Новая страница: «=== Modbus register map ===»)
Метка: ручная отмена
 
(не показано 15 промежуточных версий 3 участников)
Строка 164: Строка 164:
=== Modbus register map ===
=== Modbus register map ===


Набор регистров отличается от набора регистров других модулей в силу специфики устройства, приводим его полностью здесь.
The set of registers differs from the set of registers of other modules due to the specifics of the device, we give it completely here.


{| border="1" class="wikitable" style="text-align:center"
{| border="1" class="wikitable" style="text-align:center"
!Регистр / адрес
!Register / address
!тип
!type
!чтение/запись
!read-write
!значение по-умолчанию
!default
!формат
!format
!назначение
!appointment
!В модификациях
!In modification
|-
|-
|8
|8
Строка 180: Строка 180:
|0
|0
|seconds
|seconds
|таймаут для безопасного режима
|timeout for safe mode
|<nowiki>-R</nowiki>
|<nowiki>-R</nowiki>
|-
|-
Строка 195: Строка 195:
||R||-||raw_val * 16
||R||-||raw_val * 16
unsigned
unsigned
||Сырое усреднённое значение с АЦП датчика газа
||Raw averaged value with gas sensor ADC
|все
|all
|-
|-
|51
|51
Строка 202: Строка 202:
|R
|R
|<nowiki>-</nowiki>
|<nowiki>-</nowiki>
|R × 0.1 (Ohm)
|R × 0.1 (Ohm)
unsigned
unsigned
|Значение сопротивления измерительного элемента датчика газа
|The resistance value of the measuring element of the gas sensor
|
|
|-
|-
Строка 213: Строка 213:
|R/R0 * 1000  
|R/R0 * 1000  
unsigned
unsigned
|Отношение Rs/Rs0 (см. регистр 60)
|RS/Rs0 ratio (see register 60)
|
|
|-
|-
Строка 228: Строка 228:
|RW
|RW
|
|
|R × 10 (Ohm)
|R × 10 (Ohm)
unsigned
unsigned
|Значение сопротивления Rs0 измерительного элемента датчика газа при 100ppm для регистров 52 и 61-62
|The resistance value Rs0 of the measuring element of the gas sensor at 100ppm for the registers 52 and 61-62
|
|
|-
|-
Строка 239: Строка 239:
|R/R0 * 1000  
|R/R0 * 1000  
unsigned
unsigned
|Порог для Rs/Rs0 (передний фронт, превышение порога)
|Threshold for Rs/Rs0 (the rising edge, the threshold is exceeded)
|
|
|-
|-
Строка 248: Строка 248:
|R/R0 * 1000  
|R/R0 * 1000  
unsigned
unsigned
|Порог для Rs/Rs0 (задний фронт, падение значение ниже порога)
|Threshold for Rs/Rs0 (falling edge, falling below the threshold value)
|
|
|-
|-
Строка 259: Строка 259:
|
|
|-
|-
| 110 || holding || RW || 96 || baud rate / 100 || скорость порта RS-485, '''делённая на 100'''. Допустимые скорости: 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200 <br>([[UART_Communication_Settings|Настройка параметров обмена данными по RS-485 для modbus-устройств Wiren Board]])
| 110 || holding || RW|| 96 || baud rate / 100 || RS-485 port speed, "'divided by 100"'. Permissible speeds: 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200 <br>([[UART_Communication_Settings|configure RS-485 communication parameters for wiren Board modbus devices]])
|colspan="3"|все
|colspan="3"|all
|-
|-
| 111 || holding || RW || 0 || || настройка бита чётности порта RS-485. Допустимые значения: 0 - нет бита чётности (none), 1 - нечётный (odd), 2 - чётный (even) |
| 111 || holding || RW|| 0 || || configure the RS-485 port parity bit. Valid values: 0 - no parity bit (none), 1 - odd (odd), 2 - even (even) |
|colspan="3"|все
|colspan="3"|all
|-
|-
| 112 || holding || RW || 2 || || количество стоп-битов порта RS-485. Допустимые значения: 1, 2  
| 112 || holding || RW|| 2 || || number of stop bits of RS-485 port. Valid values: 1, 2  
|colspan="3"|все
|colspan="3"|all
|-
|-
|
|
Строка 276: Строка 276:
|
|
|-
|-
| 120 (0x78) || holding || RW || 0 || отличное от 0 || запись в регистр вызывает перезагрузку МК без сохранения состояния
| 120 (0x78) || holding || RW|| 0 || 0 || write to the register causes a reboot of the MK stateless
|все
|everything
|-
|-
| 121 (0x79) || input || R || - || mV || текущее напряжение питания модуля
| 121 (0x79) || input || R || - || mV || current supply voltage of the module
|все
|everything
|-
|-
| 128 (0x80) || holding || RW || 1 || || Modbus-адрес устройства
| 128 (0x80) || holding || RW|| 1 || || Modbus device address
|все
|everything
|-
|-
| 200-206 || input || R || {'W','B','M','S','G','R'} || || сигнатура
| 200-206 || input || R || {'W','B','M','S','G','R'} | | | signature
|все
|everything
|-
|-
| 220-241 || input || R || || __date__ __time__||   дата сборки прошивки
| 220-241 || input || R | | | | _date__ _time__|| firmware build date
|все
|everything
|-
|-
|}
|}


===Карта регистров флагов (Coils)===
===Map of Coils ===




{| border="1" class="wikitable" style="text-align:center"
{| border="1" class="wikitable" style="text-align:center"
!Начальный адрес || Количество || Назначение
!Start address || Quantity || Destination
!В модификациях
!In modification
|-
|-
| 0 || 1 || style="text-align:left" | Состояние реле (чтение и установка) || -R  
| 0 || 1 || style="text-align:left" | relay Status (read and set) || -R  
|-
|-
|}
|}


== Управление по Modbus ==
==Modbus Control==


Подробно о работе с датчиком по протоколу Modbus написано в разделе [[Sensors_Modbus_Management|Управление датчиками Wirenboard по протоколу Modbus]]. Карта регистров приведена выше.
Details of the work with the module via Modbus Protocol is written in [[Sensors_Modbus_Management/en| Sensors Modbus Management ]].
You can also find a map of the device registers there.


== Изображения и чертежи устройства ==
== Images and drawings of the device ==
{{Wbincludes:WBPicturesNoDrawing|1}}
{{Wbincludes:WBPicturesNoDrawing|1}}
{{Wbincludes:WBPicturesNoDrawing|2}}
{{Wbincludes:WBPicturesNoDrawing|2}}