<!-- Source: https://docs.captron.com/trms/series10/process-data -->

# Process Data

:::note
IO-Link bit offset counts from the last byte of the data array.
:::

## Process Data Input

80 bit / 10 bytes

<table>
  <thead>
    <tr>
      <th>Byte</th>
      <th>0</th>
      <th>1</th>
      <th>2</th>
      <th>3</th>
      <th>4</th>
      <th>5</th>
      <th>6</th>
      <th>7</th>
      <th>8</th>
      <th>9</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><strong>Bit Offset</strong></td>
      <td></td>
      <td>64</td>
      <td>56</td>
      <td></td>
      <td>48</td>
      <td>32</td>
      <td>24</td>
      <td>16</td>
      <td>8</td>
      <td>0</td>
    </tr>
    <tr>
      <td><strong>Data</strong></td>
      <td>unused</td>
      <td>Surrounding Brightness</td>
      <td>Actuation Strength</td>
      <td></td>
      <td>Actuation Count</td>
      <td></td>
      <td>Actuation Flag</td>
      <td>Pin 5</td>
      <td>Pin 4</td>
      <td>Pin 2</td>
    </tr>
  </tbody>
</table>

### Field Reference

<table>
  <thead>
    <tr>
      <th>Bit Offset</th>
      <th>Name</th>
      <th>Datatype</th>
      <th>Values</th>
      <th>Info</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>0</td>
      <td>Pin 2</td>
      <td>8-bit UIntegerT</td>
      <td>4 - Input OFF, 5 - Input ON, 8 - Pin unused</td>
      <td>E1 input pin state</td>
    </tr>
    <tr>
      <td>8</td>
      <td>Pin 4</td>
      <td>8-bit UIntegerT</td>
      <td>0 - Output OFF, 1 - Output ON</td>
      <td>OUT pin state</td>
    </tr>
    <tr>
      <td>16</td>
      <td>Pin 5</td>
      <td>8-bit UIntegerT</td>
      <td>4 - Input OFF, 5 - Input ON, 8 - Pin unused</td>
      <td>E2 input pin state</td>
    </tr>
    <tr>
      <td>24</td>
      <td>Actuation Flag</td>
      <td>8-bit UIntegerT</td>
      <td>0 - Idle, 1 - Actuated</td>
      <td>Sensor actuation state</td>
    </tr>
    <tr>
      <td>32</td>
      <td>Actuation Count</td>
      <td>16-bit UIntegerT</td>
      <td>0 ... 65535</td>
      <td>
        Number of actuation cycles since sensor has been turned on. Counter resets when sensor
        restarts and after count of 65535.
      </td>
    </tr>
    <tr>
      <td>48</td>
      <td>Actuation Strength</td>
      <td>8-bit UIntegerT</td>
      <td>0 ... 100 [%]</td>
      <td>Damping of sensor in percent.</td>
    </tr>
    <tr>
      <td>56</td>
      <td>Surrounding Brightness</td>
      <td>8-bit UIntegerT</td>
      <td>0 ... 100 [%]</td>
      <td>Ambient brightness in percent.</td>
    </tr>
    <tr>
      <td>64</td>
      <td>unused</td>
      <td>16-bit UIntegerT</td>
      <td>0 ... 65535</td>
      <td></td>
    </tr>
  </tbody>
</table>

## Process Data Output

64 bit / 8 bytes

### LED Control Modes "Automatic Scene Selection" (0) / "Classic Two LED Mode" (3)

Process Data Output is **unused**.

### LED Control Mode "Scene controlled by IO-Link Process Data" (1)

<table>
  <thead>
    <tr>
      <th>Byte</th>
      <th>0</th>
      <th>1</th>
      <th>2</th>
      <th>3</th>
      <th>4</th>
      <th>5</th>
      <th>6</th>
      <th>7</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><strong>Data</strong></td>
      <td>unused</td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td>LED Scene</td>
    </tr>
  </tbody>
</table>

<table>
  <thead>
    <tr>
      <th>Bit Offset</th>
      <th>Name</th>
      <th>Datatype</th>
      <th>Values</th>
      <th>Info</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>0</td>
      <td>LED Scene</td>
      <td>8-bit UIntegerT</td>
      <td>0...7, 255 - Automatic</td>
      <td>
        Switch between LED scenes "0" to "7". For control by activation and input pins set value to
        "255".
      </td>
    </tr>
  </tbody>
</table>

### LED Control Mode "Advanced control by IO-Link Process Data" (2)

<table>
  <thead>
    <tr>
      <th>Byte</th>
      <th>0</th>
      <th>1</th>
      <th>2</th>
      <th>3</th>
      <th>4</th>
      <th>5</th>
      <th>6</th>
      <th>7</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><strong>Bit Offset</strong></td>
      <td>56</td>
      <td>48</td>
      <td>40</td>
      <td>32</td>
      <td>24</td>
      <td>16</td>
      <td></td>
      <td>0</td>
    </tr>
    <tr>
      <td><strong>Data</strong></td>
      <td>Effect Frequency</td>
      <td>LED Effect</td>
      <td>LED Color B</td>
      <td>LED Color G</td>
      <td>LED Color R</td>
      <td>LED Brightness</td>
      <td></td>
      <td>Active LEDs</td>
    </tr>
  </tbody>
</table>

<table>
  <thead>
    <tr>
      <th>Bit Offset</th>
      <th>Name</th>
      <th>Datatype</th>
      <th>Values</th>
      <th>Info</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>0</td>
      <td>Active LEDs</td>
      <td>16-bit UIntegerT</td>
      <td>0...1</td>
      <td>Bitmask, defining which LEDs are active.</td>
    </tr>
    <tr>
      <td>16</td>
      <td>LED Brightness</td>
      <td>8-bit UIntegerT</td>
      <td>0...100, 255 - Automatic Control [%]</td>
      <td>
        Brightness of LED ring in percent. Value of 255 means automatic brightness control by
        sensor.
      </td>
    </tr>
    <tr>
      <td>24</td>
      <td>LED Color R</td>
      <td>8-bit UIntegerT</td>
      <td>0 ... 255</td>
      <td>Red component of LED color.</td>
    </tr>
    <tr>
      <td>32</td>
      <td>LED Color G</td>
      <td>8-bit UIntegerT</td>
      <td>0 ... 255</td>
      <td>Green component of LED color.</td>
    </tr>
    <tr>
      <td>40</td>
      <td>LED Color B</td>
      <td>8-bit UIntegerT</td>
      <td>0 ... 255</td>
      <td>Blue component of LED color.</td>
    </tr>
    <tr>
      <td>48</td>
      <td>LED Effect</td>
      <td>8-bit UIntegerT</td>
      <td>0 - Static Ring, 1 - Flash Ring, 2 - Pulse Ring</td>
      <td></td>
    </tr>
    <tr>
      <td>56</td>
      <td>Effect Frequency</td>
      <td>8-bit UIntegerT</td>
      <td>1...60, 0 - Default Frequency [0.1 Hz]</td>
      <td>Frequency of LED effect in 1/10 Hz, range: 0.1 ... 6 Hz.</td>
    </tr>
  </tbody>
</table>
