# ILD5500 IE scaling

## Signalreihenfolge
SHUTTER MEASRATE TIMESTAMP COUNTER STATE UNLIN INTENSITY DIST1 DIST1_MIN DIST1_PEAK DIST1_MAX

### PROFINET
| Signalname | Profinet Modul Nummer | Profinet Modul      |
|------------|-----------------------|---------------------|
| SHUTTER    | 0x01                  | Shutter             |
| MEASRATE   | 0x02                  | Frequency           |
| TIMESTAMP  | 0x03                  | Frame time stamp    |
| COUNTER    | 0x04                  | Frame counter       |
| STATE      | 0x05                  | Frame status        |
| UNLIN      | 0x06                  | Unlin               |
| INTENSITY  | 0x07                  | Intensity           |
| DIST1      | 0x09                  | Peak 1 distance     |
|            | 0x0A - 0x2E           | User Calcs 01 to 40 |

### ETHERCAT
| Signalname | Index | Name                   |
|------------|-------|------------------------|
| SHUTTER    | x1A00 | Shutter_OV1            |
|            | x1A01 | Shutter_OV2            |
|            | x1A02 | Shutter_OV4            |
|            | x1A03 | Shutter_OV8            |
| MEASRATE   | x1A10 | Frequency_OV1          |
|            | x1A11 | Frequency_OV2          |
|            | x1A12 | Frequency_OV4          |
|            | x1A13 | Frequency_OV8          |
| TIMESTAMP  | x1A20 | Frame time stamp_OV1   |
|            | x1A21 | Frame time stamp_OV2   |
|            | x1A22 | Frame time stamp_OV4   |
|            | x1A23 | Frame time stamp_OV8   |
| COUNTER    | x1A30 | Frame counter_OV1      |
| COUNTER    | x1A31 | Frame counter_OV2      |
| COUNTER    | x1A32 | Frame counter_OV4      |
| COUNTER    | x1A33 | Frame counter_OV8      |
| STATE      | x1A40 | Frame status_OV1       |
| STATE      | x1A41 | Frame status_OV2       |
| STATE      | x1A42 | Frame status_OV4       |
| STATE      | x1A43 | Frame status_OV8       |
| UNLIN      | x1A50 | Unlin_OV1              |
| UNLIN      | x1A51 | Unlin_OV2              |
| UNLIN      | x1A52 | Unlin_OV4              |
| UNLIN      | x1A53 | Unlin_OV8              |
| INTENSITY  | x1A60 | Intensity_OV1          |
| INTENSITY  | x1A61 | Intensity_OV2          |
| INTENSITY  | x1A62 | Intensity_OV4          |
| INTENSITY  | x1A63 | Intensity_OV8          |
| DIST1      | x1A80 | Peak 1 distance_OV1    |
| DIST1      | x1A81 | Peak 1 distance_OV2    |
| DIST1      | x1A82 | Peak 1 distance_OV4    |
| DIST1      | x1A83 | Peak 1 distance_OV8    |
|            | x1A90 | User calc 01_OV1       |
|            | x1A91 | User calc 01_OV2       |
|            | x1A92 | User calc 01_OV4       |
|            | x1A93 | User calc 01_OV8       |
|            | ...   | ...                    |
|            | x1AE3 | User calc 06_OV8       |
|            | x1AF0 | User calc 07 to 08_OV1 |
|            | x1AF1 | User calc 07 to 08_OV2 |
|            | x1AF2 | User calc 07 to 08_OV4 |
|            | x1AF3 | User calc 07 to 08_OV8 |
|            | ...   | ...                    |
|            | x1B53 | User calc 19 to 20_OV8 |
|            | x1B60 | User calc 21 to 24_OV1 |
|            | x1B61 | User calc 21 to 24_OV2 |
|            | x1B62 | User calc 21 to 24_OV4 |
|            | x1B63 | User calc 21 to 24_OV8 |
|            | ...   | ...                    |
|            | x1BA3 | User calc 37 to 40_OV8 |



## Signalübersicht

| **Signalname**       | **min**   | **max**    | **Scale**                                         | **Unit** |
|----------------------|-----------|------------|---------------------------------------------------|----------|
| SHUTTER              | 0         | 65536      | value / 10                                        | µs       |
| FREQUENCY (MEASRATE) | 250       | 75000      | value / 1000                                      | kHz      |
| TIMESTAMP            | 0         | UINT32_MAX | value / 10                                        | µs       |
| COUNTER              | 0         | UINT32_MAX | value                                             |          |
| STATE                | 0         | UINT32_MAX | - Bit 2: kein Peak gefunden                       |          |
|                      |           |            | - Bit 5: Abstand vor MBA (erweitert)              |          |
|                      |           |            | - Bit 6: Abstand nach MBE (erweitert)             |          |
|                      |           |            | - Bit 15: Messwert ist getriggert                 |          |
|                      |           |            | - Bit 16, 17: Status-LED                          |          |
|                      |           |            | (00 – aus, 01 - rot, 10 - grün, 11 - gelb)        |          |
| UNLIN                | 0         | 262143     | value / 256                                       | Pixel    |
| INTENSITY            | 0         | 4095       | value / 4096 * 100                                | %        |
| DIST1                | INT32_MIN | 0x7ffffeff | value / 1000000                                   | mm       |
|                      |           |            | - 0x7fffff04 es ist kein Peak vorhanden           |          |
|                      |           |            | - 0x7fffff05 Peak liegt vor dem Messbereich (MB)  |          |
|                      |           |            | - 0x7fffff06 Peak liegt nach dem Messbereich (MB) |          |
|                      |           |            | - 0x7fffff08 Messwert nicht auswertbar            |          |
|                      |           |            | - 0x7fffff09 Peak ist zu breit                    |          |
|                      |           |            | - 0x7fffff0a Laser ist ausgeschaltet              |          |
|                      |           |            | - 0x7fffff15 Messung über Feldbus AIF deaktiviert |          |
| *_MIN                | INT32_MIN | 0x7ffffeff | identisch DIST1                                   | mm       |
| *_PEAK               | INT32_MIN | 0x7ffffeff | identisch DIST1                                   | mm       |
| *_MAX                | INT32_MIN | 0x7ffffeff | identisch DIST1                                   | mm       |
