Read each line info block
- 13 Jan 2024
- 1 Minute to read
- Print
- PDF
Read each line info block
- Updated on 13 Jan 2024
- 1 Minute to read
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Decoding of the each line info block
Pixel | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
---|---|---|---|---|---|---|---|---|---|---|
Red | Marker | Error code | Speed2high | Encoder clocks | Next line position | Time stamp | Unsupported | Unsupported | Unsupported | Marker |
Green | Continuous line count | Line count | Line time | |||||||
Blue |
Continuous line count
Structure
Continuous line count | ||
---|---|---|
– | Byte 1 | Byte 0 |
Px0Red | Px0Green | Px0Blue |
Decoding
The decoding of the continuous line count is:
Clc = Px0Green × 256 + Px0Blue
Example
Clc = 217 × 256 + 127 = 55679
Line count
Structure
Line count | ||
---|---|---|
– | Byte 1 | Byte 0 |
Px1Red | Px1Green | Px1Blue |
Decoding
The decoding of the line count is
Lc = Px1Green × 256 + Px1Blue
Example
Lc = 0 × 256 + 0 = 0
Speed too high
Structure
Speed2high | – |
---|---|
Bit 7 | Bit 6 – Bit 0 |
Px2Red |
Line time
Structure
Line time clocks | |||
---|---|---|---|
Bit 7 – Bit 4 | Bit 3 – Bit 0 | Byte 1 | Byte 0 |
Px2Red | Px2Green | Px2Blue |
Decoding
The decoding of the line time is:
Lt = (Px2Red × 216 + Px2Green × 28 + Px2Blue) / 100
Example
Lt = (0 × 216 + 21 × 28 + 124) / 100 = 55 µs
Encoder clocks
Structure
Encoder clocks | ||
---|---|---|
Byte 2 | Byte 1 | Byte 0 |
Px3Red | Px3Green | Px3Blue |
Decoding
The decoding of the encoder clocks is:
Ec = Px3Red × 216 + Px3Green × 28 + Px3Blue
Next line trigger position
Structure
Next lt pos raw | ||
---|---|---|
Byte 2 | Byte 1 | Byte 0 |
Px4Red | Px4Green | Px4Blue |
Decoding
The decoding of the encoder clocks is:
Nlp = (Px4Red × 216 + Px4Green × 28 + Px4Blue) / 256
Time stamp
Structure
Time [s] | Time [¼ ms] | |
---|---|---|
Byte 2 | Byte 1 | Byte 0 |
Px5Red | Px5Green | Px5Blue |
Decoding
The decoding of the time stamp is:
Ts = (Px5Red × 216 + Px5Green × 28 + Px5Blue) / 4
Was this article helpful?