WB-MRM2-mini Modbus Relay Modules/en: различия между версиями

Часть переводимой страницы WB-MRM2-mini.
(Новая страница: «Note: the green Status led on the back of the WB-MRM2 module has started to flash intermittently, which means that the Wiren Board is communicating with the module.»)
(Часть переводимой страницы WB-MRM2-mini.)
 
(не показаны 23 промежуточные версии 2 участников)
Строка 2: Строка 2:
{{DISPLAYTITLE:Dual Channel Relay Mini-module WB-MRM2-mini}}{{#vardefine:ProductFullName1|Dual Channel Relay Mini-module WB-MRM2-mini NO}} {{#vardefine:FileName1|WB_MRM2-mini_NO}} {{#vardefine:ProductName1|WB_MRM2-mini_NO}} {{#vardefine:ProductFullName2|Dual Channel Relay Mini-module WB-MRM2-mini NC}} {{#vardefine:FileName2|WB_MRM2-mini_NC}} {{#vardefine:ProductName2|WB_MRM2-mini_NC}}
{{DISPLAYTITLE:Dual Channel Relay Mini-module WB-MRM2-mini}}{{#vardefine:ProductFullName1|Dual Channel Relay Mini-module WB-MRM2-mini NO}} {{#vardefine:FileName1|WB_MRM2-mini_NO}} {{#vardefine:ProductName1|WB_MRM2-mini_NO}} {{#vardefine:ProductFullName2|Dual Channel Relay Mini-module WB-MRM2-mini NC}} {{#vardefine:FileName2|WB_MRM2-mini_NC}} {{#vardefine:ProductName2|WB_MRM2-mini_NC}}
'''[https://wirenboard.com/en/product/WB-MRM2-mini/ Buy online]'''
'''[https://wirenboard.com/en/product/WB-MRM2-mini/ Buy online]'''
[[File:MiniRelay-2.JPG| thumb | 200px|Dual Channel Relay Mini-module WB-MRM2-mini]]
[[File:MINI.png| thumb | 200px|Dual Channel Relay Mini-module WB-MRM2-mini v.2]]
[[File:Mrm-2-mini_.png| thumb | 200px|Dual Channel Relay Mini-module WB-MRM2-mini]]
[[File:MiniRelay-2.JPG| thumb | 200px|Dual Channel Relay Mini-module WB-MRM2-mini v.1]]
 


== General information ==
== General information ==
=== Purpose===  
=== Purpose===  
Two-channel relay module WB-MRM2-mini is designed for use in building automation systems. The module is controlled from the controller [[Wiren Board 6/en|Wiren Board 6]] or a computer via the bus [[RS-485/en| RS-485]] via [[Relay Module Modbus Management/en |Modbus Protocol]], as well as via external buttons connected to the module. Miniature dimensions of the module allow you to mount it next to the load in the cable channels, bowls lamps, deep installation boxes for sockets and switches.
Two-channel relay module WB-MRM2-mini v.2 is designed for use in building automation systems. The WB-MRM2-mini v.1 featured all-in-one terminal blocks and a lower height (46 mm). The module is mnaged from the controller [[Wiren Board 6/en|Wiren Board 6]] or a computer via the bus [[RS-485/en| RS-485]] via [[Relay Module Modbus Management/en |Modbus Protocol]], as well as via external buttons connected to the module. Miniature dimensions of the module allow you to mount it next to the load in the cable channels, bowls lamps, deep installation boxes for sockets and switches.


=== Outputs===   
=== Outputs===   
Строка 23: Строка 24:
The screw-free terminals b1 and b2 of the module have 2 inputs of the dry contact type, not isolated from the power supply. RC chains are used on each input line to eliminate contact chatter. The inputs are pulled up by resistors to the +3.3 V power line. Buttons or switches with locking are connected between the GND pin and the corresponding b1 or b2 input. The inputs can be used as general-purpose inputs, for counting signals and for direct control of relay channels.  
The screw-free terminals b1 and b2 of the module have 2 inputs of the dry contact type, not isolated from the power supply. RC chains are used on each input line to eliminate contact chatter. The inputs are pulled up by resistors to the +3.3 V power line. Buttons or switches with locking are connected between the GND pin and the corresponding b1 or b2 input. The inputs can be used as general-purpose inputs, for counting signals and for direct control of relay channels.  


The inputs have several modes of operation: trigger mode (for control with buttons) and repeat mode (for control with switches). In the trigger mode, to change the state of the relay, it is enough to close and open the input once. The change of state occurs on the rising edge (that is, when the circuit). In the repeat mode, the relay state is determined by the input state: the input is closed — the relay is on, open — the relay is off. Details about the mode switching  are written in [[ Modbus Management Of Relay Modules/en|Modbus Management Of Relay Modules]].
The inputs have several modes of operation: trigger mode (for control with buttons) and repeat mode (for control with switches). In the trigger mode, to change the state of the relay, it is enough to close and open the input once. The change of state occurs on the rising edge (that is, when the circuit). In the repeat mode, the relay state is determined by the input state: the input is closed — the relay is on, open — the relay is off. Details about the mode switching  are written in [[ Relay Module Modbus Management/en|Relay_Module_Modbus_Management]].




Строка 128: Строка 129:
|-
|-
|Overall dimensions (l x W x h)  
|Overall dimensions (l x W x h)  
|46 x 24 x 20.5 mm
|52 x 24 x 20.5 mm
|-
|-
! colspan="2" |Display
! colspan="2" |Display
Строка 150: Строка 151:


===Module dimensions ===
===Module dimensions ===
[[File:Wb-mrm2-mini-sketch.png|400px|thumb|left
[[File:Wb-mrm2-mini-scetch.png|400px|thumb|left
|Module dimensions WB-MRM2-mini]]
|Module dimensions WB-MRM2-mini]]


Строка 176: Строка 177:
![[File:WB-MRMR2-mini-old-WEB.png|300px|thumb|WB-MRMR2-mini module (older versions) in the controller web interface]]
![[File:WB-MRMR2-mini-old-WEB.png|300px|thumb|WB-MRMR2-mini module (older versions) in the controller web interface]]
|}
|}
The new device is added to the web interface in the section of the corresponding RS-485 port. In the web-interface on the right panel select Configs -> Serial Device Driver Configuration. In the /dev/ttyAPP1 port settings, add a new device (WB-MRM2 or WB-MRMR2-old, see below) by clicking on the '+ Serial device' button in the List of Devices section. Then specify the address of the device and select its type. Details about the device configuration in the web interface Wiren Board see [[RS-485:Настройка_через_веб-интерфейс/en]].
The new device is added to the web interface in the section of the corresponding RS-485 port. In the web-interface on the right panel select Configs -> Serial Device Driver Configuration. In the /dev/ttyAPP1 port settings, add a new device (WB-MRM2 or WB-MRMR2-old, see below) by clicking on the '+ Serial device' button in the List of Devices section. Then specify the address of the device and select its type. Details about the device configuration in the web interface Wiren Board see [[https://wirenboard.com/wiki/index.php/RS-485:Configuration_via_Web_Interface/en|  article]].


A new device appeared in the Devices section, the name is made up of the device type and address: '''WB-MRM2 43'''  
A new device appeared in the Devices section, the name is made up of the device type and address: '''WB-MRM2 43'''  
Строка 182: Строка 183:
Note: the green Status led on the back of the WB-MRM2 module has started to flash intermittently, which means that the Wiren Board is communicating with the module.  
Note: the green Status led on the back of the WB-MRM2 module has started to flash intermittently, which means that the Wiren Board is communicating with the module.  


Устройство WB-MRM2 стандартное, поэтому его описание задано в шаблоне, который хранится на контроллере Wiren Board в файле /usr/share/wb-mqtt-serial/templates/config-wb-mrm2.json.
The WB-MRM2 device is standard, so its description is specified in the template that is stored on the Wiren Board controller in the file /usr/share/wb-mqtt-serial/templates/config-wb-mrm2.json.
В модулях с версией прошивки до 1.5.4 включительно использовалась другая карта регистров, где состояние входов описывалось discrete-регистрами 0 и 1, в более новых устройствах предполагается использование holding-регистров 7 и 8. Если вы используете старое устройство, то для корректной работы используйте шаблон /usr/share/wb-mqtt-serial/templates/config-wb-mrm2-old.json.
In modules with firmware version up to 1.5.4 inclusive, another register card was used, where the state of the inputs was described by the discrete registers 0 and 1, in newer devices the holding registers 7 and 8 are supposed to be used. If you are using an older device, use the /usr/share/wb-mqtt-serial/templates/config-wb-mrm2-old.json. template to work correctly.


== Управление модулем через web-интерфейс Wiren Board ==
== Module Control via the Wiren Board web interface ==


Пример управления релейным модулем WB-MRM2-mini контроллером Wiren Board 5 и программирования сценариев управления мы рассмотрим на простом макете, когда релейный модуль является единственным устройством, подключенным к контроллеру (см. схему в разделе [[#Монтаж|Монтаж]]). Нормально разомкнутая кнопка без фиксации подключена ко входу 1 и GND. Питание 12 В подается на входы V+(+) и GND (-). Входы/выходы RS-485 A и B первого порта контроллера и модуля WB-MRM2-mini соединены.  
An example of controlling a WB-MRM2-mini relay module with a Wiren Board 6 controller and programming control scenarios will be discussed in a simple layout, where the relay module is the only device connected to the controller (see the diagram in [[#Mounting|Mounting]]). Normally open button without fixation is connected to input 1 and GND. 12 V power is supplied to the V+(+) and GND (- ) inputs. The RS-485 A and B inputs/outputs of the first controller port and the WB-MRM2-mini module are connected.  


{|  border="0" class="wikitable" style="text-align:center; float:right; margin-left: 10px;"
{|  border="0" class="wikitable" style="text-align:center; float:right; margin-left: 10px;"
|-
|-
|[[Файл:WB-MRMR2-mini-WEB-relay.png|300px|thumb|center|Кнопки управления каналами реле]]  
|[[Файл:WB-MRMR2-mini-WEB-relay.png|300px|thumb|center|Relay channel control buttons]]  
|[[Файл:WB-MRMR2-mini-WEB-button.png|300px|thumb|center|Флажки состояния входов]]
|[[Файл:WB-MRMR2-mini-WEB-button.png|300px|thumb|center|Input status flags]]
|[[Файл:WB-MRMR2-mini-WEB-counter.png|300px|thumb|center|Счетчик входов]]
|[[Файл:WB-MRMR2-mini-WEB-counter.png|300px|thumb|center|Input counter]]
|[[Файл:WB-MRMR2-mini-WEB-timer.png|300px|thumb|center|Время отключения таймера безопасности]]
|[[Файл:WB-MRMR2-mini-WEB-timer.png|300px|thumb|center|Safety timer off time]]
|}
|}




С помощью виртуальных выключателей в web-интерфейсе Relay 1 и Relay 2 можно управлять соответствующими выходами модуля и следить за их состоянием. Если реле будет включено или выключено через внешний вход, это отразится и в web-интерфейсе.
Using virtual switches Relay1 and Relay 2 in the web-interface, you can control the corresponding outputs of the module and monitor their status. If the relay is turned on or off via the external input, it will be reflected in the web-interface.
Текущее состояние входов показывают флажки Button 1 и Button 2 (на них нельзя щелкнуть, чтобы изменить состояние). Счетчики нажатий/включений отображаются в полях  Button 1 counter и Button 2 counter. Значения счетчиков хранятся в оперативной памяти микроконтроллера модуля реле и обнуляются при выключении/включении питания и сбросе.
The current state of the inputs is indicated by the Button 1 and Button 2 checkboxes (they cannot be clicked to change the state). Press/enable counters are displayed in the Button 1 counter Button 2 counter fields. The meter values are stored in the memory of the relay module microcontroller and are reset when the power is turned on/off and reset.


Ползунок Safety Timer позволяет задать время отключения (в секундах) всех выходов при отсутствии обмена данными с Wiren Board (0 – таймер безопасности отключен). При возобновлении связи с контроллером выключившиеся реле останутся выключенными. Ползунком удобно управлять с помощью клавиш со стрелками, предварительно сфокусировавшись на нем мышью: перемещение ползунка с помощью мыши не обеспечивает достаточную точность. Таймер безопасности позволяет остановить технологические процессы в случае, если контроль над модулем утрачен (например, перебит кабель RS-485). Всегда учитывайте возможность потери связи с контроллером при проектировании систем управления.
The Safety Timer slider allows you to set the shutdown time (in seconds) of all outputs when there is no communication with the Wiren Board (0 – the safety timer is disabled). When communication with the controller is resumed, the switched-off relays will remain switched off. The slider is easy to control with the arrow keys, previously focusing on it with the mouse: moving the slider with the mouse does not provide sufficient accuracy. The safety timer allows stopping technological processes in case the control over the module is lost (for example, the RS-485 cable is broken). Always consider the possibility of losing communication with the controller when designing control systems.


== Управление по Modbus ==
== Modbus control ==
Подробно о работе с модулем по протоколу Modbus написано в разделе [[Relay Module Modbus Management|Управление модулями реле Wirenboard по протоколу Modbus]].
Details of the work with the module via Modbus Protocol are written in [[Relay Module Modbus Management/en|Управление модулями реле Wirenboard по протоколу Modbus]].


== Обновление прошивки устройства ==
== Device firmware update ==
Начиная с новых версий микропрограмм устройства поддерживается функционал обновления прошивки (микропрограммы) по протоколу Modbus. Это дает возможность расширять функциональные возможности устройств и устранять ошибки в микропрограммном обеспечении непосредственно на месте монтажа. Подробнее о перепрошивке устройств рассказано в статье [[WB-MCU-Flasher|Загрузка прошивок на устройства Wiren Board]]. Список версий прошивок, поддерживающих обновление, а также устройств, для которых эта функция реализована, можно найти в статье [[Firmware_Changelog]].
Starting with the new firmware versions of the device, the firmware update functionality (firmware) via the Modbus Protocol is supported. This makes it possible to extend the functionality of the devices and eliminate errors in the firmware directly at the installation site. Read more about flashing devices described in the article [[WB-MCU-Flasher|Download firmware to Wiren Board devices]]. A list of firmware versions that support the update, as well as devices for which this feature is implemented, can be found in [[Firmware_Changelog | Firmware Changelog]].


== Известные неисправности ==
== Known faults and bugs ==


[[WB-MR:_Errata |Список известных неисправностей]]
[[WB-MR:_Errata/en |List of known faults]]


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


{{Wbincludes:WBPictures|2}}
{{Wbincludes:WBPictures|2}}
wb_editors
14 355

правок