<!-- Source: https://docs.captron.com/trms/series4x/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

112 bit / 14 bytes

### LED Control Mode "Automatic Scene Selection" (0)

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>
      <th>8</th>
      <th>9</th>
      <th>10</th>
      <th>11</th>
      <th>12</th>
      <th>13</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><strong>Bit Offset</strong></td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td>64</td>
      <td>56</td>
      <td>48</td>
      <td>40</td>
      <td>32</td>
      <td>16</td>
      <td>8</td>
      <td>0</td>
    </tr>
    <tr>
      <td><strong>Data</strong></td>
      <td>unused</td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td>Display Digit 4</td>
      <td>Display Digit 3</td>
      <td>Display Digit 2</td>
      <td>Display Digit 1</td>
      <td>Displayed Number</td>
      <td></td>
      <td>Display Mode</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>
    <tr>
      <td>8</td>
      <td>Display Mode</td>
      <td>8-bit UIntegerT</td>
      <td>0 - Use text from Scene, 1 - Number given, 2 - Digits given</td>
      <td>
        <strong>0</strong>
        : Displays the text predefined in scene.
        <strong>1</strong>
        : Displays the number set in "Displayed Number".
        <strong>2</strong>
        : Displays the digits set in "Display Digit 1" to "Display Digit 4".
      </td>
    </tr>
    <tr>
      <td>16</td>
      <td>Displayed Number</td>
      <td>16-bit UIntegerT</td>
      <td>0 ... 9999</td>
      <td>Number between "0" and "9999".</td>
    </tr>
    <tr>
      <td>32</td>
      <td>Display Digit 1</td>
      <td>8-bit UIntegerT</td>
      <td>0 ... 255</td>
      <td>
        Set digits as ASCII-code. See
        <a href="display-content">Display Content</a>
        .
      </td>
    </tr>
    <tr>
      <td>40</td>
      <td>Display Digit 2</td>
      <td>8-bit UIntegerT</td>
      <td>0 ... 255</td>
      <td>
        Set digits as ASCII-code. See
        <a href="display-content">Display Content</a>
        .
      </td>
    </tr>
    <tr>
      <td>48</td>
      <td>Display Digit 3</td>
      <td>8-bit UIntegerT</td>
      <td>0 ... 255</td>
      <td>
        Set digits as ASCII-code. See
        <a href="display-content">Display Content</a>
        .
      </td>
    </tr>
    <tr>
      <td>56</td>
      <td>Display Digit 4</td>
      <td>8-bit UIntegerT</td>
      <td>0 ... 255</td>
      <td>
        Set digits as ASCII-code. See
        <a href="display-content">Display Content</a>
        .
      </td>
    </tr>
  </tbody>
</table>

:::note
Display fields apply to Display variants only.
:::

### 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>
      <th>8</th>
      <th>9</th>
      <th>10</th>
      <th>11</th>
      <th>12</th>
      <th>13</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><strong>Bit Offset</strong></td>
      <td>104</td>
      <td>96</td>
      <td>88</td>
      <td>80</td>
      <td>72</td>
      <td>64</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>unused</td>
      <td>Display Brightness</td>
      <td>Display Digit 4</td>
      <td>Display Digit 3</td>
      <td>Display Digit 2</td>
      <td>Display Digit 1</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 ... 65535</td>
      <td>
        Bitmask defining which LEDs are active. LED 1 is the top left LED, the index increases
        clockwise.
      </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>
        See
        <a href="led-scenes#led-effects">LED Effects reference</a>
      </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>
    <tr>
      <td>64</td>
      <td>Display Digit 1</td>
      <td>8-bit UIntegerT</td>
      <td>0 ... 255</td>
      <td>
        Set digits as ASCII-code. See
        <a href="display-content">Display Content</a>
        .
      </td>
    </tr>
    <tr>
      <td>72</td>
      <td>Display Digit 2</td>
      <td>8-bit UIntegerT</td>
      <td>0 ... 255</td>
      <td>
        Set digits as ASCII-code. See
        <a href="display-content">Display Content</a>
        .
      </td>
    </tr>
    <tr>
      <td>80</td>
      <td>Display Digit 3</td>
      <td>8-bit UIntegerT</td>
      <td>0 ... 255</td>
      <td>
        Set digits as ASCII-code. See
        <a href="display-content">Display Content</a>
        .
      </td>
    </tr>
    <tr>
      <td>88</td>
      <td>Display Digit 4</td>
      <td>8-bit UIntegerT</td>
      <td>0 ... 255</td>
      <td>
        Set digits as ASCII-code. See
        <a href="display-content">Display Content</a>
        .
      </td>
    </tr>
    <tr>
      <td>96</td>
      <td>Display Brightness</td>
      <td>8-bit UIntegerT</td>
      <td>0...100, 255 - Automatic Control [%]</td>
      <td>
        Brightness of 7-segment display in percent. Value of 255 means automatic brightness control
        by sensor.
      </td>
    </tr>
  </tbody>
</table>

:::note
Display fields apply to Display variants only.
:::
