Перейти к содержанию

Навигация

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

Новая страница: «=== Using the Mapping matrix === More complex scenarios of interaction between inputs and relays can be implemented using a Mapping matrix. To use the Mapping mat…»
(Новая страница: «If we want to disable and input 0, then write the value 3 in register 16: <syntaxhighlight lang="bash">modbus_client --debug -mrtu -pnone -s2 /dev/ttyRS485-1 -a1…»)
(Новая страница: «=== Using the Mapping matrix === More complex scenarios of interaction between inputs and relays can be implemented using a Mapping matrix. To use the Mapping mat…»)
Строка 176: Строка 176:




=== Использование Mapping-матрицы ===
=== Using the Mapping matrix ===
Более сложные сценарии взаимодействия входов с реле можно реализовать с помощью Mapping-матрицы.
More complex scenarios of interaction between inputs and relays can be implemented using a Mapping matrix.
Для использования Mapping-матрицы запишем в holding-регистр 5 значение 0:
To use the Mapping matrix, write the value 0 in the holding register 5:
<syntaxhighlight lang="bash">modbus_client --debug -mrtu -pnone -s2 /dev/ttyRS485-1 -a1 -t0x06 -r5 4 </syntaxhighlight>
<syntaxhighlight lang="bash">modbus_client --debug -mrtu -pnone -s2 /dev/ttyRS485-1 -a1 -t0x06 -r5 4 </syntaxhighlight>
А в регистры настройки взаимодействия входов/выходов значение 4:
And registers the settings of the interaction of inputs/outputs value 4:
<syntaxhighlight lang="bash">modbus_client --debug -mrtu -pnone -s2 /dev/ttyRS485-1 -a1 -t0x10 -r 9 4 4 4 4 4 4 </syntaxhighlight>
<syntaxhighlight lang="bash">modbus_client --debug -mrtu -pnone -s2 /dev/ttyRS485-1 -a1 -t0x10 -r 9 4 4 4 4 4 4 </syntaxhighlight>
<syntaxhighlight lang="bash">modbus_client --debug -mrtu -pnone -s2 /dev/ttyRS485-1 -a1 -t0x06 -r16 4</syntaxhighlight>
<syntaxhighlight lang="bash">modbus_client --debug -mrtu -pnone -s2 /dev/ttyRS485-1 -a1 -t0x06 -r16 4</syntaxhighlight>
12 063

правки