This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

DALI lamp and ballast error query
#1
Hello,

I need to get feedback of DALI lamp and ballast status. I tried to get lamp failure it with code like this: 
but it doesn't work, nothing appears in Alerts. Can someone help me with this?

Code:
require('user.dali')
res = dalicmd('internal', 'querylampfailure', { addrtype = 'short', address = 0 })
if res then
 alert(res)
end
Reply
#2
Hi
The script looks ok to me. Can yo control the lights? Try this command

Code:
dalicmd('internal', 'arc', { addrtype = 'broadcast', value = 254 })
It should switch everything ON.
------------------------------
Ctrl+F5
Reply
#3
Yes, I can control the lights, and I can get actual value with this command:


Code:
res = dalicmd('internal', 'queryactual', { addrtype = 'short', address = 0 })


So connection and address should be fine
Reply
#4
Try using querystatus, the result will contain:
bit 0 - Status of ballast; 0 = OK
bit 1 – Lamp failure; 0 = OK
bit 2 – Lamp arc power on; 0 = OK
bit 3 - Query: Limit Error; "0" = Last requested arc power level is between MIN..MAX LEVEL or OFF
bit 4 – Fade ready; "0" = fade is ready; "1" = fade is running
bit 5 – Query: "RESET STATE"? "0" = "No"
bit 6 – Query: Missing short address? "0" = "No"
bit 7 – Query: "POWER FAILURE"? "0" = "No"; "RESET" or an arc power control command has been received after last power-on.
Reply
#5
Hello, prompt, please, what command DALI given can be adjusted when the rate of rise of the lamp brightness?
dalicmd('internal', 'storefadetime ', { addrtype = 'short', address = 0 })
So it sets the minimum speed at once 254 ..... How will it change ???
Reply
#6
All store commands require setting DTR first, there's an example in the docs: http://openrb.com/docs/dali.htm
Reply
#7
Thank you!
Reply


Forum Jump: