2485
правок
Admin (обсуждение | вклад) (Новая страница: «Device Setup») |
Admin (обсуждение | вклад) |
||
(не показано 11 промежуточных версий этого же участника) | |||
Строка 4: | Строка 4: | ||
{{:Modbus_control_common}} | {{:Modbus_control_common}} | ||
Device Setup | == Device Setup == | ||
=== | === Safe mode === | ||
In this mode, when the Modbus communication is terminated, the device disconnects the relay after a specified time. | |||
To enable Safety timer, you must write a value other than 0 to the storage register with the WRITE_SINGLE_REGISTER command at 8. This value is a timeout in seconds. A value of "0" disables safe mode. | To enable Safety timer, you must write a value other than 0 to the storage register with the WRITE_SINGLE_REGISTER command at 8. This value is a timeout in seconds. A value of "0" disables safe mode. | ||
Строка 13: | Строка 13: | ||
===Relay operation in case of power failure === | ===Relay operation in case of power failure === | ||
In the latest firmware versions (starting with 1.5.3) for WB-MR devices, it is now possible to remember the output status when power is off. The mode is controlled by the Modbus register 6. If the register is set to '0', the state of the outputs will not be saved and all relays will be switched off when power is supplied. If the entry in the register unit, when the power is resumed everything is included before the crash relay is switched on again. | |||
=== Digital inputs === | === Digital inputs === | ||
Строка 29: | Строка 28: | ||
** '''Mapping-matrix''' (see detailed description below) | ** '''Mapping-matrix''' (see detailed description below) | ||
The mode set separately for each channel. To select mode, write mode number to corresponding holding register, starting with register 9 for the first channel etc. You should keep default value in register 5. | |||
The mode | |||
There could be no registers 9 etc. in outdated firmware. You can only set mode for all their channels at once. To do so, write corresponding number to holding register 5. | |||
There | |||
==== Mapping-matrix ==== | ==== Mapping-matrix ==== | ||
Строка 41: | Строка 36: | ||
Starting from firmware v.1.9.0, '''mode 2''' is also provided for individual channels-disable all outputs, and '''operating modes (4 and 5)''' in accordance with the mapping matrix (see below).In this and later versions of firmware versions modules have flexible settings of the interaction of inputs and outputs of relay modules using a special mapping matrix: a table in which for each input is encoded change of any relay output state when the state of this input changes. A detailed description can be found in [[I/O_Mapping_Matrix/en|I/O Mapping Matrix]]. | Starting from firmware v.1.9.0, '''mode 2''' is also provided for individual channels-disable all outputs, and '''operating modes (4 and 5)''' in accordance with the mapping matrix (see below).In this and later versions of firmware versions modules have flexible settings of the interaction of inputs and outputs of relay modules using a special mapping matrix: a table in which for each input is encoded change of any relay output state when the state of this input changes. A detailed description can be found in [[I/O_Mapping_Matrix/en|I/O Mapping Matrix]]. | ||
= | = Relay module register card = | ||
In table: | |||
* '''x''' — | * '''x''' — number of relay outputs; | ||
* '''y''' — | * '''y''' — number of digital inputs. | ||
For outdated WB-MRM2 devices (not to be confused with modern WB-MRM2-mini) find register card on separate page [[WB-MRM2]]. | |||
{| border="1" class="wikitable" style="text-align:center; width:1000px;" | {| border="1" class="wikitable" style="text-align:center; width:1000px;" | ||
!Register / address | !Register / address | ||
Строка 67: | Строка 61: | ||
| 0 | | 0 | ||
| style="text-align:left;" | | | style="text-align:left;" | | ||
default value should be kept | |||
|| not used in modern firmware.<br>In outdated versions of firmware was used to set mode of interaction of digital inputs with relay outputs for all inputs at once. | |||
|| not used in modern firmware.<br>In outdated versions of firmware was used to set mode of interaction of digital inputs with relay outputs for all inputs at once. Configuration values were the same as now used in registers 9 .. (9+'''x'''-1), but applied to all inputs at once. | |||
|| mode of interaction of digital inputs with relay outputs | |||
|- | |- | ||
| 6 | | 6 | ||
Строка 81: | Строка 74: | ||
| 8 || holding || RW|| 0 || seconds || safe mode timeout || | | 8 || holding || RW|| 0 || seconds || safe mode timeout || | ||
|- | |- | ||
| rowspan="3" | 9 .. (9+'''x'''-1) | | rowspan="3" | 9 .. (9+'''x'''-1) | ||
| rowspan="3" | holding | | rowspan="3" | holding | ||
Строка 92: | Строка 83: | ||
* '''1''': switch with lock | * '''1''': switch with lock | ||
* '''3''': disable interaction | * '''3''': disable interaction | ||
| rowspan="3" | | | rowspan="3" | mode of interaction between digital input and corresponding relay output.<br>There should be default value in register 5 | ||
| | | | ||
|- | |- | ||
Строка 133: | Строка 122: | ||
| 20 .. (20+'''x'''-1) || holdreg || RW || 50 || 0 - 100 || | | 20 .. (20+'''x'''-1) || holdreg || RW || 50 || 0 - 100 || debouncing time in ms || Since firmware 1.13.0 | ||
|- | |- | ||
| 32 .. (32+'''y'''-1) || input || R|| 0 || 16-bit unsigned int || input counter 1 .. '''y''' || | | 32 .. (32+'''y'''-1) || input || R|| 0 || 16-bit unsigned int || input counter 1 .. '''y''' || | ||
|- | |- | ||
| 384-447 || holding || RW || 0 || || [[I/O_Mapping_Matrix|Mapping Matrix]] registers || Since firmware 1.9.0 | |||
|} | |||
Строка 146: | Строка 135: | ||
{{:Common_Modbus_Registers}} | {{:Common_Modbus_Registers}} | ||
Registers for setting data exchange parameters for RS-485 are supported since firmware 1.6.0. |