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 whether you accept or reject these cookies being set.

DALI PROBLEM
#1
Hi.
I have an installation with 6 DALI walkways with 60 ballasts each.
The Logic Machine equipment is connected to a UPS.
I have a problem when there is no power supply in the lighting, when the power is restored, everything turns on.
Is there any solution to restore current, return to the previous state or be turned off?
The same problem I have when I turn off the Logic Machine, everything turns on. But I can solve that with a function that, when reset, sends a general shutdown.
Reply
#2
DALI has configurable levels for SYSTEM FAILURE and POWER ON states. If this level is set to 255 (MASK) then SYSTEM FAILURE should be ignored and POWER ON state should be equal to last light level.

You can change these levels via a script (in this example on all ballasts on first internal DALI bus):
Code:
require('user.dali')
value = 0 -- from 0 to 255

dalicmd('internal', 'setdtr', { addrtype = 'broadcast', value = value })
dalicmd('internal', 'storepoweron', { addrtype = 'broadcast' })

value = 0 -- from 0 to 255

dalicmd('internal', 'setdtr', { addrtype = 'broadcast', value = value })
dalicmd('internal', 'storesystemfailure', { addrtype = 'broadcast' })
Reply
#3
Thanks for your answer.

I just detected another problem ... I have to include 3 more ballasts to the installation. I start partial scanning and it does not detect them. I have to go back to look for them all and there they appear. The drawback is that I have to redirect everything again. It is normal?
Reply
#4
(20.06.2019, 15:19)davidchispas Wrote: Thanks for your answer.

I just detected another problem ... I have to include 3 more ballasts to the installation. I start partial scanning and it does not detect them. I have to go back to look for them all and there they appear. The drawback is that I have to redirect everything again. It is normal?

If ballast is brand new, never  addressed then partial will find them. If for some reason they were used once already and addressed then partial scan will not find them and new scan is needed.
Reply
#5
Partial scan does not set short addresses. If you run addressing again then all ballasts will get new address assigned at random, that's how DALI works. If you can connect only one ballast to LM then you can set short address via a script. Then you can connect all ballasts and run partial scan.
Reply
#6
(21.06.2019, 07:17)Daniel. Wrote:
(20.06.2019, 15:19)davidchispas Wrote: Thanks for your answer.

I just detected another problem ... I have to include 3 more ballasts to the installation. I start partial scanning and it does not detect them. I have to go back to look for them all and there they appear. The drawback is that I have to redirect everything again. It is normal?

If ballast is brand new, never  addressed then partial will find them. If for some reason they were used once already and addressed then partial scan will not find them and new scan is needed.

The ballasts are new and with the partial scan does not find them. I get one to find me, if I loose the rest. He finds it as dev-64 keeping the rest of the ballasts. After. I release that ballast and connect another with the same procedure. But that second ballast does not find it anymore. The only way you can find them all is by performing the full scan.

(21.06.2019, 07:46)administración Wrote: Partial scan does not set short addresses. If you run addressing again then all ballasts will get new address assigned at random, that's how DALI works. If you can connect only one ballast to LM then you can set short address via a script. Then you can connect all ballasts and run partial scan.

Thanks for your answer. As they explain to me, I have to connect a ballast alone, start a partial scan and I would like to give it as dev-64. Then through a script a short address is assigned. After repeating the same procedure with the rest. Is it like that?

Can you provide me with the script?
Reply
#7
This script sets short address to 42 to all connected ballasts on internal gateway 1.

Code:
address = 42

require('user.dali')
dalicmd('internal', 'setdtr', { addrtype = 'broadcast', value = address * 2 + 1 })
dalicmd('internal', 'storeshortaddress', { addrtype = 'broadcast' })

You need to run this script once for each new ballast you have. Make sure that only one ballast is connected when script is run. Then connect all ballasts and run scan in last mode (only add new devices).
Reply
#8
(21.06.2019, 13:21)admin Wrote: This script sets short address to 42 to all connected ballasts on internal gateway 1.

Code:
address = 42

require('user.dali')
dalicmd('internal', 'setdtr', { addrtype = 'broadcast', value = address * 2 + 1 })
dalicmd('internal', 'storeshortaddress', { addrtype = 'broadcast' })

You need to run this script once for each new ballast you have. Make sure that only one ballast is connected when script is run. Then connect all ballasts and run scan in last mode (only add new devices).

Thank you. it works perfectly. everything that can be done with this device is incredible.
Reply


Forum Jump: