Page 110
Appendix |ASCII Communication with Controller
confocalDT 24x1
A 5.6
Measured Value Format
This Chapter describes the assembly of measured value frames. Informations to transfer via Ethernet or RS422 suc-
ceed, see Chap.
The data block has a fixed structure (sequence):
-
Video signals (+ adjustments) (N * 512 pixel * 16 bit)
-
Exposure time (1 * 32 bit)
-
Measuring rate (1 * 32 Bit)
-
Encoder (Ne * 32 bit) (Ne = {0, 1, 2, 3})
-
Measured value counter (1 * 32 bit)
-
Time stamp (1 * 32 bit)
-
Displacement values / Intensities (n * (i+1) * 32 bit)
-
Error status (1 * 32 Bit)
-
Trigger time difference (1 * 32 bit)
-
Differences ((n-1) * 32 bit)
-
Statistic values (min/max/peak2peak) (per 32 bit)
n = {0, 1, 2} n = 0 only for RS422
i = {0, 1} i = 0 -> Intensity output off, i = 1 -> Intensity output activated
n = 1 -> Displacement measurement
n = 2 -> Thickness measurement
The measured value frame is set up dynamically, that means not selected values, see
Frame 1
Frame 2
Frame n
Header
Header
Order
Number
(32 Bit)
Preamble
(32 Bit)
Serial
Number
(32 Bit)
Number of frames
per data block
(16 Bit)
Counter
(32 Bit)
Bytes per
single frame
(16 Bit)
Bit 23
„0“
Bit 22
„0“
Bit 21
„1“
Bit 22
„0“
Bit 22
„0“
Bit 20
„1“
Bit 19
„1“
Bit 24
„0“
Error
status
(32 Bit)
Intensity
3
(32 Bit)
Distance
3
(32 Bit)
Intensity
2
(32 Bit)
Distance
2
(32 Bit)
Intensity
1
(32 Bit)
Distance
1
(32 Bit)
Time
stamp
(32 Bit)
Encoder
3
(32 Bit)
Encoder
1
(32 Bit)
Mini-
mum
(32 Bit)
Distances/Intensities of peak 1 up to 6
Bit 18
„1“
Measurements
Bit 15
„1“
Intensity
Bit 12
„1“
Time
Bit 9
„0“
Bit 8
„1“
Bit 7
„0“
Exposure
Bit 6 ... 0
„0“
Video
Bit 11
„0“
Bit 10
„1“
Encoder 1 up to 3
Counter
Bit 17
„0“
Bit 31
„0“
Bit 30
„0“
Bit 29
„1“
Bit 28
„0“
Bit 16
„0“
Bit 15
„1“
Bit 14 ... 0
„0“
Frame rate
P2P
Max
Min
Thickness
Flags 2
(32 Bit)
Flags1
(32 Bit)
Bit 31 ... 28
Bit 26
„1“
Error
Bit 27
„1“
TrigTimeDiff
Bit 14
„0“
unlin. Distance
Fig. 79 Example for a data transmission via Ethernet
With Ethernet distance and thickness values are transmitted as 32 bit signed integer with 1 nm resolution.
A 5.6.1 Video Signal
Video signals, which were calculated in signal processing, can be transmitted. A video signal consists of 512 pixel. A
pixel is described by a 16-bit word. The used value range is 0 …16383.
There are five available video signals:
-
Raw signal
-
Dark-corrected signal
-
Light source corrected signal
-
Dark values table
-
Light values table
-
Peak threshold