28.11.2016, 07:52
Fading can be enabled/adjusted by sending a setdtr/storefadetime commands.
Create an event script linked to 1-byte unsigned object, then send the required value (in seconds):
Create an event script linked to 1-byte unsigned object, then send the required value (in seconds):
Code:
require('user.dali')
-- user-specified fade time
value = event.getvalue()
-- set data transfer register value for all connected ballasts
dalicmd('internal', 'setdtr', { addrtype = 'broadcast', value = value })
-- store data transfer register value as fade time for all connected ballasts
dalicmd('internal', 'storefadetime', { addrtype = 'broadcast' })