Digital Addressable Lighting Interface: Difference between revisions

Content deleted Content added
mNo edit summary
Commands for control gear: added actual value
Line 137:
* <code>1100 1100 to 1111 1011</code>: Reserved
 
Common control gear commands:<ref>[https://webstore.iec.ch/searchform&q=62386-102 IEC 62386-102]</ref><ref>[http://www.rayzig.com/manual/rayzig.html?112DALIcommands.html]</ref><ref>https://www.nxp.com/files-static/microcontrollers/doc/ref_manual/DRM004.pdf</ref>
{| class="wikitable collapsible collapsed sortable"
! Value (Hex) !!Command !! Description !! Answer
|-
| ||'''Control commands''' || ||
|-
| XX || DAPC (level) || Sets targetLevel (0-255) using the current fade time, or stops a running fade (255). <span style="color:red">[S bit must be 0]</span>||
|-
| 00 || OFF || Set targetLevel to 0 without fading||
|-
| 01 || UP || Starts or continues a fade up for 200ms at the current fade rate||
|-
| 02 || DOWN || Starts or continues a fade down for 200ms at the current fade rate||
|-
| 03 || STEP UP || Increments targetLevel by 1 without fading||
|-
| 04 || STEP DOWN || Decrements targetLevel by 1 without fading||
|-
| 05 || RECALL MAX LEVEL || Set targetLevel to MAX level without fading||
|-
| 06 || RECALL MIN LEVEL || Set targetLevel to MIN levelwithoutlevel without fading||
|-
| 07 || STEP DOWN AND OFF || Decrements targetLevel by 1 without fading, turning off if already at MIN level||
|-
| 08 || ON AND STEP UP || Increments targetLevel by 1 without fading, turning on to MIN level if currently off||
|-
| 09 || GO TO LAST ACTIVE LEVEL || Sets targetLevel to the last active (non-zero) level, using the current fade time.||
|-
| 10+s || GO TO SCENE (sceneNumber) || Sets targetLevel to the value stored in scene sceneNumber, using the current fade time, or no change if the value stored in the scene is 255.||
|-
| ||'''Configuration commands''' || ||
|-
| 20 || RESET || Changes all variables to their reset values.||
|-
| 21 || STORE ACTUAL LEVEL IN DTR0 || Stores the actualLevel (light output level) in register DTR0||
|-
| || IDENTIFY DEVICE || Starts a temporary identification process such as flashing the lamps, making a sound or transmitting an RF beacon.||
|-
| 2A|| SET MAX LEVEL (DTR0) || Changes maxLevel level to DTR0||
|-
| 2B|| SET MIN LEVEL (DTR0) || Changes minLevel level to DTR0||
|-
| 2C|| SET SYSTEM FAILURE LEVEL (DTR0) || Changes systemFailureLevel to DTR0 ||
|-
| 2D|| SET POWER ON LEVEL (DTR0) || Changes powerOnLevel to DTR0 ||
|-
| 2E|| SET FADE TIME (DTR0) || Changes fadeTime to DTR0||
|-
| 2F|| SET FADE RATE (DTR0) || Changes fadeRate to DTR0||
|-
| || SET EXTENDED FADE TIME (DTR0) || Changes the two 4-bit variables extendedFadeTimeMultiplier:extendedFadeTimeBase to DTR0||
|-
| 40+s|| SET SCENE (DTR0, sceneX) || Changes sceneX to the value DTR0||
|-
| 60+g|| ADD TO GROUP (group) || Adds the control gear into the specified group||
|-
| ||'''Query commands''' || ||
|-
| 90|| QUERY STATUS || Asks the control gear for the current status. Reply bits: 0=controlGearFailure; 1=lampFailure; 2=lampOn; 3=limitError; 4=fadeRunning; 5=resetState; 6=shortAddress is MASK; 7=powerCycleSeen||XX
|-
| 92|| QUERY LAMP FAILURE || Asks the control gear if it is currently detecting a lamp failure.|| Yes/No
|-
| A0|| QUERY ACTUAL LEVEL || Asks the control gear what the current actualLevel (output level) is.|| XX
|}