29.01.2024, 14:03
If addressing is not working correctly then there's something wrong with the bus and/or ballasts that do not adhere to the DALI standard.
You can clear all addresses via a script like this:
CANx-DALI version:
You can clear all addresses via a script like this:
Code:
require('user.dali')
dalicmd('internal', 'setdtr', { addrtype = 'broadcast', value = 255 })
dalicmd('internal', 'storeshortaddress', { addrtype = 'broadcast' })
CANx-DALI version:
Code:
canxdali = require('applibs.canxdali')
canxdali.sendcmds({
lineid = 0,
nodeid = 30,
cmds = {
{ cmd = 'setdtr', address = 'broadcast', value = 255 },
{ cmd = 'storeshortaddress', address = 'broadcast' }
}
})