DIMM[0] - DIMM[3]

The command controls the triac, regulating the power of the AC load. Electrical wiring can be configured in the Setup/Peripheral menu.

DIMM[0]23
Sets the power. Valid: 0-255

DIMM[0](20)10-100
Increases power from 10 to 100 in increments of 20ms.
DIMM[0](20)100-10
Decreases power from 100 to 10 in increments of 20ms.

NUM[0]=20|
NUM[1]=10|
NUM[2]=50

DIMM[0](NUM[0])NUM[1]-NUM[2]
NUM[x] can be used for specifying values.

DIMM[0]CMAX:LED(ON)
If it reaches maximum power, executes the command.
DIMM[0]CMIN:LED(OFF)
If it reaches minimum power, executes the command.

DIMM[0]CMAX
DIMM[0]CMIN
Executes the stored command.

DIMM[0]@
Sends the current state of DIMM[0] to STDOUT.

DIMM@
Sends the frequency of the AC to STDOUT. Can be used to check SYNC (ZeroCrossing) signal.



Példák

Villogó.
DIMM[0]CMAX:*DIMM[0](2)255-0|
DIMM[0]CMIN:*DIMM[0](5)0-255|
DIMM[0]CMIN


Power control slider.
<html> <body> <center> <br><br><br> <input id="br" type="range" onchange="Bright();" min="0" max="255"> </center> <script type="text/javascript" src="tools.js"></script> <script> startWS(3); function onOpen() { sendWS("DIMM[0]@"); } function onMessage(msg) { document.getElementById("br").value = msg; } function Bright() { websocket.send("DIMM[0]" + document.getElementById("br").value); } </script> </body> </html>