Anhang | ASCII-Kommunikation mit Controller
Group
Status
Light-
Sensor
Status
Color
Status
Distance
Abb. 49 Übersicht Ausgabedaten via RS422
Rechenvorschrift am Beispiel eines über RS422 übertragenem L*a*b* Messwertes:
Datenwort
Hex
Bin
Ohne Header
Dez
Shifting Faktor
Ergebnis
colorCONTROL ACS7000
Name
Index
Min
Framerate
1
2500
Shutter
2
2500
TempDetector 3
-1024
TempLightSrc
4
-1024
Red
5
0
Green
6
0
Blue
7
0
Brightness
8
0
Counter
9
0
Timestamp
10
0
XYZ
11-13 0
RGB
14-16 0
LAB
17-19 -131072
LUV
20-22 -131072
LCH (L/C)
23-24 -131072
LCH (H)
25
0
LAB99
26-28 -131072
LCH99 (L/C)
29-30 -131072
LCH99 (H)
31
0
Error
32
0
1_1/2/3
33-35 NA
...
36-77
16_1/2/3
78-80
Min_1/2/3
81-83 -131072
DetectedID
84
0
MinDistID
85
0
23 6E C3 1A 59 C6 17 5C F5
1. (18 Bit Payload) Datenwort
L-Byte
M-Byte
23
6E
00100011 01101110 11000011
100011
101110
35
46
9
15267
29,82
RS422
Raw
Max
Min
Max
250000
20,00
2000,00 10^6/(x*12,5*2^4)*1000 Hz
250000
20,00
2000,00 x*12,5*2^4)/10^9
1023
-256,00
255,75
1023
-256,00
255,75
65535
0,00
100,00
65535
0,00
100,00
65535
0,00
100,00
65535
0,00
100,00
262143
0
262143
262143
0,00
67,11
131072
0,00
256,00
131072
0,00
256,00
131071
-256,00
256,00
131071
-256,00
256,00
131071
-256,00
256,00
131071
0,00
256,00
131071
-256,00
256,00
131071
-256,00
256,00
184320
0,00
360,00
262143
0
262143
-
-
131071
-256,00
256,00
16
0
16
16
0
16
Messwert L* (1. Datenwort)
1. Obere 2 Bit der Headerinfo entfernt
H-Byte
2. Gewichtung und Addition der 3 Bytes:
C3
High-Byte * 2^12 + Mid-Byte * 2^6 + Low-Byte
3. Division des Ergebnisses durch 2^9
000011
4. Bei Signed Werten (z. B.: a* & b*) prüfe, ob
3
Ergebnis > 2^8 --> Negativ,
d. h. Ergebnis = Ergebnis - 2^9
Scaled
Formula
x/4
x/4
x/65536*100
x/65536*100
x/65536*100
x/65536*100
x
x*256/100000
x/512
x/512
x/512
x/512
x/512
x/512
x/512
x/512
x/512
x
x/512
-
-
Seite 85
Unit
µs
°C
°C
%
%
%
%
-
s
-
-
-
-
-
°
-
-
°
-
-
-
-