<!-- Source: https://docs.captron.com/trms/series10/led-control -->

# LED Control

series10 supports four modes for controlling its LED:

- Automatic Scene Selection
- Scene controlled by IO-Link-Process Data \*
- Advanced Control by IO-Link Process Data \*
- Classic Two LED Mode

\* If the SENSORswitch is not used with IO-Link, it will behave like with "Automatic Scene selection" mode.

The control mode can be selected via IO-Link parameter **LED Control Mode** (see [ISDU Indices](isdu-indices.md)).

## Automatic Scene Selection

Number of applicable scenes depends on parameter **Active Inputs**:

<table>
  <colgroup>
    <col style={{ minWidth: '140px' }} />
  </colgroup>
  <thead>
    <tr>
      <th>Active Inputs</th>
      <th>Scenes Used</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>None (3 pin mode)</td>
      <td>0, 1</td>
    </tr>
    <tr>
      <td>Pin2 (E1) (4 pin mode)</td>
      <td>0 ... 3</td>
    </tr>
    <tr>
      <td>Pin2 (E1) and Pin5 (E2) (5 pin mode)</td>
      <td>0 ... 7</td>
    </tr>
  </tbody>
</table>

Scene n is selected depending on the state of touch (sensor actuation) and the state of the input pins E1 and E2:

<table>
  <colgroup>
    <col style={{ minWidth: '140px' }} />
  </colgroup>
  <thead>
    <tr>
      <th>LED Scene</th>
      <th>Touch</th>
      <th>E1</th>
      <th>E2</th>
      <th>None</th>
      <th>Pin 2 (E1)</th>
      <th>Pin 2 (E1), Pin 5 (E2)</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>0</td>
      <td>0</td>
      <td>0</td>
      <td>0</td>
      <td>&#10003;</td>
      <td>&#10003;</td>
      <td>&#10003;</td>
    </tr>
    <tr>
      <td>1</td>
      <td>1</td>
      <td>0</td>
      <td>0</td>
      <td>&#10003;</td>
      <td>&#10003;</td>
      <td>&#10003;</td>
    </tr>
    <tr>
      <td>2</td>
      <td>0</td>
      <td>1</td>
      <td>0</td>
      <td></td>
      <td>&#10003;</td>
      <td>&#10003;</td>
    </tr>
    <tr>
      <td>3</td>
      <td>1</td>
      <td>1</td>
      <td>0</td>
      <td></td>
      <td>&#10003;</td>
      <td>&#10003;</td>
    </tr>
    <tr>
      <td>4</td>
      <td>0</td>
      <td>0</td>
      <td>1</td>
      <td></td>
      <td></td>
      <td>&#10003;</td>
    </tr>
    <tr>
      <td>5</td>
      <td>1</td>
      <td>0</td>
      <td>1</td>
      <td></td>
      <td></td>
      <td>&#10003;</td>
    </tr>
    <tr>
      <td>6</td>
      <td>0</td>
      <td>1</td>
      <td>1</td>
      <td></td>
      <td></td>
      <td>&#10003;</td>
    </tr>
    <tr>
      <td>7</td>
      <td>1</td>
      <td>1</td>
      <td>1</td>
      <td></td>
      <td></td>
      <td>&#10003;</td>
    </tr>
  </tbody>
</table>

## Scene Controlled by IO-Link Process Data

The active Scene is set according to the **LED Scene** value in IO-Link process data.

## Advanced Control by IO-Link Process Data

The LED color, brightness, effect, and effect frequency is controlled by IO-Link process data.

## Classic Two LED Mode

"Idle" and "Touch" parameters of "Classic LED Control" section are used.

The **Active Inputs** parameter controls whether the input pins affect the selection of "Idle" or "Touch" configuration:

### Active Inputs = None (3 pin mode)

<table>
  <thead>
    <tr>
      <th>Touch</th>
      <th>E1</th>
      <th>E2</th>
      <th>LED Configuration</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>0</td>
      <td>Not relevant</td>
      <td>Not relevant</td>
      <td>Idle</td>
    </tr>
    <tr>
      <td>1</td>
      <td>Not relevant</td>
      <td>Not relevant</td>
      <td>Touch</td>
    </tr>
  </tbody>
</table>

### Active Inputs = Pin2 (E1) (4 pin mode)

<table>
  <thead>
    <tr>
      <th>Touch</th>
      <th>E1</th>
      <th>E2</th>
      <th>LED Configuration</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>0</td>
      <td>0</td>
      <td>Not relevant</td>
      <td>off</td>
    </tr>
    <tr>
      <td>0</td>
      <td>1</td>
      <td>Not relevant</td>
      <td>Idle</td>
    </tr>
    <tr>
      <td>1</td>
      <td>Not relevant</td>
      <td>Not relevant</td>
      <td>Touch</td>
    </tr>
  </tbody>
</table>

### Active Inputs = Pin2 (E1) and Pin5 (E2) (5 pin mode)

<table>
  <thead>
    <tr>
      <th>Touch</th>
      <th>E1</th>
      <th>E2</th>
      <th>LED Configuration</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Not relevant</td>
      <td>0</td>
      <td>0</td>
      <td>off</td>
    </tr>
    <tr>
      <td>Not relevant</td>
      <td>1</td>
      <td>0</td>
      <td>Idle</td>
    </tr>
    <tr>
      <td>Not relevant</td>
      <td>0</td>
      <td>1</td>
      <td>Touch</td>
    </tr>
    <tr>
      <td>Not relevant</td>
      <td>1</td>
      <td>1</td>
      <td>Idle & Touch colors mixed</td>
    </tr>
  </tbody>
</table>
