Logic Machine Forum
dali - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Gateway (https://forum.logicmachine.net/forumdisplay.php?fid=10)
+--- Thread: dali (/showthread.php?tid=5178)



dali - abby - 02.01.2024

I have a dali 2 sensor with 2 light attach to it i want to control through lm5 is it possible to control it


RE: dali - admin - 02.01.2024

Which sensor are you using?


RE: dali - abby - 02.01.2024

(02.01.2024, 08:39)admin Wrote: Which sensor are you using?

Dali PIR + light sensor and its is power supply by dali bus


RE: dali - Daniel - 02.01.2024

Which sensor are you using?


RE: dali - abby - 02.01.2024

SR-DA9030A-PIR


RE: dali - admin - 02.01.2024

Which LM DALI solution are you using? CANx-DALI or old DALI tab in the LM main interface?


RE: dali - abby - 09.01.2024

(02.01.2024, 09:51)admin Wrote: Which LM DALI solution are you using? CANx-DALI or old DALI tab in the LM main interface?

CANx-dali ONE


RE: dali - admin - 09.01.2024

CANx-DALI app with DALI2 support will be published soon. But it will only support what is defined in DALI standards (IEC62386 301/302/303/304) and some Lunatone sensors.


RE: dali - rw_echo - 29.01.2024

Sorry, take up a post, Admin, LM_ How to resolve the device address conflict on DR's DALI bus, or how to clear the device address on the DALI bus and rescan the address


RE: dali - admin - 29.01.2024

Perform "Set short addresses" and it will reset the addressing for the whole bus.


RE: dali - rw_echo - 29.01.2024

I have tried multiple times to reassign device short addresses through 'Full scan, set short addresses', but have not been successful. I plan to clear all device addresses and reset them through a script. Can you provide a complete script example?


RE: dali - admin - 29.01.2024

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:
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' }
  }
})



RE: dali - rw_echo - 29.01.2024

Is the LM script with built-in DALI interface like this?
require('user.dali')
dalicmd('internal', cmd = 'setdtr', address = 'broadcast', value = 255)
dalicmd('internal', 'storeshortaddress', address = 'broadcast)


RE: dali - admin - 29.01.2024

Check my previous post, it has examples for both types of DALI interface.


RE: dali - rw_echo - 29.01.2024

Awkwardly, could you please support writing an example of reallocating all device addresses through a script.


RE: dali - admin - 29.01.2024

Check this: https://forum.logicmachine.net/showthread.php?tid=2147&pid=13433#pid13433