12 063
правки
(Новая страница: «For 3 VX IR6») |
(Новая страница: «<syntaxhighlight lang="ecmascript"> Template config-ddm845r.json to work with the device:») |
||
(не показано 30 промежуточных версий этого же участника) | |||
Строка 37: | Строка 37: | ||
Inputs. | Inputs. | ||
For 1 | For 1 input IR4 = -25000 (switch open -- there can be another number, for example 0x9ff6); ~50 — (switch closed) | ||
For 2 | For 2 input IR5 | ||
For 3 | For 3 input IR6 | ||
For 4 input IR7 | |||
For 5 input IR8 | |||
For 6 input IR9 | |||
For 7 input IR10 | |||
For 8 input IR11 | |||
You can convert these values to intelligible values: | |||
Create script: HR100=2, HR101=4, HR102=8, HR103= -1000, HR104=1 | |||
Create script: HR200=2, HR201=5, HR202=8, HR203= -1000, HR204=1 | |||
Create script: HR300=2, HR301=6, HR302=8, HR303= -1000, HR304=1 | |||
Create script: HR400=2, HR401=7, HR402=8, HR403= -1000, HR404=1 | |||
Create script: HR500=2, HR501=8, HR502=8, HR503= -1000, HR504=1 | |||
Create script: HR600=2, HR601=9, HR602=8, HR603= -1000, HR604=1 | |||
Create script: HR700=2, HR701=10, HR702=8, HR703=-1000, HR704=1 | |||
Create script: HR800=2, HR801=11, HR802=8, HR803=-1000, HR804=1 | |||
Now the result can be in registers: | |||
For 1 input IR100 = 0 (switch open) 1 (switch closed) | |||
For 2 input IR100 = 0 (switch open) 1 (switch closed) | |||
For 3 input IR102 = 0 (switch open) 1 (switch closed) | |||
For 4 input IR103 = 0 (switch open) 1 (switch closed) | |||
For 5 input IR104 = 0 (switch open) 1 (switch closed) | |||
For 6 input IR105 = 0 (switch open) 1 (switch closed) | |||
For 7 input IR106 = 0 (switch open) 1 (switch closed) | |||
For 8 input IR107 = 0 (switch open) 1 (switch closed) | |||
A set of commands to create scripts for non-programmed the dimmer (address 34): | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
modbus_client --debug -mrtu -pnone -s2 /dev/ttyAPP1 -a34 -t0x06 -r100 0x2 | modbus_client --debug -mrtu -pnone -s2 /dev/ttyAPP1 -a34 -t0x06 -r100 0x2 | ||
Строка 149: | Строка 150: | ||
<syntaxhighlight lang="ecmascript"> | <syntaxhighlight lang="ecmascript"> | ||
Template config-ddm845r.json to work with the device: | |||
// Configuration options | // Configuration options |
правки