Skip to main content

iRidi for Arlight​

Configuring iRidi Pro to work with Arlight equipment over Modbus TCP


Documentation updated on 19.03.2026

Arlight equipment works with iRidi studio over Modbus. Detailed Modbus configuration in iRidi is described here

Tip

Download the demo project

Note

The equipment was tested using:

  • DALI-LOGIC-X4 controller
  • DALI -104-RGBW-DT8-SUF dimmer
  • DALI ARV-SR-2400PEA power supply

Controller configuration​

Configuration in Arlight DALI Server Configuration Tool​

To work with the Intelligent Arlight controller over Modbus TCP, configure the controller using Arlight DALI Server Configuration Tool.

  1. Power on the controller and connect it to the network.
  2. Launch Arlight DALI Server Configuration Tool and open Select Devices.

Arlight_1.png
3. Open DALI Gateway and select the connected controller.

Arlight_2.png
4. Click Gateway/Server and select Properties from the menu.

Arlight_3.png
5. Make sure that the latest firmware version is installed on your controller. If it is not, open Advance and click Update Firmware.

Arlight_4.png
6. Open Server Parameters and click Download.

Arlight_5.png
7. Select the Allow ModBus TCP Client checkbox if it is not already selected, and click Upload.

Arlight_6.png

Assigning device addresses​

Now that the controller is configured, configure the device addresses.

  1. Click Gateway/Server, select DALI Tool from the menu, and open Addressing Tool.

Arlight_7.png
2. The Auto-Addressing section opens. In the right pane, expand Gear - Auto-Addressing, then expand the controller and select the channels to which the devices are connected.

Arlight_8.png
3. To configure addresses manually, open Manual Gear Addressing.
4. Next, update the statuses of the devices connected to the controller. Open Control Gears/Slaves Tool under DALI Tool.

Arlight_9.png
5. In the window that opens, click Quick Tool and select Reload Gear Status Only from the menu.

Arlight_10.png

The device list refreshes and displays all addresses assigned to the devices.

Working in iRidi Studio​

Create a new project, add the Modbus TCP driver, and fill in Host (the controller's IP address).

Modbus_a.png

  1. Fill in Device ID to match the controller channel number to which the device is connected:
DALIModbus TCP
Channel-A1
Channel-B2
Channel-C3
Channel-D4
  1. Configuring Commands and Feedbacks

To control the PLC, you need its register map (the example uses a DALI-LOGIC-X4 PLC). The instructions with register numbers can be downloaded here. Use the calculator together with the register table: it generates the address to enter in Commands and Feedbacks in iRidi.

2.1. Configuring Commands

Create the required number of Commands in the Modbus driver. Open the command properties and set the parameters:

  • Name - the name of the channel to control.
  • Device ID - the controller channel.
  • Type - select Holding Register.
  • Address - use the calculator and enter the generated iRidi value from the "регистр для исполнительных устройств" row (register for control gear) if one device is connected to the channel, or the "регистр для групп исполнительных устройств" row (register for groups of control gear) if several devices are connected to one channel.
  • Word Size
    • Word(16bit) unsigned - RBG control (the maximum value sent to the channel is 65535).
    • Word(16bit) unsigned - for the light color temperature channel.
  • Content Type :
    • Low Endian - RBG control;
    • Big Endian - for the light color temperature channel.

✓ In the calculator (table No.1), enter the command value to execute (the command list is shown on the left) and the device address (from 0 to 63). In table No.2, the "регистр для исполнительных устройств" row (register for control gear) generates an iRidi address; enter it in Address for Commands. To send a command to a group of devices, use the address from the "регистр для групп исполнительных устройств" row (register for groups of control gear).

Arlight_calc.png

2.2. Configuring Feedbacks

  • Name - the name of the channel to control.
  • Device ID - the controller channel.
  • Type - select Holding Register.
  • Address - fill in as for the corresponding command.
  • Word Size:
    • Word(16bit) unsigned - for RGB status feedback;
    • Word(16bit) unsigned - for light color temperature status feedback.
  • Content Type:
    • Low Endian - for RGB status feedback;
    • Big Endian - for light color temperature status feedback.
Note

To obtain the correct status feedback value in the white channel, divide the received value by 256. For convenience, use this script:

IR.AddListener(IR.EVENT_START, 0, function () {

IR.AddListener(IR.EVENT_TAG_CHANGE, IR.GetDevice("Modbus TCP"), function(name, value)
{
if (name == "MCh Dimmer"){
IR.Log(value)
IR.GetPage("Page 1").GetItem("Item 2").Value = parseInt(value/256)
}
});
});

Addresses:

  • for dimming, use addresses 256...319 ;
  • to control the color of an RGB strip:
    • for the Red+Green channel, use addresses 768...831
    • for the Blue channel, use addresses 1024...1087

Send the following values to the Red+Green and Blue channels:

  • For the Red+Green channel - Red value * 256 + Green value
  • For the Blue channel - Blue value * 256

Configuring the RGB color picker​

A detailed description of how to create a color picker is available here.

  1. Create a color picker and auxiliary items. Any color image can be used as the color picker.
  2. Add this script to the project:
IR.AddListener(IR.EVENT_START,0,function()
{
IR.AddListener(IR.EVENT_ITEM_RELEASE, IR.GetPage("Page 1").GetItem("Color picker"), function() {
var in_color = IR.GetPage("Page 1").GetItem("Color picker").PickColor;
var red = (in_color >> 24) & 0xff;
var green = (in_color >> 16) & 0xff;
var blue = (in_color >> 8) & 0xff;
var RG = red * 256 + green;
var B = blue * 256;
var device = IR.GetDevice("Modbus TCP"); // your driver name
device.Set("Red+Green", RG); // your Red+Green channel name
device.Set("Blue", B); //your Blue channel name
});
});

Tips&Triks

Note

Tips&Triks

  • If communication with the equipment is delayed, check whether unnecessary registers are used in the Modbus driver. Registers that do not exist can significantly reduce the performance of communication between iRidi and the PLC over Modbus.

  • To control the device, you need the controller's register map (the example uses a DALI-LOGIC-X4). Request the instructions with register numbers from the manufacturer.

  • Set the maximum value for Level items and similar items to 254. Arlight equipment does not check for out-of-range values; a value above the limit will cause a malfunction.