EasyManua.ls Logo

Embedded Systems LogicMachine5 - Page 226

Default Icon
291 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
226
dalicmd('internal', 'arc', { addrtype = 'broadcast', value = 42 })
Setting DTR
For commands where DTR is needed prior to executing command, use setdtr command to set
the value:
-- set dtr for ballast 5 to 200
dalicmd('internal', 'setdtr', { addrtype = 'short', address = 5, value = 200 })
Example
Change address of DALI ballast with current address 5. 1byte object need to be added, event-
based script looks as follows:
value = event.getvalue()
value=value*2+1
require('user.dali')
dalicmd('internal', 'setdtr', { addrtype = 'short', address = 5, value = value })
dalicmd('internal', 'storeshortaddress', { addrtype = 'short', address = 5})
Example (use gateway with id 1, switch all ballasts off, set ballast with short address 5 to full
on)
require('user.dali')
dalicmd(1, 'arc', { addrtype = 'broadcast', value = 0 })
dalicmd(1, 'arc', { addrtype = 'short', address = 5, value = 254 })
Example (set maximum value for ballast 5 to value 200; the ballast is connected on internal
DALi gateway on LogicMachine )
require('user.dali')
dalicmd('internal', 'setdtr', { addrtype = 'short', address = 5, value = 200 })
dalicmd('internal', 'storemax', { addrtype = 'short', address = 5 })
Example (log all ballast short addresses which are connected to internal DALI gateway)

Table of Contents

Other manuals for Embedded Systems LogicMachine5

Related product manuals