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

# Process Data

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

## Process Data Input

128 bit / 16 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>
      <th>10</th>
      <th>11</th>
      <th>12</th>
      <th>13</th>
      <th>14</th>
      <th>15</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><strong>Bit Offset</strong></td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td>96</td>
      <td></td>
      <td></td>
      <td></td>
      <td>64</td>
      <td>48</td>
      <td>32</td>
      <td>24</td>
      <td>16</td>
      <td>8</td>
      <td>0</td>
      <td></td>
    </tr>
    <tr>
      <td><strong>Data</strong></td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td>Capacitance</td>
      <td></td>
      <td></td>
      <td></td>
      <td>reserved</td>
      <td>reserved</td>
      <td></td>
      <td>res.</td>
      <td>Pin 5</td>
      <td>Pin 4</td>
      <td>Pin 2</td>
      <td></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>0 - Output OFF, 1 - Output ON, 2 - Output Analog, 4 - Input OFF, 5 - Input ON</td>
      <td>Pin 2 state. Value 2 (Analog) not available on Lite variant.</td>
    </tr>
    <tr>
      <td>8</td>
      <td>Pin 4</td>
      <td>8-bit UIntegerT</td>
      <td>0 - Output OFF, 1 - Output ON</td>
      <td>Pin 4 state.</td>
    </tr>
    <tr>
      <td>16</td>
      <td>Pin 5</td>
      <td>8-bit UIntegerT</td>
      <td>0 - Output OFF, 1 - Output ON, 4 - Input OFF, 5 - Input ON</td>
      <td>Pin 5 state.</td>
    </tr>
    <tr>
      <td>24</td>
      <td>reserved</td>
      <td>8-bit IntegerT</td>
      <td></td>
      <td></td>
    </tr>
    <tr>
      <td>32</td>
      <td>Fill Level</td>
      <td>16-bit IntegerT</td>
      <td>-32767...32767 [0.01 %], -32768 - not available</td>
      <td>
        Fill level in 0.01%. Value -32768 means fill level not available (during device start-up or
        due to parameter error).
      </td>
    </tr>
    <tr>
      <td>48</td>
      <td>reserved</td>
      <td>16-bit IntegerT</td>
      <td></td>
      <td></td>
    </tr>
    <tr>
      <td>64</td>
      <td>reserved</td>
      <td>32-bit UIntegerT</td>
      <td></td>
      <td></td>
    </tr>
    <tr>
      <td>96</td>
      <td>Capacitance</td>
      <td>32-bit UIntegerT</td>
      <td>0 ... 4294967295 [0.01 pF]</td>
      <td>Measured electric capacitance in 0.01 pF.</td>
    </tr>
  </tbody>
</table>

## Process Data Output

64 bit / 8 bytes

### LED Control Mode "By Device" (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>
    </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...6, 255 - control by device</td>
      <td>
        Switch between LED scenes 0 to 6. For control by the device (fill level visualization), set
        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>LED 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 [%]</td>
      <td>Brightness of LED in percent.</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, 1 - Flash, 2 - Pulse</td>
      <td></td>
    </tr>
    <tr>
      <td>56</td>
      <td>Effect Frequency</td>
      <td>8-bit UIntegerT</td>
      <td>1...60 [0.1 Hz], 0 - Default Frequency</td>
      <td>Frequency of LED effect in 0.1 Hz, range: 0.1 ... 6 Hz.</td>
    </tr>
  </tbody>
</table>
