DALI lamp and ballast error query - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: DALI lamp and ballast error query (/showthread.php?tid=957) |
DALI lamp and ballast error query - leonidas - 24.08.2017 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') RE: DALI lamp and ballast error query - Daniel - 24.08.2017 Hi The script looks ok to me. Can yo control the lights? Try this command Code: dalicmd('internal', 'arc', { addrtype = 'broadcast', value = 254 }) RE: DALI lamp and ballast error query - leonidas - 24.08.2017 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 RE: DALI lamp and ballast error query - admin - 24.08.2017 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. RE: DALI lamp and ballast error query - Igor68 - 27.08.2017 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 ??? RE: DALI lamp and ballast error query - admin - 27.08.2017 All store commands require setting DTR first, there's an example in the docs: http://openrb.com/docs/dali.htm RE: DALI lamp and ballast error query - Igor68 - 28.08.2017 Thank you! |