Setup Individual DALI Outputs

From OpenMotics
Revision as of 18:21, 7 May 2017 by Wilbert (talk | contribs) (→‎Program the DALI ID’s)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

How does it work?

When using individual DALI outputs, you want to link a DALI output (with a DALI ID) with a system (Openmotics) output so you can perform all output manipulations like you do with any other output.

To do so, first the DALI ID's will be generated by using the DALI cockpit software. Secondly, the found DALI ID's will be entered in the Eeprom of the Gateway. Once these are entered, the gateway will synchronise those Eeprom pages with the CAN Control(s). The CAN Control will detect new outputs and will generate new Output/Dim modules that will be added when the next discovery mode is done. After this, the DALI output will act/react as any other output in the system.

The DALI ID's are entered in the following pages:

Page 100 : Contains all ID’s for the first CAN Control that’s been added to the Gateway
Page 101 : Contains all ID’s for the second CAN Control that’s been added to the Gateway
Page 102 : Contains all ID’s for the third CAN Control that’s been added to the Gateway
Page 103 : Contains all ID’s for the fourth CAN Control that’s been added to the Gateway

see Memory Model for more details.

In every of the above Eeprom page, the structure is as follows:

  • Byte 0-63 is used to program the ballast with switch only capacity (like a relay)
  • byte 64-127 is used to program ballasts with dim functionality.

When a DALI Output is linked to a system Output, it will act as a normal output and you can use all instructions which are applicable on any system output.

Note: Individual DALI Outputs are only used when the individual light must be controlled. When a Group of lights will always be used together, it's not useful to do an Individual DALI Output setup (so do not create a system output for every individual DALI Output), just create a DALI Group and link it to a Virtual output.


Give the DALI devices an ID

To start the Individual DALI Output setup, we first will start assigning the DALI ID's by using the Lunatone Cockpit software.

To do that, the Lunatone SCI (Connector A) must be connected to an USB-RS232 convertor which is connected to a PC with Lunatone Cockpit software installed. This software can be downloaded free of charge from the Lunatone website.

Start the Cockpit software

Go to the menu item "DALI bus - Bus interface" and set the right COM port (see Device Manager of your windows machine to find the right COM port) of your connected USB-RS232 convertor.

Dali Screenshot1.png

You should get the message ?? so you know everything is working fine.

Assign DALI ID's in a new installation

When performing a fresh installation where no DALI ID's are assigned yet, follow the below steps

Go to the menu item "DALI bus - Addressing" and select "Complete new installation", press next.

Dali Screenshot2.png

Make sure your DALI power supply is connected otherwise no devices will be found.

Once all devices are found, note the ID’s that have been given to the individual devices and split them between switched devices and dim devices since they should be programmed in the different sections of the Gateway's eeprom.

Assign DALI ID's in an existing DALI installation

When performing an installation where DALI ID's are already assigned on that particular DALI network, follow the below steps

Go to the menu item "DALI bus - Addressing" and select "System extension", press next.

Dali Screenshot3.png

Once all devices are found, note the ID’s that have been given to the individual devices and split them between switched devices and dim devices since they should be programmed in the different sections of the Gateway's eeprom.

Find the right CAN Control

If you’ve more than 1 CAN control, you can use the below to find the right order of your CAN Controls.

Let’s first do the discovery of your modules, if this is already done, this is fine but just do the below also:

Go to maintenance mode, “connect” and perform following command:

 module discover start

Push the init button of every CAN Control. If none of the CAN Control modules aren’t initialized yet, the first init button on the CAN Control you push is the first module, the second init button is the second module etc…

Note down the “C” ID’s the module is returning for which DALI functionality is used and keep track from which module these are. Once this is done, return to normal mode by using following instruction:

 module discover stop

Note: Once a new CAN Control is added, it can take a while before the full eeprom is synchronized so you’ll get some errors on the bus which is normal.

Next, check the order of the CAN Control modules for which DALI functionality is used by using following instruction:

 error list

In the input section of the error list, you’ll see all your input modules including all your CAN controls. You also see the module type (like “I” for input, “T” for temperature and “C” for CAN control). Check the order so you know which eeprom page you must use for your DALI modules.

Page 100 : Contains all ID’s for the first CAN Control in the list or that’s been added to the Gateway Page 101 : Contains all ID’s for the second CAN Control in the list or that’s been added to the Gateway Page 102 : Contains all ID’s for the third CAN Control in the list or that’s been added to the Gateway Page 103 : Contains all ID’s for the fourth CAN Control in the list or that’s been added to the Gateway

Program the DALI ID’s

Now you know in which page (100, 101, 102 or 103) you have to program your DALI ID’s, you start programming in the correct page your DALI devices, below is an example:

 eeprom write 101 0 10    ;as an example, our DALI bus is connected to our second CAN Control and we’re programming DALI ID10 which is an Relay ballast
 eeprom write 101 1 11    ;Second switched only ballast on DALI ID11
 …
 eeprom write 101 64 0    ;Dimmer ballast with DALI ID0
 eeprom write 101 65 33  ;Dimmer ballast with DALI ID33

The second step is to synchronize the DALI ID pages. If you know which DALI ID pages (100, 101, 102 and/or 103) you have to synchronize, you can immeadiatly synchronize the right page, otherwise start at 100 and let the system do the rest (automatically, page 101, 102 and 103 will also be done).

 sync page 101

If you want to follow where you stand in synchronization, you can follow the sync process by using instruction

 sync debug on

This will display the page and byte that has been synchronized. To exit the debug mode, please use instruction

 sync debug off

After the sync is done, apply the instruction

 eeprom activate

Now the necessary virtual outputs are created in the CAN control and must be added to the Master. Since were are programming, in our example, page 101 we know we are using the second CAN control:

 discover can control 2              ; Add all the modules of the second CAN control

All the modules (existing and new) will now appear. After this is done, exist the discovery mode:

 module discover stop

You will now receive errors on the new created virtual outputs. This is normal since output pages must be synchronised now.

Note: If you have more than 1 CAN Control module with DALI devices connected, you can have the same DALI ID’s in both CAN Control modules.

Synchronizing pages

The DALI ID’s as well as the necessary virtual output modules should be synchronized before it will properly work so a copy of the Master eeprom must be copied into the CAN Control modules. Before everything is synchronized, multiple errors can occur and this can be ignored. Since the whole synchronization process can take a while before this is done, you can speed up things by using the following procedure in maintenance mode:

Let us first synchronize the output modules:

 sync page 32    ;sync the first output module

Wait 15 seconds (since only the first 5 bytes must be synchronized)

 sync page 33   ;sync the second output module

Wait 15 seconds

 sync page 34   ;sync the third output module
 …

Up to the last output module. By using the instruction

 error list

you know how many output modules that you have.

Please note that all output modules (Virtual and non virtual) must be synchronized for the CAN Control and DALI functionality to properly work.

Note: The synchronization is a process that continues in the background so Master and CAN control are synchronizing all the time.

How to use DALI

Once the appropriate pages are synchronized, you can start using the DALI modules. The DALI modules will act like normal modules so all instructions that exist for normal output/Dim control modules (except for indicate instructions) can be used.

In maintenance, the DALI modules can be easily found since those output/dim modules are indicated by the letter “C” in the last column.

 error list

As you can see in the above example, output on line ??? and ??? are DALI modules. If you want to test those modules, you can use the instruction

 output on 36  (module7 x8 outputs so 36 is the first output of this module)
 output off 36

In the portal, the DALI output modules can be programmed, linked to inputs, set timers, used in group actions etc like you does with any other output module.