12 063
правки
(Новая страница: «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. | |||
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> | |||
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> | ||
правки