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

Нет описания правки
(Новая страница: «Before setting up the sensor, wait for the SE to enter the operating mode. The operating mode stabilizes the resistance of the SE under constant ambient condition…»)
Метка: ручная отмена
 
(не показана 21 промежуточная версия 3 участников)
Строка 142: Строка 142:
Before setting up the sensor, wait for the SE to enter the operating mode. The operating mode stabilizes the resistance of the SE under constant ambient conditions — under which the sensor will be constantly operated.
Before setting up the sensor, wait for the SE to enter the operating mode. The operating mode stabilizes the resistance of the SE under constant ambient conditions — under which the sensor will be constantly operated.


Значение Rs0 зависит от типа датчика и может варьироваться от одного экземпляра к другому, поэтому изначально возможно установить значение Rs0 равным сопротивлению после выхода на рабочий режим.
The value of Rs0 depends on the type of sensor and can vary from one instance to another, so it is initially possible to set the value of Rs0 equal to the resistance after entering the operating mode.


==== Автоматическое управление реле ====
==== Automatic relay control ====
В модификациях датчиков с реле алгоритм его работы следующий: если значение Rs/Rs0 ("Rs ratio") превышает установленный порог "High threshold" (регистр 61), реле <b>отключается</b>. Если значение становится меньше порога "Low threshold" (регистр 62), реле <b>включается</b>.
In modifications of sensors with relay the algorithm of its operation is as follows: if the value Rs/Rs0 ("Rs ratio") exceeds the set threshold "High threshold" (register 61), the relay <b>is disabled</b>. If the value becomes less than the "Low threshold" (register 62), the relay <b>is switched on</b>.


Для корректной работы параметры "Rs ratio", "High threshold" и "Low threshold" должны иметь значения, отличные от нуля.
For correct operation, the parameters "Rs ratio", "High threshold" and "Low threshold" must have values other than zero.


==== Управление через web-интерфейс ====
=== Web-based management ===
[[File:WB-MSGR-web.png |300px|thumb|right| Датчик WB-MSGR в web-интерфейсе]]
[[File:WB-MSGR-web.png |300px|thumb|right| WB-MSGR sensor in web interface]]


Описанная выше логика работы реализуется через настройки, которые можно выполнить в web-интерфейс датчика.
The operation logic described above is implemented through settings that can be made in the sensor web interface.
   
   
* Relay — состояние реле, может изменяться вручную. (Например, при срабатывании реле вы можете сначала отключить сигнал тревоги, а затем заняться решением проблемы)
* Relay — relay status, can be changed manually. (For example, when a relay is triggered, you can first turn off the alarm and then address the problem)
* Rs — текущее сопротивление чувствительного элемента.
* Rs — current resistance of the sensing element.
* Rs0 — сопротивление чувствительного элемента в эталонной среде.
* Rs0 — resistance of the sensing element in the reference medium.
* Rs ratio — текущее отношение Rs/Rs0
* Rs ratio — current RS/Rs0 ratio
* High threshold -- порог отключения (см. выше)
* High —  threshold turn-off threshold (see above)
* Low threshold -- порог включения (см. выше)
* Low threshold —  the threshold for inclusion (see above)
* Input Voltage -- напряжение питания модуля датчика
* Input Voltage — the voltage supply of the sensor module


=== Карта регистров Modbus ===
=== 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}}