--- title: "Set up communication to the XLC4 controller" slug: "set-up-communication-to-the-xlc4-controller" updated: 2024-02-27T06:36:36Z published: 2024-02-27T06:36:36Z canonical: "docs-linescan.alliedvision.com/set-up-communication-to-the-xlc4-controller" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs-linescan.alliedvision.com/llms.txt > Use this file to discover all available pages before exploring further. # Set up communication to the XLC4 controller ## Switching the illumination on and off via the camera The following section describes how to connect the camera to the LED Control Unit XCL4 to switch the illumination ON and OFF via the frame active signal. The configuration is used to automatically turn ON the illumination as a frame acquisition is started and turn OFF the illumination after the acquisition. ### Wiring > [!NOTE] > Note > > You need a electrical grounding (protective earth) for your camera and LED Control Unit XLC4. > > Therfore connect the housing of your camera and LED Control Unit XLC4 housing to your electrical ground. > > Also connect the power supply input X4 Pin 3 and 4 of your LED Control Unit XLC4 to your electrical ground. Connect the following pins of the LED Control Unit XCL4 (connector X6) to the digital I/O port (15 pin HD D-Sub) of the camera. | Step | LED Control Unit XLC4 (Connector X6) | Camera (15 pin HD D-Sub) | | --- | --- | --- | | 1 | PIN 1 (Signal) | PIN 11 or 12,13,14 | | 2 | PIN 6 (GND) | PIN 5 (GND) | ### Configure the LED Control Unit XLC4 #### Control Flad A The configuration of the Control Flag A of the LED Control Unit XLC4 is done with the FA command. You need to add the 0×0020 to your current configuration and send it with the XLC4 commander software to your controller. Refer to the LED Control Unit XLC4 Manual Page 101. ![null](https://cdn.document360.io/eca58697-9c2f-461e-9f0a-e6205b74b693/Images/Documentation/image(2).png)Corona II + LED-Control Unit XLC4-1 Page 101 Example: If you also using a fan you need the command 0×002C. ![](https://cdn.document360.io/eca58697-9c2f-461e-9f0a-e6205b74b693/Images/Documentation/image(4).png) > [!NOTE] > Note > > After a FA command of the LED Control Unit XLC4 you need to power cycle the controler. #### Command MO (set operation mode) The configuration of the operation mode of the LED Control Unit XLC4 is done with the MO command. You need to set the *Command Mode* in your controller, therefore send the command *MO 1* with the XLC4 commander software to your controller. Refer to the LED Control Unit XLC4 Manual Page 97. ### Configure the camera To configure the camera set the following parameter in the camera feature tree. | 1. In the feature tree navigate to *Digital IO Control* | | | --- | --- | | 1. Set the corresponding Signal Line which you are connected between the camera and controller (for example Line 5) | | | 1. Set *Line Selector* to *Line5* 2. Set *Line Mode* to *Output* 3. Set *Line Source* to *Frame Active* 4. Set *Line Format to Single Ended 3V3* | ![](https://cdn.document360.io/eca58697-9c2f-461e-9f0a-e6205b74b693/Images/Documentation/image(5).png) |