12 063
правки
(Новая страница: «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: | ||
=== | === Using the Mapping matrix === | ||
More complex scenarios of interaction between inputs and relays can be implemented using a Mapping matrix. | |||
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> | ||
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> |
правки