I/O Mapping Matrix/en: различия между версиями

Новая страница: «= = = = = Inverted switch with locking === Set up the inputs so that when closed inputs relay would be disabled, and open -- is included. For this closing input (…»
(Новая страница: «Let's check the operation: at the first circuit of input 0 all relays are switched on, at the second — all relays are switched off.»)
(Новая страница: «= = = = = Inverted switch with locking === Set up the inputs so that when closed inputs relay would be disabled, and open -- is included. For this closing input (…»)
Строка 203: Строка 203:




==== Инвертированный выключатель с фиксацией ====
= = = = = Inverted switch with locking ===
Настроим входы таким образом, чтобы при замкнутых входах реле были бы выключены, а при разомкнутых -- включены.
Set up the inputs so that when closed inputs relay would be disabled, and open -- is included.
Для этого при замыкании входа (передний фронт) соответствующий выход должен выключаться (01), а при размыкании входа (задний фронт) — включаться (10). Это соответствует значению 6: [[File:Mm_0110.png|frameless|270px]]<br>
For this closing input (rising edge) the corresponding output shall be switched off (01), and upon opening the entrance (back front) — included (10). This corresponds to the value 6: [[File:Mm_0110.png|frameless|270px]]<br>
В матрице нужные регистры взаимодействия вход 1 — выход 1, вход 2 — выход 2 и т.д. расположены по диагонали. Это регистры 384, 393, 402, 411, 420, 429. В них надо записать значение 6:
In the matrix, the desired interaction registers input 1 — output 1, input 2 — output 2, etc. are located diagonally. These are registers 384, 393, 402, 411, 420, 429. They need to write the value 6:
<syntaxhighlight lang="bash">for i in 384 393 402 411 420 429; do modbus_client --debug -mrtu -pnone -s2 /dev/ttyRS485-1 -a1 -t0x06 -r$i 6; done</syntaxhighlight>
<syntaxhighlight lang="bash">for i in 384 393 402 411 420 429; do modbus_client --debug -mrtu -pnone -s2 /dev/ttyRS485-1 -a1 -t0x06 -r$i 6; done</syntaxhighlight>


12 063

правки