12 063
правки
(Новая страница: «Set channel brightness 1 HR40= (0-1023) (default 0)») |
(Новая страница: «<syntaxhighlight lang="ecmascript"> Template config-ddm845r.json to work with the device:») |
||
(не показано 37 промежуточных версий этого же участника) | |||
Строка 28: | Строка 28: | ||
Set channel brightness 1 HR40= (0-1023) (default 0) | Set channel brightness 1 HR40= (0-1023) (default 0) | ||
Set channel brightness 2 HR41= (0-1023) (set to default 0) | |||
Set channel brightness 3 HR42= (0-1023) (set to default 0) | |||
Set channel brightness 4 HR43= (0-1023) (set to default 0) | |||
Inputs. | |||
For 1 input IR4 = -25000 (switch open -- there can be another number, for example 0x9ff6); ~50 — (switch closed) | |||
For 2 input IR5 | |||
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 |
правки